]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
29 | ||
093d3ff1 RD |
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
d14a1e28 | 37 | |
c9c7117a | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d14a1e28 RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d14a1e28 | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d14a1e28 RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
093d3ff1 RD |
49 | /* This should only be incremented when either the layout of swig_type_info changes, |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
d14a1e28 | 52 | |
093d3ff1 RD |
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d14a1e28 RD |
60 | #endif |
61 | ||
093d3ff1 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d14a1e28 | 67 | #else |
093d3ff1 RD |
68 | # define SWIGINLINE |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
d14a1e28 RD |
85 | #endif |
86 | ||
d14a1e28 RD |
87 | #ifdef __cplusplus |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
cc6dd355 | 95 | const char *name; |
d14a1e28 RD |
96 | swig_converter_func converter; |
97 | const char *str; | |
cc6dd355 | 98 | void *clientdata; |
d14a1e28 RD |
99 | swig_dycast_func dcast; |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
093d3ff1 RD |
104 | /* |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
218 | ||
219 | /* | |
220 | Cast a pointer up an inheritance hierarchy | |
221 | */ | |
222 | SWIGRUNTIMEINLINE void * | |
223 | SWIG_TypeCast(swig_type_info *ty, void *ptr) { | |
224 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
225 | } | |
226 | ||
227 | /* | |
228 | Dynamic pointer casting. Down an inheritance hierarchy | |
229 | */ | |
230 | SWIGRUNTIME swig_type_info * | |
231 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
232 | swig_type_info *lastty = ty; | |
233 | if (!ty || !ty->dcast) return ty; | |
234 | while (ty && (ty->dcast)) { | |
235 | ty = (*ty->dcast)(ptr); | |
236 | if (ty) lastty = ty; | |
237 | } | |
238 | return lastty; | |
239 | } | |
240 | ||
241 | /* | |
242 | Return the name associated with this type | |
243 | */ | |
244 | SWIGRUNTIMEINLINE const char * | |
245 | SWIG_TypeName(const swig_type_info *ty) { | |
246 | return ty->name; | |
247 | } | |
248 | ||
249 | /* | |
250 | Return the pretty name associated with this type, | |
251 | that is an unmangled type name in a form presentable to the user. | |
252 | */ | |
253 | SWIGRUNTIME const char * | |
254 | SWIG_TypePrettyName(const swig_type_info *type) { | |
255 | /* The "str" field contains the equivalent pretty names of the | |
256 | type, separated by vertical-bar characters. We choose | |
257 | to print the last name, as it is often (?) the most | |
258 | specific. */ | |
259 | if (type->str != NULL) { | |
260 | const char *last_name = type->str; | |
261 | const char *s; | |
262 | for (s = type->str; *s; s++) | |
263 | if (*s == '|') last_name = s+1; | |
264 | return last_name; | |
265 | } | |
266 | else | |
267 | return type->name; | |
268 | } | |
269 | ||
270 | /* | |
271 | Search for a swig_type_info structure | |
272 | */ | |
273 | SWIGRUNTIME swig_type_info * | |
274 | SWIG_TypeQueryTL(swig_type_info *tl, const char *name) { | |
275 | swig_type_info *ty = tl; | |
276 | while (ty) { | |
277 | if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty; | |
278 | if (ty->name && (strcmp(name,ty->name) == 0)) return ty; | |
279 | ty = ty->prev; | |
280 | } | |
281 | return 0; | |
282 | } | |
283 | ||
284 | /* | |
285 | Set the clientdata field for a type | |
286 | */ | |
287 | SWIGRUNTIME void | |
288 | SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) { | |
289 | swig_type_info *tc, *equiv; | |
290 | if (ti->clientdata) return; | |
291 | /* if (ti->clientdata == clientdata) return; */ | |
292 | ti->clientdata = clientdata; | |
293 | equiv = ti->next; | |
294 | while (equiv) { | |
295 | if (!equiv->converter) { | |
296 | tc = tl; | |
297 | while (tc) { | |
298 | if ((strcmp(tc->name, equiv->name) == 0)) | |
299 | SWIG_TypeClientDataTL(tl,tc,clientdata); | |
300 | tc = tc->prev; | |
301 | } | |
302 | } | |
303 | equiv = equiv->next; | |
304 | } | |
305 | } | |
306 | ||
307 | /* | |
308 | Pack binary data into a string | |
309 | */ | |
310 | SWIGRUNTIME char * | |
311 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
312 | static char hex[17] = "0123456789abcdef"; | |
313 | unsigned char *u = (unsigned char *) ptr; | |
314 | const unsigned char *eu = u + sz; | |
315 | register unsigned char uu; | |
316 | for (; u != eu; ++u) { | |
317 | uu = *u; | |
318 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
319 | *(c++) = hex[uu & 0xf]; | |
320 | } | |
321 | return c; | |
322 | } | |
323 | ||
324 | /* | |
325 | Unpack binary data from a string | |
326 | */ | |
327 | SWIGRUNTIME const char * | |
328 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
329 | register unsigned char *u = (unsigned char *) ptr; | |
330 | register const unsigned char *eu = u + sz; | |
331 | for (; u != eu; ++u) { | |
332 | register int d = *(c++); | |
333 | register unsigned char uu = 0; | |
334 | if ((d >= '0') && (d <= '9')) | |
335 | uu = ((d - '0') << 4); | |
336 | else if ((d >= 'a') && (d <= 'f')) | |
337 | uu = ((d - ('a'-10)) << 4); | |
338 | else | |
339 | return (char *) 0; | |
340 | d = *(c++); | |
341 | if ((d >= '0') && (d <= '9')) | |
342 | uu |= (d - '0'); | |
343 | else if ((d >= 'a') && (d <= 'f')) | |
344 | uu |= (d - ('a'-10)); | |
345 | else | |
346 | return (char *) 0; | |
347 | *u = uu; | |
348 | } | |
349 | return c; | |
350 | } | |
351 | ||
352 | /* | |
353 | This function will propagate the clientdata field of type to any new | |
354 | swig_type_info structures that have been added into the list of | |
355 | equivalent types. It is like calling SWIG_TypeClientData(type, | |
356 | clientdata) a second time. | |
357 | */ | |
358 | SWIGRUNTIME void | |
359 | SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) { | |
360 | swig_type_info *equiv = type->next; | |
361 | swig_type_info *tc; | |
362 | if (!type->clientdata) return; | |
363 | while (equiv) { | |
364 | if (!equiv->converter) { | |
365 | tc = tl; | |
366 | while (tc) { | |
367 | if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata) | |
368 | SWIG_TypeClientDataTL(tl,tc, type->clientdata); | |
369 | tc = tc->prev; | |
370 | } | |
371 | } | |
372 | equiv = equiv->next; | |
373 | } | |
374 | } | |
d14a1e28 | 375 | |
093d3ff1 RD |
376 | /* |
377 | Pack 'void *' into a string buffer. | |
378 | */ | |
379 | SWIGRUNTIME char * | |
380 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
381 | char *r = buff; | |
382 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
383 | *(r++) = '_'; | |
384 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
385 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
386 | strcpy(r,name); | |
387 | return buff; | |
388 | } | |
389 | ||
390 | SWIGRUNTIME const char * | |
391 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
392 | if (*c != '_') { | |
393 | if (strcmp(c,"NULL") == 0) { | |
394 | *ptr = (void *) 0; | |
395 | return name; | |
396 | } else { | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
401 | } | |
402 | ||
403 | SWIGRUNTIME char * | |
404 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
405 | char *r = buff; | |
406 | size_t lname = (name ? strlen(name) : 0); | |
407 | if ((2*sz + 2 + lname) > bsz) return 0; | |
408 | *(r++) = '_'; | |
409 | r = SWIG_PackData(r,ptr,sz); | |
410 | if (lname) { | |
411 | strncpy(r,name,lname+1); | |
412 | } else { | |
413 | *r = 0; | |
414 | } | |
415 | return buff; | |
416 | } | |
d14a1e28 | 417 | |
093d3ff1 RD |
418 | SWIGRUNTIME const char * |
419 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
420 | if (*c != '_') { | |
421 | if (strcmp(c,"NULL") == 0) { | |
422 | memset(ptr,0,sz); | |
423 | return name; | |
424 | } else { | |
425 | return 0; | |
426 | } | |
427 | } | |
428 | return SWIG_UnpackData(++c,ptr,sz); | |
429 | } | |
d14a1e28 RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
093d3ff1 RD |
436 | * common.swg |
437 | * | |
438 | * This file contains generic SWIG runtime support for pointer | |
439 | * type checking as well as a few commonly used macros to control | |
440 | * external linkage. | |
d14a1e28 | 441 | * |
093d3ff1 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d14a1e28 | 443 | * |
093d3ff1 RD |
444 | * Copyright (c) 1999-2000, The University of Chicago |
445 | * | |
446 | * This file may be freely redistributed without license or fee provided | |
447 | * this copyright message remains intact. | |
d14a1e28 RD |
448 | ************************************************************************/ |
449 | ||
093d3ff1 RD |
450 | |
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
d14a1e28 RD |
461 | #ifdef __cplusplus |
462 | extern "C" { | |
463 | #endif | |
464 | ||
d14a1e28 | 465 | |
093d3ff1 | 466 | /*************************************************************************/ |
d14a1e28 | 467 | |
d14a1e28 | 468 | |
093d3ff1 | 469 | /* The static type info list */ |
d14a1e28 | 470 | |
093d3ff1 RD |
471 | static swig_type_info *swig_type_list = 0; |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
d14a1e28 | 474 | |
093d3ff1 RD |
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 | } | |
d14a1e28 | 480 | |
093d3ff1 RD |
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 | } | |
d14a1e28 | 486 | |
093d3ff1 RD |
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 | } | |
d14a1e28 | 492 | |
093d3ff1 RD |
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 | } | |
d14a1e28 | 502 | |
d14a1e28 RD |
503 | #ifdef __cplusplus |
504 | } | |
505 | #endif | |
506 | ||
093d3ff1 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 510 | |
093d3ff1 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c32bde28 | 514 | |
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 518 | |
093d3ff1 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d14a1e28 | 522 | |
093d3ff1 RD |
523 | #ifndef SWIGINTERNSHORT |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
d14a1e28 RD |
530 | |
531 | ||
093d3ff1 RD |
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 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 551 | |
093d3ff1 RD |
552 | /* Constant Types */ |
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 | ||
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; | |
d14a1e28 | 568 | |
c32bde28 | 569 | |
093d3ff1 RD |
570 | /* ----------------------------------------------------------------------------- |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
573 | #define SWIG_OLDOBJ 1 |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 576 | |
994141e6 | 577 | #ifdef __cplusplus |
093d3ff1 RD |
578 | } |
579 | #endif | |
994141e6 | 580 | |
15afbcd0 | 581 | |
093d3ff1 RD |
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 | ************************************************************************/ | |
15afbcd0 | 591 | |
093d3ff1 RD |
592 | /* Common SWIG API */ |
593 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
594 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
595 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
596 | ||
994141e6 | 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) | |
994141e6 | 601 | |
994141e6 | 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 | |
994141e6 | 614 | |
093d3ff1 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 618 | |
994141e6 | 619 | |
093d3ff1 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
c32bde28 | 623 | |
093d3ff1 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
c32bde28 | 627 | |
093d3ff1 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
994141e6 | 631 | |
093d3ff1 RD |
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 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 637 | |
093d3ff1 RD |
638 | typedef struct { |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
c32bde28 | 643 | |
093d3ff1 | 644 | /* Declarations for objects of type PySwigObject */ |
c32bde28 | 645 | |
093d3ff1 RD |
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; | |
15afbcd0 | 653 | } else { |
093d3ff1 | 654 | return 1; |
15afbcd0 RD |
655 | } |
656 | } | |
093d3ff1 RD |
657 | |
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
c32bde28 | 660 | { |
093d3ff1 RD |
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; | |
c32bde28 | 664 | } |
15afbcd0 | 665 | |
093d3ff1 RD |
666 | SWIGRUNTIME PyObject * |
667 | PySwigObject_str(PySwigObject *v) | |
c32bde28 | 668 | { |
093d3ff1 RD |
669 | char result[SWIG_BUFFER_SIZE]; |
670 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
671 | PyString_FromString(result) : 0; | |
c32bde28 | 672 | } |
15afbcd0 | 673 | |
093d3ff1 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
15afbcd0 | 676 | { |
093d3ff1 | 677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); |
c32bde28 RD |
678 | } |
679 | ||
093d3ff1 RD |
680 | SWIGRUNTIME PyObject * |
681 | PySwigObject_oct(PySwigObject *v) | |
c32bde28 | 682 | { |
093d3ff1 RD |
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); | |
15afbcd0 RD |
690 | } |
691 | ||
093d3ff1 RD |
692 | SWIGRUNTIME PyObject * |
693 | PySwigObject_hex(PySwigObject *v) | |
69223c70 | 694 | { |
093d3ff1 RD |
695 | char buf[100]; |
696 | PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr); | |
697 | return PyString_FromString(buf); | |
69223c70 RD |
698 | } |
699 | ||
093d3ff1 RD |
700 | SWIGRUNTIME int |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
15afbcd0 | 702 | { |
093d3ff1 RD |
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; | |
15afbcd0 | 710 | } |
093d3ff1 | 711 | } |
15afbcd0 | 712 | |
093d3ff1 RD |
713 | SWIGRUNTIME void |
714 | PySwigObject_dealloc(PySwigObject *self) | |
715 | { | |
716 | PyObject_DEL(self); | |
717 | } | |
15afbcd0 | 718 | |
093d3ff1 RD |
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; | |
c32bde28 | 800 | } |
093d3ff1 RD |
801 | |
802 | return &PySwigObject_Type; | |
15afbcd0 RD |
803 | } |
804 | ||
093d3ff1 RD |
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 | } | |
15afbcd0 | 814 | |
093d3ff1 RD |
815 | SWIGRUNTIMEINLINE void * |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
15afbcd0 | 817 | { |
093d3ff1 RD |
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); | |
15afbcd0 RD |
831 | } |
832 | ||
093d3ff1 RD |
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 | } | |
c32bde28 | 857 | |
093d3ff1 RD |
858 | SWIGRUNTIME PyObject * |
859 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 860 | { |
093d3ff1 RD |
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 | } | |
c32bde28 RD |
867 | } |
868 | ||
093d3ff1 RD |
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 | } | |
c32bde28 | 879 | |
093d3ff1 RD |
880 | SWIGRUNTIME int |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 882 | { |
093d3ff1 RD |
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); | |
15afbcd0 | 891 | } |
c32bde28 RD |
892 | } |
893 | ||
093d3ff1 RD |
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; | |
c32bde28 | 906 | |
093d3ff1 RD |
907 | static PyTypeObject PySwigPacked_Type; |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
c32bde28 | 961 | { |
093d3ff1 RD |
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 | } | |
994141e6 RD |
973 | } |
974 | ||
093d3ff1 RD |
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 | } | |
b88bce5f | 983 | |
093d3ff1 RD |
984 | SWIGRUNTIMEINLINE const char * |
985 | PySwigPacked_GetDesc(PyObject *self) | |
15afbcd0 | 986 | { |
093d3ff1 | 987 | return ((PySwigPacked *)self)->desc; |
15afbcd0 RD |
988 | } |
989 | ||
093d3ff1 RD |
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 | } | |
15afbcd0 | 995 | |
093d3ff1 RD |
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) | |
15afbcd0 | 1016 | { |
093d3ff1 RD |
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 | } | |
02b455f2 RD |
1040 | if (str) |
1041 | Py_DECREF(str); | |
093d3ff1 RD |
1042 | return; |
1043 | } | |
1044 | } | |
1045 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1046 | } else { | |
1047 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
15afbcd0 | 1048 | } |
15afbcd0 RD |
1049 | } |
1050 | ||
093d3ff1 RD |
1051 | SWIGRUNTIMEINLINE void |
1052 | SWIG_Python_NullRef(const char *type) | |
15afbcd0 | 1053 | { |
093d3ff1 RD |
1054 | if (type) { |
1055 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1056 | } else { | |
1057 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1058 | } | |
994141e6 RD |
1059 | } |
1060 | ||
093d3ff1 RD |
1061 | SWIGRUNTIME int |
1062 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1063 | { | |
1064 | if (PyErr_Occurred()) { | |
1065 | PyObject *type = 0; | |
1066 | PyObject *value = 0; | |
1067 | PyObject *traceback = 0; | |
1068 | PyErr_Fetch(&type, &value, &traceback); | |
1069 | if (value) { | |
1070 | PyObject *old_str = PyObject_Str(value); | |
1071 | Py_XINCREF(type); | |
1072 | PyErr_Clear(); | |
1073 | if (infront) { | |
1074 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1075 | } else { | |
1076 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1077 | } | |
1078 | Py_DECREF(old_str); | |
1079 | } | |
1080 | return 1; | |
1081 | } else { | |
1082 | return 0; | |
1083 | } | |
1084 | } | |
994141e6 | 1085 | |
093d3ff1 RD |
1086 | SWIGRUNTIME int |
1087 | SWIG_Python_ArgFail(int argnum) | |
1088 | { | |
1089 | if (PyErr_Occurred()) { | |
1090 | /* add information about failing argument */ | |
1091 | char mesg[256]; | |
1092 | sprintf(mesg, "argument number %d:", argnum); | |
1093 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1094 | } else { | |
1095 | return 0; | |
1096 | } | |
1097 | } | |
d14a1e28 | 1098 | |
093d3ff1 RD |
1099 | |
1100 | /* ----------------------------------------------------------------------------- | |
1101 | * pointers/data manipulation | |
1102 | * ----------------------------------------------------------------------------- */ | |
1103 | ||
1104 | /* Convert a pointer value */ | |
1105 | SWIGRUNTIME int | |
1106 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1107 | swig_type_info *tc; | |
1108 | const char *c = 0; | |
1109 | static PyObject *SWIG_this = 0; | |
1110 | int newref = 0; | |
1111 | PyObject *pyobj = 0; | |
1112 | void *vptr; | |
1113 | ||
1114 | if (!obj) return 0; | |
1115 | if (obj == Py_None) { | |
1116 | *ptr = 0; | |
1117 | return 0; | |
7e63a440 | 1118 | } |
d14a1e28 | 1119 | |
093d3ff1 RD |
1120 | #ifdef SWIG_COBJECT_TYPES |
1121 | if (!(PySwigObject_Check(obj))) { | |
1122 | if (!SWIG_this) | |
1123 | SWIG_this = PyString_FromString("this"); | |
1124 | pyobj = obj; | |
1125 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1126 | newref = 1; | |
1127 | if (!obj) goto type_error; | |
1128 | if (!PySwigObject_Check(obj)) { | |
1129 | Py_DECREF(obj); | |
1130 | goto type_error; | |
1131 | } | |
1132 | } | |
1133 | vptr = PySwigObject_AsVoidPtr(obj); | |
1134 | c = (const char *) PySwigObject_GetDesc(obj); | |
1135 | if (newref) { Py_DECREF(obj); } | |
1136 | goto type_check; | |
1137 | #else | |
1138 | if (!(PyString_Check(obj))) { | |
1139 | if (!SWIG_this) | |
1140 | SWIG_this = PyString_FromString("this"); | |
1141 | pyobj = obj; | |
1142 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1143 | newref = 1; | |
1144 | if (!obj) goto type_error; | |
1145 | if (!PyString_Check(obj)) { | |
1146 | Py_DECREF(obj); | |
1147 | goto type_error; | |
1148 | } | |
1149 | } | |
1150 | c = PyString_AS_STRING(obj); | |
1151 | /* Pointer values must start with leading underscore */ | |
1152 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1153 | if (newref) { Py_DECREF(obj); } | |
1154 | if (!c) goto type_error; | |
1155 | #endif | |
c32bde28 | 1156 | |
093d3ff1 | 1157 | type_check: |
66c033b4 | 1158 | |
093d3ff1 RD |
1159 | if (ty) { |
1160 | tc = SWIG_TypeCheck(c,ty); | |
1161 | if (!tc) goto type_error; | |
1162 | *ptr = SWIG_TypeCast(tc,vptr); | |
1163 | } else { | |
1164 | *ptr = vptr; | |
1165 | } | |
d14a1e28 | 1166 | |
093d3ff1 RD |
1167 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1168 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1169 | } | |
1170 | return 0; | |
d14a1e28 | 1171 | |
093d3ff1 RD |
1172 | type_error: |
1173 | PyErr_Clear(); | |
1174 | if (pyobj && !obj) { | |
1175 | obj = pyobj; | |
1176 | if (PyCFunction_Check(obj)) { | |
1177 | /* here we get the method pointer for callbacks */ | |
1178 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1179 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1180 | if (c) { | |
1181 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1182 | if (!c) goto type_error; | |
1183 | goto type_check; | |
1184 | } | |
1185 | } | |
1186 | } | |
1187 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1188 | if (ty) { | |
1189 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1190 | } else { | |
1191 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1192 | } | |
1193 | } | |
1194 | return -1; | |
1195 | } | |
d14a1e28 | 1196 | |
093d3ff1 RD |
1197 | /* Convert a pointer value, signal an exception on a type mismatch */ |
1198 | SWIGRUNTIME void * | |
1199 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1200 | void *result; | |
1201 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1202 | PyErr_Clear(); | |
1203 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1204 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1205 | SWIG_Python_ArgFail(argnum); | |
d14a1e28 | 1206 | } |
093d3ff1 RD |
1207 | } |
1208 | return result; | |
1209 | } | |
d14a1e28 | 1210 | |
093d3ff1 RD |
1211 | /* Convert a packed value value */ |
1212 | SWIGRUNTIME int | |
1213 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1214 | swig_type_info *tc; | |
1215 | const char *c = 0; | |
d14a1e28 | 1216 | |
093d3ff1 RD |
1217 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) |
1218 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1219 | #else | |
1220 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1221 | c = PyString_AS_STRING(obj); | |
1222 | /* Pointer values must start with leading underscore */ | |
1223 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1224 | #endif | |
1225 | if (!c) goto type_error; | |
1226 | if (ty) { | |
1227 | tc = SWIG_TypeCheck(c,ty); | |
1228 | if (!tc) goto type_error; | |
1229 | } | |
1230 | return 0; | |
d14a1e28 | 1231 | |
093d3ff1 RD |
1232 | type_error: |
1233 | PyErr_Clear(); | |
1234 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1235 | if (ty) { | |
1236 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1237 | } else { | |
1238 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1239 | } | |
15afbcd0 | 1240 | } |
093d3ff1 RD |
1241 | return -1; |
1242 | } | |
1243 | ||
1244 | /* Create a new array object */ | |
1245 | SWIGRUNTIME PyObject * | |
1246 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1247 | PyObject *robj = 0; | |
1248 | if (!ptr) { | |
1249 | Py_INCREF(Py_None); | |
1250 | return Py_None; | |
1251 | } | |
1252 | #ifdef SWIG_COBJECT_TYPES | |
1253 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1254 | #else | |
1255 | { | |
1256 | char result[SWIG_BUFFER_SIZE]; | |
1257 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1258 | PyString_FromString(result) : 0; | |
1259 | } | |
1260 | #endif | |
1261 | if (!robj || (robj == Py_None)) return robj; | |
1262 | if (type->clientdata) { | |
1263 | PyObject *inst; | |
1264 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1265 | Py_DECREF(robj); | |
1266 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1267 | Py_DECREF(args); | |
1268 | if (inst) { | |
1269 | if (own) { | |
1270 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1271 | } | |
1272 | robj = inst; | |
1273 | } | |
1274 | } | |
1275 | return robj; | |
c32bde28 RD |
1276 | } |
1277 | ||
093d3ff1 RD |
1278 | SWIGRUNTIME PyObject * |
1279 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1280 | PyObject *robj = 0; | |
1281 | if (!ptr) { | |
1282 | Py_INCREF(Py_None); | |
1283 | return Py_None; | |
1284 | } | |
1285 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1286 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1287 | #else | |
1288 | { | |
1289 | char result[SWIG_BUFFER_SIZE]; | |
1290 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1291 | PyString_FromString(result) : 0; | |
1292 | } | |
1293 | #endif | |
1294 | return robj; | |
994141e6 RD |
1295 | } |
1296 | ||
093d3ff1 RD |
1297 | /* -----------------------------------------------------------------------------* |
1298 | * Get type list | |
1299 | * -----------------------------------------------------------------------------*/ | |
1300 | ||
1301 | #ifdef SWIG_LINK_RUNTIME | |
1302 | void *SWIG_ReturnGlobalTypeList(void *); | |
1303 | #endif | |
1304 | ||
1305 | SWIGRUNTIME swig_type_info ** | |
1306 | SWIG_Python_GetTypeListHandle() { | |
1307 | static void *type_pointer = (void *)0; | |
1308 | /* first check if module already created */ | |
1309 | if (!type_pointer) { | |
1310 | #ifdef SWIG_LINK_RUNTIME | |
1311 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
15afbcd0 | 1312 | #else |
093d3ff1 RD |
1313 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
1314 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1315 | if (PyErr_Occurred()) { | |
1316 | PyErr_Clear(); | |
1317 | type_pointer = (void *)0; | |
1318 | } | |
1319 | } | |
15afbcd0 | 1320 | #endif |
093d3ff1 RD |
1321 | return (swig_type_info **) type_pointer; |
1322 | } | |
d14a1e28 | 1323 | |
093d3ff1 RD |
1324 | /* |
1325 | Search for a swig_type_info structure | |
1326 | */ | |
1327 | SWIGRUNTIMEINLINE swig_type_info * | |
1328 | SWIG_Python_GetTypeList() { | |
1329 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1330 | return tlh ? *tlh : (swig_type_info*)0; | |
1331 | } | |
d14a1e28 | 1332 | |
093d3ff1 | 1333 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList |
d14a1e28 | 1334 | |
093d3ff1 RD |
1335 | #ifdef __cplusplus |
1336 | } | |
1337 | #endif | |
d14a1e28 | 1338 | |
d14a1e28 | 1339 | |
093d3ff1 | 1340 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d14a1e28 | 1341 | |
093d3ff1 RD |
1342 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] |
1343 | #define SWIGTYPE_p_wxBrush swig_types[1] | |
1344 | #define SWIGTYPE_p_wxColour swig_types[2] | |
1345 | #define SWIGTYPE_p_wxDC swig_types[3] | |
1346 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
1347 | #define SWIGTYPE_p_form_ops_t swig_types[5] | |
8d38bd1d RD |
1348 | #define SWIGTYPE_p_wxRendererVersion swig_types[6] |
1349 | #define SWIGTYPE_p_wxDuplexMode swig_types[7] | |
1350 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[8] | |
1351 | #define SWIGTYPE_p_char swig_types[9] | |
1352 | #define SWIGTYPE_p_wxIconLocation swig_types[10] | |
1353 | #define SWIGTYPE_p_wxImage swig_types[11] | |
1354 | #define SWIGTYPE_p_wxMetaFileDC swig_types[12] | |
1355 | #define SWIGTYPE_p_wxMask swig_types[13] | |
1356 | #define SWIGTYPE_p_wxSize swig_types[14] | |
1357 | #define SWIGTYPE_p_wxFont swig_types[15] | |
1358 | #define SWIGTYPE_p_wxWindow swig_types[16] | |
1359 | #define SWIGTYPE_p_double swig_types[17] | |
1360 | #define SWIGTYPE_p_wxMemoryDC swig_types[18] | |
1361 | #define SWIGTYPE_p_wxFontMapper swig_types[19] | |
1362 | #define SWIGTYPE_p_wxEffects swig_types[20] | |
1363 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[21] | |
1364 | #define SWIGTYPE_p_wxPalette swig_types[22] | |
1365 | #define SWIGTYPE_p_wxBitmap swig_types[23] | |
1366 | #define SWIGTYPE_p_wxObject swig_types[24] | |
1367 | #define SWIGTYPE_p_wxRegionIterator swig_types[25] | |
1368 | #define SWIGTYPE_p_wxRect swig_types[26] | |
1369 | #define SWIGTYPE_p_wxPaperSize swig_types[27] | |
1370 | #define SWIGTYPE_p_wxString swig_types[28] | |
1371 | #define SWIGTYPE_unsigned_int swig_types[29] | |
1372 | #define SWIGTYPE_p_unsigned_int swig_types[30] | |
1373 | #define SWIGTYPE_p_wxPrinterDC swig_types[31] | |
1374 | #define SWIGTYPE_p_wxIconBundle swig_types[32] | |
1375 | #define SWIGTYPE_p_wxPoint swig_types[33] | |
1376 | #define SWIGTYPE_p_wxDash swig_types[34] | |
1377 | #define SWIGTYPE_p_wxScreenDC swig_types[35] | |
1378 | #define SWIGTYPE_p_wxCursor swig_types[36] | |
1379 | #define SWIGTYPE_p_wxClientDC swig_types[37] | |
1380 | #define SWIGTYPE_p_wxBufferedDC swig_types[38] | |
1381 | #define SWIGTYPE_p_wxImageList swig_types[39] | |
1382 | #define SWIGTYPE_p_unsigned_char swig_types[40] | |
1383 | #define SWIGTYPE_p_wxGDIObject swig_types[41] | |
1384 | #define SWIGTYPE_p_wxIcon swig_types[42] | |
1385 | #define SWIGTYPE_p_wxLocale swig_types[43] | |
1386 | #define SWIGTYPE_ptrdiff_t swig_types[44] | |
1387 | #define SWIGTYPE_std__ptrdiff_t swig_types[45] | |
1388 | #define SWIGTYPE_p_wxRegion swig_types[46] | |
1389 | #define SWIGTYPE_p_wxConfigBase swig_types[47] | |
1390 | #define SWIGTYPE_p_wxLanguageInfo swig_types[48] | |
1391 | #define SWIGTYPE_p_wxWindowDC swig_types[49] | |
1392 | #define SWIGTYPE_p_wxPrintData swig_types[50] | |
1393 | #define SWIGTYPE_p_wxBrushList swig_types[51] | |
1394 | #define SWIGTYPE_p_wxFontList swig_types[52] | |
1395 | #define SWIGTYPE_p_wxPen swig_types[53] | |
1396 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[54] | |
1397 | #define SWIGTYPE_p_wxPaintDC swig_types[55] | |
1398 | #define SWIGTYPE_p_wxPenList swig_types[56] | |
1399 | #define SWIGTYPE_p_int swig_types[57] | |
1400 | #define SWIGTYPE_p_wxMetaFile swig_types[58] | |
1401 | #define SWIGTYPE_p_wxRendererNative swig_types[59] | |
1402 | #define SWIGTYPE_p_unsigned_long swig_types[60] | |
1403 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[61] | |
1404 | #define SWIGTYPE_p_wxEncodingConverter swig_types[62] | |
1405 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[63] | |
1406 | #define SWIGTYPE_p_wxColourDatabase swig_types[64] | |
1407 | static swig_type_info *swig_types[66]; | |
d14a1e28 | 1408 | |
093d3ff1 | 1409 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 1410 | |
d14a1e28 | 1411 | |
093d3ff1 RD |
1412 | /*----------------------------------------------- |
1413 | @(target):= _gdi_.so | |
1414 | ------------------------------------------------*/ | |
1415 | #define SWIG_init init_gdi_ | |
d14a1e28 | 1416 | |
093d3ff1 | 1417 | #define SWIG_name "_gdi_" |
d14a1e28 | 1418 | |
093d3ff1 RD |
1419 | #include "wx/wxPython/wxPython.h" |
1420 | #include "wx/wxPython/pyclasses.h" | |
1421 | ||
d14a1e28 | 1422 | |
093d3ff1 | 1423 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 1424 | |
093d3ff1 | 1425 | #include <limits.h> |
d14a1e28 RD |
1426 | |
1427 | ||
093d3ff1 RD |
1428 | SWIGINTERN int |
1429 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1430 | const char *errmsg) | |
1431 | { | |
1432 | if (value < min_value) { | |
1433 | if (errmsg) { | |
1434 | PyErr_Format(PyExc_OverflowError, | |
1435 | "value %ld is less than '%s' minimum %ld", | |
1436 | value, errmsg, min_value); | |
1437 | } | |
1438 | return 0; | |
1439 | } else if (value > max_value) { | |
1440 | if (errmsg) { | |
1441 | PyErr_Format(PyExc_OverflowError, | |
1442 | "value %ld is greater than '%s' maximum %ld", | |
1443 | value, errmsg, max_value); | |
1444 | } | |
1445 | return 0; | |
1446 | } | |
1447 | return 1; | |
1448 | } | |
d14a1e28 | 1449 | |
994141e6 | 1450 | |
093d3ff1 RD |
1451 | SWIGINTERN int |
1452 | SWIG_AsVal_long(PyObject* obj, long* val) | |
994141e6 | 1453 | { |
c32bde28 | 1454 | if (PyNumber_Check(obj)) { |
093d3ff1 | 1455 | if (val) *val = PyInt_AsLong(obj); |
c32bde28 RD |
1456 | return 1; |
1457 | } | |
69223c70 | 1458 | else { |
093d3ff1 | 1459 | SWIG_type_error("number", obj); |
69223c70 | 1460 | } |
c32bde28 | 1461 | return 0; |
15afbcd0 RD |
1462 | } |
1463 | ||
1464 | ||
093d3ff1 RD |
1465 | #if INT_MAX != LONG_MAX |
1466 | SWIGINTERN int | |
1467 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1468 | { | |
1469 | const char* errmsg = val ? "int" : (char*)0; | |
1470 | long v; | |
1471 | if (SWIG_AsVal_long(obj, &v)) { | |
1472 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1473 | if (val) *val = (int)(v); | |
1474 | return 1; | |
1475 | } else { | |
1476 | return 0; | |
1477 | } | |
1478 | } else { | |
1479 | PyErr_Clear(); | |
15afbcd0 | 1480 | } |
093d3ff1 RD |
1481 | if (val) { |
1482 | SWIG_type_error(errmsg, obj); | |
1483 | } | |
1484 | return 0; | |
c32bde28 | 1485 | } |
093d3ff1 RD |
1486 | #else |
1487 | SWIGINTERNSHORT int | |
1488 | SWIG_AsVal_int(PyObject *obj, int *val) | |
c32bde28 | 1489 | { |
093d3ff1 | 1490 | return SWIG_AsVal_long(obj,(long*)val); |
994141e6 | 1491 | } |
093d3ff1 | 1492 | #endif |
994141e6 | 1493 | |
c32bde28 | 1494 | |
093d3ff1 RD |
1495 | SWIGINTERN int |
1496 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1497 | { | |
1498 | if (obj == Py_True) { | |
1499 | if (val) *val = true; | |
1500 | return 1; | |
1501 | } | |
1502 | if (obj == Py_False) { | |
1503 | if (val) *val = false; | |
1504 | return 1; | |
1505 | } | |
1506 | int res = 0; | |
1507 | if (SWIG_AsVal_int(obj, &res)) { | |
1508 | if (val) *val = res ? true : false; | |
1509 | return 1; | |
1510 | } else { | |
1511 | PyErr_Clear(); | |
1512 | } | |
1513 | if (val) { | |
1514 | SWIG_type_error("bool", obj); | |
1515 | } | |
1516 | return 0; | |
1517 | } | |
c32bde28 | 1518 | |
d14a1e28 | 1519 | |
093d3ff1 RD |
1520 | SWIGINTERNSHORT bool |
1521 | SWIG_As_bool(PyObject* obj) | |
1522 | { | |
1523 | bool v; | |
1524 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1525 | /* | |
1526 | this is needed to make valgrind/purify happier. | |
1527 | */ | |
1528 | memset((void*)&v, 0, sizeof(bool)); | |
1529 | } | |
1530 | return v; | |
d14a1e28 RD |
1531 | } |
1532 | ||
093d3ff1 RD |
1533 | |
1534 | SWIGINTERNSHORT int | |
1535 | SWIG_Check_bool(PyObject* obj) | |
1536 | { | |
1537 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1538 | } | |
b88bce5f | 1539 | |
b88bce5f | 1540 | |
093d3ff1 RD |
1541 | SWIGINTERN int |
1542 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1543 | { | |
1544 | long v = 0; | |
1545 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1546 | SWIG_type_error("unsigned number", obj); | |
1547 | } | |
1548 | else if (val) | |
1549 | *val = (unsigned long)v; | |
1550 | return 1; | |
1551 | } | |
d14a1e28 RD |
1552 | |
1553 | ||
093d3ff1 RD |
1554 | SWIGINTERNSHORT int |
1555 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1556 | unsigned long max_value, | |
1557 | const char *errmsg) | |
1558 | { | |
1559 | if (value > max_value) { | |
1560 | if (errmsg) { | |
1561 | PyErr_Format(PyExc_OverflowError, | |
1562 | "value %lu is greater than '%s' minimum %lu", | |
1563 | value, errmsg, max_value); | |
1564 | } | |
1565 | return 0; | |
1566 | } | |
1567 | return 1; | |
1568 | } | |
d14a1e28 | 1569 | |
d14a1e28 | 1570 | |
093d3ff1 RD |
1571 | SWIGINTERN int |
1572 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
1573 | { | |
1574 | const char* errmsg = val ? "unsigned char" : (char*)0; | |
1575 | unsigned long v; | |
1576 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1577 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
1578 | if (val) *val = (unsigned char)(v); | |
1579 | return 1; | |
1580 | } else { | |
1581 | return 0; | |
1582 | } | |
1583 | } else { | |
1584 | PyErr_Clear(); | |
1585 | } | |
1586 | if (val) { | |
1587 | SWIG_type_error(errmsg, obj); | |
1588 | } | |
1589 | return 0; | |
1590 | } | |
d14a1e28 RD |
1591 | |
1592 | ||
093d3ff1 RD |
1593 | SWIGINTERNSHORT unsigned char |
1594 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
1595 | { | |
1596 | unsigned char v; | |
1597 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
1598 | /* | |
1599 | this is needed to make valgrind/purify happier. | |
1600 | */ | |
1601 | memset((void*)&v, 0, sizeof(unsigned char)); | |
1602 | } | |
1603 | return v; | |
1604 | } | |
33b885b9 | 1605 | |
093d3ff1 RD |
1606 | |
1607 | SWIGINTERNSHORT int | |
1608 | SWIG_Check_unsigned_SS_char(PyObject* obj) | |
1609 | { | |
1610 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
1611 | } | |
d14a1e28 RD |
1612 | |
1613 | ||
093d3ff1 RD |
1614 | SWIGINTERNSHORT unsigned long |
1615 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
1616 | { | |
1617 | unsigned long v; | |
1618 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1619 | /* | |
1620 | this is needed to make valgrind/purify happier. | |
1621 | */ | |
1622 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1623 | } | |
1624 | return v; | |
1625 | } | |
d14a1e28 | 1626 | |
093d3ff1 RD |
1627 | |
1628 | SWIGINTERNSHORT int | |
1629 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1630 | { | |
1631 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1632 | } | |
d14a1e28 | 1633 | |
d14a1e28 | 1634 | |
093d3ff1 RD |
1635 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1636 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
1637 | /*@@*/ | |
d14a1e28 RD |
1638 | |
1639 | ||
093d3ff1 RD |
1640 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1641 | #define SWIG_From_long PyInt_FromLong | |
1642 | /*@@*/ | |
d14a1e28 | 1643 | |
093d3ff1 RD |
1644 | static PyObject *wxColour_Get(wxColour *self){ |
1645 | PyObject* rv = PyTuple_New(3); | |
1646 | int red = -1; | |
1647 | int green = -1; | |
1648 | int blue = -1; | |
1649 | if (self->Ok()) { | |
1650 | red = self->Red(); | |
1651 | green = self->Green(); | |
1652 | blue = self->Blue(); | |
1653 | } | |
1654 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
1655 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
1656 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
1657 | return rv; | |
1658 | } | |
1659 | static unsigned long wxColour_GetRGB(wxColour *self){ | |
1660 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
1661 | } | |
d14a1e28 | 1662 | |
093d3ff1 RD |
1663 | SWIGINTERNSHORT PyObject* |
1664 | SWIG_From_unsigned_SS_long(unsigned long value) | |
1665 | { | |
1666 | return (value > LONG_MAX) ? | |
1667 | PyLong_FromUnsignedLong(value) | |
1668 | : PyInt_FromLong((long)(value)); | |
d14a1e28 RD |
1669 | } |
1670 | ||
1671 | ||
093d3ff1 RD |
1672 | SWIGINTERNSHORT int |
1673 | SWIG_As_int(PyObject* obj) | |
1674 | { | |
1675 | int v; | |
1676 | if (!SWIG_AsVal_int(obj, &v)) { | |
1677 | /* | |
1678 | this is needed to make valgrind/purify happier. | |
1679 | */ | |
1680 | memset((void*)&v, 0, sizeof(int)); | |
1681 | } | |
1682 | return v; | |
d14a1e28 RD |
1683 | } |
1684 | ||
093d3ff1 RD |
1685 | |
1686 | SWIGINTERNSHORT int | |
1687 | SWIG_Check_int(PyObject* obj) | |
1688 | { | |
1689 | return SWIG_AsVal_int(obj, (int*)0); | |
d14a1e28 RD |
1690 | } |
1691 | ||
1692 | ||
093d3ff1 RD |
1693 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1694 | #define SWIG_From_int PyInt_FromLong | |
1695 | /*@@*/ | |
d14a1e28 RD |
1696 | |
1697 | ||
093d3ff1 RD |
1698 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1699 | PyObject* o2; | |
1700 | PyObject* o3; | |
d14a1e28 | 1701 | |
093d3ff1 RD |
1702 | if (!target) { |
1703 | target = o; | |
1704 | } else if (target == Py_None) { | |
1705 | Py_DECREF(Py_None); | |
1706 | target = o; | |
1707 | } else { | |
1708 | if (!PyTuple_Check(target)) { | |
1709 | o2 = target; | |
1710 | target = PyTuple_New(1); | |
1711 | PyTuple_SetItem(target, 0, o2); | |
1712 | } | |
1713 | o3 = PyTuple_New(1); | |
1714 | PyTuple_SetItem(o3, 0, o); | |
1715 | ||
1716 | o2 = target; | |
1717 | target = PySequence_Concat(o2, o3); | |
1718 | Py_DECREF(o2); | |
1719 | Py_DECREF(o3); | |
d14a1e28 | 1720 | } |
093d3ff1 RD |
1721 | return target; |
1722 | } | |
d14a1e28 RD |
1723 | |
1724 | ||
093d3ff1 RD |
1725 | static PyObject *wxPen_GetDashes(wxPen *self){ |
1726 | wxDash* dashes; | |
1727 | int count = self->GetDashes(&dashes); | |
5a446332 | 1728 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
1729 | PyObject* retval = PyList_New(0); |
1730 | for (int x=0; x<count; x++) { | |
1731 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
1732 | PyList_Append(retval, pyint); | |
1733 | Py_DECREF(pyint); | |
1734 | } | |
1735 | wxPyEndBlockThreads(blocked); | |
1736 | return retval; | |
1737 | } | |
1738 | static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ | |
5a446332 | 1739 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
1740 | int size = PyList_Size(pyDashes); |
1741 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 1742 | |
093d3ff1 RD |
1743 | // black magic warning! The array of wxDashes needs to exist as |
1744 | // long as the pen does because wxPen does not copy the array. So | |
1745 | // stick a copy in a Python string object and attach it to _self, | |
1746 | // and then call SetDashes with a pointer to that array. Then | |
1747 | // when the Python pen object is destroyed the array will be | |
1748 | // cleaned up too. | |
1749 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
1750 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
1751 | ||
1752 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
1753 | delete [] dashes; | |
1754 | Py_DECREF(strDashes); | |
1755 | wxPyEndBlockThreads(blocked); | |
1756 | } | |
1757 | static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } | |
1758 | static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 1759 | |
093d3ff1 | 1760 | #include <wx/image.h> |
b88bce5f | 1761 | |
093d3ff1 RD |
1762 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
1763 | char** cArray = NULL; | |
1764 | int count; | |
1765 | ||
1766 | if (!PyList_Check(listOfStrings)) { | |
1767 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
1768 | return NULL; | |
1769 | } | |
1770 | count = PyList_Size(listOfStrings); | |
1771 | cArray = new char*[count]; | |
1772 | ||
1773 | for(int x=0; x<count; x++) { | |
1774 | // TODO: Need some validation and error checking here | |
1775 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
1776 | } | |
1777 | return cArray; | |
b88bce5f | 1778 | } |
b88bce5f RD |
1779 | |
1780 | ||
093d3ff1 RD |
1781 | static wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
1782 | char** cArray = NULL; | |
1783 | wxBitmap* bmp; | |
d14a1e28 | 1784 | |
093d3ff1 RD |
1785 | cArray = ConvertListOfStrings(listOfStrings); |
1786 | if (! cArray) | |
1787 | return NULL; | |
1788 | bmp = new wxBitmap(cArray); | |
1789 | delete [] cArray; | |
1790 | return bmp; | |
1791 | } | |
1792 | static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ | |
1793 | char* buf; | |
1794 | int length; | |
1795 | PyString_AsStringAndSize(bits, &buf, &length); | |
1796 | return new wxBitmap(buf, width, height, depth); | |
1797 | } | |
1798 | static wxSize wxBitmap_GetSize(wxBitmap *self){ | |
1799 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1800 | return size; | |
1801 | } | |
1802 | static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
1803 | wxMask *mask = new wxMask(*self, colour); | |
1804 | self->SetMask(mask); | |
1805 | } | |
1806 | static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
1807 | self->SetWidth(size.x); | |
1808 | self->SetHeight(size.y); | |
1809 | } | |
1810 | static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } | |
1811 | static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
1812 | static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
1813 | if ( !colour.Ok() ) | |
1814 | return new wxMask(bitmap, *wxBLACK); | |
1815 | else | |
1816 | return new wxMask(bitmap, colour); | |
1817 | } | |
d14a1e28 | 1818 | |
093d3ff1 | 1819 | #include <wx/iconbndl.h> |
d14a1e28 | 1820 | |
093d3ff1 RD |
1821 | static wxIcon *new_wxIcon(wxBitmap const &bmp){ |
1822 | wxIcon* icon = new wxIcon(); | |
1823 | icon->CopyFromBitmap(bmp); | |
1824 | return icon; | |
1825 | } | |
1826 | static wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
1827 | char** cArray = NULL; | |
1828 | wxIcon* icon; | |
d14a1e28 | 1829 | |
093d3ff1 RD |
1830 | cArray = ConvertListOfStrings(listOfStrings); |
1831 | if (! cArray) | |
1832 | return NULL; | |
1833 | icon = new wxIcon(cArray); | |
1834 | delete [] cArray; | |
1835 | return icon; | |
1836 | } | |
1837 | static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d14a1e28 RD |
1838 | |
1839 | ||
d14a1e28 | 1840 | |
093d3ff1 | 1841 | return new wxIconLocation(*filename); |
d14a1e28 | 1842 | |
093d3ff1 RD |
1843 | } |
1844 | static void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
d14a1e28 RD |
1845 | |
1846 | ||
d14a1e28 | 1847 | |
093d3ff1 | 1848 | // do nothing |
d14a1e28 | 1849 | |
093d3ff1 RD |
1850 | } |
1851 | static int wxIconLocation_GetIndex(wxIconLocation *self){ | |
b88bce5f RD |
1852 | |
1853 | ||
093d3ff1 RD |
1854 | |
1855 | return -1; | |
1856 | ||
1857 | } | |
1858 | ||
1859 | SWIGINTERNSHORT long | |
1860 | SWIG_As_long(PyObject* obj) | |
1861 | { | |
1862 | long v; | |
1863 | if (!SWIG_AsVal_long(obj, &v)) { | |
1864 | /* | |
1865 | this is needed to make valgrind/purify happier. | |
1866 | */ | |
1867 | memset((void*)&v, 0, sizeof(long)); | |
1868 | } | |
1869 | return v; | |
b88bce5f RD |
1870 | } |
1871 | ||
093d3ff1 RD |
1872 | |
1873 | SWIGINTERNSHORT int | |
1874 | SWIG_Check_long(PyObject* obj) | |
1875 | { | |
1876 | return SWIG_AsVal_long(obj, (long*)0); | |
1877 | } | |
b88bce5f | 1878 | |
7557b9b5 | 1879 | static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 1880 | #ifdef __WXGTK__ |
7557b9b5 RD |
1881 | wxImage img(cursorName, type); |
1882 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
1883 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
1884 | return new wxCursor(img); | |
093d3ff1 | 1885 | #else |
7557b9b5 | 1886 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
1887 | #endif |
1888 | } | |
1889 | ||
1890 | ||
1891 | static void wxRegionIterator_Next(wxRegionIterator *self){ | |
1892 | (*self) ++; | |
1893 | } | |
1894 | static bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
1895 | return self->operator bool(); | |
1896 | } | |
1897 | ||
1898 | #include <wx/fontutil.h> | |
1899 | #include <wx/fontmap.h> | |
1900 | #include <wx/fontenum.h> | |
1901 | ||
1902 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
1903 | return self->ToString(); | |
1904 | } | |
1905 | ||
1906 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
1907 | static wxNativeEncodingInfo info; | |
1908 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
1909 | return &info; | |
1910 | else | |
1911 | return NULL; | |
1912 | } | |
1913 | ||
1914 | static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
1915 | wxFontEncoding alt_enc; | |
1916 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
1917 | return PyInt_FromLong(alt_enc); | |
1918 | else { | |
1919 | Py_INCREF(Py_None); | |
1920 | return Py_None; | |
1921 | } | |
1922 | } | |
1923 | static wxFont *new_wxFont(wxString const &info){ | |
a97cefba RD |
1924 | wxNativeFontInfo nfi; |
1925 | nfi.FromString(info); | |
1926 | return new wxFont(nfi); | |
1927 | } | |
093d3ff1 | 1928 | static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
1929 | return wxFont::New(pointSize, family, flags, face, encoding); |
1930 | } | |
093d3ff1 | 1931 | static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
1932 | return wxFontBase::New(pixelSize, family, |
1933 | style, weight, underlined, | |
1934 | face, encoding); | |
1935 | } | |
73c8ef6a | 1936 | static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
1937 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
1938 | } | |
093d3ff1 RD |
1939 | static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
1940 | static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
1941 | ||
1942 | class wxPyFontEnumerator : public wxFontEnumerator { | |
1943 | public: | |
1944 | wxPyFontEnumerator() {} | |
1945 | ~wxPyFontEnumerator() {} | |
1946 | ||
1947 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
1948 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
1949 | ||
1950 | PYPRIVATE; | |
1951 | }; | |
1952 | ||
1953 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
1954 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
1955 | ||
1956 | ||
1957 | static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
1958 | wxArrayString* arr = self->GetEncodings(); | |
1959 | if (arr) | |
1960 | return wxArrayString2PyList_helper(*arr); | |
1961 | else | |
1962 | return PyList_New(0); | |
1963 | } | |
1964 | static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
1965 | wxArrayString* arr = self->GetFacenames(); | |
1966 | if (arr) | |
1967 | return wxArrayString2PyList_helper(*arr); | |
1968 | else | |
1969 | return PyList_New(0); | |
1970 | } | |
1971 | ||
1972 | #include <locale.h> | |
1973 | ||
1974 | static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
1975 | wxLocale* loc; | |
1976 | if (language == -1) | |
1977 | loc = new wxLocale(); | |
1978 | else | |
1979 | loc = new wxLocale(language, flags); | |
1980 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
1981 | // for the floating point conversions and such to work right. | |
1982 | #if PY_VERSION_HEX < 0x02040000 | |
1983 | setlocale(LC_NUMERIC, "C"); | |
1984 | #endif | |
1985 | return loc; | |
1986 | } | |
1987 | static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ | |
1988 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
1989 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
1990 | // for the floating point conversions and such to work right. | |
1991 | #if PY_VERSION_HEX < 0x02040000 | |
1992 | setlocale(LC_NUMERIC, "C"); | |
1993 | #endif | |
1994 | return rc; | |
1995 | } | |
1996 | static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
1997 | bool rc = self->Init(language, flags); | |
1998 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
1999 | // for the floating point conversions and such to work right. | |
2000 | #if PY_VERSION_HEX < 0x02040000 | |
2001 | setlocale(LC_NUMERIC, "C"); | |
2002 | #endif | |
2003 | return rc; | |
2004 | } | |
2005 | ||
2006 | #include "wx/wxPython/pydrawxxx.h" | |
2007 | ||
2008 | static wxColour wxDC_GetPixel(wxDC *self,int x,int y){ | |
2009 | wxColour col; | |
2010 | self->GetPixel(x, y, &col); | |
2011 | return col; | |
2012 | } | |
2013 | static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ | |
2014 | wxColour col; | |
2015 | self->GetPixel(pt, &col); | |
2016 | return col; | |
2017 | } | |
2018 | ||
2019 | SWIGINTERN int | |
2020 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2021 | { | |
2022 | if (PyNumber_Check(obj)) { | |
2023 | if (val) *val = PyFloat_AsDouble(obj); | |
2024 | return 1; | |
d14a1e28 | 2025 | } |
093d3ff1 RD |
2026 | else { |
2027 | SWIG_type_error("number", obj); | |
2028 | } | |
2029 | return 0; | |
2030 | } | |
2031 | ||
2032 | ||
2033 | SWIGINTERNSHORT double | |
2034 | SWIG_As_double(PyObject* obj) | |
2035 | { | |
2036 | double v; | |
2037 | if (!SWIG_AsVal_double(obj, &v)) { | |
2038 | /* | |
2039 | this is needed to make valgrind/purify happier. | |
2040 | */ | |
2041 | memset((void*)&v, 0, sizeof(double)); | |
2042 | } | |
2043 | return v; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | SWIGINTERNSHORT int | |
2048 | SWIG_Check_double(PyObject* obj) | |
2049 | { | |
2050 | return SWIG_AsVal_double(obj, (double*)0); | |
2051 | } | |
2052 | ||
2053 | static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ | |
2054 | wxRect rv; | |
2055 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
2056 | return rv; | |
2057 | } | |
2058 | ||
2059 | static wxRect wxDC_GetClippingRect(wxDC *self){ | |
2060 | wxRect rect; | |
2061 | self->GetClippingBox(rect); | |
2062 | return rect; | |
2063 | } | |
2064 | static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
2065 | wxArrayInt widths; | |
2066 | self->GetPartialTextExtents(text, widths); | |
2067 | return widths; | |
2068 | } | |
2069 | ||
2070 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
2071 | #define SWIG_From_double PyFloat_FromDouble | |
2072 | /*@@*/ | |
2073 | ||
2074 | ||
2075 | static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ | |
2076 | self->SetLogicalOrigin(point.x, point.y); | |
2077 | } | |
2078 | static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
2079 | self->SetDeviceOrigin(point.x, point.y); | |
2080 | } | |
2081 | static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
2082 | self->CalcBoundingBox(point.x, point.y); | |
2083 | } | |
2084 | static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2085 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
2086 | } | |
2087 | static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2088 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
2089 | } | |
2090 | static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2091 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
2092 | } | |
2093 | static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2094 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
2095 | } | |
2096 | static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2097 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
2098 | } | |
2099 | static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
2100 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
2101 | } | |
2102 | ||
2103 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
2104 | *x1 = dc->MinX(); | |
2105 | *y1 = dc->MinY(); | |
2106 | *x2 = dc->MaxX(); | |
2107 | *y2 = dc->MaxY(); | |
2108 | } | |
2109 | ||
2110 | ||
2111 | #include <wx/dcbuffer.h> | |
2112 | ||
2113 | ||
2114 | #include <wx/dcps.h> | |
2115 | ||
2116 | ||
2117 | class wxMetaFile : public wxObject { | |
2118 | public: | |
2119 | wxMetaFile(const wxString&) | |
2120 | { wxPyRaiseNotImplemented(); } | |
2121 | }; | |
2122 | ||
2123 | class wxMetaFileDC : public wxClientDC { | |
2124 | public: | |
2125 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
2126 | { wxPyRaiseNotImplemented(); } | |
2127 | }; | |
2128 | ||
2129 | ||
2130 | ||
2131 | class wxPrinterDC : public wxClientDC { | |
2132 | public: | |
2133 | wxPrinterDC(const wxPrintData&) | |
2134 | { wxPyRaiseNotImplemented(); } | |
2135 | ||
2136 | }; | |
2137 | ||
2138 | ||
2139 | ||
2140 | static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
2141 | self->AddColour(name, wxColour(red, green, blue)); | |
2142 | } | |
2143 | ||
2144 | #include <wx/effects.h> | |
2145 | ||
8d38bd1d RD |
2146 | |
2147 | #include "wx/renderer.h" | |
2148 | ||
2149 | ||
2150 | SWIGINTERNSHORT PyObject* | |
2151 | SWIG_From_bool(bool value) | |
2152 | { | |
2153 | PyObject *obj = value ? Py_True : Py_False; | |
2154 | Py_INCREF(obj); | |
2155 | return obj; | |
2156 | } | |
2157 | ||
093d3ff1 RD |
2158 | #ifdef __cplusplus |
2159 | extern "C" { | |
2160 | #endif | |
2161 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
2162 | PyObject *resultobj; | |
2163 | wxGDIObject *result; | |
2164 | char *kwnames[] = { | |
2165 | NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
d14a1e28 | 2169 | { |
093d3ff1 | 2170 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 2172 | result = (wxGDIObject *)new wxGDIObject(); |
d14a1e28 RD |
2173 | |
2174 | wxPyEndAllowThreads(__tstate); | |
2175 | if (PyErr_Occurred()) SWIG_fail; | |
2176 | } | |
093d3ff1 | 2177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
2178 | return resultobj; |
2179 | fail: | |
2180 | return NULL; | |
2181 | } | |
2182 | ||
2183 | ||
093d3ff1 | 2184 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2185 | PyObject *resultobj; |
093d3ff1 | 2186 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
d14a1e28 | 2187 | PyObject * obj0 = 0 ; |
d14a1e28 | 2188 | char *kwnames[] = { |
093d3ff1 | 2189 | (char *) "self", NULL |
d14a1e28 RD |
2190 | }; |
2191 | ||
093d3ff1 RD |
2192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; |
2193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2195 | { |
093d3ff1 RD |
2196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2197 | delete arg1; | |
2198 | ||
2199 | wxPyEndAllowThreads(__tstate); | |
2200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 2201 | } |
093d3ff1 RD |
2202 | Py_INCREF(Py_None); resultobj = Py_None; |
2203 | return resultobj; | |
2204 | fail: | |
2205 | return NULL; | |
2206 | } | |
2207 | ||
2208 | ||
2209 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject *resultobj; | |
2211 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
2212 | bool result; | |
2213 | PyObject * obj0 = 0 ; | |
2214 | char *kwnames[] = { | |
2215 | (char *) "self", NULL | |
2216 | }; | |
2217 | ||
2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
2219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2221 | { |
2222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2223 | result = (bool)(arg1)->GetVisible(); |
d14a1e28 RD |
2224 | |
2225 | wxPyEndAllowThreads(__tstate); | |
2226 | if (PyErr_Occurred()) SWIG_fail; | |
2227 | } | |
4f89f6a3 RD |
2228 | { |
2229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2230 | } | |
d14a1e28 RD |
2231 | return resultobj; |
2232 | fail: | |
2233 | return NULL; | |
2234 | } | |
2235 | ||
2236 | ||
093d3ff1 | 2237 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a | 2238 | PyObject *resultobj; |
093d3ff1 RD |
2239 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2240 | bool arg2 ; | |
c9c7117a | 2241 | PyObject * obj0 = 0 ; |
093d3ff1 | 2242 | PyObject * obj1 = 0 ; |
c9c7117a | 2243 | char *kwnames[] = { |
093d3ff1 | 2244 | (char *) "self",(char *) "visible", NULL |
c9c7117a RD |
2245 | }; |
2246 | ||
093d3ff1 RD |
2247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; |
2248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2250 | { | |
2251 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
2252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2253 | } | |
c9c7117a RD |
2254 | { |
2255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2256 | (arg1)->SetVisible(arg2); |
c9c7117a RD |
2257 | |
2258 | wxPyEndAllowThreads(__tstate); | |
2259 | if (PyErr_Occurred()) SWIG_fail; | |
2260 | } | |
093d3ff1 | 2261 | Py_INCREF(Py_None); resultobj = Py_None; |
c9c7117a RD |
2262 | return resultobj; |
2263 | fail: | |
c9c7117a RD |
2264 | return NULL; |
2265 | } | |
2266 | ||
2267 | ||
093d3ff1 | 2268 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2269 | PyObject *resultobj; |
093d3ff1 RD |
2270 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2271 | bool result; | |
d14a1e28 RD |
2272 | PyObject * obj0 = 0 ; |
2273 | char *kwnames[] = { | |
2274 | (char *) "self", NULL | |
2275 | }; | |
2276 | ||
093d3ff1 RD |
2277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; |
2278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2280 | { |
2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2282 | result = (bool)(arg1)->IsNull(); |
d14a1e28 RD |
2283 | |
2284 | wxPyEndAllowThreads(__tstate); | |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
2286 | } | |
093d3ff1 RD |
2287 | { |
2288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2289 | } | |
d14a1e28 RD |
2290 | return resultobj; |
2291 | fail: | |
2292 | return NULL; | |
2293 | } | |
2294 | ||
2295 | ||
093d3ff1 | 2296 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2297 | PyObject *obj; |
2298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 2299 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); |
d14a1e28 RD |
2300 | Py_INCREF(obj); |
2301 | return Py_BuildValue((char *)""); | |
2302 | } | |
093d3ff1 | 2303 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2304 | PyObject *resultobj; |
093d3ff1 RD |
2305 | byte arg1 = (byte) 0 ; |
2306 | byte arg2 = (byte) 0 ; | |
2307 | byte arg3 = (byte) 0 ; | |
2308 | wxColour *result; | |
994141e6 | 2309 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2310 | PyObject * obj1 = 0 ; |
2311 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2312 | char *kwnames[] = { |
093d3ff1 | 2313 | (char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2314 | }; |
2315 | ||
093d3ff1 RD |
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2317 | if (obj0) { | |
2318 | { | |
2319 | arg1 = (byte)(SWIG_As_unsigned_SS_char(obj0)); | |
2320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2321 | } | |
2322 | } | |
2323 | if (obj1) { | |
2324 | { | |
2325 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
2326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2327 | } | |
2328 | } | |
2329 | if (obj2) { | |
2330 | { | |
2331 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
2332 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2333 | } | |
2334 | } | |
d14a1e28 RD |
2335 | { |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2337 | result = (wxColour *)new wxColour(arg1,arg2,arg3); |
d14a1e28 RD |
2338 | |
2339 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2340 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2341 | } |
093d3ff1 | 2342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2343 | return resultobj; |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
093d3ff1 | 2349 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2350 | PyObject *resultobj; |
093d3ff1 RD |
2351 | wxString *arg1 = 0 ; |
2352 | wxColour *result; | |
2353 | bool temp1 = false ; | |
d14a1e28 RD |
2354 | PyObject * obj0 = 0 ; |
2355 | char *kwnames[] = { | |
093d3ff1 | 2356 | (char *) "colorName", NULL |
d14a1e28 RD |
2357 | }; |
2358 | ||
093d3ff1 RD |
2359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; |
2360 | { | |
2361 | arg1 = wxString_in_helper(obj0); | |
2362 | if (arg1 == NULL) SWIG_fail; | |
2363 | temp1 = true; | |
2364 | } | |
d14a1e28 | 2365 | { |
093d3ff1 | 2366 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 2368 | result = (wxColour *)new wxColour((wxString const &)*arg1); |
d14a1e28 RD |
2369 | |
2370 | wxPyEndAllowThreads(__tstate); | |
2371 | if (PyErr_Occurred()) SWIG_fail; | |
2372 | } | |
093d3ff1 RD |
2373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
2374 | { | |
2375 | if (temp1) | |
2376 | delete arg1; | |
2377 | } | |
d14a1e28 RD |
2378 | return resultobj; |
2379 | fail: | |
093d3ff1 RD |
2380 | { |
2381 | if (temp1) | |
2382 | delete arg1; | |
2383 | } | |
d14a1e28 RD |
2384 | return NULL; |
2385 | } | |
2386 | ||
2387 | ||
093d3ff1 | 2388 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2389 | PyObject *resultobj; |
093d3ff1 RD |
2390 | unsigned long arg1 ; |
2391 | wxColour *result; | |
d14a1e28 | 2392 | PyObject * obj0 = 0 ; |
d14a1e28 | 2393 | char *kwnames[] = { |
093d3ff1 | 2394 | (char *) "colRGB", NULL |
d14a1e28 RD |
2395 | }; |
2396 | ||
093d3ff1 RD |
2397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; |
2398 | { | |
2399 | arg1 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0)); | |
2400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2401 | } | |
d14a1e28 RD |
2402 | { |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2404 | result = (wxColour *)new wxColour(arg1); |
d14a1e28 RD |
2405 | |
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | } | |
093d3ff1 | 2409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2410 | return resultobj; |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
093d3ff1 | 2416 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2417 | PyObject *resultobj; |
093d3ff1 | 2418 | wxColour *arg1 = (wxColour *) 0 ; |
d14a1e28 RD |
2419 | PyObject * obj0 = 0 ; |
2420 | char *kwnames[] = { | |
093d3ff1 | 2421 | (char *) "self", NULL |
d14a1e28 RD |
2422 | }; |
2423 | ||
093d3ff1 RD |
2424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; |
2425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2427 | { |
2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2429 | delete arg1; |
d14a1e28 RD |
2430 | |
2431 | wxPyEndAllowThreads(__tstate); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | } | |
093d3ff1 | 2434 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2435 | return resultobj; |
2436 | fail: | |
2437 | return NULL; | |
2438 | } | |
2439 | ||
2440 | ||
093d3ff1 | 2441 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
5cbf236d | 2442 | PyObject *resultobj; |
093d3ff1 RD |
2443 | wxColour *arg1 = (wxColour *) 0 ; |
2444 | byte result; | |
5cbf236d RD |
2445 | PyObject * obj0 = 0 ; |
2446 | char *kwnames[] = { | |
2447 | (char *) "self", NULL | |
2448 | }; | |
2449 | ||
093d3ff1 RD |
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; |
2451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
2453 | { |
2454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2455 | result = (byte)(arg1)->Red(); |
5cbf236d RD |
2456 | |
2457 | wxPyEndAllowThreads(__tstate); | |
2458 | if (PyErr_Occurred()) SWIG_fail; | |
2459 | } | |
093d3ff1 RD |
2460 | { |
2461 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
2462 | } | |
5cbf236d RD |
2463 | return resultobj; |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
093d3ff1 | 2469 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2470 | PyObject *resultobj; |
093d3ff1 RD |
2471 | wxColour *arg1 = (wxColour *) 0 ; |
2472 | byte result; | |
d14a1e28 RD |
2473 | PyObject * obj0 = 0 ; |
2474 | char *kwnames[] = { | |
2475 | (char *) "self", NULL | |
2476 | }; | |
2477 | ||
093d3ff1 RD |
2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; |
2479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2481 | { |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2483 | result = (byte)(arg1)->Green(); |
d14a1e28 RD |
2484 | |
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
4f89f6a3 | 2488 | { |
093d3ff1 | 2489 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); |
4f89f6a3 | 2490 | } |
d14a1e28 RD |
2491 | return resultobj; |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
093d3ff1 | 2497 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2498 | PyObject *resultobj; |
093d3ff1 RD |
2499 | wxColour *arg1 = (wxColour *) 0 ; |
2500 | byte result; | |
d14a1e28 RD |
2501 | PyObject * obj0 = 0 ; |
2502 | char *kwnames[] = { | |
093d3ff1 | 2503 | (char *) "self", NULL |
d14a1e28 RD |
2504 | }; |
2505 | ||
093d3ff1 RD |
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; |
2507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2509 | { |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2511 | result = (byte)(arg1)->Blue(); |
d14a1e28 RD |
2512 | |
2513 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2514 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2515 | } |
093d3ff1 RD |
2516 | { |
2517 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
2518 | } | |
d14a1e28 RD |
2519 | return resultobj; |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
093d3ff1 | 2525 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2526 | PyObject *resultobj; |
093d3ff1 RD |
2527 | wxColour *arg1 = (wxColour *) 0 ; |
2528 | bool result; | |
d14a1e28 RD |
2529 | PyObject * obj0 = 0 ; |
2530 | char *kwnames[] = { | |
2531 | (char *) "self", NULL | |
2532 | }; | |
2533 | ||
093d3ff1 RD |
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; |
2535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2537 | { |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2539 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
2540 | |
2541 | wxPyEndAllowThreads(__tstate); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
093d3ff1 RD |
2544 | { |
2545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2546 | } | |
d14a1e28 RD |
2547 | return resultobj; |
2548 | fail: | |
2549 | return NULL; | |
2550 | } | |
2551 | ||
2552 | ||
093d3ff1 | 2553 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2554 | PyObject *resultobj; |
093d3ff1 RD |
2555 | wxColour *arg1 = (wxColour *) 0 ; |
2556 | byte arg2 ; | |
2557 | byte arg3 ; | |
2558 | byte arg4 ; | |
d14a1e28 | 2559 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
2560 | PyObject * obj1 = 0 ; |
2561 | PyObject * obj2 = 0 ; | |
2562 | PyObject * obj3 = 0 ; | |
d14a1e28 | 2563 | char *kwnames[] = { |
093d3ff1 | 2564 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2565 | }; |
2566 | ||
093d3ff1 RD |
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2570 | { | |
2571 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
2572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2573 | } | |
2574 | { | |
2575 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
2576 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2577 | } | |
2578 | { | |
2579 | arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
2580 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2581 | } | |
d14a1e28 RD |
2582 | { |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2584 | (arg1)->Set(arg2,arg3,arg4); |
d14a1e28 RD |
2585 | |
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | } | |
093d3ff1 | 2589 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2590 | return resultobj; |
2591 | fail: | |
2592 | return NULL; | |
2593 | } | |
2594 | ||
2595 | ||
093d3ff1 | 2596 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2597 | PyObject *resultobj; |
093d3ff1 RD |
2598 | wxColour *arg1 = (wxColour *) 0 ; |
2599 | unsigned long arg2 ; | |
d14a1e28 | 2600 | PyObject * obj0 = 0 ; |
093d3ff1 | 2601 | PyObject * obj1 = 0 ; |
d14a1e28 | 2602 | char *kwnames[] = { |
093d3ff1 | 2603 | (char *) "self",(char *) "colRGB", NULL |
d14a1e28 RD |
2604 | }; |
2605 | ||
093d3ff1 RD |
2606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
2607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2609 | { | |
2610 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
2611 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2612 | } | |
d14a1e28 RD |
2613 | { |
2614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2615 | (arg1)->Set(arg2); |
d14a1e28 RD |
2616 | |
2617 | wxPyEndAllowThreads(__tstate); | |
2618 | if (PyErr_Occurred()) SWIG_fail; | |
2619 | } | |
093d3ff1 | 2620 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2621 | return resultobj; |
2622 | fail: | |
2623 | return NULL; | |
2624 | } | |
2625 | ||
2626 | ||
093d3ff1 | 2627 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2628 | PyObject *resultobj; |
093d3ff1 RD |
2629 | wxColour *arg1 = (wxColour *) 0 ; |
2630 | wxString *arg2 = 0 ; | |
2631 | bool temp2 = false ; | |
d14a1e28 | 2632 | PyObject * obj0 = 0 ; |
093d3ff1 | 2633 | PyObject * obj1 = 0 ; |
d14a1e28 | 2634 | char *kwnames[] = { |
093d3ff1 | 2635 | (char *) "self",(char *) "colourName", NULL |
d14a1e28 RD |
2636 | }; |
2637 | ||
093d3ff1 RD |
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; |
2639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2641 | { | |
2642 | arg2 = wxString_in_helper(obj1); | |
2643 | if (arg2 == NULL) SWIG_fail; | |
2644 | temp2 = true; | |
2645 | } | |
d14a1e28 RD |
2646 | { |
2647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2648 | (arg1)->InitFromName((wxString const &)*arg2); |
d14a1e28 RD |
2649 | |
2650 | wxPyEndAllowThreads(__tstate); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
093d3ff1 RD |
2653 | Py_INCREF(Py_None); resultobj = Py_None; |
2654 | { | |
2655 | if (temp2) | |
2656 | delete arg2; | |
2657 | } | |
d14a1e28 RD |
2658 | return resultobj; |
2659 | fail: | |
093d3ff1 RD |
2660 | { |
2661 | if (temp2) | |
2662 | delete arg2; | |
2663 | } | |
d14a1e28 RD |
2664 | return NULL; |
2665 | } | |
2666 | ||
2667 | ||
093d3ff1 | 2668 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2669 | PyObject *resultobj; |
093d3ff1 RD |
2670 | wxColour *arg1 = (wxColour *) 0 ; |
2671 | long result; | |
d14a1e28 RD |
2672 | PyObject * obj0 = 0 ; |
2673 | char *kwnames[] = { | |
2674 | (char *) "self", NULL | |
2675 | }; | |
2676 | ||
093d3ff1 RD |
2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; |
2678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2680 | { |
2681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2682 | result = (long)((wxColour const *)arg1)->GetPixel(); |
d14a1e28 RD |
2683 | |
2684 | wxPyEndAllowThreads(__tstate); | |
2685 | if (PyErr_Occurred()) SWIG_fail; | |
2686 | } | |
093d3ff1 RD |
2687 | { |
2688 | resultobj = SWIG_From_long((long)(result)); | |
2689 | } | |
d14a1e28 RD |
2690 | return resultobj; |
2691 | fail: | |
2692 | return NULL; | |
2693 | } | |
2694 | ||
2695 | ||
093d3ff1 | 2696 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2697 | PyObject *resultobj; |
093d3ff1 RD |
2698 | wxColour *arg1 = (wxColour *) 0 ; |
2699 | wxColour *arg2 = 0 ; | |
2700 | bool result; | |
2701 | wxColour temp2 ; | |
d14a1e28 | 2702 | PyObject * obj0 = 0 ; |
093d3ff1 | 2703 | PyObject * obj1 = 0 ; |
d14a1e28 | 2704 | char *kwnames[] = { |
093d3ff1 | 2705 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
2706 | }; |
2707 | ||
093d3ff1 RD |
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; |
2709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2711 | { | |
2712 | arg2 = &temp2; | |
2713 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2714 | } | |
d14a1e28 RD |
2715 | { |
2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2717 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); |
d14a1e28 RD |
2718 | |
2719 | wxPyEndAllowThreads(__tstate); | |
2720 | if (PyErr_Occurred()) SWIG_fail; | |
2721 | } | |
093d3ff1 RD |
2722 | { |
2723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2724 | } | |
d14a1e28 RD |
2725 | return resultobj; |
2726 | fail: | |
2727 | return NULL; | |
2728 | } | |
2729 | ||
2730 | ||
093d3ff1 | 2731 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2732 | PyObject *resultobj; |
093d3ff1 RD |
2733 | wxColour *arg1 = (wxColour *) 0 ; |
2734 | wxColour *arg2 = 0 ; | |
d14a1e28 | 2735 | bool result; |
093d3ff1 | 2736 | wxColour temp2 ; |
d14a1e28 | 2737 | PyObject * obj0 = 0 ; |
093d3ff1 | 2738 | PyObject * obj1 = 0 ; |
d14a1e28 | 2739 | char *kwnames[] = { |
093d3ff1 | 2740 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
2741 | }; |
2742 | ||
093d3ff1 RD |
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; |
2744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2746 | { | |
2747 | arg2 = &temp2; | |
2748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2749 | } | |
d14a1e28 RD |
2750 | { |
2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2752 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); |
d14a1e28 RD |
2753 | |
2754 | wxPyEndAllowThreads(__tstate); | |
2755 | if (PyErr_Occurred()) SWIG_fail; | |
2756 | } | |
4f89f6a3 RD |
2757 | { |
2758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2759 | } | |
d14a1e28 RD |
2760 | return resultobj; |
2761 | fail: | |
2762 | return NULL; | |
2763 | } | |
2764 | ||
2765 | ||
093d3ff1 | 2766 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2767 | PyObject *resultobj; |
093d3ff1 RD |
2768 | wxColour *arg1 = (wxColour *) 0 ; |
2769 | PyObject *result; | |
d14a1e28 RD |
2770 | PyObject * obj0 = 0 ; |
2771 | char *kwnames[] = { | |
093d3ff1 | 2772 | (char *) "self", NULL |
d14a1e28 RD |
2773 | }; |
2774 | ||
093d3ff1 RD |
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
2776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2778 | { |
2779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2780 | result = (PyObject *)wxColour_Get(arg1); |
d14a1e28 RD |
2781 | |
2782 | wxPyEndAllowThreads(__tstate); | |
2783 | if (PyErr_Occurred()) SWIG_fail; | |
2784 | } | |
093d3ff1 | 2785 | resultobj = result; |
d14a1e28 RD |
2786 | return resultobj; |
2787 | fail: | |
2788 | return NULL; | |
2789 | } | |
2790 | ||
2791 | ||
093d3ff1 | 2792 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2793 | PyObject *resultobj; |
093d3ff1 RD |
2794 | wxColour *arg1 = (wxColour *) 0 ; |
2795 | unsigned long result; | |
d14a1e28 | 2796 | PyObject * obj0 = 0 ; |
d14a1e28 | 2797 | char *kwnames[] = { |
093d3ff1 | 2798 | (char *) "self", NULL |
d14a1e28 RD |
2799 | }; |
2800 | ||
093d3ff1 RD |
2801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
2802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2804 | { |
2805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2806 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
2807 | |
2808 | wxPyEndAllowThreads(__tstate); | |
2809 | if (PyErr_Occurred()) SWIG_fail; | |
2810 | } | |
093d3ff1 RD |
2811 | { |
2812 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
2813 | } | |
d14a1e28 RD |
2814 | return resultobj; |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
093d3ff1 RD |
2820 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
2821 | PyObject *obj; | |
2822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2823 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
2824 | Py_INCREF(obj); | |
2825 | return Py_BuildValue((char *)""); | |
2826 | } | |
2827 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 2828 | PyObject *resultobj; |
093d3ff1 RD |
2829 | int arg1 ; |
2830 | unsigned char *arg2 = (unsigned char *) 0 ; | |
2831 | unsigned char *arg3 = (unsigned char *) 0 ; | |
2832 | unsigned char *arg4 = (unsigned char *) 0 ; | |
2833 | wxPalette *result; | |
d14a1e28 | 2834 | PyObject * obj0 = 0 ; |
994141e6 | 2835 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
2836 | PyObject * obj2 = 0 ; |
2837 | PyObject * obj3 = 0 ; | |
d14a1e28 | 2838 | char *kwnames[] = { |
093d3ff1 | 2839 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2840 | }; |
2841 | ||
093d3ff1 RD |
2842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2843 | { | |
2844 | arg1 = (int)(SWIG_As_int(obj0)); | |
2845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2846 | } | |
2847 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
2848 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2849 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
2850 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2851 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
2852 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 | 2853 | { |
093d3ff1 | 2854 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 2856 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); |
d14a1e28 RD |
2857 | |
2858 | wxPyEndAllowThreads(__tstate); | |
2859 | if (PyErr_Occurred()) SWIG_fail; | |
2860 | } | |
093d3ff1 | 2861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
2862 | return resultobj; |
2863 | fail: | |
2864 | return NULL; | |
2865 | } | |
2866 | ||
2867 | ||
093d3ff1 | 2868 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2869 | PyObject *resultobj; |
093d3ff1 | 2870 | wxPalette *arg1 = (wxPalette *) 0 ; |
d14a1e28 RD |
2871 | PyObject * obj0 = 0 ; |
2872 | char *kwnames[] = { | |
093d3ff1 | 2873 | (char *) "self", NULL |
d14a1e28 RD |
2874 | }; |
2875 | ||
093d3ff1 RD |
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; |
2877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
2878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2879 | { |
2880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2881 | delete arg1; |
d14a1e28 RD |
2882 | |
2883 | wxPyEndAllowThreads(__tstate); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
2886 | Py_INCREF(Py_None); resultobj = Py_None; | |
2887 | return resultobj; | |
2888 | fail: | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
093d3ff1 | 2893 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2894 | PyObject *resultobj; |
093d3ff1 RD |
2895 | wxPalette *arg1 = (wxPalette *) 0 ; |
2896 | byte arg2 ; | |
2897 | byte arg3 ; | |
2898 | byte arg4 ; | |
2899 | int result; | |
d14a1e28 | 2900 | PyObject * obj0 = 0 ; |
994141e6 | 2901 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
2902 | PyObject * obj2 = 0 ; |
2903 | PyObject * obj3 = 0 ; | |
d14a1e28 | 2904 | char *kwnames[] = { |
093d3ff1 | 2905 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2906 | }; |
2907 | ||
093d3ff1 RD |
2908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
2910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2911 | { | |
2912 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
2913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2914 | } | |
2915 | { | |
2916 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
2917 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2918 | } | |
2919 | { | |
2920 | arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
2921 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2922 | } | |
d14a1e28 RD |
2923 | { |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2925 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); |
d14a1e28 RD |
2926 | |
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
093d3ff1 RD |
2930 | { |
2931 | resultobj = SWIG_From_int((int)(result)); | |
2932 | } | |
d14a1e28 RD |
2933 | return resultobj; |
2934 | fail: | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
093d3ff1 | 2939 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2940 | PyObject *resultobj; |
093d3ff1 | 2941 | wxPalette *arg1 = (wxPalette *) 0 ; |
d14a1e28 | 2942 | int arg2 ; |
093d3ff1 RD |
2943 | byte *arg3 = (byte *) 0 ; |
2944 | byte *arg4 = (byte *) 0 ; | |
2945 | byte *arg5 = (byte *) 0 ; | |
2946 | bool result; | |
2947 | byte temp3 ; | |
2948 | int res3 = 0 ; | |
2949 | byte temp4 ; | |
2950 | int res4 = 0 ; | |
2951 | byte temp5 ; | |
2952 | int res5 = 0 ; | |
d14a1e28 RD |
2953 | PyObject * obj0 = 0 ; |
2954 | PyObject * obj1 = 0 ; | |
2955 | char *kwnames[] = { | |
093d3ff1 | 2956 | (char *) "self",(char *) "pixel", NULL |
d14a1e28 RD |
2957 | }; |
2958 | ||
093d3ff1 RD |
2959 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
2960 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
2961 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
2963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
2964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2965 | { |
093d3ff1 RD |
2966 | arg2 = (int)(SWIG_As_int(obj1)); |
2967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
2968 | } |
2969 | { | |
2970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2971 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
2972 | |
2973 | wxPyEndAllowThreads(__tstate); | |
2974 | if (PyErr_Occurred()) SWIG_fail; | |
2975 | } | |
d14a1e28 | 2976 | { |
093d3ff1 | 2977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2978 | } |
093d3ff1 RD |
2979 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
2980 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
2981 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
2982 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
2983 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
2984 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0))); | |
3adfb63b RD |
2985 | return resultobj; |
2986 | fail: | |
2987 | return NULL; | |
2988 | } | |
2989 | ||
2990 | ||
093d3ff1 | 2991 | static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a | 2992 | PyObject *resultobj; |
093d3ff1 | 2993 | wxPalette *arg1 = (wxPalette *) 0 ; |
c9c7117a RD |
2994 | int result; |
2995 | PyObject * obj0 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self", NULL | |
2998 | }; | |
2999 | ||
093d3ff1 RD |
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail; |
3001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3003 | { |
3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3005 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); |
d14a1e28 RD |
3006 | |
3007 | wxPyEndAllowThreads(__tstate); | |
3008 | if (PyErr_Occurred()) SWIG_fail; | |
3009 | } | |
d14a1e28 | 3010 | { |
093d3ff1 | 3011 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 | 3012 | } |
d14a1e28 RD |
3013 | return resultobj; |
3014 | fail: | |
3015 | return NULL; | |
3016 | } | |
3017 | ||
3018 | ||
093d3ff1 | 3019 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3020 | PyObject *resultobj; |
093d3ff1 | 3021 | wxPalette *arg1 = (wxPalette *) 0 ; |
66c033b4 | 3022 | bool result; |
d14a1e28 | 3023 | PyObject * obj0 = 0 ; |
d14a1e28 | 3024 | char *kwnames[] = { |
093d3ff1 | 3025 | (char *) "self", NULL |
d14a1e28 RD |
3026 | }; |
3027 | ||
093d3ff1 RD |
3028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; |
3029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3031 | { |
3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3033 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
3034 | |
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
d14a1e28 | 3038 | { |
66c033b4 | 3039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3040 | } |
3041 | return resultobj; | |
3042 | fail: | |
d14a1e28 RD |
3043 | return NULL; |
3044 | } | |
3045 | ||
3046 | ||
093d3ff1 | 3047 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3048 | PyObject *obj; |
3049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 3050 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); |
d14a1e28 RD |
3051 | Py_INCREF(obj); |
3052 | return Py_BuildValue((char *)""); | |
3053 | } | |
093d3ff1 | 3054 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3055 | PyObject *resultobj; |
3056 | wxColour *arg1 = 0 ; | |
093d3ff1 RD |
3057 | int arg2 = (int) 1 ; |
3058 | int arg3 = (int) wxSOLID ; | |
3059 | wxPen *result; | |
d14a1e28 RD |
3060 | wxColour temp1 ; |
3061 | PyObject * obj0 = 0 ; | |
994141e6 | 3062 | PyObject * obj1 = 0 ; |
093d3ff1 | 3063 | PyObject * obj2 = 0 ; |
d14a1e28 | 3064 | char *kwnames[] = { |
093d3ff1 | 3065 | (char *) "colour",(char *) "width",(char *) "style", NULL |
d14a1e28 RD |
3066 | }; |
3067 | ||
093d3ff1 | 3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3069 | { |
3070 | arg1 = &temp1; | |
3071 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3072 | } | |
994141e6 | 3073 | if (obj1) { |
093d3ff1 RD |
3074 | { |
3075 | arg2 = (int)(SWIG_As_int(obj1)); | |
3076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3077 | } | |
3078 | } | |
3079 | if (obj2) { | |
3080 | { | |
3081 | arg3 = (int)(SWIG_As_int(obj2)); | |
3082 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3083 | } | |
994141e6 | 3084 | } |
d14a1e28 | 3085 | { |
e3b71cb8 | 3086 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3088 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); |
d14a1e28 RD |
3089 | |
3090 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3091 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3092 | } |
093d3ff1 | 3093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
3094 | return resultobj; |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
093d3ff1 | 3100 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3101 | PyObject *resultobj; |
093d3ff1 | 3102 | wxPen *arg1 = (wxPen *) 0 ; |
d14a1e28 RD |
3103 | PyObject * obj0 = 0 ; |
3104 | char *kwnames[] = { | |
3105 | (char *) "self", NULL | |
3106 | }; | |
3107 | ||
093d3ff1 RD |
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; |
3109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3111 | { |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | delete arg1; | |
3114 | ||
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | Py_INCREF(Py_None); resultobj = Py_None; | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | return NULL; | |
3122 | } | |
3123 | ||
3124 | ||
093d3ff1 | 3125 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3126 | PyObject *resultobj; |
093d3ff1 RD |
3127 | wxPen *arg1 = (wxPen *) 0 ; |
3128 | int result; | |
d14a1e28 | 3129 | PyObject * obj0 = 0 ; |
d14a1e28 | 3130 | char *kwnames[] = { |
093d3ff1 | 3131 | (char *) "self", NULL |
d14a1e28 RD |
3132 | }; |
3133 | ||
093d3ff1 RD |
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; |
3135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3137 | { |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3139 | result = (int)(arg1)->GetCap(); |
d14a1e28 RD |
3140 | |
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
093d3ff1 RD |
3144 | { |
3145 | resultobj = SWIG_From_int((int)(result)); | |
3146 | } | |
d14a1e28 RD |
3147 | return resultobj; |
3148 | fail: | |
3149 | return NULL; | |
3150 | } | |
3151 | ||
3152 | ||
093d3ff1 | 3153 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3154 | PyObject *resultobj; |
093d3ff1 RD |
3155 | wxPen *arg1 = (wxPen *) 0 ; |
3156 | wxColour result; | |
d14a1e28 RD |
3157 | PyObject * obj0 = 0 ; |
3158 | char *kwnames[] = { | |
093d3ff1 | 3159 | (char *) "self", NULL |
d14a1e28 RD |
3160 | }; |
3161 | ||
093d3ff1 RD |
3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; |
3163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3165 | { |
3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3167 | result = (arg1)->GetColour(); |
d14a1e28 RD |
3168 | |
3169 | wxPyEndAllowThreads(__tstate); | |
3170 | if (PyErr_Occurred()) SWIG_fail; | |
3171 | } | |
093d3ff1 RD |
3172 | { |
3173 | wxColour * resultptr; | |
3174 | resultptr = new wxColour((wxColour &)(result)); | |
3175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
3176 | } | |
d14a1e28 RD |
3177 | return resultobj; |
3178 | fail: | |
3179 | return NULL; | |
3180 | } | |
3181 | ||
3182 | ||
093d3ff1 | 3183 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3184 | PyObject *resultobj; |
093d3ff1 RD |
3185 | wxPen *arg1 = (wxPen *) 0 ; |
3186 | int result; | |
d14a1e28 | 3187 | PyObject * obj0 = 0 ; |
d14a1e28 | 3188 | char *kwnames[] = { |
093d3ff1 | 3189 | (char *) "self", NULL |
d14a1e28 RD |
3190 | }; |
3191 | ||
093d3ff1 RD |
3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; |
3193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3195 | { |
3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3197 | result = (int)(arg1)->GetJoin(); |
d14a1e28 RD |
3198 | |
3199 | wxPyEndAllowThreads(__tstate); | |
3200 | if (PyErr_Occurred()) SWIG_fail; | |
3201 | } | |
093d3ff1 RD |
3202 | { |
3203 | resultobj = SWIG_From_int((int)(result)); | |
3204 | } | |
d14a1e28 RD |
3205 | return resultobj; |
3206 | fail: | |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
093d3ff1 | 3211 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3212 | PyObject *resultobj; |
093d3ff1 RD |
3213 | wxPen *arg1 = (wxPen *) 0 ; |
3214 | int result; | |
d14a1e28 RD |
3215 | PyObject * obj0 = 0 ; |
3216 | char *kwnames[] = { | |
3217 | (char *) "self", NULL | |
3218 | }; | |
3219 | ||
093d3ff1 RD |
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; |
3221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3223 | { |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3225 | result = (int)(arg1)->GetStyle(); |
d14a1e28 RD |
3226 | |
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
3230 | { | |
093d3ff1 | 3231 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
3232 | } |
3233 | return resultobj; | |
3234 | fail: | |
3235 | return NULL; | |
3236 | } | |
3237 | ||
3238 | ||
093d3ff1 | 3239 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3240 | PyObject *resultobj; |
093d3ff1 | 3241 | wxPen *arg1 = (wxPen *) 0 ; |
d14a1e28 RD |
3242 | int result; |
3243 | PyObject * obj0 = 0 ; | |
3244 | char *kwnames[] = { | |
3245 | (char *) "self", NULL | |
3246 | }; | |
3247 | ||
093d3ff1 RD |
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; |
3249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3251 | { |
3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3253 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
3254 | |
3255 | wxPyEndAllowThreads(__tstate); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
3257 | } | |
093d3ff1 RD |
3258 | { |
3259 | resultobj = SWIG_From_int((int)(result)); | |
3260 | } | |
d14a1e28 RD |
3261 | return resultobj; |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
093d3ff1 | 3267 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3268 | PyObject *resultobj; |
093d3ff1 RD |
3269 | wxPen *arg1 = (wxPen *) 0 ; |
3270 | bool result; | |
d14a1e28 RD |
3271 | PyObject * obj0 = 0 ; |
3272 | char *kwnames[] = { | |
3273 | (char *) "self", NULL | |
3274 | }; | |
3275 | ||
093d3ff1 RD |
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; |
3277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3279 | { |
3280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3281 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
3282 | |
3283 | wxPyEndAllowThreads(__tstate); | |
3284 | if (PyErr_Occurred()) SWIG_fail; | |
3285 | } | |
093d3ff1 RD |
3286 | { |
3287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3288 | } | |
d14a1e28 RD |
3289 | return resultobj; |
3290 | fail: | |
3291 | return NULL; | |
3292 | } | |
3293 | ||
3294 | ||
093d3ff1 | 3295 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
f78cc896 | 3296 | PyObject *resultobj; |
093d3ff1 RD |
3297 | wxPen *arg1 = (wxPen *) 0 ; |
3298 | int arg2 ; | |
f78cc896 | 3299 | PyObject * obj0 = 0 ; |
093d3ff1 | 3300 | PyObject * obj1 = 0 ; |
f78cc896 | 3301 | char *kwnames[] = { |
093d3ff1 | 3302 | (char *) "self",(char *) "cap_style", NULL |
f78cc896 RD |
3303 | }; |
3304 | ||
093d3ff1 RD |
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
3306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3308 | { | |
3309 | arg2 = (int)(SWIG_As_int(obj1)); | |
3310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3311 | } | |
f78cc896 RD |
3312 | { |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3314 | (arg1)->SetCap(arg2); |
f78cc896 RD |
3315 | |
3316 | wxPyEndAllowThreads(__tstate); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
093d3ff1 | 3319 | Py_INCREF(Py_None); resultobj = Py_None; |
f78cc896 RD |
3320 | return resultobj; |
3321 | fail: | |
3322 | return NULL; | |
3323 | } | |
3324 | ||
3325 | ||
093d3ff1 | 3326 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3327 | PyObject *resultobj; |
093d3ff1 RD |
3328 | wxPen *arg1 = (wxPen *) 0 ; |
3329 | wxColour *arg2 = 0 ; | |
3330 | wxColour temp2 ; | |
d14a1e28 | 3331 | PyObject * obj0 = 0 ; |
093d3ff1 | 3332 | PyObject * obj1 = 0 ; |
d14a1e28 | 3333 | char *kwnames[] = { |
093d3ff1 | 3334 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
3335 | }; |
3336 | ||
093d3ff1 RD |
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3340 | { | |
3341 | arg2 = &temp2; | |
3342 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3343 | } | |
d14a1e28 RD |
3344 | { |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3346 | (arg1)->SetColour(*arg2); |
d14a1e28 RD |
3347 | |
3348 | wxPyEndAllowThreads(__tstate); | |
3349 | if (PyErr_Occurred()) SWIG_fail; | |
3350 | } | |
093d3ff1 | 3351 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3352 | return resultobj; |
3353 | fail: | |
3354 | return NULL; | |
3355 | } | |
3356 | ||
3357 | ||
093d3ff1 | 3358 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3359 | PyObject *resultobj; |
093d3ff1 RD |
3360 | wxPen *arg1 = (wxPen *) 0 ; |
3361 | int arg2 ; | |
d14a1e28 | 3362 | PyObject * obj0 = 0 ; |
994141e6 | 3363 | PyObject * obj1 = 0 ; |
d14a1e28 | 3364 | char *kwnames[] = { |
093d3ff1 | 3365 | (char *) "self",(char *) "join_style", NULL |
d14a1e28 RD |
3366 | }; |
3367 | ||
093d3ff1 RD |
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
3369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 3371 | { |
093d3ff1 RD |
3372 | arg2 = (int)(SWIG_As_int(obj1)); |
3373 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 3374 | } |
d14a1e28 RD |
3375 | { |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3377 | (arg1)->SetJoin(arg2); |
d14a1e28 RD |
3378 | |
3379 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3380 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3381 | } |
093d3ff1 | 3382 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3383 | return resultobj; |
3384 | fail: | |
d14a1e28 RD |
3385 | return NULL; |
3386 | } | |
3387 | ||
3388 | ||
093d3ff1 | 3389 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3390 | PyObject *resultobj; |
093d3ff1 RD |
3391 | wxPen *arg1 = (wxPen *) 0 ; |
3392 | int arg2 ; | |
d14a1e28 | 3393 | PyObject * obj0 = 0 ; |
093d3ff1 | 3394 | PyObject * obj1 = 0 ; |
d14a1e28 | 3395 | char *kwnames[] = { |
093d3ff1 | 3396 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
3397 | }; |
3398 | ||
093d3ff1 RD |
3399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3402 | { | |
3403 | arg2 = (int)(SWIG_As_int(obj1)); | |
3404 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3405 | } | |
d14a1e28 RD |
3406 | { |
3407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3408 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
3409 | |
3410 | wxPyEndAllowThreads(__tstate); | |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
3412 | } | |
3413 | Py_INCREF(Py_None); resultobj = Py_None; | |
3414 | return resultobj; | |
3415 | fail: | |
3416 | return NULL; | |
3417 | } | |
3418 | ||
3419 | ||
093d3ff1 | 3420 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
66c033b4 | 3421 | PyObject *resultobj; |
093d3ff1 | 3422 | wxPen *arg1 = (wxPen *) 0 ; |
66c033b4 | 3423 | int arg2 ; |
66c033b4 RD |
3424 | PyObject * obj0 = 0 ; |
3425 | PyObject * obj1 = 0 ; | |
66c033b4 | 3426 | char *kwnames[] = { |
093d3ff1 | 3427 | (char *) "self",(char *) "width", NULL |
66c033b4 RD |
3428 | }; |
3429 | ||
093d3ff1 RD |
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
3431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3433 | { | |
3434 | arg2 = (int)(SWIG_As_int(obj1)); | |
3435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
66c033b4 RD |
3436 | } |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3439 | (arg1)->SetWidth(arg2); |
66c033b4 RD |
3440 | |
3441 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3442 | if (PyErr_Occurred()) SWIG_fail; |
66c033b4 | 3443 | } |
093d3ff1 | 3444 | Py_INCREF(Py_None); resultobj = Py_None; |
66c033b4 RD |
3445 | return resultobj; |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
093d3ff1 | 3451 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3452 | PyObject *resultobj; |
093d3ff1 RD |
3453 | wxPen *arg1 = (wxPen *) 0 ; |
3454 | int arg2 ; | |
3455 | wxDash *arg3 = (wxDash *) 0 ; | |
d14a1e28 | 3456 | PyObject * obj0 = 0 ; |
093d3ff1 | 3457 | PyObject * obj1 = 0 ; |
d14a1e28 | 3458 | char *kwnames[] = { |
093d3ff1 | 3459 | (char *) "self",(char *) "dashes", NULL |
d14a1e28 RD |
3460 | }; |
3461 | ||
093d3ff1 RD |
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; |
3463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3465 | { | |
3466 | arg2 = PyList_Size(obj1); | |
3467 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
3468 | if (arg3 == NULL) SWIG_fail; | |
d14a1e28 RD |
3469 | } |
3470 | { | |
3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3472 | (arg1)->SetDashes(arg2,arg3); |
d14a1e28 RD |
3473 | |
3474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3475 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3476 | } |
093d3ff1 RD |
3477 | Py_INCREF(Py_None); resultobj = Py_None; |
3478 | { | |
3479 | if (arg3) delete [] arg3; | |
3480 | } | |
d14a1e28 RD |
3481 | return resultobj; |
3482 | fail: | |
093d3ff1 RD |
3483 | { |
3484 | if (arg3) delete [] arg3; | |
3485 | } | |
d14a1e28 RD |
3486 | return NULL; |
3487 | } | |
3488 | ||
3489 | ||
093d3ff1 | 3490 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3491 | PyObject *resultobj; |
093d3ff1 RD |
3492 | wxPen *arg1 = (wxPen *) 0 ; |
3493 | PyObject *result; | |
d14a1e28 RD |
3494 | PyObject * obj0 = 0 ; |
3495 | char *kwnames[] = { | |
093d3ff1 | 3496 | (char *) "self", NULL |
d14a1e28 RD |
3497 | }; |
3498 | ||
093d3ff1 RD |
3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; |
3500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3502 | { |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3504 | result = (PyObject *)wxPen_GetDashes(arg1); |
d14a1e28 RD |
3505 | |
3506 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3507 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3508 | } |
093d3ff1 | 3509 | resultobj = result; |
d14a1e28 RD |
3510 | return resultobj; |
3511 | fail: | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
093d3ff1 | 3516 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3517 | PyObject *resultobj; |
093d3ff1 RD |
3518 | wxPen *arg1 = (wxPen *) 0 ; |
3519 | PyObject *arg2 = (PyObject *) 0 ; | |
3520 | PyObject *arg3 = (PyObject *) 0 ; | |
d14a1e28 | 3521 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
3522 | PyObject * obj1 = 0 ; |
3523 | PyObject * obj2 = 0 ; | |
d14a1e28 | 3524 | char *kwnames[] = { |
093d3ff1 | 3525 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d14a1e28 RD |
3526 | }; |
3527 | ||
093d3ff1 RD |
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
3529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3531 | arg2 = obj1; | |
3532 | arg3 = obj2; | |
d14a1e28 RD |
3533 | { |
3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3535 | wxPen__SetDashes(arg1,arg2,arg3); |
d14a1e28 RD |
3536 | |
3537 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3538 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3539 | } |
093d3ff1 | 3540 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3541 | return resultobj; |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
093d3ff1 | 3547 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3548 | PyObject *resultobj; |
093d3ff1 RD |
3549 | wxPen *arg1 = (wxPen *) 0 ; |
3550 | int result; | |
d14a1e28 RD |
3551 | PyObject * obj0 = 0 ; |
3552 | char *kwnames[] = { | |
093d3ff1 | 3553 | (char *) "self", NULL |
d14a1e28 RD |
3554 | }; |
3555 | ||
093d3ff1 RD |
3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; |
3557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3559 | { |
3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3561 | result = (int)((wxPen const *)arg1)->GetDashCount(); |
d14a1e28 RD |
3562 | |
3563 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3564 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3565 | } |
093d3ff1 RD |
3566 | { |
3567 | resultobj = SWIG_From_int((int)(result)); | |
3568 | } | |
d14a1e28 RD |
3569 | return resultobj; |
3570 | fail: | |
3571 | return NULL; | |
3572 | } | |
3573 | ||
3574 | ||
093d3ff1 | 3575 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3576 | PyObject *resultobj; |
093d3ff1 RD |
3577 | wxPen *arg1 = (wxPen *) 0 ; |
3578 | wxPen *arg2 = (wxPen *) 0 ; | |
d14a1e28 RD |
3579 | bool result; |
3580 | PyObject * obj0 = 0 ; | |
093d3ff1 | 3581 | PyObject * obj1 = 0 ; |
d14a1e28 | 3582 | char *kwnames[] = { |
093d3ff1 | 3583 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
3584 | }; |
3585 | ||
093d3ff1 RD |
3586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
3587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3589 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3591 | { |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3593 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
3594 | |
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
4f89f6a3 RD |
3598 | { |
3599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3600 | } | |
d14a1e28 RD |
3601 | return resultobj; |
3602 | fail: | |
3603 | return NULL; | |
3604 | } | |
3605 | ||
3606 | ||
093d3ff1 | 3607 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3608 | PyObject *resultobj; |
093d3ff1 RD |
3609 | wxPen *arg1 = (wxPen *) 0 ; |
3610 | wxPen *arg2 = (wxPen *) 0 ; | |
3611 | bool result; | |
d14a1e28 | 3612 | PyObject * obj0 = 0 ; |
093d3ff1 | 3613 | PyObject * obj1 = 0 ; |
d14a1e28 | 3614 | char *kwnames[] = { |
093d3ff1 | 3615 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
3616 | }; |
3617 | ||
093d3ff1 RD |
3618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
3619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3621 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3623 | { |
3624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3625 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
3626 | |
3627 | wxPyEndAllowThreads(__tstate); | |
3628 | if (PyErr_Occurred()) SWIG_fail; | |
3629 | } | |
093d3ff1 RD |
3630 | { |
3631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3632 | } | |
d14a1e28 RD |
3633 | return resultobj; |
3634 | fail: | |
3635 | return NULL; | |
3636 | } | |
3637 | ||
3638 | ||
093d3ff1 RD |
3639 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
3640 | PyObject *obj; | |
3641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3642 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
3643 | Py_INCREF(obj); | |
3644 | return Py_BuildValue((char *)""); | |
3645 | } | |
3646 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 3647 | PyObject *resultobj; |
093d3ff1 RD |
3648 | wxColour *arg1 = 0 ; |
3649 | int arg2 = (int) wxSOLID ; | |
3650 | wxBrush *result; | |
3651 | wxColour temp1 ; | |
d14a1e28 | 3652 | PyObject * obj0 = 0 ; |
093d3ff1 | 3653 | PyObject * obj1 = 0 ; |
d14a1e28 | 3654 | char *kwnames[] = { |
093d3ff1 | 3655 | (char *) "colour",(char *) "style", NULL |
d14a1e28 RD |
3656 | }; |
3657 | ||
093d3ff1 RD |
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
3659 | { | |
3660 | arg1 = &temp1; | |
3661 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3662 | } | |
3663 | if (obj1) { | |
3664 | { | |
3665 | arg2 = (int)(SWIG_As_int(obj1)); | |
3666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3667 | } | |
3668 | } | |
d14a1e28 | 3669 | { |
093d3ff1 | 3670 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3672 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); |
d14a1e28 RD |
3673 | |
3674 | wxPyEndAllowThreads(__tstate); | |
3675 | if (PyErr_Occurred()) SWIG_fail; | |
3676 | } | |
093d3ff1 | 3677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
3678 | return resultobj; |
3679 | fail: | |
3680 | return NULL; | |
3681 | } | |
3682 | ||
3683 | ||
d04418a7 RD |
3684 | static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
3685 | PyObject *resultobj; | |
3686 | wxBitmap *arg1 = 0 ; | |
3687 | wxBrush *result; | |
3688 | PyObject * obj0 = 0 ; | |
3689 | char *kwnames[] = { | |
3690 | (char *) "stippleBitmap", NULL | |
3691 | }; | |
3692 | ||
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail; | |
3694 | { | |
3695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3697 | if (arg1 == NULL) { | |
3698 | SWIG_null_ref("wxBitmap"); | |
3699 | } | |
3700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3701 | } | |
3702 | { | |
3703 | if (!wxPyCheckForApp()) SWIG_fail; | |
3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3705 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
3706 | ||
3707 | wxPyEndAllowThreads(__tstate); | |
3708 | if (PyErr_Occurred()) SWIG_fail; | |
3709 | } | |
3710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
3711 | return resultobj; | |
3712 | fail: | |
3713 | return NULL; | |
3714 | } | |
3715 | ||
3716 | ||
093d3ff1 | 3717 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3718 | PyObject *resultobj; |
093d3ff1 | 3719 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 RD |
3720 | PyObject * obj0 = 0 ; |
3721 | char *kwnames[] = { | |
3722 | (char *) "self", NULL | |
3723 | }; | |
3724 | ||
093d3ff1 RD |
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; |
3726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3728 | { |
3729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3730 | delete arg1; |
d14a1e28 RD |
3731 | |
3732 | wxPyEndAllowThreads(__tstate); | |
3733 | if (PyErr_Occurred()) SWIG_fail; | |
3734 | } | |
093d3ff1 | 3735 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3736 | return resultobj; |
3737 | fail: | |
3738 | return NULL; | |
3739 | } | |
3740 | ||
3741 | ||
093d3ff1 | 3742 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b | 3743 | PyObject *resultobj; |
093d3ff1 RD |
3744 | wxBrush *arg1 = (wxBrush *) 0 ; |
3745 | wxColour *arg2 = 0 ; | |
3746 | wxColour temp2 ; | |
b2df227b | 3747 | PyObject * obj0 = 0 ; |
093d3ff1 | 3748 | PyObject * obj1 = 0 ; |
b2df227b | 3749 | char *kwnames[] = { |
093d3ff1 | 3750 | (char *) "self",(char *) "col", NULL |
b2df227b RD |
3751 | }; |
3752 | ||
093d3ff1 RD |
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3756 | { | |
3757 | arg2 = &temp2; | |
3758 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3759 | } | |
b2df227b RD |
3760 | { |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3762 | (arg1)->SetColour((wxColour const &)*arg2); |
b2df227b RD |
3763 | |
3764 | wxPyEndAllowThreads(__tstate); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
093d3ff1 | 3767 | Py_INCREF(Py_None); resultobj = Py_None; |
b2df227b RD |
3768 | return resultobj; |
3769 | fail: | |
3770 | return NULL; | |
3771 | } | |
3772 | ||
3773 | ||
093d3ff1 | 3774 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3775 | PyObject *resultobj; |
093d3ff1 RD |
3776 | wxBrush *arg1 = (wxBrush *) 0 ; |
3777 | int arg2 ; | |
d14a1e28 | 3778 | PyObject * obj0 = 0 ; |
093d3ff1 | 3779 | PyObject * obj1 = 0 ; |
d14a1e28 | 3780 | char *kwnames[] = { |
093d3ff1 | 3781 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
3782 | }; |
3783 | ||
093d3ff1 RD |
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3787 | { | |
3788 | arg2 = (int)(SWIG_As_int(obj1)); | |
3789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3790 | } | |
d14a1e28 RD |
3791 | { |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3793 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
3794 | |
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
093d3ff1 | 3798 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3799 | return resultobj; |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
093d3ff1 | 3805 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3806 | PyObject *resultobj; |
093d3ff1 RD |
3807 | wxBrush *arg1 = (wxBrush *) 0 ; |
3808 | wxBitmap *arg2 = 0 ; | |
d14a1e28 | 3809 | PyObject * obj0 = 0 ; |
093d3ff1 | 3810 | PyObject * obj1 = 0 ; |
d14a1e28 | 3811 | char *kwnames[] = { |
093d3ff1 | 3812 | (char *) "self",(char *) "stipple", NULL |
d14a1e28 RD |
3813 | }; |
3814 | ||
093d3ff1 RD |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; |
3816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3818 | { | |
3819 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3821 | if (arg2 == NULL) { | |
3822 | SWIG_null_ref("wxBitmap"); | |
3823 | } | |
3824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3825 | } | |
d14a1e28 RD |
3826 | { |
3827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3828 | (arg1)->SetStipple((wxBitmap const &)*arg2); |
d14a1e28 RD |
3829 | |
3830 | wxPyEndAllowThreads(__tstate); | |
3831 | if (PyErr_Occurred()) SWIG_fail; | |
3832 | } | |
093d3ff1 | 3833 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3834 | return resultobj; |
3835 | fail: | |
3836 | return NULL; | |
3837 | } | |
3838 | ||
3839 | ||
093d3ff1 | 3840 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3841 | PyObject *resultobj; |
093d3ff1 RD |
3842 | wxBrush *arg1 = (wxBrush *) 0 ; |
3843 | wxColour result; | |
d14a1e28 | 3844 | PyObject * obj0 = 0 ; |
d14a1e28 | 3845 | char *kwnames[] = { |
093d3ff1 | 3846 | (char *) "self", NULL |
d14a1e28 RD |
3847 | }; |
3848 | ||
093d3ff1 RD |
3849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; |
3850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3852 | { |
3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3854 | result = ((wxBrush const *)arg1)->GetColour(); |
d14a1e28 RD |
3855 | |
3856 | wxPyEndAllowThreads(__tstate); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
093d3ff1 RD |
3859 | { |
3860 | wxColour * resultptr; | |
3861 | resultptr = new wxColour((wxColour &)(result)); | |
3862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
3863 | } | |
d14a1e28 RD |
3864 | return resultobj; |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
093d3ff1 | 3870 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3871 | PyObject *resultobj; |
093d3ff1 RD |
3872 | wxBrush *arg1 = (wxBrush *) 0 ; |
3873 | int result; | |
d14a1e28 | 3874 | PyObject * obj0 = 0 ; |
d14a1e28 | 3875 | char *kwnames[] = { |
093d3ff1 | 3876 | (char *) "self", NULL |
d14a1e28 RD |
3877 | }; |
3878 | ||
093d3ff1 RD |
3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; |
3880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3882 | { |
3883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3884 | result = (int)((wxBrush const *)arg1)->GetStyle(); |
d14a1e28 RD |
3885 | |
3886 | wxPyEndAllowThreads(__tstate); | |
3887 | if (PyErr_Occurred()) SWIG_fail; | |
3888 | } | |
093d3ff1 RD |
3889 | { |
3890 | resultobj = SWIG_From_int((int)(result)); | |
3891 | } | |
d14a1e28 RD |
3892 | return resultobj; |
3893 | fail: | |
3894 | return NULL; | |
3895 | } | |
3896 | ||
3897 | ||
093d3ff1 | 3898 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3899 | PyObject *resultobj; |
093d3ff1 RD |
3900 | wxBrush *arg1 = (wxBrush *) 0 ; |
3901 | wxBitmap *result; | |
d14a1e28 | 3902 | PyObject * obj0 = 0 ; |
d14a1e28 | 3903 | char *kwnames[] = { |
093d3ff1 | 3904 | (char *) "self", NULL |
d14a1e28 RD |
3905 | }; |
3906 | ||
093d3ff1 RD |
3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; |
3908 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3909 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3910 | { |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3912 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); |
d14a1e28 RD |
3913 | |
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
093d3ff1 | 3917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
3918 | return resultobj; |
3919 | fail: | |
3920 | return NULL; | |
3921 | } | |
3922 | ||
3923 | ||
093d3ff1 | 3924 | static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3925 | PyObject *resultobj; |
093d3ff1 | 3926 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 | 3927 | bool result; |
d14a1e28 | 3928 | PyObject * obj0 = 0 ; |
d14a1e28 | 3929 | char *kwnames[] = { |
093d3ff1 | 3930 | (char *) "self", NULL |
d14a1e28 RD |
3931 | }; |
3932 | ||
093d3ff1 RD |
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail; |
3934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3936 | { |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3938 | result = (bool)((wxBrush const *)arg1)->IsHatch(); |
d14a1e28 RD |
3939 | |
3940 | wxPyEndAllowThreads(__tstate); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | } | |
4f89f6a3 RD |
3943 | { |
3944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3945 | } | |
d14a1e28 RD |
3946 | return resultobj; |
3947 | fail: | |
d14a1e28 RD |
3948 | return NULL; |
3949 | } | |
3950 | ||
3951 | ||
093d3ff1 | 3952 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3953 | PyObject *resultobj; |
093d3ff1 | 3954 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 | 3955 | bool result; |
d14a1e28 | 3956 | PyObject * obj0 = 0 ; |
d14a1e28 | 3957 | char *kwnames[] = { |
093d3ff1 | 3958 | (char *) "self", NULL |
d14a1e28 RD |
3959 | }; |
3960 | ||
093d3ff1 RD |
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; |
3962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3964 | { |
3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3966 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
3967 | |
3968 | wxPyEndAllowThreads(__tstate); | |
3969 | if (PyErr_Occurred()) SWIG_fail; | |
3970 | } | |
4f89f6a3 RD |
3971 | { |
3972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3973 | } | |
d14a1e28 RD |
3974 | return resultobj; |
3975 | fail: | |
d14a1e28 RD |
3976 | return NULL; |
3977 | } | |
3978 | ||
3979 | ||
093d3ff1 RD |
3980 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
3981 | PyObject *obj; | |
3982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3983 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
3984 | Py_INCREF(obj); | |
3985 | return Py_BuildValue((char *)""); | |
3986 | } | |
3987 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
d3b6e4ff | 3988 | PyObject *resultobj; |
093d3ff1 RD |
3989 | wxString *arg1 = 0 ; |
3990 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
3991 | wxBitmap *result; | |
3992 | bool temp1 = false ; | |
d3b6e4ff | 3993 | PyObject * obj0 = 0 ; |
093d3ff1 | 3994 | PyObject * obj1 = 0 ; |
d3b6e4ff | 3995 | char *kwnames[] = { |
093d3ff1 | 3996 | (char *) "name",(char *) "type", NULL |
d3b6e4ff RD |
3997 | }; |
3998 | ||
093d3ff1 RD |
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
4000 | { | |
4001 | arg1 = wxString_in_helper(obj0); | |
4002 | if (arg1 == NULL) SWIG_fail; | |
4003 | temp1 = true; | |
4004 | } | |
4005 | if (obj1) { | |
4006 | { | |
4007 | arg2 = (wxBitmapType)(SWIG_As_int(obj1)); | |
4008 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4009 | } | |
4010 | } | |
d3b6e4ff | 4011 | { |
093d3ff1 | 4012 | if (!wxPyCheckForApp()) SWIG_fail; |
d3b6e4ff | 4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4014 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); |
d3b6e4ff RD |
4015 | |
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
093d3ff1 RD |
4019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
4020 | { | |
4021 | if (temp1) | |
4022 | delete arg1; | |
4023 | } | |
d3b6e4ff RD |
4024 | return resultobj; |
4025 | fail: | |
093d3ff1 RD |
4026 | { |
4027 | if (temp1) | |
4028 | delete arg1; | |
4029 | } | |
d3b6e4ff RD |
4030 | return NULL; |
4031 | } | |
4032 | ||
4033 | ||
093d3ff1 | 4034 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4035 | PyObject *resultobj; |
4036 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
d14a1e28 | 4037 | PyObject * obj0 = 0 ; |
d14a1e28 | 4038 | char *kwnames[] = { |
093d3ff1 | 4039 | (char *) "self", NULL |
d14a1e28 RD |
4040 | }; |
4041 | ||
093d3ff1 RD |
4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; |
4043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4045 | { |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4047 | delete arg1; |
d14a1e28 RD |
4048 | |
4049 | wxPyEndAllowThreads(__tstate); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | } | |
093d3ff1 | 4052 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4053 | return resultobj; |
4054 | fail: | |
4055 | return NULL; | |
4056 | } | |
4057 | ||
4058 | ||
093d3ff1 | 4059 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4060 | PyObject *resultobj; |
093d3ff1 | 4061 | int arg1 ; |
d14a1e28 | 4062 | int arg2 ; |
093d3ff1 RD |
4063 | int arg3 = (int) -1 ; |
4064 | wxBitmap *result; | |
d14a1e28 | 4065 | PyObject * obj0 = 0 ; |
994141e6 | 4066 | PyObject * obj1 = 0 ; |
093d3ff1 | 4067 | PyObject * obj2 = 0 ; |
d14a1e28 | 4068 | char *kwnames[] = { |
093d3ff1 | 4069 | (char *) "width",(char *) "height",(char *) "depth", NULL |
d14a1e28 RD |
4070 | }; |
4071 | ||
093d3ff1 RD |
4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4073 | { | |
4074 | arg1 = (int)(SWIG_As_int(obj0)); | |
4075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4076 | } | |
4077 | { | |
4078 | arg2 = (int)(SWIG_As_int(obj1)); | |
4079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4080 | } | |
4081 | if (obj2) { | |
4082 | { | |
4083 | arg3 = (int)(SWIG_As_int(obj2)); | |
4084 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4085 | } | |
4086 | } | |
d14a1e28 | 4087 | { |
093d3ff1 | 4088 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4090 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); |
d14a1e28 RD |
4091 | |
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
093d3ff1 | 4095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4096 | return resultobj; |
4097 | fail: | |
4098 | return NULL; | |
4099 | } | |
4100 | ||
4101 | ||
093d3ff1 | 4102 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4103 | PyObject *resultobj; |
093d3ff1 RD |
4104 | wxIcon *arg1 = 0 ; |
4105 | wxBitmap *result; | |
d14a1e28 RD |
4106 | PyObject * obj0 = 0 ; |
4107 | char *kwnames[] = { | |
093d3ff1 | 4108 | (char *) "icon", NULL |
d14a1e28 RD |
4109 | }; |
4110 | ||
093d3ff1 RD |
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; |
4112 | { | |
4113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
4114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4115 | if (arg1 == NULL) { | |
4116 | SWIG_null_ref("wxIcon"); | |
4117 | } | |
4118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4119 | } | |
d14a1e28 | 4120 | { |
093d3ff1 | 4121 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4123 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); |
d14a1e28 RD |
4124 | |
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
093d3ff1 | 4128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4129 | return resultobj; |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
093d3ff1 | 4135 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4136 | PyObject *resultobj; |
093d3ff1 RD |
4137 | wxImage *arg1 = 0 ; |
4138 | int arg2 = (int) -1 ; | |
4139 | wxBitmap *result; | |
d14a1e28 | 4140 | PyObject * obj0 = 0 ; |
994141e6 | 4141 | PyObject * obj1 = 0 ; |
d14a1e28 | 4142 | char *kwnames[] = { |
093d3ff1 | 4143 | (char *) "image",(char *) "depth", NULL |
d14a1e28 RD |
4144 | }; |
4145 | ||
093d3ff1 RD |
4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
4147 | { | |
4148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
4149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4150 | if (arg1 == NULL) { | |
4151 | SWIG_null_ref("wxImage"); | |
4152 | } | |
4153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4154 | } | |
4155 | if (obj1) { | |
4156 | { | |
4157 | arg2 = (int)(SWIG_As_int(obj1)); | |
4158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4159 | } | |
4160 | } | |
d14a1e28 | 4161 | { |
093d3ff1 | 4162 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4164 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); |
d14a1e28 RD |
4165 | |
4166 | wxPyEndAllowThreads(__tstate); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | } | |
093d3ff1 | 4169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4170 | return resultobj; |
4171 | fail: | |
4172 | return NULL; | |
4173 | } | |
4174 | ||
4175 | ||
093d3ff1 | 4176 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b | 4177 | PyObject *resultobj; |
093d3ff1 RD |
4178 | PyObject *arg1 = (PyObject *) 0 ; |
4179 | wxBitmap *result; | |
b2df227b | 4180 | PyObject * obj0 = 0 ; |
b2df227b | 4181 | char *kwnames[] = { |
093d3ff1 | 4182 | (char *) "listOfStrings", NULL |
b2df227b RD |
4183 | }; |
4184 | ||
093d3ff1 RD |
4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; |
4186 | arg1 = obj0; | |
b2df227b | 4187 | { |
093d3ff1 | 4188 | if (!wxPyCheckForApp()) SWIG_fail; |
b2df227b | 4189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4190 | result = (wxBitmap *)new_wxBitmap(arg1); |
b2df227b RD |
4191 | |
4192 | wxPyEndAllowThreads(__tstate); | |
4193 | if (PyErr_Occurred()) SWIG_fail; | |
4194 | } | |
093d3ff1 | 4195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
b2df227b RD |
4196 | return resultobj; |
4197 | fail: | |
4198 | return NULL; | |
4199 | } | |
4200 | ||
4201 | ||
093d3ff1 | 4202 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 | 4203 | PyObject *resultobj; |
093d3ff1 RD |
4204 | PyObject *arg1 = (PyObject *) 0 ; |
4205 | int arg2 ; | |
4206 | int arg3 ; | |
4207 | int arg4 = (int) 1 ; | |
4208 | wxBitmap *result; | |
4276dc52 RD |
4209 | PyObject * obj0 = 0 ; |
4210 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
4211 | PyObject * obj2 = 0 ; |
4212 | PyObject * obj3 = 0 ; | |
4276dc52 | 4213 | char *kwnames[] = { |
093d3ff1 | 4214 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL |
4276dc52 RD |
4215 | }; |
4216 | ||
093d3ff1 RD |
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4218 | arg1 = obj0; | |
4276dc52 | 4219 | { |
093d3ff1 RD |
4220 | arg2 = (int)(SWIG_As_int(obj1)); |
4221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4222 | } | |
4223 | { | |
4224 | arg3 = (int)(SWIG_As_int(obj2)); | |
4225 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4226 | } | |
4227 | if (obj3) { | |
4228 | { | |
4229 | arg4 = (int)(SWIG_As_int(obj3)); | |
4230 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4231 | } | |
4232 | } | |
4233 | { | |
4234 | if (!wxPyCheckForApp()) SWIG_fail; | |
4276dc52 | 4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4236 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); |
4276dc52 RD |
4237 | |
4238 | wxPyEndAllowThreads(__tstate); | |
4239 | if (PyErr_Occurred()) SWIG_fail; | |
4240 | } | |
093d3ff1 | 4241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
4276dc52 RD |
4242 | return resultobj; |
4243 | fail: | |
4244 | return NULL; | |
4245 | } | |
4246 | ||
4247 | ||
093d3ff1 | 4248 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
4249 | PyObject *resultobj; |
4250 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
4276dc52 RD |
4251 | bool result; |
4252 | PyObject * obj0 = 0 ; | |
4276dc52 | 4253 | char *kwnames[] = { |
093d3ff1 | 4254 | (char *) "self", NULL |
4276dc52 RD |
4255 | }; |
4256 | ||
093d3ff1 RD |
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; |
4258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
4260 | { |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4262 | result = (bool)(arg1)->Ok(); |
4276dc52 RD |
4263 | |
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4f89f6a3 RD |
4267 | { |
4268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4269 | } | |
4276dc52 RD |
4270 | return resultobj; |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
093d3ff1 | 4276 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4277 | PyObject *resultobj; |
093d3ff1 RD |
4278 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4279 | int result; | |
d14a1e28 | 4280 | PyObject * obj0 = 0 ; |
d14a1e28 | 4281 | char *kwnames[] = { |
093d3ff1 | 4282 | (char *) "self", NULL |
d14a1e28 RD |
4283 | }; |
4284 | ||
093d3ff1 RD |
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; |
4286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4288 | { |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4290 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
4291 | |
4292 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4293 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4294 | } |
093d3ff1 RD |
4295 | { |
4296 | resultobj = SWIG_From_int((int)(result)); | |
4297 | } | |
d14a1e28 RD |
4298 | return resultobj; |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
093d3ff1 | 4304 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4305 | PyObject *resultobj; |
093d3ff1 RD |
4306 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4307 | int result; | |
d14a1e28 RD |
4308 | PyObject * obj0 = 0 ; |
4309 | char *kwnames[] = { | |
093d3ff1 | 4310 | (char *) "self", NULL |
d14a1e28 RD |
4311 | }; |
4312 | ||
093d3ff1 RD |
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; |
4314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
4316 | { |
4317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4318 | result = (int)(arg1)->GetHeight(); |
994141e6 RD |
4319 | |
4320 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4321 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4322 | } |
d14a1e28 | 4323 | { |
093d3ff1 | 4324 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
4325 | } |
4326 | return resultobj; | |
4327 | fail: | |
d14a1e28 RD |
4328 | return NULL; |
4329 | } | |
4330 | ||
4331 | ||
093d3ff1 | 4332 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4333 | PyObject *resultobj; |
093d3ff1 RD |
4334 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4335 | int result; | |
d14a1e28 RD |
4336 | PyObject * obj0 = 0 ; |
4337 | char *kwnames[] = { | |
4338 | (char *) "self", NULL | |
4339 | }; | |
4340 | ||
093d3ff1 RD |
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; |
4342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4344 | { |
4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4346 | result = (int)(arg1)->GetDepth(); |
d14a1e28 RD |
4347 | |
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
093d3ff1 RD |
4351 | { |
4352 | resultobj = SWIG_From_int((int)(result)); | |
4353 | } | |
d14a1e28 RD |
4354 | return resultobj; |
4355 | fail: | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
093d3ff1 | 4360 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4361 | PyObject *resultobj; |
093d3ff1 RD |
4362 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4363 | wxSize result; | |
4364 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4365 | char *kwnames[] = { |
093d3ff1 | 4366 | (char *) "self", NULL |
d14a1e28 RD |
4367 | }; |
4368 | ||
093d3ff1 RD |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; |
4370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4372 | { |
4373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4374 | result = wxBitmap_GetSize(arg1); |
d14a1e28 RD |
4375 | |
4376 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4377 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4378 | } |
093d3ff1 RD |
4379 | { |
4380 | wxSize * resultptr; | |
4381 | resultptr = new wxSize((wxSize &)(result)); | |
4382 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4383 | } | |
d14a1e28 RD |
4384 | return resultobj; |
4385 | fail: | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
093d3ff1 | 4390 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4391 | PyObject *resultobj; |
093d3ff1 RD |
4392 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4393 | SwigValueWrapper<wxImage > result; | |
d14a1e28 RD |
4394 | PyObject * obj0 = 0 ; |
4395 | char *kwnames[] = { | |
093d3ff1 | 4396 | (char *) "self", NULL |
d14a1e28 RD |
4397 | }; |
4398 | ||
093d3ff1 RD |
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; |
4400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4402 | { |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4404 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
d14a1e28 RD |
4405 | |
4406 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4407 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4408 | } |
093d3ff1 RD |
4409 | { |
4410 | wxImage * resultptr; | |
4411 | resultptr = new wxImage((wxImage &)(result)); | |
4412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
4413 | } | |
d14a1e28 RD |
4414 | return resultobj; |
4415 | fail: | |
4416 | return NULL; | |
4417 | } | |
4418 | ||
4419 | ||
093d3ff1 | 4420 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4421 | PyObject *resultobj; |
093d3ff1 RD |
4422 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4423 | wxMask *result; | |
d14a1e28 RD |
4424 | PyObject * obj0 = 0 ; |
4425 | char *kwnames[] = { | |
093d3ff1 | 4426 | (char *) "self", NULL |
d14a1e28 RD |
4427 | }; |
4428 | ||
093d3ff1 RD |
4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; |
4430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4432 | { |
4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4434 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
d14a1e28 RD |
4435 | |
4436 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4437 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4438 | } |
093d3ff1 | 4439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
4440 | return resultobj; |
4441 | fail: | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
093d3ff1 | 4446 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4447 | PyObject *resultobj; |
093d3ff1 RD |
4448 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4449 | wxMask *arg2 = (wxMask *) 0 ; | |
d14a1e28 | 4450 | PyObject * obj0 = 0 ; |
093d3ff1 | 4451 | PyObject * obj1 = 0 ; |
d14a1e28 | 4452 | char *kwnames[] = { |
093d3ff1 | 4453 | (char *) "self",(char *) "mask", NULL |
d14a1e28 RD |
4454 | }; |
4455 | ||
093d3ff1 RD |
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; |
4457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4459 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0); | |
4460 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
4461 | { |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4463 | (arg1)->SetMask(arg2); |
d14a1e28 RD |
4464 | |
4465 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4466 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4467 | } |
093d3ff1 | 4468 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4469 | return resultobj; |
4470 | fail: | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
093d3ff1 | 4475 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4476 | PyObject *resultobj; |
093d3ff1 RD |
4477 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4478 | wxColour *arg2 = 0 ; | |
4479 | wxColour temp2 ; | |
4480 | PyObject * obj0 = 0 ; | |
4481 | PyObject * obj1 = 0 ; | |
4482 | char *kwnames[] = { | |
4483 | (char *) "self",(char *) "colour", NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
4487 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4488 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4489 | { | |
4490 | arg2 = &temp2; | |
4491 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4492 | } | |
4493 | { | |
4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4495 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
4496 | ||
4497 | wxPyEndAllowThreads(__tstate); | |
4498 | if (PyErr_Occurred()) SWIG_fail; | |
4499 | } | |
4500 | Py_INCREF(Py_None); resultobj = Py_None; | |
4501 | return resultobj; | |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
4510 | wxRect *arg2 = 0 ; | |
4511 | SwigValueWrapper<wxBitmap > result; | |
4512 | wxRect temp2 ; | |
4513 | PyObject * obj0 = 0 ; | |
4514 | PyObject * obj1 = 0 ; | |
4515 | char *kwnames[] = { | |
4516 | (char *) "self",(char *) "rect", NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4522 | { | |
4523 | arg2 = &temp2; | |
4524 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4525 | } | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
4533 | { | |
4534 | wxBitmap * resultptr; | |
4535 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
4536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4537 | } | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
d14a1e28 | 4547 | wxString *arg2 = 0 ; |
093d3ff1 RD |
4548 | wxBitmapType arg3 ; |
4549 | wxPalette *arg4 = (wxPalette *) NULL ; | |
d14a1e28 | 4550 | bool result; |
ae8162c8 | 4551 | bool temp2 = false ; |
d14a1e28 RD |
4552 | PyObject * obj0 = 0 ; |
4553 | PyObject * obj1 = 0 ; | |
994141e6 | 4554 | PyObject * obj2 = 0 ; |
093d3ff1 | 4555 | PyObject * obj3 = 0 ; |
d14a1e28 | 4556 | char *kwnames[] = { |
093d3ff1 | 4557 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL |
d14a1e28 RD |
4558 | }; |
4559 | ||
093d3ff1 RD |
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4563 | { |
4564 | arg2 = wxString_in_helper(obj1); | |
4565 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4566 | temp2 = true; |
d14a1e28 | 4567 | } |
093d3ff1 RD |
4568 | { |
4569 | arg3 = (wxBitmapType)(SWIG_As_int(obj2)); | |
4570 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4571 | } | |
4572 | if (obj3) { | |
4573 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
4574 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4575 | } | |
d14a1e28 RD |
4576 | { |
4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4578 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); |
d14a1e28 RD |
4579 | |
4580 | wxPyEndAllowThreads(__tstate); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4f89f6a3 RD |
4583 | { |
4584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4585 | } | |
d14a1e28 RD |
4586 | { |
4587 | if (temp2) | |
4588 | delete arg2; | |
4589 | } | |
4590 | return resultobj; | |
4591 | fail: | |
4592 | { | |
4593 | if (temp2) | |
4594 | delete arg2; | |
4595 | } | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
093d3ff1 | 4600 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4601 | PyObject *resultobj; |
093d3ff1 RD |
4602 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4603 | wxString *arg2 = 0 ; | |
4604 | wxBitmapType arg3 ; | |
d14a1e28 | 4605 | bool result; |
093d3ff1 | 4606 | bool temp2 = false ; |
d14a1e28 | 4607 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
4608 | PyObject * obj1 = 0 ; |
4609 | PyObject * obj2 = 0 ; | |
d14a1e28 | 4610 | char *kwnames[] = { |
093d3ff1 | 4611 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
4612 | }; |
4613 | ||
093d3ff1 RD |
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4617 | { | |
4618 | arg2 = wxString_in_helper(obj1); | |
4619 | if (arg2 == NULL) SWIG_fail; | |
4620 | temp2 = true; | |
4621 | } | |
4622 | { | |
4623 | arg3 = (wxBitmapType)(SWIG_As_int(obj2)); | |
4624 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4625 | } | |
d14a1e28 RD |
4626 | { |
4627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4628 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
4629 | |
4630 | wxPyEndAllowThreads(__tstate); | |
4631 | if (PyErr_Occurred()) SWIG_fail; | |
4632 | } | |
4f89f6a3 RD |
4633 | { |
4634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4635 | } | |
093d3ff1 RD |
4636 | { |
4637 | if (temp2) | |
4638 | delete arg2; | |
4639 | } | |
d14a1e28 RD |
4640 | return resultobj; |
4641 | fail: | |
093d3ff1 RD |
4642 | { |
4643 | if (temp2) | |
4644 | delete arg2; | |
4645 | } | |
d14a1e28 RD |
4646 | return NULL; |
4647 | } | |
4648 | ||
4649 | ||
093d3ff1 | 4650 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4651 | PyObject *resultobj; |
093d3ff1 RD |
4652 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4653 | wxPalette *result; | |
d14a1e28 RD |
4654 | PyObject * obj0 = 0 ; |
4655 | char *kwnames[] = { | |
4656 | (char *) "self", NULL | |
4657 | }; | |
4658 | ||
093d3ff1 RD |
4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; |
4660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4662 | { |
4663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4664 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
d14a1e28 RD |
4665 | |
4666 | wxPyEndAllowThreads(__tstate); | |
4667 | if (PyErr_Occurred()) SWIG_fail; | |
4668 | } | |
093d3ff1 | 4669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
4670 | return resultobj; |
4671 | fail: | |
4672 | return NULL; | |
4673 | } | |
4674 | ||
4675 | ||
093d3ff1 | 4676 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4677 | PyObject *resultobj; |
093d3ff1 RD |
4678 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4679 | wxIcon *arg2 = 0 ; | |
4680 | bool result; | |
d14a1e28 | 4681 | PyObject * obj0 = 0 ; |
093d3ff1 | 4682 | PyObject * obj1 = 0 ; |
d14a1e28 | 4683 | char *kwnames[] = { |
093d3ff1 | 4684 | (char *) "self",(char *) "icon", NULL |
d14a1e28 RD |
4685 | }; |
4686 | ||
093d3ff1 RD |
4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; |
4688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4690 | { | |
4691 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
4692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4693 | if (arg2 == NULL) { | |
4694 | SWIG_null_ref("wxIcon"); | |
4695 | } | |
4696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4697 | } | |
d14a1e28 RD |
4698 | { |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4700 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
d14a1e28 RD |
4701 | |
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
093d3ff1 RD |
4705 | { |
4706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4707 | } | |
d14a1e28 RD |
4708 | return resultobj; |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
093d3ff1 | 4714 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4715 | PyObject *resultobj; |
093d3ff1 RD |
4716 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4717 | int arg2 ; | |
d14a1e28 | 4718 | PyObject * obj0 = 0 ; |
093d3ff1 | 4719 | PyObject * obj1 = 0 ; |
d14a1e28 | 4720 | char *kwnames[] = { |
093d3ff1 | 4721 | (char *) "self",(char *) "height", NULL |
d14a1e28 RD |
4722 | }; |
4723 | ||
093d3ff1 RD |
4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
4725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4727 | { | |
4728 | arg2 = (int)(SWIG_As_int(obj1)); | |
4729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4730 | } | |
d14a1e28 RD |
4731 | { |
4732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4733 | (arg1)->SetHeight(arg2); |
d14a1e28 RD |
4734 | |
4735 | wxPyEndAllowThreads(__tstate); | |
4736 | if (PyErr_Occurred()) SWIG_fail; | |
4737 | } | |
093d3ff1 | 4738 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4739 | return resultobj; |
4740 | fail: | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
093d3ff1 | 4745 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4746 | PyObject *resultobj; |
093d3ff1 | 4747 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 RD |
4748 | int arg2 ; |
4749 | PyObject * obj0 = 0 ; | |
994141e6 | 4750 | PyObject * obj1 = 0 ; |
d14a1e28 | 4751 | char *kwnames[] = { |
093d3ff1 | 4752 | (char *) "self",(char *) "width", NULL |
d14a1e28 RD |
4753 | }; |
4754 | ||
093d3ff1 RD |
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
4756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4758 | { | |
4759 | arg2 = (int)(SWIG_As_int(obj1)); | |
4760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4761 | } | |
d14a1e28 RD |
4762 | { |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | (arg1)->SetWidth(arg2); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | Py_INCREF(Py_None); resultobj = Py_None; | |
4770 | return resultobj; | |
4771 | fail: | |
4772 | return NULL; | |
4773 | } | |
4774 | ||
4775 | ||
093d3ff1 | 4776 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4777 | PyObject *resultobj; |
093d3ff1 | 4778 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 RD |
4779 | int arg2 ; |
4780 | PyObject * obj0 = 0 ; | |
994141e6 | 4781 | PyObject * obj1 = 0 ; |
d14a1e28 | 4782 | char *kwnames[] = { |
093d3ff1 | 4783 | (char *) "self",(char *) "depth", NULL |
d14a1e28 RD |
4784 | }; |
4785 | ||
093d3ff1 RD |
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
4787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4789 | { | |
4790 | arg2 = (int)(SWIG_As_int(obj1)); | |
4791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4792 | } | |
d14a1e28 RD |
4793 | { |
4794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4795 | (arg1)->SetDepth(arg2); |
d14a1e28 RD |
4796 | |
4797 | wxPyEndAllowThreads(__tstate); | |
4798 | if (PyErr_Occurred()) SWIG_fail; | |
4799 | } | |
4800 | Py_INCREF(Py_None); resultobj = Py_None; | |
4801 | return resultobj; | |
4802 | fail: | |
4803 | return NULL; | |
4804 | } | |
4805 | ||
4806 | ||
093d3ff1 | 4807 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4808 | PyObject *resultobj; |
093d3ff1 RD |
4809 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4810 | wxSize *arg2 = 0 ; | |
4811 | wxSize temp2 ; | |
d14a1e28 | 4812 | PyObject * obj0 = 0 ; |
994141e6 | 4813 | PyObject * obj1 = 0 ; |
d14a1e28 | 4814 | char *kwnames[] = { |
093d3ff1 | 4815 | (char *) "self",(char *) "size", NULL |
d14a1e28 RD |
4816 | }; |
4817 | ||
093d3ff1 RD |
4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; |
4819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4821 | { | |
4822 | arg2 = &temp2; | |
4823 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4824 | } | |
d14a1e28 RD |
4825 | { |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4827 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
4828 | |
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | Py_INCREF(Py_None); resultobj = Py_None; | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
093d3ff1 | 4839 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4840 | PyObject *resultobj; |
093d3ff1 RD |
4841 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4842 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
4843 | bool result; | |
d14a1e28 RD |
4844 | PyObject * obj0 = 0 ; |
4845 | PyObject * obj1 = 0 ; | |
4846 | char *kwnames[] = { | |
093d3ff1 | 4847 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
4848 | }; |
4849 | ||
093d3ff1 RD |
4850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; |
4851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4853 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4854 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
4855 | { |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4857 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
d14a1e28 RD |
4858 | |
4859 | wxPyEndAllowThreads(__tstate); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | } | |
093d3ff1 RD |
4862 | { |
4863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4864 | } | |
d14a1e28 RD |
4865 | return resultobj; |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
093d3ff1 | 4871 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4872 | PyObject *resultobj; |
093d3ff1 RD |
4873 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4874 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
4875 | bool result; | |
d14a1e28 | 4876 | PyObject * obj0 = 0 ; |
994141e6 | 4877 | PyObject * obj1 = 0 ; |
d14a1e28 | 4878 | char *kwnames[] = { |
093d3ff1 | 4879 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
4880 | }; |
4881 | ||
093d3ff1 RD |
4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; |
4883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4885 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
4887 | { |
4888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4889 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); |
d14a1e28 RD |
4890 | |
4891 | wxPyEndAllowThreads(__tstate); | |
4892 | if (PyErr_Occurred()) SWIG_fail; | |
4893 | } | |
7eae615b | 4894 | { |
093d3ff1 | 4895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7eae615b | 4896 | } |
d14a1e28 RD |
4897 | return resultobj; |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
093d3ff1 RD |
4903 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
4904 | PyObject *obj; | |
4905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4906 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
4907 | Py_INCREF(obj); | |
4908 | return Py_BuildValue((char *)""); | |
4909 | } | |
4910 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 4911 | PyObject *resultobj; |
093d3ff1 RD |
4912 | wxBitmap *arg1 = 0 ; |
4913 | wxColour const &arg2_defvalue = wxNullColour ; | |
4914 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4915 | wxMask *result; | |
4916 | wxColour temp2 ; | |
d14a1e28 | 4917 | PyObject * obj0 = 0 ; |
093d3ff1 | 4918 | PyObject * obj1 = 0 ; |
d14a1e28 | 4919 | char *kwnames[] = { |
093d3ff1 | 4920 | (char *) "bitmap",(char *) "colour", NULL |
d14a1e28 RD |
4921 | }; |
4922 | ||
093d3ff1 RD |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
4924 | { | |
4925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4927 | if (arg1 == NULL) { | |
4928 | SWIG_null_ref("wxBitmap"); | |
4929 | } | |
4930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4931 | } | |
4932 | if (obj1) { | |
4933 | { | |
4934 | arg2 = &temp2; | |
4935 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4936 | } | |
4937 | } | |
d14a1e28 | 4938 | { |
093d3ff1 | 4939 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4941 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
4942 | |
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
093d3ff1 | 4946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
4947 | return resultobj; |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
093d3ff1 RD |
4953 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
4954 | PyObject *obj; | |
4955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4956 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
4957 | Py_INCREF(obj); | |
4958 | return Py_BuildValue((char *)""); | |
4959 | } | |
4960 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 4961 | PyObject *resultobj; |
093d3ff1 RD |
4962 | wxString *arg1 = 0 ; |
4963 | wxBitmapType arg2 ; | |
4964 | int arg3 = (int) -1 ; | |
4965 | int arg4 = (int) -1 ; | |
4966 | wxIcon *result; | |
4967 | bool temp1 = false ; | |
d14a1e28 | 4968 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
4969 | PyObject * obj1 = 0 ; |
4970 | PyObject * obj2 = 0 ; | |
4971 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4972 | char *kwnames[] = { |
093d3ff1 | 4973 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
4974 | }; |
4975 | ||
093d3ff1 | 4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 4977 | { |
093d3ff1 RD |
4978 | arg1 = wxString_in_helper(obj0); |
4979 | if (arg1 == NULL) SWIG_fail; | |
4980 | temp1 = true; | |
4981 | } | |
4982 | { | |
4983 | arg2 = (wxBitmapType)(SWIG_As_int(obj1)); | |
4984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4985 | } | |
4986 | if (obj2) { | |
4987 | { | |
4988 | arg3 = (int)(SWIG_As_int(obj2)); | |
4989 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4990 | } | |
4991 | } | |
4992 | if (obj3) { | |
4993 | { | |
4994 | arg4 = (int)(SWIG_As_int(obj3)); | |
4995 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4996 | } | |
4997 | } | |
4998 | { | |
4999 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5001 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
5002 | |
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
093d3ff1 | 5006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
4f89f6a3 | 5007 | { |
093d3ff1 RD |
5008 | if (temp1) |
5009 | delete arg1; | |
4f89f6a3 | 5010 | } |
d14a1e28 RD |
5011 | return resultobj; |
5012 | fail: | |
093d3ff1 RD |
5013 | { |
5014 | if (temp1) | |
5015 | delete arg1; | |
5016 | } | |
d14a1e28 RD |
5017 | return NULL; |
5018 | } | |
5019 | ||
5020 | ||
093d3ff1 | 5021 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5022 | PyObject *resultobj; |
093d3ff1 | 5023 | wxIcon *arg1 = (wxIcon *) 0 ; |
d14a1e28 | 5024 | PyObject * obj0 = 0 ; |
d14a1e28 | 5025 | char *kwnames[] = { |
093d3ff1 | 5026 | (char *) "self", NULL |
d14a1e28 RD |
5027 | }; |
5028 | ||
093d3ff1 RD |
5029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; |
5030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5032 | { |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5034 | delete arg1; |
d14a1e28 RD |
5035 | |
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
5040 | return resultobj; |
5041 | fail: | |
d14a1e28 RD |
5042 | return NULL; |
5043 | } | |
5044 | ||
5045 | ||
093d3ff1 | 5046 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5047 | PyObject *resultobj; |
093d3ff1 | 5048 | wxIcon *result; |
d14a1e28 | 5049 | char *kwnames[] = { |
093d3ff1 | 5050 | NULL |
d14a1e28 RD |
5051 | }; |
5052 | ||
093d3ff1 | 5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; |
d14a1e28 | 5054 | { |
093d3ff1 | 5055 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5057 | result = (wxIcon *)new wxIcon(); |
d14a1e28 RD |
5058 | |
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
093d3ff1 | 5062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5063 | return resultobj; |
5064 | fail: | |
5065 | return NULL; | |
5066 | } | |
5067 | ||
5068 | ||
093d3ff1 | 5069 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5070 | PyObject *resultobj; |
093d3ff1 RD |
5071 | wxIconLocation *arg1 = 0 ; |
5072 | wxIcon *result; | |
d14a1e28 RD |
5073 | PyObject * obj0 = 0 ; |
5074 | char *kwnames[] = { | |
093d3ff1 | 5075 | (char *) "loc", NULL |
d14a1e28 RD |
5076 | }; |
5077 | ||
093d3ff1 RD |
5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; |
5079 | { | |
5080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5082 | if (arg1 == NULL) { | |
5083 | SWIG_null_ref("wxIconLocation"); | |
5084 | } | |
5085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5086 | } | |
d14a1e28 | 5087 | { |
093d3ff1 | 5088 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5090 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); |
d14a1e28 RD |
5091 | |
5092 | wxPyEndAllowThreads(__tstate); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
093d3ff1 | 5095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5096 | return resultobj; |
5097 | fail: | |
5098 | return NULL; | |
5099 | } | |
5100 | ||
5101 | ||
093d3ff1 | 5102 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5103 | PyObject *resultobj; |
093d3ff1 RD |
5104 | wxBitmap *arg1 = 0 ; |
5105 | wxIcon *result; | |
d14a1e28 RD |
5106 | PyObject * obj0 = 0 ; |
5107 | char *kwnames[] = { | |
093d3ff1 | 5108 | (char *) "bmp", NULL |
d14a1e28 RD |
5109 | }; |
5110 | ||
093d3ff1 RD |
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; |
5112 | { | |
5113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5115 | if (arg1 == NULL) { | |
5116 | SWIG_null_ref("wxBitmap"); | |
5117 | } | |
5118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5119 | } | |
d14a1e28 | 5120 | { |
093d3ff1 | 5121 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5123 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); |
d14a1e28 RD |
5124 | |
5125 | wxPyEndAllowThreads(__tstate); | |
5126 | if (PyErr_Occurred()) SWIG_fail; | |
5127 | } | |
093d3ff1 | 5128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5129 | return resultobj; |
5130 | fail: | |
5131 | return NULL; | |
5132 | } | |
5133 | ||
5134 | ||
093d3ff1 | 5135 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5136 | PyObject *resultobj; |
093d3ff1 RD |
5137 | PyObject *arg1 = (PyObject *) 0 ; |
5138 | wxIcon *result; | |
5139 | PyObject * obj0 = 0 ; | |
d14a1e28 | 5140 | char *kwnames[] = { |
093d3ff1 | 5141 | (char *) "listOfStrings", NULL |
d14a1e28 RD |
5142 | }; |
5143 | ||
093d3ff1 RD |
5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; |
5145 | arg1 = obj0; | |
d14a1e28 | 5146 | { |
093d3ff1 | 5147 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5149 | result = (wxIcon *)new_wxIcon(arg1); |
d14a1e28 RD |
5150 | |
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
093d3ff1 | 5154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5155 | return resultobj; |
5156 | fail: | |
5157 | return NULL; | |
5158 | } | |
5159 | ||
5160 | ||
093d3ff1 | 5161 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5162 | PyObject *resultobj; |
093d3ff1 RD |
5163 | wxIcon *arg1 = (wxIcon *) 0 ; |
5164 | wxString *arg2 = 0 ; | |
5165 | wxBitmapType arg3 ; | |
5166 | bool result; | |
5167 | bool temp2 = false ; | |
d14a1e28 | 5168 | PyObject * obj0 = 0 ; |
994141e6 | 5169 | PyObject * obj1 = 0 ; |
093d3ff1 | 5170 | PyObject * obj2 = 0 ; |
d14a1e28 | 5171 | char *kwnames[] = { |
093d3ff1 | 5172 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
5173 | }; |
5174 | ||
093d3ff1 RD |
5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
5176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5178 | { |
093d3ff1 RD |
5179 | arg2 = wxString_in_helper(obj1); |
5180 | if (arg2 == NULL) SWIG_fail; | |
5181 | temp2 = true; | |
5182 | } | |
5183 | { | |
5184 | arg3 = (wxBitmapType)(SWIG_As_int(obj2)); | |
5185 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
5186 | } |
5187 | { | |
5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5189 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
5190 | |
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
d14a1e28 | 5194 | { |
093d3ff1 RD |
5195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
5196 | } | |
5197 | { | |
5198 | if (temp2) | |
5199 | delete arg2; | |
d14a1e28 RD |
5200 | } |
5201 | return resultobj; | |
5202 | fail: | |
5203 | { | |
093d3ff1 RD |
5204 | if (temp2) |
5205 | delete arg2; | |
d14a1e28 RD |
5206 | } |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
093d3ff1 | 5211 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5212 | PyObject *resultobj; |
093d3ff1 RD |
5213 | wxIcon *arg1 = (wxIcon *) 0 ; |
5214 | bool result; | |
d14a1e28 RD |
5215 | PyObject * obj0 = 0 ; |
5216 | char *kwnames[] = { | |
093d3ff1 | 5217 | (char *) "self", NULL |
d14a1e28 RD |
5218 | }; |
5219 | ||
093d3ff1 RD |
5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; |
5221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5223 | { |
5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5225 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
5226 | |
5227 | wxPyEndAllowThreads(__tstate); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
093d3ff1 RD |
5230 | { |
5231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5232 | } | |
d14a1e28 RD |
5233 | return resultobj; |
5234 | fail: | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
093d3ff1 | 5239 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5240 | PyObject *resultobj; |
093d3ff1 RD |
5241 | wxIcon *arg1 = (wxIcon *) 0 ; |
5242 | int result; | |
d14a1e28 RD |
5243 | PyObject * obj0 = 0 ; |
5244 | char *kwnames[] = { | |
5245 | (char *) "self", NULL | |
5246 | }; | |
5247 | ||
093d3ff1 RD |
5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; |
5249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5251 | { |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5253 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5254 | |
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
093d3ff1 RD |
5258 | { |
5259 | resultobj = SWIG_From_int((int)(result)); | |
5260 | } | |
d14a1e28 RD |
5261 | return resultobj; |
5262 | fail: | |
5263 | return NULL; | |
5264 | } | |
5265 | ||
5266 | ||
093d3ff1 | 5267 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5268 | PyObject *resultobj; |
093d3ff1 RD |
5269 | wxIcon *arg1 = (wxIcon *) 0 ; |
5270 | int result; | |
d14a1e28 | 5271 | PyObject * obj0 = 0 ; |
d14a1e28 | 5272 | char *kwnames[] = { |
093d3ff1 | 5273 | (char *) "self", NULL |
d14a1e28 RD |
5274 | }; |
5275 | ||
093d3ff1 RD |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; |
5277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | result = (int)(arg1)->GetHeight(); | |
5282 | ||
5283 | wxPyEndAllowThreads(__tstate); | |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
5285 | } | |
5286 | { | |
5287 | resultobj = SWIG_From_int((int)(result)); | |
d14a1e28 | 5288 | } |
093d3ff1 RD |
5289 | return resultobj; |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
5296 | PyObject *resultobj; | |
5297 | wxIcon *arg1 = (wxIcon *) 0 ; | |
5298 | int result; | |
5299 | PyObject * obj0 = 0 ; | |
5300 | char *kwnames[] = { | |
5301 | (char *) "self", NULL | |
5302 | }; | |
5303 | ||
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
5305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5307 | { |
5308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5309 | result = (int)(arg1)->GetDepth(); |
d14a1e28 RD |
5310 | |
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
093d3ff1 RD |
5314 | { |
5315 | resultobj = SWIG_From_int((int)(result)); | |
5316 | } | |
d14a1e28 RD |
5317 | return resultobj; |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
093d3ff1 | 5323 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5324 | PyObject *resultobj; |
093d3ff1 RD |
5325 | wxIcon *arg1 = (wxIcon *) 0 ; |
5326 | int arg2 ; | |
d14a1e28 RD |
5327 | PyObject * obj0 = 0 ; |
5328 | PyObject * obj1 = 0 ; | |
5329 | char *kwnames[] = { | |
093d3ff1 | 5330 | (char *) "self",(char *) "w", NULL |
d14a1e28 RD |
5331 | }; |
5332 | ||
093d3ff1 RD |
5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
5334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5336 | { |
093d3ff1 RD |
5337 | arg2 = (int)(SWIG_As_int(obj1)); |
5338 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
5339 | } |
5340 | { | |
5341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5342 | (arg1)->SetWidth(arg2); |
d14a1e28 RD |
5343 | |
5344 | wxPyEndAllowThreads(__tstate); | |
5345 | if (PyErr_Occurred()) SWIG_fail; | |
5346 | } | |
5347 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
5348 | return resultobj; |
5349 | fail: | |
093d3ff1 RD |
5350 | return NULL; |
5351 | } | |
5352 | ||
5353 | ||
5354 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
5355 | PyObject *resultobj; | |
5356 | wxIcon *arg1 = (wxIcon *) 0 ; | |
5357 | int arg2 ; | |
5358 | PyObject * obj0 = 0 ; | |
5359 | PyObject * obj1 = 0 ; | |
5360 | char *kwnames[] = { | |
5361 | (char *) "self",(char *) "h", NULL | |
5362 | }; | |
5363 | ||
5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5367 | { |
093d3ff1 RD |
5368 | arg2 = (int)(SWIG_As_int(obj1)); |
5369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 5370 | } |
093d3ff1 RD |
5371 | { |
5372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5373 | (arg1)->SetHeight(arg2); | |
5374 | ||
5375 | wxPyEndAllowThreads(__tstate); | |
5376 | if (PyErr_Occurred()) SWIG_fail; | |
5377 | } | |
5378 | Py_INCREF(Py_None); resultobj = Py_None; | |
5379 | return resultobj; | |
5380 | fail: | |
d14a1e28 RD |
5381 | return NULL; |
5382 | } | |
5383 | ||
5384 | ||
093d3ff1 | 5385 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5386 | PyObject *resultobj; |
093d3ff1 RD |
5387 | wxIcon *arg1 = (wxIcon *) 0 ; |
5388 | int arg2 ; | |
d14a1e28 RD |
5389 | PyObject * obj0 = 0 ; |
5390 | PyObject * obj1 = 0 ; | |
5391 | char *kwnames[] = { | |
093d3ff1 | 5392 | (char *) "self",(char *) "d", NULL |
d14a1e28 RD |
5393 | }; |
5394 | ||
093d3ff1 RD |
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
5396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5398 | { |
093d3ff1 RD |
5399 | arg2 = (int)(SWIG_As_int(obj1)); |
5400 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
5401 | } |
5402 | { | |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5404 | (arg1)->SetDepth(arg2); |
d14a1e28 RD |
5405 | |
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
093d3ff1 RD |
5409 | Py_INCREF(Py_None); resultobj = Py_None; |
5410 | return resultobj; | |
5411 | fail: | |
5412 | return NULL; | |
5413 | } | |
5414 | ||
5415 | ||
5416 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
5417 | PyObject *resultobj; | |
5418 | wxIcon *arg1 = (wxIcon *) 0 ; | |
5419 | wxBitmap *arg2 = 0 ; | |
5420 | PyObject * obj0 = 0 ; | |
5421 | PyObject * obj1 = 0 ; | |
5422 | char *kwnames[] = { | |
5423 | (char *) "self",(char *) "bmp", NULL | |
5424 | }; | |
5425 | ||
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5429 | { | |
5430 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5431 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5432 | if (arg2 == NULL) { | |
5433 | SWIG_null_ref("wxBitmap"); | |
5434 | } | |
5435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5436 | } | |
4276dc52 | 5437 | { |
093d3ff1 RD |
5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5439 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
5440 | ||
5441 | wxPyEndAllowThreads(__tstate); | |
5442 | if (PyErr_Occurred()) SWIG_fail; | |
4276dc52 | 5443 | } |
093d3ff1 | 5444 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
5445 | return resultobj; |
5446 | fail: | |
5447 | return NULL; | |
5448 | } | |
5449 | ||
5450 | ||
093d3ff1 | 5451 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5452 | PyObject *obj; |
5453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 5454 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); |
d14a1e28 RD |
5455 | Py_INCREF(obj); |
5456 | return Py_BuildValue((char *)""); | |
5457 | } | |
093d3ff1 | 5458 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5459 | PyObject *resultobj; |
093d3ff1 RD |
5460 | wxString *arg1 = (wxString *) &wxPyEmptyString ; |
5461 | int arg2 = (int) 0 ; | |
5462 | wxIconLocation *result; | |
ae8162c8 | 5463 | bool temp1 = false ; |
d14a1e28 | 5464 | PyObject * obj0 = 0 ; |
994141e6 | 5465 | PyObject * obj1 = 0 ; |
d14a1e28 | 5466 | char *kwnames[] = { |
093d3ff1 | 5467 | (char *) "filename",(char *) "num", NULL |
d14a1e28 RD |
5468 | }; |
5469 | ||
093d3ff1 RD |
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
5471 | if (obj0) { | |
5472 | { | |
5473 | arg1 = wxString_in_helper(obj0); | |
5474 | if (arg1 == NULL) SWIG_fail; | |
5475 | temp1 = true; | |
5476 | } | |
994141e6 | 5477 | } |
093d3ff1 RD |
5478 | if (obj1) { |
5479 | { | |
5480 | arg2 = (int)(SWIG_As_int(obj1)); | |
5481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5482 | } | |
994141e6 | 5483 | } |
d14a1e28 RD |
5484 | { |
5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5486 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); |
d14a1e28 RD |
5487 | |
5488 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5490 | } |
093d3ff1 | 5491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
5492 | { |
5493 | if (temp1) | |
5494 | delete arg1; | |
5495 | } | |
d14a1e28 RD |
5496 | return resultobj; |
5497 | fail: | |
7eae615b RD |
5498 | { |
5499 | if (temp1) | |
5500 | delete arg1; | |
5501 | } | |
d14a1e28 RD |
5502 | return NULL; |
5503 | } | |
5504 | ||
5505 | ||
093d3ff1 | 5506 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5507 | PyObject *resultobj; |
093d3ff1 | 5508 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
d14a1e28 RD |
5509 | PyObject * obj0 = 0 ; |
5510 | char *kwnames[] = { | |
5511 | (char *) "self", NULL | |
5512 | }; | |
5513 | ||
093d3ff1 RD |
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; |
5515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5517 | { |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | delete arg1; | |
5520 | ||
5521 | wxPyEndAllowThreads(__tstate); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
5523 | } | |
5524 | Py_INCREF(Py_None); resultobj = Py_None; | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
093d3ff1 | 5531 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5532 | PyObject *resultobj; |
093d3ff1 RD |
5533 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5534 | bool result; | |
994141e6 | 5535 | PyObject * obj0 = 0 ; |
d14a1e28 | 5536 | char *kwnames[] = { |
093d3ff1 | 5537 | (char *) "self", NULL |
d14a1e28 RD |
5538 | }; |
5539 | ||
093d3ff1 RD |
5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; |
5541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5543 | { |
5544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5545 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); |
d14a1e28 RD |
5546 | |
5547 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5548 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5549 | } |
093d3ff1 RD |
5550 | { |
5551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5552 | } | |
d14a1e28 RD |
5553 | return resultobj; |
5554 | fail: | |
5555 | return NULL; | |
5556 | } | |
5557 | ||
5558 | ||
093d3ff1 | 5559 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5560 | PyObject *resultobj; |
093d3ff1 RD |
5561 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5562 | wxString *arg2 = 0 ; | |
5563 | bool temp2 = false ; | |
d14a1e28 | 5564 | PyObject * obj0 = 0 ; |
093d3ff1 | 5565 | PyObject * obj1 = 0 ; |
d14a1e28 | 5566 | char *kwnames[] = { |
093d3ff1 | 5567 | (char *) "self",(char *) "filename", NULL |
d14a1e28 RD |
5568 | }; |
5569 | ||
093d3ff1 RD |
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; |
5571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5573 | { | |
5574 | arg2 = wxString_in_helper(obj1); | |
5575 | if (arg2 == NULL) SWIG_fail; | |
5576 | temp2 = true; | |
d14a1e28 RD |
5577 | } |
5578 | { | |
5579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5580 | (arg1)->SetFileName((wxString const &)*arg2); |
d14a1e28 RD |
5581 | |
5582 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5583 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5584 | } |
093d3ff1 RD |
5585 | Py_INCREF(Py_None); resultobj = Py_None; |
5586 | { | |
5587 | if (temp2) | |
5588 | delete arg2; | |
5589 | } | |
d14a1e28 RD |
5590 | return resultobj; |
5591 | fail: | |
093d3ff1 RD |
5592 | { |
5593 | if (temp2) | |
5594 | delete arg2; | |
5595 | } | |
d14a1e28 RD |
5596 | return NULL; |
5597 | } | |
5598 | ||
5599 | ||
093d3ff1 | 5600 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5601 | PyObject *resultobj; |
093d3ff1 RD |
5602 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5603 | wxString *result; | |
d14a1e28 RD |
5604 | PyObject * obj0 = 0 ; |
5605 | char *kwnames[] = { | |
5606 | (char *) "self", NULL | |
5607 | }; | |
5608 | ||
093d3ff1 RD |
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; |
5610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5612 | { |
5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
5614 | { |
5615 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
5616 | result = (wxString *) &_result_ref; | |
5617 | } | |
d14a1e28 RD |
5618 | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
4f89f6a3 | 5622 | { |
093d3ff1 RD |
5623 | #if wxUSE_UNICODE |
5624 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5625 | #else | |
5626 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5627 | #endif | |
4f89f6a3 | 5628 | } |
d14a1e28 RD |
5629 | return resultobj; |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
093d3ff1 | 5635 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5636 | PyObject *resultobj; |
093d3ff1 RD |
5637 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5638 | int arg2 ; | |
994141e6 RD |
5639 | PyObject * obj0 = 0 ; |
5640 | PyObject * obj1 = 0 ; | |
d14a1e28 | 5641 | char *kwnames[] = { |
093d3ff1 | 5642 | (char *) "self",(char *) "num", NULL |
d14a1e28 RD |
5643 | }; |
5644 | ||
093d3ff1 RD |
5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
5646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5648 | { | |
5649 | arg2 = (int)(SWIG_As_int(obj1)); | |
5650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 5651 | } |
d14a1e28 RD |
5652 | { |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5654 | wxIconLocation_SetIndex(arg1,arg2); |
d14a1e28 RD |
5655 | |
5656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5657 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5658 | } |
093d3ff1 | 5659 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
5660 | return resultobj; |
5661 | fail: | |
5662 | return NULL; | |
5663 | } | |
5664 | ||
5665 | ||
093d3ff1 | 5666 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5667 | PyObject *resultobj; |
093d3ff1 RD |
5668 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5669 | int result; | |
e6ffcedd RD |
5670 | PyObject * obj0 = 0 ; |
5671 | char *kwnames[] = { | |
093d3ff1 | 5672 | (char *) "self", NULL |
e6ffcedd RD |
5673 | }; |
5674 | ||
093d3ff1 RD |
5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; |
5676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e6ffcedd | 5678 | { |
e6ffcedd | 5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5680 | result = (int)wxIconLocation_GetIndex(arg1); |
e6ffcedd RD |
5681 | |
5682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5683 | if (PyErr_Occurred()) SWIG_fail; |
e6ffcedd | 5684 | } |
093d3ff1 RD |
5685 | { |
5686 | resultobj = SWIG_From_int((int)(result)); | |
5687 | } | |
e6ffcedd RD |
5688 | return resultobj; |
5689 | fail: | |
5690 | return NULL; | |
5691 | } | |
5692 | ||
5693 | ||
093d3ff1 RD |
5694 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
5695 | PyObject *obj; | |
5696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5697 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
5698 | Py_INCREF(obj); | |
5699 | return Py_BuildValue((char *)""); | |
5700 | } | |
5701 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { | |
e6ffcedd | 5702 | PyObject *resultobj; |
093d3ff1 | 5703 | wxIconBundle *result; |
d14a1e28 | 5704 | char *kwnames[] = { |
093d3ff1 | 5705 | NULL |
d14a1e28 RD |
5706 | }; |
5707 | ||
093d3ff1 | 5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; |
d14a1e28 RD |
5709 | { |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5711 | result = (wxIconBundle *)new wxIconBundle(); |
d14a1e28 RD |
5712 | |
5713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5714 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5715 | } |
093d3ff1 | 5716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
5717 | return resultobj; |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
093d3ff1 | 5723 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5724 | PyObject *resultobj; |
093d3ff1 RD |
5725 | wxString *arg1 = 0 ; |
5726 | long arg2 ; | |
5727 | wxIconBundle *result; | |
5728 | bool temp1 = false ; | |
d14a1e28 | 5729 | PyObject * obj0 = 0 ; |
994141e6 | 5730 | PyObject * obj1 = 0 ; |
d14a1e28 | 5731 | char *kwnames[] = { |
093d3ff1 | 5732 | (char *) "file",(char *) "type", NULL |
d14a1e28 RD |
5733 | }; |
5734 | ||
093d3ff1 | 5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5736 | { |
093d3ff1 RD |
5737 | arg1 = wxString_in_helper(obj0); |
5738 | if (arg1 == NULL) SWIG_fail; | |
5739 | temp1 = true; | |
d14a1e28 | 5740 | } |
093d3ff1 RD |
5741 | { |
5742 | arg2 = (long)(SWIG_As_long(obj1)); | |
5743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 5744 | } |
d14a1e28 RD |
5745 | { |
5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5747 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); |
d14a1e28 RD |
5748 | |
5749 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5750 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5751 | } |
093d3ff1 | 5752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 | 5753 | { |
093d3ff1 RD |
5754 | if (temp1) |
5755 | delete arg1; | |
d14a1e28 RD |
5756 | } |
5757 | return resultobj; | |
5758 | fail: | |
5759 | { | |
093d3ff1 RD |
5760 | if (temp1) |
5761 | delete arg1; | |
d14a1e28 RD |
5762 | } |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
093d3ff1 | 5767 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5768 | PyObject *resultobj; |
093d3ff1 RD |
5769 | wxIcon *arg1 = 0 ; |
5770 | wxIconBundle *result; | |
d14a1e28 RD |
5771 | PyObject * obj0 = 0 ; |
5772 | char *kwnames[] = { | |
093d3ff1 | 5773 | (char *) "icon", NULL |
d14a1e28 RD |
5774 | }; |
5775 | ||
093d3ff1 RD |
5776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; |
5777 | { | |
5778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5780 | if (arg1 == NULL) { | |
5781 | SWIG_null_ref("wxIcon"); | |
5782 | } | |
5783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5784 | } | |
d14a1e28 RD |
5785 | { |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5787 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); |
d14a1e28 RD |
5788 | |
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
093d3ff1 | 5792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
5793 | return resultobj; |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
093d3ff1 | 5799 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5800 | PyObject *resultobj; |
093d3ff1 | 5801 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
d14a1e28 RD |
5802 | PyObject * obj0 = 0 ; |
5803 | char *kwnames[] = { | |
5804 | (char *) "self", NULL | |
5805 | }; | |
5806 | ||
093d3ff1 RD |
5807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; |
5808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5810 | { |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5812 | delete arg1; |
d14a1e28 RD |
5813 | |
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | Py_INCREF(Py_None); resultobj = Py_None; | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
093d3ff1 | 5824 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5825 | PyObject *resultobj; |
093d3ff1 RD |
5826 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
5827 | wxIcon *arg2 = 0 ; | |
d14a1e28 | 5828 | PyObject * obj0 = 0 ; |
994141e6 | 5829 | PyObject * obj1 = 0 ; |
d14a1e28 | 5830 | char *kwnames[] = { |
093d3ff1 | 5831 | (char *) "self",(char *) "icon", NULL |
d14a1e28 RD |
5832 | }; |
5833 | ||
093d3ff1 RD |
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
5835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5837 | { | |
5838 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5840 | if (arg2 == NULL) { | |
5841 | SWIG_null_ref("wxIcon"); | |
5842 | } | |
5843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5844 | } | |
d14a1e28 RD |
5845 | { |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5847 | (arg1)->AddIcon((wxIcon const &)*arg2); |
d14a1e28 RD |
5848 | |
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
093d3ff1 | 5852 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
5853 | return resultobj; |
5854 | fail: | |
5855 | return NULL; | |
5856 | } | |
5857 | ||
5858 | ||
093d3ff1 | 5859 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5860 | PyObject *resultobj; |
093d3ff1 RD |
5861 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
5862 | wxString *arg2 = 0 ; | |
5863 | long arg3 ; | |
5864 | bool temp2 = false ; | |
d14a1e28 | 5865 | PyObject * obj0 = 0 ; |
994141e6 RD |
5866 | PyObject * obj1 = 0 ; |
5867 | PyObject * obj2 = 0 ; | |
d14a1e28 | 5868 | char *kwnames[] = { |
093d3ff1 | 5869 | (char *) "self",(char *) "file",(char *) "type", NULL |
d14a1e28 RD |
5870 | }; |
5871 | ||
093d3ff1 RD |
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
5873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5875 | { | |
5876 | arg2 = wxString_in_helper(obj1); | |
5877 | if (arg2 == NULL) SWIG_fail; | |
5878 | temp2 = true; | |
5879 | } | |
5880 | { | |
5881 | arg3 = (long)(SWIG_As_long(obj2)); | |
5882 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5883 | } | |
d14a1e28 RD |
5884 | { |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5886 | (arg1)->AddIcon((wxString const &)*arg2,arg3); |
d14a1e28 RD |
5887 | |
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
093d3ff1 RD |
5891 | Py_INCREF(Py_None); resultobj = Py_None; |
5892 | { | |
5893 | if (temp2) | |
5894 | delete arg2; | |
5895 | } | |
d14a1e28 RD |
5896 | return resultobj; |
5897 | fail: | |
093d3ff1 RD |
5898 | { |
5899 | if (temp2) | |
5900 | delete arg2; | |
5901 | } | |
d14a1e28 RD |
5902 | return NULL; |
5903 | } | |
5904 | ||
5905 | ||
093d3ff1 | 5906 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 5907 | PyObject *resultobj; |
093d3ff1 RD |
5908 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
5909 | wxSize *arg2 = 0 ; | |
5910 | wxIcon *result; | |
5911 | wxSize temp2 ; | |
d14a1e28 RD |
5912 | PyObject * obj0 = 0 ; |
5913 | PyObject * obj1 = 0 ; | |
5914 | char *kwnames[] = { | |
093d3ff1 | 5915 | (char *) "self",(char *) "size", NULL |
d14a1e28 RD |
5916 | }; |
5917 | ||
093d3ff1 RD |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; |
5919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5921 | { |
5922 | arg2 = &temp2; | |
093d3ff1 | 5923 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
5924 | } |
5925 | { | |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
5927 | { |
5928 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
5929 | result = (wxIcon *) &_result_ref; | |
5930 | } | |
d14a1e28 RD |
5931 | |
5932 | wxPyEndAllowThreads(__tstate); | |
5933 | if (PyErr_Occurred()) SWIG_fail; | |
5934 | } | |
093d3ff1 RD |
5935 | { |
5936 | wxIcon* resultptr = new wxIcon(*result); | |
5937 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
5938 | } | |
d14a1e28 RD |
5939 | return resultobj; |
5940 | fail: | |
5941 | return NULL; | |
5942 | } | |
5943 | ||
5944 | ||
093d3ff1 RD |
5945 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
5946 | PyObject *obj; | |
5947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5948 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
5949 | Py_INCREF(obj); | |
5950 | return Py_BuildValue((char *)""); | |
5951 | } | |
5952 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 5953 | PyObject *resultobj; |
7557b9b5 | 5954 | wxString *arg1 = 0 ; |
093d3ff1 RD |
5955 | long arg2 ; |
5956 | int arg3 = (int) 0 ; | |
5957 | int arg4 = (int) 0 ; | |
5958 | wxCursor *result; | |
5959 | bool temp1 = false ; | |
d14a1e28 RD |
5960 | PyObject * obj0 = 0 ; |
5961 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
5962 | PyObject * obj2 = 0 ; |
5963 | PyObject * obj3 = 0 ; | |
d14a1e28 | 5964 | char *kwnames[] = { |
093d3ff1 | 5965 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
5966 | }; |
5967 | ||
093d3ff1 | 5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5969 | { |
093d3ff1 RD |
5970 | arg1 = wxString_in_helper(obj0); |
5971 | if (arg1 == NULL) SWIG_fail; | |
5972 | temp1 = true; | |
5973 | } | |
5974 | { | |
5975 | arg2 = (long)(SWIG_As_long(obj1)); | |
5976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5977 | } | |
5978 | if (obj2) { | |
5979 | { | |
5980 | arg3 = (int)(SWIG_As_int(obj2)); | |
5981 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5982 | } | |
5983 | } | |
5984 | if (obj3) { | |
5985 | { | |
5986 | arg4 = (int)(SWIG_As_int(obj3)); | |
5987 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5988 | } | |
d14a1e28 RD |
5989 | } |
5990 | { | |
093d3ff1 | 5991 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7557b9b5 | 5993 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); |
d14a1e28 RD |
5994 | |
5995 | wxPyEndAllowThreads(__tstate); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | } | |
093d3ff1 RD |
5998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
5999 | { | |
6000 | if (temp1) | |
6001 | delete arg1; | |
6002 | } | |
d14a1e28 RD |
6003 | return resultobj; |
6004 | fail: | |
093d3ff1 RD |
6005 | { |
6006 | if (temp1) | |
6007 | delete arg1; | |
6008 | } | |
d14a1e28 RD |
6009 | return NULL; |
6010 | } | |
6011 | ||
6012 | ||
093d3ff1 | 6013 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6014 | PyObject *resultobj; |
093d3ff1 | 6015 | wxCursor *arg1 = (wxCursor *) 0 ; |
d14a1e28 RD |
6016 | PyObject * obj0 = 0 ; |
6017 | char *kwnames[] = { | |
093d3ff1 | 6018 | (char *) "self", NULL |
d14a1e28 RD |
6019 | }; |
6020 | ||
093d3ff1 RD |
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; |
6022 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6023 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6024 | { |
6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6026 | delete arg1; |
d14a1e28 RD |
6027 | |
6028 | wxPyEndAllowThreads(__tstate); | |
6029 | if (PyErr_Occurred()) SWIG_fail; | |
6030 | } | |
093d3ff1 | 6031 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6032 | return resultobj; |
6033 | fail: | |
6034 | return NULL; | |
6035 | } | |
6036 | ||
6037 | ||
093d3ff1 | 6038 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6039 | PyObject *resultobj; |
093d3ff1 RD |
6040 | int arg1 ; |
6041 | wxCursor *result; | |
d14a1e28 RD |
6042 | PyObject * obj0 = 0 ; |
6043 | char *kwnames[] = { | |
093d3ff1 | 6044 | (char *) "id", NULL |
d14a1e28 RD |
6045 | }; |
6046 | ||
093d3ff1 RD |
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
6048 | { | |
6049 | arg1 = (int)(SWIG_As_int(obj0)); | |
6050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6051 | } | |
d14a1e28 | 6052 | { |
093d3ff1 | 6053 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6055 | result = (wxCursor *)new wxCursor(arg1); |
d14a1e28 RD |
6056 | |
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
093d3ff1 | 6060 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
6061 | return resultobj; |
6062 | fail: | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
093d3ff1 | 6067 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6068 | PyObject *resultobj; |
093d3ff1 RD |
6069 | wxImage *arg1 = 0 ; |
6070 | wxCursor *result; | |
d14a1e28 RD |
6071 | PyObject * obj0 = 0 ; |
6072 | char *kwnames[] = { | |
093d3ff1 | 6073 | (char *) "image", NULL |
d14a1e28 RD |
6074 | }; |
6075 | ||
093d3ff1 RD |
6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; |
6077 | { | |
6078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
6079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6080 | if (arg1 == NULL) { | |
6081 | SWIG_null_ref("wxImage"); | |
6082 | } | |
6083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6084 | } | |
d14a1e28 | 6085 | { |
093d3ff1 | 6086 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6088 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); |
d14a1e28 RD |
6089 | |
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
093d3ff1 | 6093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
6094 | return resultobj; |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
093d3ff1 | 6100 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6101 | PyObject *resultobj; |
093d3ff1 | 6102 | wxCursor *arg1 = (wxCursor *) 0 ; |
d14a1e28 | 6103 | bool result; |
d14a1e28 | 6104 | PyObject * obj0 = 0 ; |
d14a1e28 | 6105 | char *kwnames[] = { |
093d3ff1 | 6106 | (char *) "self", NULL |
d14a1e28 RD |
6107 | }; |
6108 | ||
093d3ff1 RD |
6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; |
6110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6112 | { |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6114 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
6115 | |
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
4f89f6a3 RD |
6119 | { |
6120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6121 | } | |
d14a1e28 RD |
6122 | return resultobj; |
6123 | fail: | |
6124 | return NULL; | |
6125 | } | |
6126 | ||
6127 | ||
093d3ff1 RD |
6128 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
6129 | PyObject *obj; | |
6130 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6131 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
6132 | Py_INCREF(obj); | |
6133 | return Py_BuildValue((char *)""); | |
6134 | } | |
6135 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 6136 | PyObject *resultobj; |
093d3ff1 RD |
6137 | int arg1 = (int) 0 ; |
6138 | int arg2 = (int) 0 ; | |
6139 | int arg3 = (int) 0 ; | |
6140 | int arg4 = (int) 0 ; | |
6141 | wxRegion *result; | |
d14a1e28 RD |
6142 | PyObject * obj0 = 0 ; |
6143 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6144 | PyObject * obj2 = 0 ; |
6145 | PyObject * obj3 = 0 ; | |
d14a1e28 | 6146 | char *kwnames[] = { |
093d3ff1 | 6147 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
6148 | }; |
6149 | ||
093d3ff1 RD |
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
6151 | if (obj0) { | |
6152 | { | |
6153 | arg1 = (int)(SWIG_As_int(obj0)); | |
6154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6155 | } | |
6156 | } | |
6157 | if (obj1) { | |
6158 | { | |
6159 | arg2 = (int)(SWIG_As_int(obj1)); | |
6160 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6161 | } | |
6162 | } | |
6163 | if (obj2) { | |
6164 | { | |
6165 | arg3 = (int)(SWIG_As_int(obj2)); | |
6166 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6167 | } | |
6168 | } | |
6169 | if (obj3) { | |
6170 | { | |
6171 | arg4 = (int)(SWIG_As_int(obj3)); | |
6172 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6173 | } | |
d14a1e28 RD |
6174 | } |
6175 | { | |
093d3ff1 | 6176 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6178 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
6179 | |
6180 | wxPyEndAllowThreads(__tstate); | |
6181 | if (PyErr_Occurred()) SWIG_fail; | |
6182 | } | |
093d3ff1 | 6183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6184 | return resultobj; |
6185 | fail: | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
093d3ff1 | 6190 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6191 | PyObject *resultobj; |
093d3ff1 RD |
6192 | wxBitmap *arg1 = 0 ; |
6193 | wxRegion *result; | |
d14a1e28 RD |
6194 | PyObject * obj0 = 0 ; |
6195 | char *kwnames[] = { | |
093d3ff1 | 6196 | (char *) "bmp", NULL |
d14a1e28 RD |
6197 | }; |
6198 | ||
093d3ff1 RD |
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; |
6200 | { | |
6201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6203 | if (arg1 == NULL) { | |
6204 | SWIG_null_ref("wxBitmap"); | |
6205 | } | |
6206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6207 | } | |
d14a1e28 | 6208 | { |
093d3ff1 | 6209 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6211 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); |
d14a1e28 RD |
6212 | |
6213 | wxPyEndAllowThreads(__tstate); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | } | |
093d3ff1 | 6216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6217 | return resultobj; |
6218 | fail: | |
6219 | return NULL; | |
6220 | } | |
6221 | ||
6222 | ||
093d3ff1 | 6223 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6224 | PyObject *resultobj; |
093d3ff1 RD |
6225 | wxBitmap *arg1 = 0 ; |
6226 | wxColour *arg2 = 0 ; | |
6227 | int arg3 = (int) 0 ; | |
6228 | wxRegion *result; | |
6229 | wxColour temp2 ; | |
d14a1e28 | 6230 | PyObject * obj0 = 0 ; |
994141e6 RD |
6231 | PyObject * obj1 = 0 ; |
6232 | PyObject * obj2 = 0 ; | |
d14a1e28 | 6233 | char *kwnames[] = { |
093d3ff1 | 6234 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d14a1e28 RD |
6235 | }; |
6236 | ||
093d3ff1 RD |
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6238 | { | |
6239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6241 | if (arg1 == NULL) { | |
6242 | SWIG_null_ref("wxBitmap"); | |
6243 | } | |
6244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6245 | } | |
6246 | { | |
6247 | arg2 = &temp2; | |
6248 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6249 | } | |
6250 | if (obj2) { | |
6251 | { | |
6252 | arg3 = (int)(SWIG_As_int(obj2)); | |
6253 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6254 | } | |
6255 | } | |
d14a1e28 | 6256 | { |
093d3ff1 | 6257 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6259 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); |
d14a1e28 RD |
6260 | |
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
093d3ff1 | 6264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6265 | return resultobj; |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
093d3ff1 | 6271 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6272 | PyObject *resultobj; |
093d3ff1 RD |
6273 | int arg1 ; |
6274 | wxPoint *arg2 = (wxPoint *) 0 ; | |
6275 | int arg3 = (int) wxWINDING_RULE ; | |
6276 | wxRegion *result; | |
d14a1e28 RD |
6277 | PyObject * obj0 = 0 ; |
6278 | PyObject * obj1 = 0 ; | |
6279 | char *kwnames[] = { | |
093d3ff1 | 6280 | (char *) "points",(char *) "fillStyle", NULL |
d14a1e28 RD |
6281 | }; |
6282 | ||
093d3ff1 | 6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6284 | { |
093d3ff1 RD |
6285 | arg2 = wxPoint_LIST_helper(obj0, &arg1); |
6286 | if (arg2 == NULL) SWIG_fail; | |
6287 | } | |
6288 | if (obj1) { | |
6289 | { | |
6290 | arg3 = (int)(SWIG_As_int(obj1)); | |
6291 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6292 | } | |
d14a1e28 RD |
6293 | } |
6294 | { | |
093d3ff1 | 6295 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6297 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); |
d14a1e28 RD |
6298 | |
6299 | wxPyEndAllowThreads(__tstate); | |
6300 | if (PyErr_Occurred()) SWIG_fail; | |
6301 | } | |
093d3ff1 | 6302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
4f89f6a3 | 6303 | { |
093d3ff1 | 6304 | if (arg2) delete [] arg2; |
4f89f6a3 | 6305 | } |
d14a1e28 RD |
6306 | return resultobj; |
6307 | fail: | |
093d3ff1 RD |
6308 | { |
6309 | if (arg2) delete [] arg2; | |
6310 | } | |
d14a1e28 RD |
6311 | return NULL; |
6312 | } | |
6313 | ||
6314 | ||
093d3ff1 | 6315 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6316 | PyObject *resultobj; |
6317 | wxRegion *arg1 = (wxRegion *) 0 ; | |
d14a1e28 | 6318 | PyObject * obj0 = 0 ; |
d14a1e28 | 6319 | char *kwnames[] = { |
093d3ff1 | 6320 | (char *) "self", NULL |
d14a1e28 RD |
6321 | }; |
6322 | ||
093d3ff1 RD |
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; |
6324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6326 | { |
6327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6328 | delete arg1; |
d14a1e28 RD |
6329 | |
6330 | wxPyEndAllowThreads(__tstate); | |
6331 | if (PyErr_Occurred()) SWIG_fail; | |
6332 | } | |
093d3ff1 | 6333 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6334 | return resultobj; |
6335 | fail: | |
6336 | return NULL; | |
6337 | } | |
6338 | ||
6339 | ||
093d3ff1 | 6340 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6341 | PyObject *resultobj; |
6342 | wxRegion *arg1 = (wxRegion *) 0 ; | |
d14a1e28 RD |
6343 | PyObject * obj0 = 0 ; |
6344 | char *kwnames[] = { | |
093d3ff1 | 6345 | (char *) "self", NULL |
d14a1e28 RD |
6346 | }; |
6347 | ||
093d3ff1 RD |
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; |
6349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6351 | { |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6353 | (arg1)->Clear(); |
d14a1e28 RD |
6354 | |
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
093d3ff1 | 6358 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6359 | return resultobj; |
6360 | fail: | |
6361 | return NULL; | |
6362 | } | |
6363 | ||
6364 | ||
093d3ff1 | 6365 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6366 | PyObject *resultobj; |
6367 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 RD |
6368 | int arg2 ; |
6369 | int arg3 ; | |
d14a1e28 | 6370 | bool result; |
d14a1e28 RD |
6371 | PyObject * obj0 = 0 ; |
6372 | PyObject * obj1 = 0 ; | |
093d3ff1 | 6373 | PyObject * obj2 = 0 ; |
d14a1e28 | 6374 | char *kwnames[] = { |
093d3ff1 | 6375 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
6376 | }; |
6377 | ||
093d3ff1 RD |
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 6381 | { |
093d3ff1 RD |
6382 | arg2 = (int)(SWIG_As_int(obj1)); |
6383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6384 | } | |
6385 | { | |
6386 | arg3 = (int)(SWIG_As_int(obj2)); | |
6387 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
6388 | } |
6389 | { | |
6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6391 | result = (bool)(arg1)->Offset(arg2,arg3); |
d14a1e28 RD |
6392 | |
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
4f89f6a3 RD |
6396 | { |
6397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6398 | } | |
d14a1e28 RD |
6399 | return resultobj; |
6400 | fail: | |
6401 | return NULL; | |
6402 | } | |
6403 | ||
6404 | ||
093d3ff1 | 6405 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6406 | PyObject *resultobj; |
6407 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 RD |
6408 | int arg2 ; |
6409 | int arg3 ; | |
6410 | wxRegionContain result; | |
d14a1e28 RD |
6411 | PyObject * obj0 = 0 ; |
6412 | PyObject * obj1 = 0 ; | |
093d3ff1 | 6413 | PyObject * obj2 = 0 ; |
d14a1e28 | 6414 | char *kwnames[] = { |
093d3ff1 | 6415 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
6416 | }; |
6417 | ||
093d3ff1 RD |
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6421 | { | |
6422 | arg2 = (int)(SWIG_As_int(obj1)); | |
6423 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6424 | } | |
6425 | { | |
6426 | arg3 = (int)(SWIG_As_int(obj2)); | |
6427 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
6428 | } |
6429 | { | |
6430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6431 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); |
d14a1e28 RD |
6432 | |
6433 | wxPyEndAllowThreads(__tstate); | |
6434 | if (PyErr_Occurred()) SWIG_fail; | |
6435 | } | |
093d3ff1 | 6436 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6437 | return resultobj; |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
093d3ff1 | 6443 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6444 | PyObject *resultobj; |
6445 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 RD |
6446 | wxPoint *arg2 = 0 ; |
6447 | wxRegionContain result; | |
6448 | wxPoint temp2 ; | |
d14a1e28 | 6449 | PyObject * obj0 = 0 ; |
994141e6 | 6450 | PyObject * obj1 = 0 ; |
d14a1e28 | 6451 | char *kwnames[] = { |
093d3ff1 | 6452 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
6453 | }; |
6454 | ||
093d3ff1 RD |
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; |
6456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6458 | { | |
6459 | arg2 = &temp2; | |
6460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6461 | } | |
d14a1e28 RD |
6462 | { |
6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6464 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); |
d14a1e28 RD |
6465 | |
6466 | wxPyEndAllowThreads(__tstate); | |
6467 | if (PyErr_Occurred()) SWIG_fail; | |
6468 | } | |
093d3ff1 | 6469 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6470 | return resultobj; |
6471 | fail: | |
6472 | return NULL; | |
6473 | } | |
6474 | ||
6475 | ||
093d3ff1 | 6476 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6477 | PyObject *resultobj; |
6478 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6479 | wxRect *arg2 = 0 ; | |
093d3ff1 | 6480 | wxRegionContain result; |
d14a1e28 RD |
6481 | wxRect temp2 ; |
6482 | PyObject * obj0 = 0 ; | |
6483 | PyObject * obj1 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "self",(char *) "rect", NULL | |
6486 | }; | |
6487 | ||
093d3ff1 RD |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; |
6489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6491 | { |
6492 | arg2 = &temp2; | |
6493 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6494 | } | |
6495 | { | |
6496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6497 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); |
d14a1e28 RD |
6498 | |
6499 | wxPyEndAllowThreads(__tstate); | |
6500 | if (PyErr_Occurred()) SWIG_fail; | |
6501 | } | |
093d3ff1 | 6502 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6503 | return resultobj; |
6504 | fail: | |
6505 | return NULL; | |
6506 | } | |
6507 | ||
6508 | ||
093d3ff1 | 6509 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6510 | PyObject *resultobj; |
6511 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 RD |
6512 | int arg2 ; |
6513 | int arg3 ; | |
6514 | int arg4 ; | |
6515 | int arg5 ; | |
6516 | wxRegionContain result; | |
d14a1e28 RD |
6517 | PyObject * obj0 = 0 ; |
6518 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6519 | PyObject * obj2 = 0 ; |
6520 | PyObject * obj3 = 0 ; | |
6521 | PyObject * obj4 = 0 ; | |
d14a1e28 | 6522 | char *kwnames[] = { |
093d3ff1 | 6523 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
6524 | }; |
6525 | ||
093d3ff1 RD |
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6529 | { | |
6530 | arg2 = (int)(SWIG_As_int(obj1)); | |
6531 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6532 | } | |
6533 | { | |
6534 | arg3 = (int)(SWIG_As_int(obj2)); | |
6535 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6536 | } | |
6537 | { | |
6538 | arg4 = (int)(SWIG_As_int(obj3)); | |
6539 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6540 | } | |
6541 | { | |
6542 | arg5 = (int)(SWIG_As_int(obj4)); | |
6543 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
6544 | } |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6547 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
6548 | |
6549 | wxPyEndAllowThreads(__tstate); | |
6550 | if (PyErr_Occurred()) SWIG_fail; | |
6551 | } | |
093d3ff1 | 6552 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6553 | return resultobj; |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
093d3ff1 | 6559 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6560 | PyObject *resultobj; |
6561 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 | 6562 | wxRect result; |
d14a1e28 RD |
6563 | PyObject * obj0 = 0 ; |
6564 | char *kwnames[] = { | |
6565 | (char *) "self", NULL | |
6566 | }; | |
6567 | ||
093d3ff1 RD |
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; |
6569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6571 | { |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6573 | result = (arg1)->GetBox(); |
d14a1e28 RD |
6574 | |
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
6578 | { | |
093d3ff1 RD |
6579 | wxRect * resultptr; |
6580 | resultptr = new wxRect((wxRect &)(result)); | |
6581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
d14a1e28 RD |
6582 | } |
6583 | return resultobj; | |
6584 | fail: | |
6585 | return NULL; | |
6586 | } | |
6587 | ||
6588 | ||
093d3ff1 | 6589 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6590 | PyObject *resultobj; |
6591 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 RD |
6592 | int arg2 ; |
6593 | int arg3 ; | |
6594 | int arg4 ; | |
6595 | int arg5 ; | |
e6ffcedd RD |
6596 | bool result; |
6597 | PyObject * obj0 = 0 ; | |
6598 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6599 | PyObject * obj2 = 0 ; |
6600 | PyObject * obj3 = 0 ; | |
6601 | PyObject * obj4 = 0 ; | |
e6ffcedd | 6602 | char *kwnames[] = { |
093d3ff1 | 6603 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
e6ffcedd RD |
6604 | }; |
6605 | ||
093d3ff1 RD |
6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6609 | { | |
6610 | arg2 = (int)(SWIG_As_int(obj1)); | |
6611 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6612 | } | |
6613 | { | |
6614 | arg3 = (int)(SWIG_As_int(obj2)); | |
6615 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6616 | } | |
6617 | { | |
6618 | arg4 = (int)(SWIG_As_int(obj3)); | |
6619 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6620 | } | |
6621 | { | |
6622 | arg5 = (int)(SWIG_As_int(obj4)); | |
6623 | if (SWIG_arg_fail(5)) SWIG_fail; | |
e6ffcedd RD |
6624 | } |
6625 | { | |
6626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6627 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); |
e6ffcedd RD |
6628 | |
6629 | wxPyEndAllowThreads(__tstate); | |
6630 | if (PyErr_Occurred()) SWIG_fail; | |
6631 | } | |
6632 | { | |
6633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6634 | } | |
6635 | return resultobj; | |
6636 | fail: | |
6637 | return NULL; | |
6638 | } | |
6639 | ||
6640 | ||
093d3ff1 | 6641 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e6ffcedd RD |
6642 | PyObject *resultobj; |
6643 | wxRegion *arg1 = (wxRegion *) 0 ; | |
093d3ff1 | 6644 | wxRect *arg2 = 0 ; |
d14a1e28 | 6645 | bool result; |
093d3ff1 | 6646 | wxRect temp2 ; |
d14a1e28 RD |
6647 | PyObject * obj0 = 0 ; |
6648 | PyObject * obj1 = 0 ; | |
d14a1e28 | 6649 | char *kwnames[] = { |
093d3ff1 | 6650 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
6651 | }; |
6652 | ||
093d3ff1 RD |
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; |
6654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e6ffcedd | 6656 | { |
093d3ff1 RD |
6657 | arg2 = &temp2; |
6658 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 6659 | } |
d14a1e28 RD |
6660 | { |
6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6662 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); |
d14a1e28 RD |
6663 | |
6664 | wxPyEndAllowThreads(__tstate); | |
6665 | if (PyErr_Occurred()) SWIG_fail; | |
6666 | } | |
4f89f6a3 RD |
6667 | { |
6668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6669 | } | |
d14a1e28 RD |
6670 | return resultobj; |
6671 | fail: | |
6672 | return NULL; | |
6673 | } | |
6674 | ||
6675 | ||
093d3ff1 | 6676 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6677 | PyObject *resultobj; |
093d3ff1 RD |
6678 | wxRegion *arg1 = (wxRegion *) 0 ; |
6679 | wxRegion *arg2 = 0 ; | |
6680 | bool result; | |
d14a1e28 | 6681 | PyObject * obj0 = 0 ; |
093d3ff1 | 6682 | PyObject * obj1 = 0 ; |
d14a1e28 | 6683 | char *kwnames[] = { |
093d3ff1 | 6684 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
6685 | }; |
6686 | ||
093d3ff1 RD |
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; |
6688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6690 | { | |
6691 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6693 | if (arg2 == NULL) { | |
6694 | SWIG_null_ref("wxRegion"); | |
6695 | } | |
6696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
6697 | } |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6700 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); |
d14a1e28 RD |
6701 | |
6702 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6703 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6704 | } |
093d3ff1 RD |
6705 | { |
6706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6707 | } | |
d14a1e28 RD |
6708 | return resultobj; |
6709 | fail: | |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
093d3ff1 | 6714 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6715 | PyObject *resultobj; |
093d3ff1 RD |
6716 | wxRegion *arg1 = (wxRegion *) 0 ; |
6717 | bool result; | |
d14a1e28 RD |
6718 | PyObject * obj0 = 0 ; |
6719 | char *kwnames[] = { | |
6720 | (char *) "self", NULL | |
6721 | }; | |
6722 | ||
093d3ff1 RD |
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; |
6724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6726 | { |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6728 | result = (bool)(arg1)->IsEmpty(); |
d14a1e28 RD |
6729 | |
6730 | wxPyEndAllowThreads(__tstate); | |
6731 | if (PyErr_Occurred()) SWIG_fail; | |
6732 | } | |
093d3ff1 RD |
6733 | { |
6734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6735 | } | |
d14a1e28 RD |
6736 | return resultobj; |
6737 | fail: | |
6738 | return NULL; | |
6739 | } | |
6740 | ||
6741 | ||
093d3ff1 | 6742 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6743 | PyObject *resultobj; |
093d3ff1 RD |
6744 | wxRegion *arg1 = (wxRegion *) 0 ; |
6745 | int arg2 ; | |
6746 | int arg3 ; | |
6747 | int arg4 ; | |
6748 | int arg5 ; | |
6749 | bool result; | |
d14a1e28 | 6750 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
6751 | PyObject * obj1 = 0 ; |
6752 | PyObject * obj2 = 0 ; | |
6753 | PyObject * obj3 = 0 ; | |
6754 | PyObject * obj4 = 0 ; | |
d14a1e28 | 6755 | char *kwnames[] = { |
093d3ff1 | 6756 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
6757 | }; |
6758 | ||
093d3ff1 RD |
6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6762 | { | |
6763 | arg2 = (int)(SWIG_As_int(obj1)); | |
6764 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6765 | } | |
6766 | { | |
6767 | arg3 = (int)(SWIG_As_int(obj2)); | |
6768 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6769 | } | |
6770 | { | |
6771 | arg4 = (int)(SWIG_As_int(obj3)); | |
6772 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6773 | } | |
6774 | { | |
6775 | arg5 = (int)(SWIG_As_int(obj4)); | |
6776 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6777 | } | |
d14a1e28 RD |
6778 | { |
6779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6780 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
6781 | |
6782 | wxPyEndAllowThreads(__tstate); | |
6783 | if (PyErr_Occurred()) SWIG_fail; | |
6784 | } | |
093d3ff1 RD |
6785 | { |
6786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6787 | } | |
d14a1e28 RD |
6788 | return resultobj; |
6789 | fail: | |
6790 | return NULL; | |
6791 | } | |
6792 | ||
6793 | ||
093d3ff1 | 6794 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6795 | PyObject *resultobj; |
093d3ff1 RD |
6796 | wxRegion *arg1 = (wxRegion *) 0 ; |
6797 | wxRect *arg2 = 0 ; | |
6798 | bool result; | |
6799 | wxRect temp2 ; | |
6800 | PyObject * obj0 = 0 ; | |
6801 | PyObject * obj1 = 0 ; | |
6802 | char *kwnames[] = { | |
6803 | (char *) "self",(char *) "rect", NULL | |
d14a1e28 RD |
6804 | }; |
6805 | ||
093d3ff1 RD |
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; |
6807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6809 | { | |
6810 | arg2 = &temp2; | |
6811 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6812 | } | |
d14a1e28 RD |
6813 | { |
6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6815 | result = (bool)(arg1)->Union((wxRect const &)*arg2); |
d14a1e28 RD |
6816 | |
6817 | wxPyEndAllowThreads(__tstate); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
093d3ff1 RD |
6820 | { |
6821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6822 | } | |
d14a1e28 RD |
6823 | return resultobj; |
6824 | fail: | |
6825 | return NULL; | |
6826 | } | |
6827 | ||
6828 | ||
093d3ff1 | 6829 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6830 | PyObject *resultobj; |
093d3ff1 RD |
6831 | wxRegion *arg1 = (wxRegion *) 0 ; |
6832 | wxRegion *arg2 = 0 ; | |
6833 | bool result; | |
d14a1e28 | 6834 | PyObject * obj0 = 0 ; |
093d3ff1 | 6835 | PyObject * obj1 = 0 ; |
d14a1e28 | 6836 | char *kwnames[] = { |
093d3ff1 | 6837 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
6838 | }; |
6839 | ||
093d3ff1 RD |
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; |
6841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6843 | { | |
6844 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6846 | if (arg2 == NULL) { | |
6847 | SWIG_null_ref("wxRegion"); | |
6848 | } | |
6849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6850 | } | |
d14a1e28 RD |
6851 | { |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6853 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); |
d14a1e28 RD |
6854 | |
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
093d3ff1 RD |
6858 | { |
6859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6860 | } | |
d14a1e28 RD |
6861 | return resultobj; |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
093d3ff1 | 6867 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6868 | PyObject *resultobj; |
093d3ff1 RD |
6869 | wxRegion *arg1 = (wxRegion *) 0 ; |
6870 | int arg2 ; | |
6871 | int arg3 ; | |
6872 | int arg4 ; | |
6873 | int arg5 ; | |
6874 | bool result; | |
d14a1e28 | 6875 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
6876 | PyObject * obj1 = 0 ; |
6877 | PyObject * obj2 = 0 ; | |
6878 | PyObject * obj3 = 0 ; | |
6879 | PyObject * obj4 = 0 ; | |
d14a1e28 | 6880 | char *kwnames[] = { |
093d3ff1 | 6881 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
6882 | }; |
6883 | ||
093d3ff1 RD |
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6887 | { | |
6888 | arg2 = (int)(SWIG_As_int(obj1)); | |
6889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6890 | } | |
6891 | { | |
6892 | arg3 = (int)(SWIG_As_int(obj2)); | |
6893 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6894 | } | |
6895 | { | |
6896 | arg4 = (int)(SWIG_As_int(obj3)); | |
6897 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6898 | } | |
6899 | { | |
6900 | arg5 = (int)(SWIG_As_int(obj4)); | |
6901 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6902 | } | |
d14a1e28 RD |
6903 | { |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6905 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
6906 | |
6907 | wxPyEndAllowThreads(__tstate); | |
6908 | if (PyErr_Occurred()) SWIG_fail; | |
6909 | } | |
093d3ff1 RD |
6910 | { |
6911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6912 | } | |
d14a1e28 RD |
6913 | return resultobj; |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
093d3ff1 | 6919 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6920 | PyObject *resultobj; |
093d3ff1 RD |
6921 | wxRegion *arg1 = (wxRegion *) 0 ; |
6922 | wxRect *arg2 = 0 ; | |
6923 | bool result; | |
6924 | wxRect temp2 ; | |
d14a1e28 | 6925 | PyObject * obj0 = 0 ; |
093d3ff1 | 6926 | PyObject * obj1 = 0 ; |
d14a1e28 | 6927 | char *kwnames[] = { |
093d3ff1 | 6928 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
6929 | }; |
6930 | ||
093d3ff1 RD |
6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; |
6932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6934 | { | |
6935 | arg2 = &temp2; | |
6936 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6937 | } | |
d14a1e28 RD |
6938 | { |
6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6940 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); |
d14a1e28 RD |
6941 | |
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
093d3ff1 RD |
6945 | { |
6946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6947 | } | |
d14a1e28 RD |
6948 | return resultobj; |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
093d3ff1 | 6954 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6955 | PyObject *resultobj; |
093d3ff1 RD |
6956 | wxRegion *arg1 = (wxRegion *) 0 ; |
6957 | wxRegion *arg2 = 0 ; | |
6958 | bool result; | |
d14a1e28 | 6959 | PyObject * obj0 = 0 ; |
093d3ff1 | 6960 | PyObject * obj1 = 0 ; |
d14a1e28 | 6961 | char *kwnames[] = { |
093d3ff1 | 6962 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
6963 | }; |
6964 | ||
093d3ff1 RD |
6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; |
6966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6968 | { | |
6969 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6971 | if (arg2 == NULL) { | |
6972 | SWIG_null_ref("wxRegion"); | |
6973 | } | |
6974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6975 | } | |
d14a1e28 RD |
6976 | { |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6978 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); |
d14a1e28 RD |
6979 | |
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
093d3ff1 RD |
6983 | { |
6984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6985 | } | |
d14a1e28 RD |
6986 | return resultobj; |
6987 | fail: | |
6988 | return NULL; | |
6989 | } | |
6990 | ||
6991 | ||
093d3ff1 | 6992 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 6993 | PyObject *resultobj; |
093d3ff1 RD |
6994 | wxRegion *arg1 = (wxRegion *) 0 ; |
6995 | int arg2 ; | |
6996 | int arg3 ; | |
6997 | int arg4 ; | |
6998 | int arg5 ; | |
6999 | bool result; | |
d14a1e28 | 7000 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
7001 | PyObject * obj1 = 0 ; |
7002 | PyObject * obj2 = 0 ; | |
7003 | PyObject * obj3 = 0 ; | |
7004 | PyObject * obj4 = 0 ; | |
d14a1e28 | 7005 | char *kwnames[] = { |
093d3ff1 | 7006 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
7007 | }; |
7008 | ||
093d3ff1 RD |
7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7012 | { | |
7013 | arg2 = (int)(SWIG_As_int(obj1)); | |
7014 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7015 | } | |
7016 | { | |
7017 | arg3 = (int)(SWIG_As_int(obj2)); | |
7018 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7019 | } | |
7020 | { | |
7021 | arg4 = (int)(SWIG_As_int(obj3)); | |
7022 | if (SWIG_arg_fail(4)) SWIG_fail; | |
7023 | } | |
7024 | { | |
7025 | arg5 = (int)(SWIG_As_int(obj4)); | |
7026 | if (SWIG_arg_fail(5)) SWIG_fail; | |
7027 | } | |
d14a1e28 RD |
7028 | { |
7029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7030 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
7031 | |
7032 | wxPyEndAllowThreads(__tstate); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | } | |
7035 | { | |
093d3ff1 | 7036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7037 | } |
7038 | return resultobj; | |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
093d3ff1 | 7044 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7045 | PyObject *resultobj; |
093d3ff1 RD |
7046 | wxRegion *arg1 = (wxRegion *) 0 ; |
7047 | wxRect *arg2 = 0 ; | |
d14a1e28 | 7048 | bool result; |
093d3ff1 | 7049 | wxRect temp2 ; |
d14a1e28 | 7050 | PyObject * obj0 = 0 ; |
093d3ff1 | 7051 | PyObject * obj1 = 0 ; |
d14a1e28 | 7052 | char *kwnames[] = { |
093d3ff1 | 7053 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
7054 | }; |
7055 | ||
093d3ff1 RD |
7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; |
7057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7059 | { | |
7060 | arg2 = &temp2; | |
7061 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7062 | } | |
d14a1e28 RD |
7063 | { |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7065 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); |
d14a1e28 RD |
7066 | |
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
4f89f6a3 RD |
7070 | { |
7071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7072 | } | |
d14a1e28 RD |
7073 | return resultobj; |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
093d3ff1 | 7079 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7080 | PyObject *resultobj; |
093d3ff1 RD |
7081 | wxRegion *arg1 = (wxRegion *) 0 ; |
7082 | wxRegion *arg2 = 0 ; | |
7083 | bool result; | |
d14a1e28 | 7084 | PyObject * obj0 = 0 ; |
093d3ff1 | 7085 | PyObject * obj1 = 0 ; |
d14a1e28 | 7086 | char *kwnames[] = { |
093d3ff1 | 7087 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
7088 | }; |
7089 | ||
093d3ff1 RD |
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; |
7091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7093 | { | |
7094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7096 | if (arg2 == NULL) { | |
7097 | SWIG_null_ref("wxRegion"); | |
7098 | } | |
7099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7100 | } | |
d14a1e28 RD |
7101 | { |
7102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7103 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); |
d14a1e28 RD |
7104 | |
7105 | wxPyEndAllowThreads(__tstate); | |
7106 | if (PyErr_Occurred()) SWIG_fail; | |
7107 | } | |
093d3ff1 RD |
7108 | { |
7109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7110 | } | |
d14a1e28 RD |
7111 | return resultobj; |
7112 | fail: | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
093d3ff1 | 7117 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7118 | PyObject *resultobj; |
093d3ff1 RD |
7119 | wxRegion *arg1 = (wxRegion *) 0 ; |
7120 | SwigValueWrapper<wxBitmap > result; | |
d14a1e28 RD |
7121 | PyObject * obj0 = 0 ; |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
093d3ff1 RD |
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; |
7127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7129 | { |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7131 | result = (arg1)->ConvertToBitmap(); |
d14a1e28 RD |
7132 | |
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
093d3ff1 RD |
7136 | { |
7137 | wxBitmap * resultptr; | |
7138 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
7139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
7140 | } | |
d14a1e28 RD |
7141 | return resultobj; |
7142 | fail: | |
7143 | return NULL; | |
7144 | } | |
7145 | ||
7146 | ||
093d3ff1 | 7147 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7148 | PyObject *resultobj; |
093d3ff1 RD |
7149 | wxRegion *arg1 = (wxRegion *) 0 ; |
7150 | wxBitmap *arg2 = 0 ; | |
d14a1e28 RD |
7151 | bool result; |
7152 | PyObject * obj0 = 0 ; | |
093d3ff1 | 7153 | PyObject * obj1 = 0 ; |
d14a1e28 | 7154 | char *kwnames[] = { |
093d3ff1 | 7155 | (char *) "self",(char *) "bmp", NULL |
d14a1e28 RD |
7156 | }; |
7157 | ||
093d3ff1 RD |
7158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; |
7159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7161 | { | |
7162 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7163 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7164 | if (arg2 == NULL) { | |
7165 | SWIG_null_ref("wxBitmap"); | |
7166 | } | |
7167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7168 | } | |
d14a1e28 RD |
7169 | { |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7171 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); |
d14a1e28 RD |
7172 | |
7173 | wxPyEndAllowThreads(__tstate); | |
7174 | if (PyErr_Occurred()) SWIG_fail; | |
7175 | } | |
4f89f6a3 RD |
7176 | { |
7177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7178 | } | |
d14a1e28 RD |
7179 | return resultobj; |
7180 | fail: | |
7181 | return NULL; | |
7182 | } | |
7183 | ||
7184 | ||
093d3ff1 | 7185 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7186 | PyObject *resultobj; |
093d3ff1 RD |
7187 | wxRegion *arg1 = (wxRegion *) 0 ; |
7188 | wxBitmap *arg2 = 0 ; | |
7189 | wxColour *arg3 = 0 ; | |
7190 | int arg4 = (int) 0 ; | |
7191 | bool result; | |
7192 | wxColour temp3 ; | |
7193 | PyObject * obj0 = 0 ; | |
7194 | PyObject * obj1 = 0 ; | |
7195 | PyObject * obj2 = 0 ; | |
7196 | PyObject * obj3 = 0 ; | |
d14a1e28 | 7197 | char *kwnames[] = { |
093d3ff1 | 7198 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d14a1e28 RD |
7199 | }; |
7200 | ||
093d3ff1 RD |
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7204 | { | |
7205 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7206 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7207 | if (arg2 == NULL) { | |
7208 | SWIG_null_ref("wxBitmap"); | |
7209 | } | |
7210 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7211 | } | |
7212 | { | |
7213 | arg3 = &temp3; | |
7214 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
7215 | } | |
7216 | if (obj3) { | |
7217 | { | |
7218 | arg4 = (int)(SWIG_As_int(obj3)); | |
7219 | if (SWIG_arg_fail(4)) SWIG_fail; | |
7220 | } | |
7221 | } | |
d14a1e28 RD |
7222 | { |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7224 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); |
d14a1e28 RD |
7225 | |
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
093d3ff1 RD |
7229 | { |
7230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7231 | } | |
d14a1e28 RD |
7232 | return resultobj; |
7233 | fail: | |
7234 | return NULL; | |
7235 | } | |
7236 | ||
7237 | ||
093d3ff1 RD |
7238 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
7239 | PyObject *obj; | |
7240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7241 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
7242 | Py_INCREF(obj); | |
7243 | return Py_BuildValue((char *)""); | |
7244 | } | |
7245 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxRegion *arg1 = 0 ; | |
7248 | wxRegionIterator *result; | |
d14a1e28 RD |
7249 | PyObject * obj0 = 0 ; |
7250 | char *kwnames[] = { | |
093d3ff1 | 7251 | (char *) "region", NULL |
d14a1e28 RD |
7252 | }; |
7253 | ||
093d3ff1 | 7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; |
d14a1e28 | 7255 | { |
093d3ff1 RD |
7256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); |
7257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7258 | if (arg1 == NULL) { | |
7259 | SWIG_null_ref("wxRegion"); | |
7260 | } | |
7261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7262 | } | |
7263 | { | |
7264 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 7266 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); |
d14a1e28 RD |
7267 | |
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
093d3ff1 | 7271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
7272 | return resultobj; |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
093d3ff1 | 7278 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7279 | PyObject *resultobj; |
093d3ff1 | 7280 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7281 | PyObject * obj0 = 0 ; |
7282 | char *kwnames[] = { | |
7283 | (char *) "self", NULL | |
7284 | }; | |
7285 | ||
093d3ff1 RD |
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; |
7287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7289 | { |
7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7291 | delete arg1; |
d14a1e28 RD |
7292 | |
7293 | wxPyEndAllowThreads(__tstate); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
7296 | Py_INCREF(Py_None); resultobj = Py_None; | |
7297 | return resultobj; | |
7298 | fail: | |
7299 | return NULL; | |
7300 | } | |
7301 | ||
7302 | ||
093d3ff1 | 7303 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7304 | PyObject *resultobj; |
093d3ff1 RD |
7305 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7306 | int result; | |
d14a1e28 | 7307 | PyObject * obj0 = 0 ; |
d14a1e28 | 7308 | char *kwnames[] = { |
093d3ff1 | 7309 | (char *) "self", NULL |
d14a1e28 RD |
7310 | }; |
7311 | ||
093d3ff1 RD |
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; |
7313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7315 | { |
7316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7317 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
7318 | |
7319 | wxPyEndAllowThreads(__tstate); | |
7320 | if (PyErr_Occurred()) SWIG_fail; | |
7321 | } | |
093d3ff1 RD |
7322 | { |
7323 | resultobj = SWIG_From_int((int)(result)); | |
7324 | } | |
d14a1e28 RD |
7325 | return resultobj; |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
093d3ff1 | 7331 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7332 | PyObject *resultobj; |
093d3ff1 | 7333 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7334 | int result; |
7335 | PyObject * obj0 = 0 ; | |
7336 | char *kwnames[] = { | |
7337 | (char *) "self", NULL | |
7338 | }; | |
7339 | ||
093d3ff1 RD |
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; |
7341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7343 | { |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7345 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
7346 | |
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
093d3ff1 RD |
7350 | { |
7351 | resultobj = SWIG_From_int((int)(result)); | |
7352 | } | |
d14a1e28 RD |
7353 | return resultobj; |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
093d3ff1 | 7359 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7360 | PyObject *resultobj; |
093d3ff1 | 7361 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7362 | int result; |
7363 | PyObject * obj0 = 0 ; | |
7364 | char *kwnames[] = { | |
7365 | (char *) "self", NULL | |
7366 | }; | |
7367 | ||
093d3ff1 RD |
7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; |
7369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7371 | { |
7372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7373 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
7374 | |
7375 | wxPyEndAllowThreads(__tstate); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | } | |
093d3ff1 RD |
7378 | { |
7379 | resultobj = SWIG_From_int((int)(result)); | |
7380 | } | |
d14a1e28 RD |
7381 | return resultobj; |
7382 | fail: | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
093d3ff1 | 7387 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7388 | PyObject *resultobj; |
093d3ff1 | 7389 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7390 | int result; |
7391 | PyObject * obj0 = 0 ; | |
7392 | char *kwnames[] = { | |
7393 | (char *) "self", NULL | |
7394 | }; | |
7395 | ||
093d3ff1 RD |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; |
7397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7399 | { |
7400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7401 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
7402 | |
7403 | wxPyEndAllowThreads(__tstate); | |
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | } | |
093d3ff1 RD |
7406 | { |
7407 | resultobj = SWIG_From_int((int)(result)); | |
7408 | } | |
d14a1e28 RD |
7409 | return resultobj; |
7410 | fail: | |
7411 | return NULL; | |
7412 | } | |
7413 | ||
7414 | ||
093d3ff1 | 7415 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7416 | PyObject *resultobj; |
093d3ff1 RD |
7417 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7418 | int result; | |
d14a1e28 RD |
7419 | PyObject * obj0 = 0 ; |
7420 | char *kwnames[] = { | |
7421 | (char *) "self", NULL | |
7422 | }; | |
7423 | ||
093d3ff1 RD |
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; |
7425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7427 | { |
7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7429 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
7430 | |
7431 | wxPyEndAllowThreads(__tstate); | |
7432 | if (PyErr_Occurred()) SWIG_fail; | |
7433 | } | |
4f89f6a3 | 7434 | { |
093d3ff1 | 7435 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 7436 | } |
d14a1e28 RD |
7437 | return resultobj; |
7438 | fail: | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
093d3ff1 | 7443 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7444 | PyObject *resultobj; |
093d3ff1 RD |
7445 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7446 | int result; | |
d14a1e28 RD |
7447 | PyObject * obj0 = 0 ; |
7448 | char *kwnames[] = { | |
7449 | (char *) "self", NULL | |
7450 | }; | |
7451 | ||
093d3ff1 RD |
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; |
7453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7455 | { |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7457 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
7458 | |
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | { | |
093d3ff1 | 7463 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
7464 | } |
7465 | return resultobj; | |
7466 | fail: | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
093d3ff1 | 7471 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7472 | PyObject *resultobj; |
093d3ff1 RD |
7473 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7474 | wxRect result; | |
d14a1e28 RD |
7475 | PyObject * obj0 = 0 ; |
7476 | char *kwnames[] = { | |
7477 | (char *) "self", NULL | |
7478 | }; | |
7479 | ||
093d3ff1 RD |
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; |
7481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7483 | { |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7485 | result = (arg1)->GetRect(); |
d14a1e28 RD |
7486 | |
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
093d3ff1 RD |
7490 | { |
7491 | wxRect * resultptr; | |
7492 | resultptr = new wxRect((wxRect &)(result)); | |
7493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7494 | } | |
d14a1e28 RD |
7495 | return resultobj; |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
093d3ff1 | 7501 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7502 | PyObject *resultobj; |
093d3ff1 RD |
7503 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7504 | bool result; | |
d14a1e28 RD |
7505 | PyObject * obj0 = 0 ; |
7506 | char *kwnames[] = { | |
7507 | (char *) "self", NULL | |
7508 | }; | |
7509 | ||
093d3ff1 RD |
7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; |
7511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7513 | { |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7515 | result = (bool)(arg1)->HaveRects(); |
d14a1e28 RD |
7516 | |
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
093d3ff1 RD |
7520 | { |
7521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7522 | } | |
d14a1e28 RD |
7523 | return resultobj; |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
093d3ff1 | 7529 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7530 | PyObject *resultobj; |
093d3ff1 | 7531 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7532 | PyObject * obj0 = 0 ; |
7533 | char *kwnames[] = { | |
093d3ff1 | 7534 | (char *) "self", NULL |
d14a1e28 RD |
7535 | }; |
7536 | ||
093d3ff1 RD |
7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; |
7538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7540 | { |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7542 | (arg1)->Reset(); |
d14a1e28 RD |
7543 | |
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | Py_INCREF(Py_None); resultobj = Py_None; | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
093d3ff1 | 7554 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7555 | PyObject *resultobj; |
093d3ff1 | 7556 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7557 | PyObject * obj0 = 0 ; |
7558 | char *kwnames[] = { | |
093d3ff1 | 7559 | (char *) "self", NULL |
d14a1e28 RD |
7560 | }; |
7561 | ||
093d3ff1 RD |
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; |
7563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7565 | { |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7567 | wxRegionIterator_Next(arg1); |
d14a1e28 RD |
7568 | |
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | Py_INCREF(Py_None); resultobj = Py_None; | |
7573 | return resultobj; | |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
093d3ff1 | 7579 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7580 | PyObject *resultobj; |
093d3ff1 RD |
7581 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7582 | bool result; | |
d14a1e28 RD |
7583 | PyObject * obj0 = 0 ; |
7584 | char *kwnames[] = { | |
093d3ff1 | 7585 | (char *) "self", NULL |
d14a1e28 RD |
7586 | }; |
7587 | ||
093d3ff1 RD |
7588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; |
7589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7591 | { |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7593 | result = (bool)wxRegionIterator___nonzero__(arg1); |
d14a1e28 RD |
7594 | |
7595 | wxPyEndAllowThreads(__tstate); | |
7596 | if (PyErr_Occurred()) SWIG_fail; | |
7597 | } | |
093d3ff1 RD |
7598 | { |
7599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7600 | } | |
d14a1e28 RD |
7601 | return resultobj; |
7602 | fail: | |
7603 | return NULL; | |
7604 | } | |
7605 | ||
7606 | ||
093d3ff1 RD |
7607 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
7608 | PyObject *obj; | |
7609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7610 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
7611 | Py_INCREF(obj); | |
7612 | return Py_BuildValue((char *)""); | |
7613 | } | |
7614 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 7615 | PyObject *resultobj; |
093d3ff1 | 7616 | wxNativeFontInfo *result; |
d14a1e28 | 7617 | char *kwnames[] = { |
093d3ff1 | 7618 | NULL |
d14a1e28 RD |
7619 | }; |
7620 | ||
093d3ff1 | 7621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; |
d14a1e28 RD |
7622 | { |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7624 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); |
d14a1e28 RD |
7625 | |
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
093d3ff1 | 7629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
7630 | return resultobj; |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
093d3ff1 | 7636 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7637 | PyObject *resultobj; |
7638 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
d14a1e28 | 7639 | PyObject * obj0 = 0 ; |
d14a1e28 | 7640 | char *kwnames[] = { |
093d3ff1 | 7641 | (char *) "self", NULL |
d14a1e28 RD |
7642 | }; |
7643 | ||
093d3ff1 RD |
7644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; |
7645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7647 | { |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7649 | delete arg1; |
d14a1e28 RD |
7650 | |
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
7654 | Py_INCREF(Py_None); resultobj = Py_None; | |
7655 | return resultobj; | |
7656 | fail: | |
7657 | return NULL; | |
7658 | } | |
7659 | ||
7660 | ||
093d3ff1 | 7661 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7662 | PyObject *resultobj; |
7663 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
d14a1e28 RD |
7664 | PyObject * obj0 = 0 ; |
7665 | char *kwnames[] = { | |
093d3ff1 | 7666 | (char *) "self", NULL |
d14a1e28 RD |
7667 | }; |
7668 | ||
093d3ff1 RD |
7669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; |
7670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7672 | { |
7673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7674 | (arg1)->Init(); |
d14a1e28 RD |
7675 | |
7676 | wxPyEndAllowThreads(__tstate); | |
7677 | if (PyErr_Occurred()) SWIG_fail; | |
7678 | } | |
7679 | Py_INCREF(Py_None); resultobj = Py_None; | |
7680 | return resultobj; | |
7681 | fail: | |
7682 | return NULL; | |
7683 | } | |
7684 | ||
7685 | ||
093d3ff1 | 7686 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7687 | PyObject *resultobj; |
7688 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
093d3ff1 | 7689 | wxFont *arg2 = 0 ; |
d14a1e28 | 7690 | PyObject * obj0 = 0 ; |
994141e6 | 7691 | PyObject * obj1 = 0 ; |
d14a1e28 | 7692 | char *kwnames[] = { |
093d3ff1 | 7693 | (char *) "self",(char *) "font", NULL |
d14a1e28 RD |
7694 | }; |
7695 | ||
093d3ff1 RD |
7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; |
7697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7699 | { | |
7700 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
7701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7702 | if (arg2 == NULL) { | |
7703 | SWIG_null_ref("wxFont"); | |
7704 | } | |
7705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7706 | } | |
d14a1e28 RD |
7707 | { |
7708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7709 | (arg1)->InitFromFont((wxFont const &)*arg2); |
d14a1e28 RD |
7710 | |
7711 | wxPyEndAllowThreads(__tstate); | |
7712 | if (PyErr_Occurred()) SWIG_fail; | |
7713 | } | |
7714 | Py_INCREF(Py_None); resultobj = Py_None; | |
7715 | return resultobj; | |
7716 | fail: | |
7717 | return NULL; | |
7718 | } | |
7719 | ||
7720 | ||
093d3ff1 | 7721 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7722 | PyObject *resultobj; |
7723 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
093d3ff1 | 7724 | int result; |
d14a1e28 | 7725 | PyObject * obj0 = 0 ; |
d14a1e28 | 7726 | char *kwnames[] = { |
093d3ff1 | 7727 | (char *) "self", NULL |
d14a1e28 RD |
7728 | }; |
7729 | ||
093d3ff1 RD |
7730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; |
7731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7733 | { |
7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7735 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); |
d14a1e28 RD |
7736 | |
7737 | wxPyEndAllowThreads(__tstate); | |
7738 | if (PyErr_Occurred()) SWIG_fail; | |
7739 | } | |
4f89f6a3 | 7740 | { |
093d3ff1 | 7741 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
7742 | } |
7743 | return resultobj; | |
7744 | fail: | |
d14a1e28 RD |
7745 | return NULL; |
7746 | } | |
7747 | ||
7748 | ||
093d3ff1 | 7749 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7750 | PyObject *resultobj; |
7751 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
093d3ff1 | 7752 | wxFontStyle result; |
d14a1e28 RD |
7753 | PyObject * obj0 = 0 ; |
7754 | char *kwnames[] = { | |
7755 | (char *) "self", NULL | |
7756 | }; | |
7757 | ||
093d3ff1 RD |
7758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; |
7759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7761 | { |
7762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7763 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); |
d14a1e28 RD |
7764 | |
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
093d3ff1 | 7768 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7769 | return resultobj; |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
093d3ff1 | 7775 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7776 | PyObject *resultobj; |
7777 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
093d3ff1 | 7778 | wxFontWeight result; |
d14a1e28 RD |
7779 | PyObject * obj0 = 0 ; |
7780 | char *kwnames[] = { | |
7781 | (char *) "self", NULL | |
7782 | }; | |
7783 | ||
093d3ff1 RD |
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; |
7785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7787 | { |
7788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7789 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); |
d14a1e28 RD |
7790 | |
7791 | wxPyEndAllowThreads(__tstate); | |
7792 | if (PyErr_Occurred()) SWIG_fail; | |
7793 | } | |
093d3ff1 | 7794 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7795 | return resultobj; |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
093d3ff1 | 7801 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7802 | PyObject *resultobj; |
7803 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
d14a1e28 | 7804 | bool result; |
d14a1e28 | 7805 | PyObject * obj0 = 0 ; |
d14a1e28 | 7806 | char *kwnames[] = { |
093d3ff1 | 7807 | (char *) "self", NULL |
d14a1e28 RD |
7808 | }; |
7809 | ||
093d3ff1 RD |
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; |
7811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7813 | { |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7815 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); |
d14a1e28 RD |
7816 | |
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
4f89f6a3 RD |
7820 | { |
7821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7822 | } | |
d14a1e28 RD |
7823 | return resultobj; |
7824 | fail: | |
d14a1e28 RD |
7825 | return NULL; |
7826 | } | |
7827 | ||
7828 | ||
093d3ff1 | 7829 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7830 | PyObject *resultobj; |
7831 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7832 | wxString result; | |
7833 | PyObject * obj0 = 0 ; | |
7834 | char *kwnames[] = { | |
7835 | (char *) "self", NULL | |
7836 | }; | |
7837 | ||
093d3ff1 RD |
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; |
7839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7841 | { |
7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7843 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); |
d14a1e28 RD |
7844 | |
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
7848 | { | |
7849 | #if wxUSE_UNICODE | |
7850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7851 | #else | |
7852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7853 | #endif | |
7854 | } | |
7855 | return resultobj; | |
7856 | fail: | |
7857 | return NULL; | |
7858 | } | |
7859 | ||
7860 | ||
093d3ff1 | 7861 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7862 | PyObject *resultobj; |
093d3ff1 RD |
7863 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7864 | wxFontFamily result; | |
d14a1e28 | 7865 | PyObject * obj0 = 0 ; |
d14a1e28 | 7866 | char *kwnames[] = { |
093d3ff1 | 7867 | (char *) "self", NULL |
d14a1e28 RD |
7868 | }; |
7869 | ||
093d3ff1 RD |
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; |
7871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b | 7873 | { |
093d3ff1 RD |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7875 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7eae615b | 7879 | } |
093d3ff1 | 7880 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7881 | return resultobj; |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
093d3ff1 | 7887 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7888 | PyObject *resultobj; |
093d3ff1 RD |
7889 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7890 | wxFontEncoding result; | |
d14a1e28 RD |
7891 | PyObject * obj0 = 0 ; |
7892 | char *kwnames[] = { | |
7893 | (char *) "self", NULL | |
7894 | }; | |
7895 | ||
093d3ff1 RD |
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; |
7897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 7899 | { |
093d3ff1 RD |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7901 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7905 | } |
093d3ff1 | 7906 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7907 | return resultobj; |
7908 | fail: | |
7909 | return NULL; | |
7910 | } | |
7911 | ||
7912 | ||
093d3ff1 | 7913 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7914 | PyObject *resultobj; |
093d3ff1 | 7915 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 RD |
7916 | int arg2 ; |
7917 | PyObject * obj0 = 0 ; | |
994141e6 | 7918 | PyObject * obj1 = 0 ; |
d14a1e28 | 7919 | char *kwnames[] = { |
093d3ff1 | 7920 | (char *) "self",(char *) "pointsize", NULL |
d14a1e28 RD |
7921 | }; |
7922 | ||
093d3ff1 RD |
7923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
7924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7926 | { | |
7927 | arg2 = (int)(SWIG_As_int(obj1)); | |
7928 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7929 | } | |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | (arg1)->SetPointSize(arg2); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | } | |
d14a1e28 RD |
7937 | Py_INCREF(Py_None); resultobj = Py_None; |
7938 | return resultobj; | |
7939 | fail: | |
7940 | return NULL; | |
7941 | } | |
7942 | ||
7943 | ||
093d3ff1 | 7944 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7945 | PyObject *resultobj; |
093d3ff1 RD |
7946 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7947 | wxFontStyle arg2 ; | |
d14a1e28 | 7948 | PyObject * obj0 = 0 ; |
093d3ff1 | 7949 | PyObject * obj1 = 0 ; |
d14a1e28 | 7950 | char *kwnames[] = { |
093d3ff1 | 7951 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
7952 | }; |
7953 | ||
093d3ff1 RD |
7954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
7955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7957 | { | |
7958 | arg2 = (wxFontStyle)(SWIG_As_int(obj1)); | |
7959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7960 | } | |
d14a1e28 RD |
7961 | { |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7963 | (arg1)->SetStyle((wxFontStyle )arg2); |
d14a1e28 RD |
7964 | |
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
093d3ff1 | 7968 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
7969 | return resultobj; |
7970 | fail: | |
7971 | return NULL; | |
7972 | } | |
7973 | ||
7974 | ||
093d3ff1 | 7975 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7976 | PyObject *resultobj; |
093d3ff1 RD |
7977 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7978 | wxFontWeight arg2 ; | |
d14a1e28 | 7979 | PyObject * obj0 = 0 ; |
093d3ff1 | 7980 | PyObject * obj1 = 0 ; |
d14a1e28 | 7981 | char *kwnames[] = { |
093d3ff1 | 7982 | (char *) "self",(char *) "weight", NULL |
d14a1e28 RD |
7983 | }; |
7984 | ||
093d3ff1 RD |
7985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
7986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7988 | { | |
7989 | arg2 = (wxFontWeight)(SWIG_As_int(obj1)); | |
7990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7991 | } | |
d14a1e28 RD |
7992 | { |
7993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7994 | (arg1)->SetWeight((wxFontWeight )arg2); |
d14a1e28 RD |
7995 | |
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | Py_INCREF(Py_None); resultobj = Py_None; | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
093d3ff1 | 8006 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8007 | PyObject *resultobj; |
093d3ff1 RD |
8008 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8009 | bool arg2 ; | |
d14a1e28 RD |
8010 | PyObject * obj0 = 0 ; |
8011 | PyObject * obj1 = 0 ; | |
8012 | char *kwnames[] = { | |
093d3ff1 | 8013 | (char *) "self",(char *) "underlined", NULL |
d14a1e28 RD |
8014 | }; |
8015 | ||
093d3ff1 RD |
8016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
8017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8019 | { |
093d3ff1 RD |
8020 | arg2 = (bool)(SWIG_As_bool(obj1)); |
8021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8022 | } |
8023 | { | |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8025 | (arg1)->SetUnderlined(arg2); |
d14a1e28 RD |
8026 | |
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
093d3ff1 | 8030 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8031 | return resultobj; |
8032 | fail: | |
d14a1e28 RD |
8033 | return NULL; |
8034 | } | |
8035 | ||
8036 | ||
093d3ff1 | 8037 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8038 | PyObject *resultobj; |
093d3ff1 RD |
8039 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8040 | wxString arg2 ; | |
d14a1e28 | 8041 | PyObject * obj0 = 0 ; |
093d3ff1 | 8042 | PyObject * obj1 = 0 ; |
d14a1e28 | 8043 | char *kwnames[] = { |
093d3ff1 | 8044 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
8045 | }; |
8046 | ||
093d3ff1 RD |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
8048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8050 | { | |
8051 | wxString* sptr = wxString_in_helper(obj1); | |
8052 | if (sptr == NULL) SWIG_fail; | |
8053 | arg2 = *sptr; | |
8054 | delete sptr; | |
8055 | } | |
d14a1e28 RD |
8056 | { |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8058 | (arg1)->SetFaceName(arg2); |
d14a1e28 RD |
8059 | |
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
093d3ff1 | 8063 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8064 | return resultobj; |
8065 | fail: | |
8066 | return NULL; | |
8067 | } | |
8068 | ||
8069 | ||
093d3ff1 | 8070 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8071 | PyObject *resultobj; |
093d3ff1 RD |
8072 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8073 | wxFontFamily arg2 ; | |
994141e6 | 8074 | PyObject * obj0 = 0 ; |
093d3ff1 | 8075 | PyObject * obj1 = 0 ; |
d14a1e28 | 8076 | char *kwnames[] = { |
093d3ff1 | 8077 | (char *) "self",(char *) "family", NULL |
d14a1e28 RD |
8078 | }; |
8079 | ||
093d3ff1 RD |
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
8081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8083 | { | |
8084 | arg2 = (wxFontFamily)(SWIG_As_int(obj1)); | |
8085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8086 | } | |
994141e6 RD |
8087 | { |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8089 | (arg1)->SetFamily((wxFontFamily )arg2); |
d14a1e28 RD |
8090 | |
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
093d3ff1 | 8094 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8095 | return resultobj; |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
093d3ff1 | 8101 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8102 | PyObject *resultobj; |
093d3ff1 RD |
8103 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8104 | wxFontEncoding arg2 ; | |
d14a1e28 | 8105 | PyObject * obj0 = 0 ; |
093d3ff1 | 8106 | PyObject * obj1 = 0 ; |
d14a1e28 | 8107 | char *kwnames[] = { |
093d3ff1 | 8108 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
8109 | }; |
8110 | ||
093d3ff1 RD |
8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
8112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8114 | { | |
8115 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); | |
8116 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8117 | } |
8118 | { | |
8119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8120 | (arg1)->SetEncoding((wxFontEncoding )arg2); |
d14a1e28 RD |
8121 | |
8122 | wxPyEndAllowThreads(__tstate); | |
8123 | if (PyErr_Occurred()) SWIG_fail; | |
8124 | } | |
093d3ff1 | 8125 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8126 | return resultobj; |
8127 | fail: | |
8128 | return NULL; | |
8129 | } | |
8130 | ||
8131 | ||
093d3ff1 | 8132 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8133 | PyObject *resultobj; |
093d3ff1 RD |
8134 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8135 | wxString *arg2 = 0 ; | |
8136 | bool result; | |
8137 | bool temp2 = false ; | |
8138 | PyObject * obj0 = 0 ; | |
8139 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8140 | char *kwnames[] = { |
093d3ff1 | 8141 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8142 | }; |
8143 | ||
093d3ff1 RD |
8144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8147 | { | |
8148 | arg2 = wxString_in_helper(obj1); | |
8149 | if (arg2 == NULL) SWIG_fail; | |
8150 | temp2 = true; | |
8151 | } | |
d14a1e28 RD |
8152 | { |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8154 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d14a1e28 RD |
8155 | |
8156 | wxPyEndAllowThreads(__tstate); | |
8157 | if (PyErr_Occurred()) SWIG_fail; | |
8158 | } | |
093d3ff1 RD |
8159 | { |
8160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8161 | } | |
8162 | { | |
8163 | if (temp2) | |
8164 | delete arg2; | |
8165 | } | |
d14a1e28 RD |
8166 | return resultobj; |
8167 | fail: | |
093d3ff1 RD |
8168 | { |
8169 | if (temp2) | |
8170 | delete arg2; | |
8171 | } | |
d14a1e28 RD |
8172 | return NULL; |
8173 | } | |
8174 | ||
8175 | ||
093d3ff1 | 8176 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8177 | PyObject *resultobj; |
093d3ff1 RD |
8178 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8179 | wxString result; | |
d14a1e28 RD |
8180 | PyObject * obj0 = 0 ; |
8181 | char *kwnames[] = { | |
8182 | (char *) "self", NULL | |
8183 | }; | |
8184 | ||
093d3ff1 RD |
8185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; |
8186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8188 | { |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8190 | result = ((wxNativeFontInfo const *)arg1)->ToString(); |
d14a1e28 RD |
8191 | |
8192 | wxPyEndAllowThreads(__tstate); | |
8193 | if (PyErr_Occurred()) SWIG_fail; | |
8194 | } | |
d14a1e28 | 8195 | { |
093d3ff1 RD |
8196 | #if wxUSE_UNICODE |
8197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8198 | #else | |
8199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8200 | #endif | |
d14a1e28 | 8201 | } |
d14a1e28 RD |
8202 | return resultobj; |
8203 | fail: | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
093d3ff1 | 8208 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8209 | PyObject *resultobj; |
093d3ff1 RD |
8210 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8211 | wxString result; | |
d14a1e28 RD |
8212 | PyObject * obj0 = 0 ; |
8213 | char *kwnames[] = { | |
093d3ff1 | 8214 | (char *) "self", NULL |
d14a1e28 RD |
8215 | }; |
8216 | ||
093d3ff1 RD |
8217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; |
8218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8220 | { |
8221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8222 | result = wxNativeFontInfo___str__(arg1); |
d14a1e28 RD |
8223 | |
8224 | wxPyEndAllowThreads(__tstate); | |
8225 | if (PyErr_Occurred()) SWIG_fail; | |
8226 | } | |
093d3ff1 RD |
8227 | { |
8228 | #if wxUSE_UNICODE | |
8229 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8230 | #else | |
8231 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8232 | #endif | |
8233 | } | |
d14a1e28 RD |
8234 | return resultobj; |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
093d3ff1 | 8240 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8241 | PyObject *resultobj; |
093d3ff1 | 8242 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 | 8243 | wxString *arg2 = 0 ; |
093d3ff1 | 8244 | bool result; |
ae8162c8 | 8245 | bool temp2 = false ; |
d14a1e28 RD |
8246 | PyObject * obj0 = 0 ; |
8247 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8248 | char *kwnames[] = { |
093d3ff1 | 8249 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8250 | }; |
8251 | ||
093d3ff1 RD |
8252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; |
8253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8255 | { |
8256 | arg2 = wxString_in_helper(obj1); | |
8257 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8258 | temp2 = true; |
d14a1e28 | 8259 | } |
d14a1e28 RD |
8260 | { |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8262 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); |
d14a1e28 RD |
8263 | |
8264 | wxPyEndAllowThreads(__tstate); | |
8265 | if (PyErr_Occurred()) SWIG_fail; | |
8266 | } | |
093d3ff1 RD |
8267 | { |
8268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8269 | } | |
d14a1e28 RD |
8270 | { |
8271 | if (temp2) | |
8272 | delete arg2; | |
8273 | } | |
8274 | return resultobj; | |
8275 | fail: | |
8276 | { | |
8277 | if (temp2) | |
8278 | delete arg2; | |
8279 | } | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
093d3ff1 | 8284 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8285 | PyObject *resultobj; |
093d3ff1 RD |
8286 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8287 | wxString result; | |
8288 | PyObject * obj0 = 0 ; | |
d14a1e28 | 8289 | char *kwnames[] = { |
093d3ff1 | 8290 | (char *) "self", NULL |
d14a1e28 RD |
8291 | }; |
8292 | ||
093d3ff1 RD |
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; |
8294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8296 | { |
8297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8298 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); |
d14a1e28 RD |
8299 | |
8300 | wxPyEndAllowThreads(__tstate); | |
8301 | if (PyErr_Occurred()) SWIG_fail; | |
8302 | } | |
093d3ff1 RD |
8303 | { |
8304 | #if wxUSE_UNICODE | |
8305 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8306 | #else | |
8307 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8308 | #endif | |
8309 | } | |
d14a1e28 RD |
8310 | return resultobj; |
8311 | fail: | |
8312 | return NULL; | |
8313 | } | |
8314 | ||
8315 | ||
093d3ff1 RD |
8316 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
8317 | PyObject *obj; | |
8318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8319 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
8320 | Py_INCREF(obj); | |
8321 | return Py_BuildValue((char *)""); | |
8322 | } | |
8323 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 8324 | PyObject *resultobj; |
093d3ff1 RD |
8325 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8326 | wxString *arg2 = (wxString *) 0 ; | |
8327 | bool temp2 = false ; | |
d14a1e28 | 8328 | PyObject * obj0 = 0 ; |
093d3ff1 | 8329 | PyObject * obj1 = 0 ; |
d14a1e28 | 8330 | char *kwnames[] = { |
093d3ff1 | 8331 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
8332 | }; |
8333 | ||
093d3ff1 RD |
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; |
8335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8337 | { |
093d3ff1 RD |
8338 | arg2 = wxString_in_helper(obj1); |
8339 | if (arg2 == NULL) SWIG_fail; | |
8340 | temp2 = true; | |
8341 | } | |
8342 | if (arg1) (arg1)->facename = *arg2; | |
8343 | ||
8344 | Py_INCREF(Py_None); resultobj = Py_None; | |
8345 | { | |
8346 | if (temp2) | |
8347 | delete arg2; | |
d14a1e28 | 8348 | } |
d14a1e28 RD |
8349 | return resultobj; |
8350 | fail: | |
093d3ff1 RD |
8351 | { |
8352 | if (temp2) | |
8353 | delete arg2; | |
8354 | } | |
d14a1e28 RD |
8355 | return NULL; |
8356 | } | |
8357 | ||
8358 | ||
093d3ff1 | 8359 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8360 | PyObject *resultobj; |
093d3ff1 RD |
8361 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8362 | wxString *result; | |
994141e6 | 8363 | PyObject * obj0 = 0 ; |
d14a1e28 | 8364 | char *kwnames[] = { |
093d3ff1 | 8365 | (char *) "self", NULL |
d14a1e28 RD |
8366 | }; |
8367 | ||
093d3ff1 RD |
8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; |
8369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8371 | result = (wxString *)& ((arg1)->facename); | |
8372 | ||
d14a1e28 RD |
8373 | { |
8374 | #if wxUSE_UNICODE | |
093d3ff1 | 8375 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8376 | #else |
093d3ff1 | 8377 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8378 | #endif |
8379 | } | |
8380 | return resultobj; | |
8381 | fail: | |
8382 | return NULL; | |
8383 | } | |
8384 | ||
8385 | ||
093d3ff1 | 8386 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8387 | PyObject *resultobj; |
093d3ff1 RD |
8388 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8389 | wxFontEncoding arg2 ; | |
994141e6 | 8390 | PyObject * obj0 = 0 ; |
093d3ff1 | 8391 | PyObject * obj1 = 0 ; |
d14a1e28 | 8392 | char *kwnames[] = { |
093d3ff1 | 8393 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
8394 | }; |
8395 | ||
093d3ff1 RD |
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
8397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8399 | { |
093d3ff1 RD |
8400 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); |
8401 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 8402 | } |
093d3ff1 RD |
8403 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
8404 | ||
8405 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
8406 | return resultobj; |
8407 | fail: | |
8408 | return NULL; | |
8409 | } | |
8410 | ||
8411 | ||
093d3ff1 | 8412 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b | 8413 | PyObject *resultobj; |
093d3ff1 RD |
8414 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8415 | wxFontEncoding result; | |
b2df227b RD |
8416 | PyObject * obj0 = 0 ; |
8417 | char *kwnames[] = { | |
093d3ff1 | 8418 | (char *) "self", NULL |
b2df227b RD |
8419 | }; |
8420 | ||
093d3ff1 RD |
8421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; |
8422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8424 | result = (wxFontEncoding) ((arg1)->encoding); | |
8425 | ||
8426 | resultobj = SWIG_From_int((result)); | |
b2df227b RD |
8427 | return resultobj; |
8428 | fail: | |
b2df227b RD |
8429 | return NULL; |
8430 | } | |
8431 | ||
8432 | ||
093d3ff1 | 8433 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8434 | PyObject *resultobj; |
093d3ff1 RD |
8435 | wxNativeEncodingInfo *result; |
8436 | char *kwnames[] = { | |
8437 | NULL | |
8438 | }; | |
8439 | ||
8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
8441 | { | |
8442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8443 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
8444 | ||
8445 | wxPyEndAllowThreads(__tstate); | |
8446 | if (PyErr_Occurred()) SWIG_fail; | |
8447 | } | |
8448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
8455 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d14a1e28 | 8458 | PyObject * obj0 = 0 ; |
d14a1e28 | 8459 | char *kwnames[] = { |
093d3ff1 | 8460 | (char *) "self", NULL |
d14a1e28 RD |
8461 | }; |
8462 | ||
093d3ff1 RD |
8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; |
8464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8466 | { |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8468 | delete arg1; |
d14a1e28 RD |
8469 | |
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | Py_INCREF(Py_None); resultobj = Py_None; | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
093d3ff1 | 8480 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8481 | PyObject *resultobj; |
093d3ff1 | 8482 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d14a1e28 | 8483 | wxString *arg2 = 0 ; |
093d3ff1 | 8484 | bool result; |
ae8162c8 | 8485 | bool temp2 = false ; |
d14a1e28 RD |
8486 | PyObject * obj0 = 0 ; |
8487 | PyObject * obj1 = 0 ; | |
8488 | char *kwnames[] = { | |
093d3ff1 | 8489 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8490 | }; |
8491 | ||
093d3ff1 RD |
8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8495 | { |
8496 | arg2 = wxString_in_helper(obj1); | |
8497 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8498 | temp2 = true; |
d14a1e28 RD |
8499 | } |
8500 | { | |
8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8502 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d14a1e28 RD |
8503 | |
8504 | wxPyEndAllowThreads(__tstate); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
093d3ff1 RD |
8507 | { |
8508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8509 | } | |
d14a1e28 RD |
8510 | { |
8511 | if (temp2) | |
8512 | delete arg2; | |
8513 | } | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | { | |
8517 | if (temp2) | |
8518 | delete arg2; | |
8519 | } | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
093d3ff1 | 8524 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8525 | PyObject *resultobj; |
093d3ff1 | 8526 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d14a1e28 | 8527 | wxString result; |
093d3ff1 | 8528 | PyObject * obj0 = 0 ; |
d14a1e28 | 8529 | char *kwnames[] = { |
093d3ff1 | 8530 | (char *) "self", NULL |
d14a1e28 RD |
8531 | }; |
8532 | ||
093d3ff1 RD |
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; |
8534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8536 | { |
8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8538 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); |
d14a1e28 RD |
8539 | |
8540 | wxPyEndAllowThreads(__tstate); | |
8541 | if (PyErr_Occurred()) SWIG_fail; | |
8542 | } | |
8543 | { | |
8544 | #if wxUSE_UNICODE | |
8545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8546 | #else | |
8547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8548 | #endif | |
8549 | } | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | return NULL; | |
8553 | } | |
8554 | ||
8555 | ||
093d3ff1 RD |
8556 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
8557 | PyObject *obj; | |
8558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8559 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
8560 | Py_INCREF(obj); | |
8561 | return Py_BuildValue((char *)""); | |
8562 | } | |
8563 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 8564 | PyObject *resultobj; |
093d3ff1 RD |
8565 | wxFontEncoding arg1 ; |
8566 | wxNativeEncodingInfo *result; | |
d14a1e28 | 8567 | PyObject * obj0 = 0 ; |
d14a1e28 | 8568 | char *kwnames[] = { |
093d3ff1 | 8569 | (char *) "encoding", NULL |
d14a1e28 RD |
8570 | }; |
8571 | ||
093d3ff1 RD |
8572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
8573 | { | |
8574 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); | |
8575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8576 | } |
8577 | { | |
8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8579 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); |
d14a1e28 RD |
8580 | |
8581 | wxPyEndAllowThreads(__tstate); | |
8582 | if (PyErr_Occurred()) SWIG_fail; | |
8583 | } | |
093d3ff1 | 8584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
8585 | return resultobj; |
8586 | fail: | |
d14a1e28 RD |
8587 | return NULL; |
8588 | } | |
8589 | ||
8590 | ||
093d3ff1 | 8591 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8592 | PyObject *resultobj; |
093d3ff1 | 8593 | wxNativeEncodingInfo *arg1 = 0 ; |
d14a1e28 | 8594 | bool result; |
d14a1e28 | 8595 | PyObject * obj0 = 0 ; |
d14a1e28 | 8596 | char *kwnames[] = { |
093d3ff1 | 8597 | (char *) "info", NULL |
d14a1e28 RD |
8598 | }; |
8599 | ||
093d3ff1 RD |
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; |
8601 | { | |
8602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8604 | if (arg1 == NULL) { | |
8605 | SWIG_null_ref("wxNativeEncodingInfo"); | |
d14a1e28 | 8606 | } |
093d3ff1 | 8607 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
8608 | } |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8611 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); |
d14a1e28 RD |
8612 | |
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
4f89f6a3 RD |
8616 | { |
8617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8618 | } | |
d14a1e28 RD |
8619 | return resultobj; |
8620 | fail: | |
d14a1e28 RD |
8621 | return NULL; |
8622 | } | |
8623 | ||
8624 | ||
093d3ff1 | 8625 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8626 | PyObject *resultobj; |
093d3ff1 | 8627 | wxFontMapper *result; |
d14a1e28 | 8628 | char *kwnames[] = { |
093d3ff1 | 8629 | NULL |
d14a1e28 RD |
8630 | }; |
8631 | ||
093d3ff1 | 8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; |
d14a1e28 RD |
8633 | { |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8635 | result = (wxFontMapper *)new wxFontMapper(); |
d14a1e28 RD |
8636 | |
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
093d3ff1 | 8640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
8641 | return resultobj; |
8642 | fail: | |
8643 | return NULL; | |
8644 | } | |
8645 | ||
8646 | ||
093d3ff1 | 8647 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8648 | PyObject *resultobj; |
8649 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
d14a1e28 | 8650 | PyObject * obj0 = 0 ; |
d14a1e28 | 8651 | char *kwnames[] = { |
093d3ff1 | 8652 | (char *) "self", NULL |
d14a1e28 RD |
8653 | }; |
8654 | ||
093d3ff1 RD |
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; |
8656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8658 | { |
8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8660 | delete arg1; |
d14a1e28 RD |
8661 | |
8662 | wxPyEndAllowThreads(__tstate); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
8666 | return resultobj; |
8667 | fail: | |
d14a1e28 RD |
8668 | return NULL; |
8669 | } | |
8670 | ||
8671 | ||
093d3ff1 | 8672 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8673 | PyObject *resultobj; |
093d3ff1 | 8674 | wxFontMapper *result; |
d14a1e28 | 8675 | char *kwnames[] = { |
093d3ff1 | 8676 | NULL |
d14a1e28 RD |
8677 | }; |
8678 | ||
093d3ff1 | 8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; |
d14a1e28 RD |
8680 | { |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8682 | result = (wxFontMapper *)wxFontMapper::Get(); |
d14a1e28 RD |
8683 | |
8684 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8685 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8686 | } |
093d3ff1 | 8687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
8688 | return resultobj; |
8689 | fail: | |
d14a1e28 RD |
8690 | return NULL; |
8691 | } | |
8692 | ||
8693 | ||
093d3ff1 | 8694 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8695 | PyObject *resultobj; |
093d3ff1 RD |
8696 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8697 | wxFontMapper *result; | |
d14a1e28 RD |
8698 | PyObject * obj0 = 0 ; |
8699 | char *kwnames[] = { | |
093d3ff1 | 8700 | (char *) "mapper", NULL |
d14a1e28 RD |
8701 | }; |
8702 | ||
093d3ff1 RD |
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; |
8704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8706 | { |
8707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8708 | result = (wxFontMapper *)wxFontMapper::Set(arg1); |
d14a1e28 RD |
8709 | |
8710 | wxPyEndAllowThreads(__tstate); | |
8711 | if (PyErr_Occurred()) SWIG_fail; | |
8712 | } | |
093d3ff1 | 8713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
8714 | return resultobj; |
8715 | fail: | |
8716 | return NULL; | |
8717 | } | |
8718 | ||
8719 | ||
093d3ff1 | 8720 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8721 | PyObject *resultobj; |
093d3ff1 RD |
8722 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8723 | wxString *arg2 = 0 ; | |
8724 | bool arg3 = (bool) true ; | |
8725 | wxFontEncoding result; | |
8726 | bool temp2 = false ; | |
d14a1e28 | 8727 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
8728 | PyObject * obj1 = 0 ; |
8729 | PyObject * obj2 = 0 ; | |
d14a1e28 | 8730 | char *kwnames[] = { |
093d3ff1 | 8731 | (char *) "self",(char *) "charset",(char *) "interactive", NULL |
d14a1e28 RD |
8732 | }; |
8733 | ||
093d3ff1 RD |
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8737 | { | |
8738 | arg2 = wxString_in_helper(obj1); | |
8739 | if (arg2 == NULL) SWIG_fail; | |
8740 | temp2 = true; | |
8741 | } | |
8742 | if (obj2) { | |
8743 | { | |
8744 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8745 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8746 | } | |
8747 | } | |
d14a1e28 RD |
8748 | { |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8750 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); |
d14a1e28 RD |
8751 | |
8752 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8753 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8754 | } |
093d3ff1 RD |
8755 | resultobj = SWIG_From_int((result)); |
8756 | { | |
8757 | if (temp2) | |
8758 | delete arg2; | |
8759 | } | |
d14a1e28 RD |
8760 | return resultobj; |
8761 | fail: | |
093d3ff1 RD |
8762 | { |
8763 | if (temp2) | |
8764 | delete arg2; | |
8765 | } | |
d14a1e28 RD |
8766 | return NULL; |
8767 | } | |
8768 | ||
8769 | ||
093d3ff1 | 8770 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8771 | PyObject *resultobj; |
093d3ff1 | 8772 | size_t result; |
d14a1e28 | 8773 | char *kwnames[] = { |
093d3ff1 | 8774 | NULL |
d14a1e28 RD |
8775 | }; |
8776 | ||
093d3ff1 | 8777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; |
d14a1e28 RD |
8778 | { |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8780 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); |
d14a1e28 RD |
8781 | |
8782 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8783 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8784 | } |
d14a1e28 | 8785 | { |
093d3ff1 | 8786 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); |
d14a1e28 RD |
8787 | } |
8788 | return resultobj; | |
8789 | fail: | |
d14a1e28 RD |
8790 | return NULL; |
8791 | } | |
8792 | ||
8793 | ||
093d3ff1 | 8794 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8795 | PyObject *resultobj; |
093d3ff1 RD |
8796 | size_t arg1 ; |
8797 | wxFontEncoding result; | |
994141e6 | 8798 | PyObject * obj0 = 0 ; |
d14a1e28 | 8799 | char *kwnames[] = { |
093d3ff1 | 8800 | (char *) "n", NULL |
d14a1e28 RD |
8801 | }; |
8802 | ||
093d3ff1 RD |
8803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; |
8804 | { | |
8805 | arg1 = (size_t)(SWIG_As_unsigned_SS_long(obj0)); | |
8806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 8807 | } |
d14a1e28 RD |
8808 | { |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8810 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); |
d14a1e28 RD |
8811 | |
8812 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8813 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8814 | } |
093d3ff1 | 8815 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
8816 | return resultobj; |
8817 | fail: | |
d14a1e28 RD |
8818 | return NULL; |
8819 | } | |
8820 | ||
8821 | ||
093d3ff1 | 8822 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
b6294124 | 8823 | PyObject *resultobj; |
093d3ff1 RD |
8824 | wxFontEncoding arg1 ; |
8825 | wxString result; | |
b6294124 | 8826 | PyObject * obj0 = 0 ; |
b6294124 | 8827 | char *kwnames[] = { |
093d3ff1 | 8828 | (char *) "encoding", NULL |
b6294124 RD |
8829 | }; |
8830 | ||
093d3ff1 | 8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
b6294124 | 8832 | { |
093d3ff1 RD |
8833 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); |
8834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b6294124 RD |
8835 | } |
8836 | { | |
b6294124 | 8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 8838 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); |
b6294124 RD |
8839 | |
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
b6294124 | 8843 | { |
093d3ff1 RD |
8844 | #if wxUSE_UNICODE |
8845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8846 | #else | |
8847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8848 | #endif | |
b6294124 RD |
8849 | } |
8850 | return resultobj; | |
8851 | fail: | |
b6294124 RD |
8852 | return NULL; |
8853 | } | |
8854 | ||
8855 | ||
093d3ff1 | 8856 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8857 | PyObject *resultobj; |
093d3ff1 RD |
8858 | wxFontEncoding arg1 ; |
8859 | wxString result; | |
d14a1e28 RD |
8860 | PyObject * obj0 = 0 ; |
8861 | char *kwnames[] = { | |
093d3ff1 | 8862 | (char *) "encoding", NULL |
d14a1e28 RD |
8863 | }; |
8864 | ||
093d3ff1 RD |
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
8866 | { | |
8867 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); | |
8868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8869 | } | |
d14a1e28 RD |
8870 | { |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8872 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); |
d14a1e28 RD |
8873 | |
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
4f89f6a3 | 8877 | { |
093d3ff1 RD |
8878 | #if wxUSE_UNICODE |
8879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8880 | #else | |
8881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8882 | #endif | |
4f89f6a3 | 8883 | } |
d14a1e28 RD |
8884 | return resultobj; |
8885 | fail: | |
8886 | return NULL; | |
8887 | } | |
8888 | ||
8889 | ||
093d3ff1 | 8890 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8891 | PyObject *resultobj; |
093d3ff1 RD |
8892 | wxString *arg1 = 0 ; |
8893 | wxFontEncoding result; | |
8894 | bool temp1 = false ; | |
d14a1e28 | 8895 | PyObject * obj0 = 0 ; |
d14a1e28 | 8896 | char *kwnames[] = { |
093d3ff1 | 8897 | (char *) "name", NULL |
d14a1e28 RD |
8898 | }; |
8899 | ||
093d3ff1 RD |
8900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; |
8901 | { | |
8902 | arg1 = wxString_in_helper(obj0); | |
8903 | if (arg1 == NULL) SWIG_fail; | |
8904 | temp1 = true; | |
8905 | } | |
d14a1e28 RD |
8906 | { |
8907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8908 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); |
d14a1e28 RD |
8909 | |
8910 | wxPyEndAllowThreads(__tstate); | |
8911 | if (PyErr_Occurred()) SWIG_fail; | |
8912 | } | |
093d3ff1 | 8913 | resultobj = SWIG_From_int((result)); |
4f89f6a3 | 8914 | { |
093d3ff1 RD |
8915 | if (temp1) |
8916 | delete arg1; | |
4f89f6a3 | 8917 | } |
d14a1e28 RD |
8918 | return resultobj; |
8919 | fail: | |
093d3ff1 RD |
8920 | { |
8921 | if (temp1) | |
8922 | delete arg1; | |
8923 | } | |
d14a1e28 RD |
8924 | return NULL; |
8925 | } | |
8926 | ||
8927 | ||
093d3ff1 | 8928 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8929 | PyObject *resultobj; |
093d3ff1 RD |
8930 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8931 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
d14a1e28 RD |
8932 | PyObject * obj0 = 0 ; |
8933 | PyObject * obj1 = 0 ; | |
8934 | char *kwnames[] = { | |
093d3ff1 | 8935 | (char *) "self",(char *) "config", NULL |
d14a1e28 RD |
8936 | }; |
8937 | ||
093d3ff1 RD |
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; |
8939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8941 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxConfigBase, SWIG_POINTER_EXCEPTION | 0); | |
8942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8943 | { |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8945 | (arg1)->SetConfig(arg2); |
d14a1e28 RD |
8946 | |
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
093d3ff1 | 8950 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8951 | return resultobj; |
8952 | fail: | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
093d3ff1 | 8957 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8958 | PyObject *resultobj; |
093d3ff1 RD |
8959 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8960 | wxString *arg2 = 0 ; | |
8961 | bool temp2 = false ; | |
d14a1e28 | 8962 | PyObject * obj0 = 0 ; |
093d3ff1 | 8963 | PyObject * obj1 = 0 ; |
d14a1e28 | 8964 | char *kwnames[] = { |
093d3ff1 | 8965 | (char *) "self",(char *) "prefix", NULL |
d14a1e28 RD |
8966 | }; |
8967 | ||
093d3ff1 RD |
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; |
8969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8971 | { | |
8972 | arg2 = wxString_in_helper(obj1); | |
8973 | if (arg2 == NULL) SWIG_fail; | |
8974 | temp2 = true; | |
8975 | } | |
d14a1e28 RD |
8976 | { |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8978 | (arg1)->SetConfigPath((wxString const &)*arg2); |
d14a1e28 RD |
8979 | |
8980 | wxPyEndAllowThreads(__tstate); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | } | |
093d3ff1 RD |
8983 | Py_INCREF(Py_None); resultobj = Py_None; |
8984 | { | |
8985 | if (temp2) | |
8986 | delete arg2; | |
8987 | } | |
d14a1e28 RD |
8988 | return resultobj; |
8989 | fail: | |
093d3ff1 RD |
8990 | { |
8991 | if (temp2) | |
8992 | delete arg2; | |
8993 | } | |
d14a1e28 RD |
8994 | return NULL; |
8995 | } | |
8996 | ||
8997 | ||
093d3ff1 | 8998 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
b6294124 | 8999 | PyObject *resultobj; |
093d3ff1 | 9000 | wxString result; |
b6294124 | 9001 | char *kwnames[] = { |
093d3ff1 | 9002 | NULL |
b6294124 RD |
9003 | }; |
9004 | ||
093d3ff1 | 9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; |
b6294124 RD |
9006 | { |
9007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9008 | result = wxFontMapper::GetDefaultConfigPath(); |
b6294124 RD |
9009 | |
9010 | wxPyEndAllowThreads(__tstate); | |
9011 | if (PyErr_Occurred()) SWIG_fail; | |
9012 | } | |
9013 | { | |
093d3ff1 RD |
9014 | #if wxUSE_UNICODE |
9015 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9016 | #else | |
9017 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9018 | #endif | |
b6294124 RD |
9019 | } |
9020 | return resultobj; | |
9021 | fail: | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
093d3ff1 | 9026 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
b6294124 | 9027 | PyObject *resultobj; |
093d3ff1 RD |
9028 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9029 | wxFontEncoding arg2 ; | |
9030 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9031 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9032 | bool arg4 = (bool) true ; | |
9033 | PyObject *result; | |
9034 | bool temp3 = false ; | |
9035 | PyObject * obj0 = 0 ; | |
9036 | PyObject * obj1 = 0 ; | |
9037 | PyObject * obj2 = 0 ; | |
9038 | PyObject * obj3 = 0 ; | |
9039 | char *kwnames[] = { | |
9040 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
b6294124 RD |
9041 | }; |
9042 | ||
093d3ff1 RD |
9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9046 | { | |
9047 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); | |
9048 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9049 | } | |
9050 | if (obj2) { | |
9051 | { | |
9052 | arg3 = wxString_in_helper(obj2); | |
9053 | if (arg3 == NULL) SWIG_fail; | |
9054 | temp3 = true; | |
9055 | } | |
9056 | } | |
9057 | if (obj3) { | |
9058 | { | |
9059 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
9060 | if (SWIG_arg_fail(4)) SWIG_fail; | |
9061 | } | |
9062 | } | |
b6294124 RD |
9063 | { |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9065 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); |
b6294124 RD |
9066 | |
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
093d3ff1 | 9070 | resultobj = result; |
b6294124 | 9071 | { |
093d3ff1 RD |
9072 | if (temp3) |
9073 | delete arg3; | |
b6294124 RD |
9074 | } |
9075 | return resultobj; | |
9076 | fail: | |
d14a1e28 | 9077 | { |
093d3ff1 RD |
9078 | if (temp3) |
9079 | delete arg3; | |
d14a1e28 | 9080 | } |
d14a1e28 RD |
9081 | return NULL; |
9082 | } | |
9083 | ||
9084 | ||
093d3ff1 | 9085 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9086 | PyObject *resultobj; |
093d3ff1 RD |
9087 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9088 | wxFontEncoding arg2 ; | |
9089 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9090 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9091 | bool result; | |
9092 | bool temp3 = false ; | |
d14a1e28 | 9093 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9094 | PyObject * obj1 = 0 ; |
9095 | PyObject * obj2 = 0 ; | |
d14a1e28 | 9096 | char *kwnames[] = { |
093d3ff1 | 9097 | (char *) "self",(char *) "encoding",(char *) "facename", NULL |
d14a1e28 RD |
9098 | }; |
9099 | ||
093d3ff1 RD |
9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9103 | { | |
9104 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); | |
9105 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9106 | } | |
9107 | if (obj2) { | |
9108 | { | |
9109 | arg3 = wxString_in_helper(obj2); | |
9110 | if (arg3 == NULL) SWIG_fail; | |
9111 | temp3 = true; | |
9112 | } | |
9113 | } | |
d14a1e28 RD |
9114 | { |
9115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9116 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); |
d14a1e28 RD |
9117 | |
9118 | wxPyEndAllowThreads(__tstate); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | } | |
093d3ff1 RD |
9121 | { |
9122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9123 | } | |
9124 | { | |
9125 | if (temp3) | |
9126 | delete arg3; | |
9127 | } | |
d14a1e28 RD |
9128 | return resultobj; |
9129 | fail: | |
093d3ff1 RD |
9130 | { |
9131 | if (temp3) | |
9132 | delete arg3; | |
9133 | } | |
d14a1e28 RD |
9134 | return NULL; |
9135 | } | |
9136 | ||
9137 | ||
093d3ff1 | 9138 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9139 | PyObject *resultobj; |
093d3ff1 RD |
9140 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9141 | wxWindow *arg2 = (wxWindow *) 0 ; | |
d14a1e28 | 9142 | PyObject * obj0 = 0 ; |
093d3ff1 | 9143 | PyObject * obj1 = 0 ; |
d14a1e28 | 9144 | char *kwnames[] = { |
093d3ff1 | 9145 | (char *) "self",(char *) "parent", NULL |
d14a1e28 RD |
9146 | }; |
9147 | ||
093d3ff1 RD |
9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; |
9149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9151 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9153 | { |
9154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9155 | (arg1)->SetDialogParent(arg2); |
d14a1e28 RD |
9156 | |
9157 | wxPyEndAllowThreads(__tstate); | |
9158 | if (PyErr_Occurred()) SWIG_fail; | |
9159 | } | |
093d3ff1 | 9160 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
9161 | return resultobj; |
9162 | fail: | |
9163 | return NULL; | |
9164 | } | |
9165 | ||
9166 | ||
093d3ff1 | 9167 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9168 | PyObject *resultobj; |
093d3ff1 RD |
9169 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9170 | wxString *arg2 = 0 ; | |
9171 | bool temp2 = false ; | |
d14a1e28 | 9172 | PyObject * obj0 = 0 ; |
093d3ff1 | 9173 | PyObject * obj1 = 0 ; |
d14a1e28 | 9174 | char *kwnames[] = { |
093d3ff1 | 9175 | (char *) "self",(char *) "title", NULL |
d14a1e28 RD |
9176 | }; |
9177 | ||
093d3ff1 RD |
9178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; |
9179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9181 | { | |
9182 | arg2 = wxString_in_helper(obj1); | |
9183 | if (arg2 == NULL) SWIG_fail; | |
9184 | temp2 = true; | |
9185 | } | |
d14a1e28 RD |
9186 | { |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9188 | (arg1)->SetDialogTitle((wxString const &)*arg2); |
d14a1e28 RD |
9189 | |
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
093d3ff1 | 9193 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 9194 | { |
093d3ff1 RD |
9195 | if (temp2) |
9196 | delete arg2; | |
4f89f6a3 | 9197 | } |
d14a1e28 RD |
9198 | return resultobj; |
9199 | fail: | |
093d3ff1 RD |
9200 | { |
9201 | if (temp2) | |
9202 | delete arg2; | |
9203 | } | |
d14a1e28 RD |
9204 | return NULL; |
9205 | } | |
9206 | ||
9207 | ||
093d3ff1 RD |
9208 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
9209 | PyObject *obj; | |
9210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9211 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
9212 | Py_INCREF(obj); | |
9213 | return Py_BuildValue((char *)""); | |
9214 | } | |
9215 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 9216 | PyObject *resultobj; |
093d3ff1 RD |
9217 | int arg1 ; |
9218 | int arg2 ; | |
9219 | int arg3 ; | |
9220 | int arg4 ; | |
9221 | bool arg5 = (bool) false ; | |
9222 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
9223 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9224 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9225 | wxFont *result; | |
9226 | bool temp6 = false ; | |
d14a1e28 | 9227 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9228 | PyObject * obj1 = 0 ; |
9229 | PyObject * obj2 = 0 ; | |
9230 | PyObject * obj3 = 0 ; | |
9231 | PyObject * obj4 = 0 ; | |
9232 | PyObject * obj5 = 0 ; | |
9233 | PyObject * obj6 = 0 ; | |
d14a1e28 | 9234 | char *kwnames[] = { |
093d3ff1 | 9235 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9236 | }; |
9237 | ||
093d3ff1 RD |
9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9239 | { | |
9240 | arg1 = (int)(SWIG_As_int(obj0)); | |
9241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9242 | } | |
9243 | { | |
9244 | arg2 = (int)(SWIG_As_int(obj1)); | |
9245 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9246 | } | |
9247 | { | |
9248 | arg3 = (int)(SWIG_As_int(obj2)); | |
9249 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9250 | } | |
9251 | { | |
9252 | arg4 = (int)(SWIG_As_int(obj3)); | |
9253 | if (SWIG_arg_fail(4)) SWIG_fail; | |
9254 | } | |
9255 | if (obj4) { | |
9256 | { | |
9257 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
9258 | if (SWIG_arg_fail(5)) SWIG_fail; | |
9259 | } | |
9260 | } | |
9261 | if (obj5) { | |
9262 | { | |
9263 | arg6 = wxString_in_helper(obj5); | |
9264 | if (arg6 == NULL) SWIG_fail; | |
9265 | temp6 = true; | |
9266 | } | |
9267 | } | |
9268 | if (obj6) { | |
9269 | { | |
9270 | arg7 = (wxFontEncoding)(SWIG_As_int(obj6)); | |
9271 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9272 | } | |
9273 | } | |
d14a1e28 | 9274 | { |
093d3ff1 | 9275 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9277 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); |
d14a1e28 RD |
9278 | |
9279 | wxPyEndAllowThreads(__tstate); | |
9280 | if (PyErr_Occurred()) SWIG_fail; | |
9281 | } | |
093d3ff1 | 9282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9283 | { |
093d3ff1 RD |
9284 | if (temp6) |
9285 | delete arg6; | |
d14a1e28 RD |
9286 | } |
9287 | return resultobj; | |
9288 | fail: | |
093d3ff1 RD |
9289 | { |
9290 | if (temp6) | |
9291 | delete arg6; | |
9292 | } | |
d14a1e28 RD |
9293 | return NULL; |
9294 | } | |
9295 | ||
9296 | ||
093d3ff1 | 9297 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9298 | PyObject *resultobj; |
9299 | wxFont *arg1 = (wxFont *) 0 ; | |
d14a1e28 RD |
9300 | PyObject * obj0 = 0 ; |
9301 | char *kwnames[] = { | |
9302 | (char *) "self", NULL | |
9303 | }; | |
9304 | ||
093d3ff1 RD |
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; |
9306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9308 | { |
9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9310 | delete arg1; |
d14a1e28 RD |
9311 | |
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
093d3ff1 | 9315 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
9316 | return resultobj; |
9317 | fail: | |
9318 | return NULL; | |
9319 | } | |
9320 | ||
9321 | ||
093d3ff1 | 9322 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9323 | PyObject *resultobj; |
093d3ff1 RD |
9324 | wxNativeFontInfo *arg1 = 0 ; |
9325 | wxFont *result; | |
d14a1e28 RD |
9326 | PyObject * obj0 = 0 ; |
9327 | char *kwnames[] = { | |
093d3ff1 | 9328 | (char *) "info", NULL |
d14a1e28 RD |
9329 | }; |
9330 | ||
093d3ff1 | 9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; |
d14a1e28 | 9332 | { |
093d3ff1 RD |
9333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); |
9334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9335 | if (arg1 == NULL) { | |
9336 | SWIG_null_ref("wxNativeFontInfo"); | |
9337 | } | |
9338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9339 | } | |
9340 | { | |
9341 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9343 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); |
d14a1e28 RD |
9344 | |
9345 | wxPyEndAllowThreads(__tstate); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
9347 | } | |
093d3ff1 | 9348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
9349 | return resultobj; |
9350 | fail: | |
9351 | return NULL; | |
9352 | } | |
9353 | ||
9354 | ||
093d3ff1 | 9355 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9356 | PyObject *resultobj; |
093d3ff1 RD |
9357 | wxString *arg1 = 0 ; |
9358 | wxFont *result; | |
9359 | bool temp1 = false ; | |
d14a1e28 RD |
9360 | PyObject * obj0 = 0 ; |
9361 | char *kwnames[] = { | |
093d3ff1 | 9362 | (char *) "info", NULL |
d14a1e28 RD |
9363 | }; |
9364 | ||
093d3ff1 RD |
9365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; |
9366 | { | |
9367 | arg1 = wxString_in_helper(obj0); | |
9368 | if (arg1 == NULL) SWIG_fail; | |
9369 | temp1 = true; | |
9370 | } | |
d14a1e28 | 9371 | { |
093d3ff1 | 9372 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9374 | result = (wxFont *)new_wxFont((wxString const &)*arg1); |
d14a1e28 RD |
9375 | |
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
093d3ff1 | 9379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
4f89f6a3 | 9380 | { |
093d3ff1 RD |
9381 | if (temp1) |
9382 | delete arg1; | |
4f89f6a3 | 9383 | } |
d14a1e28 RD |
9384 | return resultobj; |
9385 | fail: | |
093d3ff1 RD |
9386 | { |
9387 | if (temp1) | |
9388 | delete arg1; | |
9389 | } | |
d14a1e28 RD |
9390 | return NULL; |
9391 | } | |
9392 | ||
9393 | ||
73c8ef6a | 9394 | static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9395 | PyObject *resultobj; |
093d3ff1 RD |
9396 | int arg1 ; |
9397 | wxFontFamily arg2 ; | |
9398 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9399 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9400 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9401 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9402 | wxFont *result; | |
9403 | bool temp4 = false ; | |
d14a1e28 | 9404 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9405 | PyObject * obj1 = 0 ; |
9406 | PyObject * obj2 = 0 ; | |
9407 | PyObject * obj3 = 0 ; | |
9408 | PyObject * obj4 = 0 ; | |
d14a1e28 | 9409 | char *kwnames[] = { |
093d3ff1 | 9410 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9411 | }; |
9412 | ||
73c8ef6a | 9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
9414 | { |
9415 | arg1 = (int)(SWIG_As_int(obj0)); | |
9416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9417 | } | |
9418 | { | |
9419 | arg2 = (wxFontFamily)(SWIG_As_int(obj1)); | |
9420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9421 | } | |
9422 | if (obj2) { | |
9423 | { | |
9424 | arg3 = (int)(SWIG_As_int(obj2)); | |
9425 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9426 | } | |
9427 | } | |
9428 | if (obj3) { | |
9429 | { | |
9430 | arg4 = wxString_in_helper(obj3); | |
9431 | if (arg4 == NULL) SWIG_fail; | |
9432 | temp4 = true; | |
9433 | } | |
9434 | } | |
9435 | if (obj4) { | |
9436 | { | |
9437 | arg5 = (wxFontEncoding)(SWIG_As_int(obj4)); | |
9438 | if (SWIG_arg_fail(5)) SWIG_fail; | |
9439 | } | |
9440 | } | |
d14a1e28 | 9441 | { |
093d3ff1 | 9442 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9444 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); |
d14a1e28 RD |
9445 | |
9446 | wxPyEndAllowThreads(__tstate); | |
9447 | if (PyErr_Occurred()) SWIG_fail; | |
9448 | } | |
093d3ff1 | 9449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9450 | { |
093d3ff1 RD |
9451 | if (temp4) |
9452 | delete arg4; | |
d14a1e28 RD |
9453 | } |
9454 | return resultobj; | |
9455 | fail: | |
093d3ff1 RD |
9456 | { |
9457 | if (temp4) | |
9458 | delete arg4; | |
9459 | } | |
d14a1e28 RD |
9460 | return NULL; |
9461 | } | |
9462 | ||
9463 | ||
093d3ff1 | 9464 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 9465 | PyObject *resultobj; |
093d3ff1 RD |
9466 | wxSize *arg1 = 0 ; |
9467 | int arg2 ; | |
9468 | int arg3 ; | |
9469 | int arg4 ; | |
9470 | bool arg5 = (bool) false ; | |
9471 | wxString const &arg6_defvalue = wxEmptyString ; | |
9472 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9473 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9474 | wxFont *result; | |
9475 | wxSize temp1 ; | |
9476 | bool temp6 = false ; | |
d14a1e28 | 9477 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9478 | PyObject * obj1 = 0 ; |
9479 | PyObject * obj2 = 0 ; | |
9480 | PyObject * obj3 = 0 ; | |
9481 | PyObject * obj4 = 0 ; | |
9482 | PyObject * obj5 = 0 ; | |
9483 | PyObject * obj6 = 0 ; | |
d14a1e28 | 9484 | char *kwnames[] = { |
093d3ff1 | 9485 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9486 | }; |
9487 | ||
093d3ff1 RD |
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9489 | { | |
9490 | arg1 = &temp1; | |
9491 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9492 | } | |
9493 | { | |
9494 | arg2 = (int)(SWIG_As_int(obj1)); | |
9495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9496 | } | |
9497 | { | |
9498 | arg3 = (int)(SWIG_As_int(obj2)); | |
9499 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9500 | } | |
9501 | { | |
9502 | arg4 = (int)(SWIG_As_int(obj3)); | |
9503 | if (SWIG_arg_fail(4)) SWIG_fail; | |
9504 | } | |
9505 | if (obj4) { | |
9506 | { | |
9507 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
9508 | if (SWIG_arg_fail(5)) SWIG_fail; | |
9509 | } | |
9510 | } | |
9511 | if (obj5) { | |
9512 | { | |
9513 | arg6 = wxString_in_helper(obj5); | |
9514 | if (arg6 == NULL) SWIG_fail; | |
9515 | temp6 = true; | |
9516 | } | |
9517 | } | |
9518 | if (obj6) { | |
9519 | { | |
9520 | arg7 = (wxFontEncoding)(SWIG_As_int(obj6)); | |
9521 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9522 | } | |
9523 | } | |
d14a1e28 | 9524 | { |
093d3ff1 | 9525 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9527 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); |
d14a1e28 RD |
9528 | |
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | } | |
093d3ff1 | 9532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9533 | { |
093d3ff1 RD |
9534 | if (temp6) |
9535 | delete arg6; | |
d14a1e28 RD |
9536 | } |
9537 | return resultobj; | |
9538 | fail: | |
093d3ff1 RD |
9539 | { |
9540 | if (temp6) | |
9541 | delete arg6; | |
9542 | } | |
d14a1e28 RD |
9543 | return NULL; |
9544 | } | |
9545 | ||
9546 | ||
73c8ef6a RD |
9547 | static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
9548 | PyObject *resultobj; | |
9549 | wxSize *arg1 = 0 ; | |
9550 | wxFontFamily arg2 ; | |
9551 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9552 | wxString const &arg4_defvalue = wxEmptyString ; | |
9553 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9554 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9555 | wxFont *result; | |
9556 | wxSize temp1 ; | |
9557 | bool temp4 = false ; | |
9558 | PyObject * obj0 = 0 ; | |
9559 | PyObject * obj1 = 0 ; | |
9560 | PyObject * obj2 = 0 ; | |
9561 | PyObject * obj3 = 0 ; | |
9562 | PyObject * obj4 = 0 ; | |
9563 | char *kwnames[] = { | |
9564 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
9565 | }; | |
9566 | ||
9567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9568 | { | |
9569 | arg1 = &temp1; | |
9570 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9571 | } | |
9572 | { | |
9573 | arg2 = (wxFontFamily)(SWIG_As_int(obj1)); | |
9574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9575 | } | |
9576 | if (obj2) { | |
9577 | { | |
9578 | arg3 = (int)(SWIG_As_int(obj2)); | |
9579 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9580 | } | |
9581 | } | |
9582 | if (obj3) { | |
9583 | { | |
9584 | arg4 = wxString_in_helper(obj3); | |
9585 | if (arg4 == NULL) SWIG_fail; | |
9586 | temp4 = true; | |
9587 | } | |
9588 | } | |
9589 | if (obj4) { | |
9590 | { | |
9591 | arg5 = (wxFontEncoding)(SWIG_As_int(obj4)); | |
9592 | if (SWIG_arg_fail(5)) SWIG_fail; | |
9593 | } | |
9594 | } | |
9595 | { | |
9596 | if (!wxPyCheckForApp()) SWIG_fail; | |
9597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9598 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
9599 | ||
9600 | wxPyEndAllowThreads(__tstate); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
9603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
9604 | { | |
9605 | if (temp4) | |
9606 | delete arg4; | |
9607 | } | |
9608 | return resultobj; | |
9609 | fail: | |
9610 | { | |
9611 | if (temp4) | |
9612 | delete arg4; | |
9613 | } | |
9614 | return NULL; | |
9615 | } | |
9616 | ||
9617 | ||
093d3ff1 | 9618 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9619 | PyObject *resultobj; |
9620 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9621 | bool result; |
d14a1e28 RD |
9622 | PyObject * obj0 = 0 ; |
9623 | char *kwnames[] = { | |
093d3ff1 | 9624 | (char *) "self", NULL |
d14a1e28 RD |
9625 | }; |
9626 | ||
093d3ff1 RD |
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; |
9628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9630 | { |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9632 | result = (bool)((wxFont const *)arg1)->Ok(); |
d14a1e28 RD |
9633 | |
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
093d3ff1 RD |
9637 | { |
9638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9639 | } | |
d14a1e28 RD |
9640 | return resultobj; |
9641 | fail: | |
9642 | return NULL; | |
9643 | } | |
9644 | ||
9645 | ||
093d3ff1 | 9646 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
b6294124 RD |
9647 | PyObject *resultobj; |
9648 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 RD |
9649 | wxFont *arg2 = (wxFont *) 0 ; |
9650 | bool result; | |
b6294124 RD |
9651 | PyObject * obj0 = 0 ; |
9652 | PyObject * obj1 = 0 ; | |
9653 | char *kwnames[] = { | |
093d3ff1 | 9654 | (char *) "self",(char *) "other", NULL |
b6294124 RD |
9655 | }; |
9656 | ||
093d3ff1 RD |
9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; |
9658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9660 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
b6294124 RD |
9662 | { |
9663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9664 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
b6294124 RD |
9665 | |
9666 | wxPyEndAllowThreads(__tstate); | |
9667 | if (PyErr_Occurred()) SWIG_fail; | |
9668 | } | |
093d3ff1 RD |
9669 | { |
9670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9671 | } | |
b6294124 RD |
9672 | return resultobj; |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
093d3ff1 | 9678 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9679 | PyObject *resultobj; |
9680 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 RD |
9681 | wxFont *arg2 = (wxFont *) 0 ; |
9682 | bool result; | |
d14a1e28 | 9683 | PyObject * obj0 = 0 ; |
994141e6 | 9684 | PyObject * obj1 = 0 ; |
d14a1e28 | 9685 | char *kwnames[] = { |
093d3ff1 | 9686 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
9687 | }; |
9688 | ||
093d3ff1 RD |
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; |
9690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9692 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9694 | { |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9696 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
9697 | |
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
093d3ff1 RD |
9701 | { |
9702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9703 | } | |
d14a1e28 RD |
9704 | return resultobj; |
9705 | fail: | |
9706 | return NULL; | |
9707 | } | |
9708 | ||
9709 | ||
093d3ff1 | 9710 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9711 | PyObject *resultobj; |
9712 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9713 | int result; |
d14a1e28 RD |
9714 | PyObject * obj0 = 0 ; |
9715 | char *kwnames[] = { | |
093d3ff1 | 9716 | (char *) "self", NULL |
d14a1e28 RD |
9717 | }; |
9718 | ||
093d3ff1 RD |
9719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; |
9720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9722 | { |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9724 | result = (int)((wxFont const *)arg1)->GetPointSize(); |
d14a1e28 RD |
9725 | |
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
093d3ff1 RD |
9729 | { |
9730 | resultobj = SWIG_From_int((int)(result)); | |
9731 | } | |
d14a1e28 RD |
9732 | return resultobj; |
9733 | fail: | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
093d3ff1 | 9738 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9739 | PyObject *resultobj; |
9740 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9741 | wxSize result; |
d14a1e28 RD |
9742 | PyObject * obj0 = 0 ; |
9743 | char *kwnames[] = { | |
093d3ff1 | 9744 | (char *) "self", NULL |
d14a1e28 RD |
9745 | }; |
9746 | ||
093d3ff1 RD |
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; |
9748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9750 | { |
9751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9752 | result = ((wxFont const *)arg1)->GetPixelSize(); |
d14a1e28 RD |
9753 | |
9754 | wxPyEndAllowThreads(__tstate); | |
9755 | if (PyErr_Occurred()) SWIG_fail; | |
9756 | } | |
093d3ff1 RD |
9757 | { |
9758 | wxSize * resultptr; | |
9759 | resultptr = new wxSize((wxSize &)(result)); | |
9760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
9761 | } | |
d14a1e28 RD |
9762 | return resultobj; |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
093d3ff1 | 9768 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9769 | PyObject *resultobj; |
9770 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9771 | bool result; |
d14a1e28 | 9772 | PyObject * obj0 = 0 ; |
d14a1e28 | 9773 | char *kwnames[] = { |
093d3ff1 | 9774 | (char *) "self", NULL |
d14a1e28 RD |
9775 | }; |
9776 | ||
093d3ff1 RD |
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; |
9778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9780 | { |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9782 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); |
d14a1e28 RD |
9783 | |
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
d14a1e28 | 9787 | { |
093d3ff1 | 9788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9789 | } |
9790 | return resultobj; | |
9791 | fail: | |
d14a1e28 RD |
9792 | return NULL; |
9793 | } | |
9794 | ||
9795 | ||
093d3ff1 | 9796 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9797 | PyObject *resultobj; |
9798 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9799 | int result; |
d14a1e28 | 9800 | PyObject * obj0 = 0 ; |
d14a1e28 | 9801 | char *kwnames[] = { |
093d3ff1 | 9802 | (char *) "self", NULL |
d14a1e28 RD |
9803 | }; |
9804 | ||
093d3ff1 RD |
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; |
9806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9808 | { |
9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9810 | result = (int)((wxFont const *)arg1)->GetFamily(); |
d14a1e28 RD |
9811 | |
9812 | wxPyEndAllowThreads(__tstate); | |
9813 | if (PyErr_Occurred()) SWIG_fail; | |
9814 | } | |
093d3ff1 RD |
9815 | { |
9816 | resultobj = SWIG_From_int((int)(result)); | |
9817 | } | |
d14a1e28 RD |
9818 | return resultobj; |
9819 | fail: | |
9820 | return NULL; | |
9821 | } | |
9822 | ||
9823 | ||
093d3ff1 | 9824 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9825 | PyObject *resultobj; |
9826 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9827 | int result; |
d14a1e28 RD |
9828 | PyObject * obj0 = 0 ; |
9829 | char *kwnames[] = { | |
093d3ff1 | 9830 | (char *) "self", NULL |
d14a1e28 RD |
9831 | }; |
9832 | ||
093d3ff1 RD |
9833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; |
9834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9836 | { |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9838 | result = (int)((wxFont const *)arg1)->GetStyle(); |
d14a1e28 RD |
9839 | |
9840 | wxPyEndAllowThreads(__tstate); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
093d3ff1 RD |
9843 | { |
9844 | resultobj = SWIG_From_int((int)(result)); | |
9845 | } | |
d14a1e28 RD |
9846 | return resultobj; |
9847 | fail: | |
9848 | return NULL; | |
9849 | } | |
9850 | ||
9851 | ||
093d3ff1 | 9852 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9853 | PyObject *resultobj; |
9854 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9855 | int result; |
d14a1e28 | 9856 | PyObject * obj0 = 0 ; |
d14a1e28 | 9857 | char *kwnames[] = { |
093d3ff1 | 9858 | (char *) "self", NULL |
d14a1e28 RD |
9859 | }; |
9860 | ||
093d3ff1 RD |
9861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; |
9862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9864 | { |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9866 | result = (int)((wxFont const *)arg1)->GetWeight(); |
d14a1e28 RD |
9867 | |
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
093d3ff1 RD |
9871 | { |
9872 | resultobj = SWIG_From_int((int)(result)); | |
9873 | } | |
d14a1e28 RD |
9874 | return resultobj; |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
093d3ff1 | 9880 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9881 | PyObject *resultobj; |
9882 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9883 | bool result; |
d14a1e28 | 9884 | PyObject * obj0 = 0 ; |
d14a1e28 | 9885 | char *kwnames[] = { |
093d3ff1 | 9886 | (char *) "self", NULL |
d14a1e28 RD |
9887 | }; |
9888 | ||
093d3ff1 RD |
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; |
9890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9892 | { |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9894 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); |
d14a1e28 RD |
9895 | |
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
d14a1e28 | 9899 | { |
093d3ff1 | 9900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9901 | } |
9902 | return resultobj; | |
9903 | fail: | |
d14a1e28 RD |
9904 | return NULL; |
9905 | } | |
9906 | ||
9907 | ||
093d3ff1 | 9908 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9909 | PyObject *resultobj; |
9910 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9911 | wxString result; |
d14a1e28 | 9912 | PyObject * obj0 = 0 ; |
d14a1e28 | 9913 | char *kwnames[] = { |
093d3ff1 | 9914 | (char *) "self", NULL |
d14a1e28 RD |
9915 | }; |
9916 | ||
093d3ff1 RD |
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; |
9918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9920 | { |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9922 | result = ((wxFont const *)arg1)->GetFaceName(); |
d14a1e28 RD |
9923 | |
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
d14a1e28 | 9927 | { |
093d3ff1 RD |
9928 | #if wxUSE_UNICODE |
9929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9930 | #else | |
9931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9932 | #endif | |
d14a1e28 RD |
9933 | } |
9934 | return resultobj; | |
9935 | fail: | |
d14a1e28 RD |
9936 | return NULL; |
9937 | } | |
9938 | ||
9939 | ||
093d3ff1 | 9940 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9941 | PyObject *resultobj; |
9942 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9943 | wxFontEncoding result; |
d14a1e28 RD |
9944 | PyObject * obj0 = 0 ; |
9945 | char *kwnames[] = { | |
9946 | (char *) "self", NULL | |
9947 | }; | |
9948 | ||
093d3ff1 RD |
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; |
9950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9952 | { |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9954 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); |
d14a1e28 RD |
9955 | |
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
093d3ff1 | 9959 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
9960 | return resultobj; |
9961 | fail: | |
9962 | return NULL; | |
9963 | } | |
9964 | ||
9965 | ||
093d3ff1 | 9966 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9967 | PyObject *resultobj; |
9968 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9969 | wxNativeFontInfo *result; |
d14a1e28 RD |
9970 | PyObject * obj0 = 0 ; |
9971 | char *kwnames[] = { | |
9972 | (char *) "self", NULL | |
9973 | }; | |
9974 | ||
093d3ff1 RD |
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; |
9976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9978 | { |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9980 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); |
d14a1e28 RD |
9981 | |
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
093d3ff1 | 9985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
9986 | return resultobj; |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
093d3ff1 | 9992 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9993 | PyObject *resultobj; |
9994 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 9995 | bool result; |
d14a1e28 RD |
9996 | PyObject * obj0 = 0 ; |
9997 | char *kwnames[] = { | |
9998 | (char *) "self", NULL | |
9999 | }; | |
10000 | ||
093d3ff1 RD |
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; |
10002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10004 | { |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10006 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); |
d14a1e28 RD |
10007 | |
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
10011 | { | |
093d3ff1 | 10012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10013 | } |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
093d3ff1 | 10020 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10021 | PyObject *resultobj; |
10022 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 10023 | wxString result; |
d14a1e28 | 10024 | PyObject * obj0 = 0 ; |
d14a1e28 | 10025 | char *kwnames[] = { |
093d3ff1 | 10026 | (char *) "self", NULL |
d14a1e28 RD |
10027 | }; |
10028 | ||
093d3ff1 RD |
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; |
10030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10032 | { |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10034 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); |
d14a1e28 RD |
10035 | |
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
093d3ff1 RD |
10039 | { |
10040 | #if wxUSE_UNICODE | |
10041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10042 | #else | |
10043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10044 | #endif | |
10045 | } | |
d14a1e28 RD |
10046 | return resultobj; |
10047 | fail: | |
10048 | return NULL; | |
10049 | } | |
10050 | ||
10051 | ||
093d3ff1 | 10052 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10053 | PyObject *resultobj; |
10054 | wxFont *arg1 = (wxFont *) 0 ; | |
093d3ff1 | 10055 | wxString result; |
d14a1e28 RD |
10056 | PyObject * obj0 = 0 ; |
10057 | char *kwnames[] = { | |
10058 | (char *) "self", NULL | |
10059 | }; | |
10060 | ||
093d3ff1 RD |
10061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; |
10062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10064 | { |
10065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10066 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); |
d14a1e28 RD |
10067 | |
10068 | wxPyEndAllowThreads(__tstate); | |
10069 | if (PyErr_Occurred()) SWIG_fail; | |
10070 | } | |
4f89f6a3 | 10071 | { |
093d3ff1 RD |
10072 | #if wxUSE_UNICODE |
10073 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10074 | #else | |
10075 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10076 | #endif | |
4f89f6a3 | 10077 | } |
d14a1e28 RD |
10078 | return resultobj; |
10079 | fail: | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
093d3ff1 | 10084 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10085 | PyObject *resultobj; |
093d3ff1 RD |
10086 | wxFont *arg1 = (wxFont *) 0 ; |
10087 | int arg2 ; | |
10088 | PyObject * obj0 = 0 ; | |
10089 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10090 | char *kwnames[] = { |
093d3ff1 | 10091 | (char *) "self",(char *) "pointSize", NULL |
d14a1e28 RD |
10092 | }; |
10093 | ||
093d3ff1 RD |
10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
10095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10097 | { | |
10098 | arg2 = (int)(SWIG_As_int(obj1)); | |
10099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10100 | } | |
d14a1e28 RD |
10101 | { |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10103 | (arg1)->SetPointSize(arg2); |
d14a1e28 RD |
10104 | |
10105 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10106 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10107 | } |
093d3ff1 | 10108 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10109 | return resultobj; |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
093d3ff1 | 10115 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10116 | PyObject *resultobj; |
093d3ff1 RD |
10117 | wxFont *arg1 = (wxFont *) 0 ; |
10118 | wxSize *arg2 = 0 ; | |
10119 | wxSize temp2 ; | |
994141e6 | 10120 | PyObject * obj0 = 0 ; |
093d3ff1 | 10121 | PyObject * obj1 = 0 ; |
d14a1e28 | 10122 | char *kwnames[] = { |
093d3ff1 | 10123 | (char *) "self",(char *) "pixelSize", NULL |
d14a1e28 RD |
10124 | }; |
10125 | ||
093d3ff1 RD |
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; |
10127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10129 | { | |
10130 | arg2 = &temp2; | |
10131 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10132 | } | |
d14a1e28 RD |
10133 | { |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10135 | (arg1)->SetPixelSize((wxSize const &)*arg2); |
d14a1e28 RD |
10136 | |
10137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10138 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10139 | } |
10140 | Py_INCREF(Py_None); resultobj = Py_None; | |
10141 | return resultobj; | |
10142 | fail: | |
10143 | return NULL; | |
10144 | } | |
10145 | ||
10146 | ||
093d3ff1 | 10147 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10148 | PyObject *resultobj; |
093d3ff1 RD |
10149 | wxFont *arg1 = (wxFont *) 0 ; |
10150 | int arg2 ; | |
10151 | PyObject * obj0 = 0 ; | |
10152 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10153 | char *kwnames[] = { |
093d3ff1 | 10154 | (char *) "self",(char *) "family", NULL |
d14a1e28 RD |
10155 | }; |
10156 | ||
093d3ff1 RD |
10157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
10158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10160 | { | |
10161 | arg2 = (int)(SWIG_As_int(obj1)); | |
10162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10163 | } | |
d14a1e28 RD |
10164 | { |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10166 | (arg1)->SetFamily(arg2); |
d14a1e28 RD |
10167 | |
10168 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10169 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10170 | } |
093d3ff1 | 10171 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10172 | return resultobj; |
10173 | fail: | |
10174 | return NULL; | |
10175 | } | |
10176 | ||
10177 | ||
093d3ff1 | 10178 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10179 | PyObject *resultobj; |
093d3ff1 RD |
10180 | wxFont *arg1 = (wxFont *) 0 ; |
10181 | int arg2 ; | |
d14a1e28 | 10182 | PyObject * obj0 = 0 ; |
093d3ff1 | 10183 | PyObject * obj1 = 0 ; |
d14a1e28 | 10184 | char *kwnames[] = { |
093d3ff1 | 10185 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
10186 | }; |
10187 | ||
093d3ff1 RD |
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
10189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10191 | { | |
10192 | arg2 = (int)(SWIG_As_int(obj1)); | |
10193 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10194 | } | |
d14a1e28 RD |
10195 | { |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10197 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
10198 | |
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | Py_INCREF(Py_None); resultobj = Py_None; | |
10203 | return resultobj; | |
10204 | fail: | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
093d3ff1 | 10209 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10210 | PyObject *resultobj; |
093d3ff1 RD |
10211 | wxFont *arg1 = (wxFont *) 0 ; |
10212 | int arg2 ; | |
d14a1e28 RD |
10213 | PyObject * obj0 = 0 ; |
10214 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10215 | char *kwnames[] = { |
093d3ff1 | 10216 | (char *) "self",(char *) "weight", NULL |
d14a1e28 RD |
10217 | }; |
10218 | ||
093d3ff1 RD |
10219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
10220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10222 | { | |
10223 | arg2 = (int)(SWIG_As_int(obj1)); | |
10224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10225 | } | |
d14a1e28 RD |
10226 | { |
10227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10228 | (arg1)->SetWeight(arg2); |
d14a1e28 RD |
10229 | |
10230 | wxPyEndAllowThreads(__tstate); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | } | |
10233 | Py_INCREF(Py_None); resultobj = Py_None; | |
10234 | return resultobj; | |
10235 | fail: | |
10236 | return NULL; | |
10237 | } | |
10238 | ||
10239 | ||
093d3ff1 | 10240 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10241 | PyObject *resultobj; |
093d3ff1 RD |
10242 | wxFont *arg1 = (wxFont *) 0 ; |
10243 | wxString *arg2 = 0 ; | |
10244 | bool temp2 = false ; | |
d14a1e28 | 10245 | PyObject * obj0 = 0 ; |
994141e6 | 10246 | PyObject * obj1 = 0 ; |
d14a1e28 | 10247 | char *kwnames[] = { |
093d3ff1 | 10248 | (char *) "self",(char *) "faceName", NULL |
d14a1e28 RD |
10249 | }; |
10250 | ||
093d3ff1 RD |
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
10252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10254 | { | |
10255 | arg2 = wxString_in_helper(obj1); | |
10256 | if (arg2 == NULL) SWIG_fail; | |
10257 | temp2 = true; | |
d14a1e28 RD |
10258 | } |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10261 | (arg1)->SetFaceName((wxString const &)*arg2); |
d14a1e28 RD |
10262 | |
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
093d3ff1 | 10266 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 10267 | { |
093d3ff1 RD |
10268 | if (temp2) |
10269 | delete arg2; | |
4f89f6a3 | 10270 | } |
d14a1e28 RD |
10271 | return resultobj; |
10272 | fail: | |
093d3ff1 RD |
10273 | { |
10274 | if (temp2) | |
10275 | delete arg2; | |
10276 | } | |
d14a1e28 RD |
10277 | return NULL; |
10278 | } | |
10279 | ||
10280 | ||
093d3ff1 | 10281 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10282 | PyObject *resultobj; |
093d3ff1 RD |
10283 | wxFont *arg1 = (wxFont *) 0 ; |
10284 | bool arg2 ; | |
d14a1e28 RD |
10285 | PyObject * obj0 = 0 ; |
10286 | PyObject * obj1 = 0 ; | |
10287 | char *kwnames[] = { | |
093d3ff1 | 10288 | (char *) "self",(char *) "underlined", NULL |
d14a1e28 RD |
10289 | }; |
10290 | ||
093d3ff1 RD |
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
10292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10294 | { | |
10295 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
10296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10297 | } |
10298 | { | |
10299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10300 | (arg1)->SetUnderlined(arg2); |
d14a1e28 RD |
10301 | |
10302 | wxPyEndAllowThreads(__tstate); | |
10303 | if (PyErr_Occurred()) SWIG_fail; | |
10304 | } | |
093d3ff1 | 10305 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10306 | return resultobj; |
10307 | fail: | |
d14a1e28 RD |
10308 | return NULL; |
10309 | } | |
10310 | ||
10311 | ||
093d3ff1 | 10312 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10313 | PyObject *resultobj; |
093d3ff1 RD |
10314 | wxFont *arg1 = (wxFont *) 0 ; |
10315 | wxFontEncoding arg2 ; | |
d14a1e28 | 10316 | PyObject * obj0 = 0 ; |
093d3ff1 | 10317 | PyObject * obj1 = 0 ; |
d14a1e28 | 10318 | char *kwnames[] = { |
093d3ff1 | 10319 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
10320 | }; |
10321 | ||
093d3ff1 RD |
10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
10323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10325 | { | |
10326 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); | |
10327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10328 | } | |
d14a1e28 RD |
10329 | { |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10331 | (arg1)->SetEncoding((wxFontEncoding )arg2); |
d14a1e28 RD |
10332 | |
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
093d3ff1 | 10336 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10337 | return resultobj; |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
093d3ff1 | 10343 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10344 | PyObject *resultobj; |
093d3ff1 RD |
10345 | wxFont *arg1 = (wxFont *) 0 ; |
10346 | wxNativeFontInfo *arg2 = 0 ; | |
d14a1e28 | 10347 | PyObject * obj0 = 0 ; |
093d3ff1 | 10348 | PyObject * obj1 = 0 ; |
d14a1e28 | 10349 | char *kwnames[] = { |
093d3ff1 | 10350 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10351 | }; |
10352 | ||
093d3ff1 RD |
10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; |
10354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10356 | { | |
10357 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
10358 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10359 | if (arg2 == NULL) { | |
10360 | SWIG_null_ref("wxNativeFontInfo"); | |
10361 | } | |
10362 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10363 | } | |
d14a1e28 RD |
10364 | { |
10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10366 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); |
d14a1e28 RD |
10367 | |
10368 | wxPyEndAllowThreads(__tstate); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
d14a1e28 RD |
10371 | Py_INCREF(Py_None); resultobj = Py_None; |
10372 | return resultobj; | |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
093d3ff1 | 10378 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10379 | PyObject *resultobj; |
093d3ff1 RD |
10380 | wxFont *arg1 = (wxFont *) 0 ; |
10381 | wxString *arg2 = 0 ; | |
ae8162c8 | 10382 | bool temp2 = false ; |
d14a1e28 RD |
10383 | PyObject * obj0 = 0 ; |
10384 | PyObject * obj1 = 0 ; | |
10385 | char *kwnames[] = { | |
093d3ff1 | 10386 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10387 | }; |
10388 | ||
093d3ff1 RD |
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; |
10390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
10392 | { |
10393 | arg2 = wxString_in_helper(obj1); | |
10394 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10395 | temp2 = true; |
7eae615b | 10396 | } |
093d3ff1 RD |
10397 | { |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
d14a1e28 | 10404 | Py_INCREF(Py_None); resultobj = Py_None; |
7eae615b RD |
10405 | { |
10406 | if (temp2) | |
10407 | delete arg2; | |
10408 | } | |
d14a1e28 RD |
10409 | return resultobj; |
10410 | fail: | |
7eae615b RD |
10411 | { |
10412 | if (temp2) | |
10413 | delete arg2; | |
10414 | } | |
d14a1e28 RD |
10415 | return NULL; |
10416 | } | |
10417 | ||
10418 | ||
093d3ff1 | 10419 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10420 | PyObject *resultobj; |
093d3ff1 RD |
10421 | wxFont *arg1 = (wxFont *) 0 ; |
10422 | wxString *arg2 = 0 ; | |
ae8162c8 | 10423 | bool temp2 = false ; |
d14a1e28 RD |
10424 | PyObject * obj0 = 0 ; |
10425 | PyObject * obj1 = 0 ; | |
10426 | char *kwnames[] = { | |
093d3ff1 | 10427 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10428 | }; |
10429 | ||
093d3ff1 RD |
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; |
10431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
10433 | { |
10434 | arg2 = wxString_in_helper(obj1); | |
10435 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10436 | temp2 = true; |
7eae615b | 10437 | } |
093d3ff1 RD |
10438 | { |
10439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10440 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
10441 | ||
10442 | wxPyEndAllowThreads(__tstate); | |
10443 | if (PyErr_Occurred()) SWIG_fail; | |
10444 | } | |
d14a1e28 | 10445 | Py_INCREF(Py_None); resultobj = Py_None; |
7eae615b RD |
10446 | { |
10447 | if (temp2) | |
10448 | delete arg2; | |
10449 | } | |
d14a1e28 RD |
10450 | return resultobj; |
10451 | fail: | |
7eae615b RD |
10452 | { |
10453 | if (temp2) | |
10454 | delete arg2; | |
10455 | } | |
d14a1e28 RD |
10456 | return NULL; |
10457 | } | |
10458 | ||
10459 | ||
093d3ff1 | 10460 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10461 | PyObject *resultobj; |
093d3ff1 RD |
10462 | wxFont *arg1 = (wxFont *) 0 ; |
10463 | wxString result; | |
d14a1e28 RD |
10464 | PyObject * obj0 = 0 ; |
10465 | char *kwnames[] = { | |
10466 | (char *) "self", NULL | |
10467 | }; | |
10468 | ||
093d3ff1 RD |
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; |
10470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10472 | { | |
10473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10474 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
10475 | ||
10476 | wxPyEndAllowThreads(__tstate); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
d14a1e28 RD |
10479 | { |
10480 | #if wxUSE_UNICODE | |
093d3ff1 | 10481 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 10482 | #else |
093d3ff1 | 10483 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 RD |
10484 | #endif |
10485 | } | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
093d3ff1 | 10492 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10493 | PyObject *resultobj; |
093d3ff1 RD |
10494 | wxFont *arg1 = (wxFont *) 0 ; |
10495 | wxString result; | |
994141e6 | 10496 | PyObject * obj0 = 0 ; |
d14a1e28 | 10497 | char *kwnames[] = { |
093d3ff1 | 10498 | (char *) "self", NULL |
d14a1e28 RD |
10499 | }; |
10500 | ||
093d3ff1 RD |
10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; |
10502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10504 | { |
10505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10506 | result = ((wxFont const *)arg1)->GetStyleString(); |
d14a1e28 RD |
10507 | |
10508 | wxPyEndAllowThreads(__tstate); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
093d3ff1 RD |
10511 | { |
10512 | #if wxUSE_UNICODE | |
10513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10514 | #else | |
10515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10516 | #endif | |
10517 | } | |
d14a1e28 RD |
10518 | return resultobj; |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
093d3ff1 | 10524 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10525 | PyObject *resultobj; |
093d3ff1 RD |
10526 | wxFont *arg1 = (wxFont *) 0 ; |
10527 | wxString result; | |
d14a1e28 RD |
10528 | PyObject * obj0 = 0 ; |
10529 | char *kwnames[] = { | |
10530 | (char *) "self", NULL | |
10531 | }; | |
10532 | ||
093d3ff1 RD |
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; |
10534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10536 | { |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10538 | result = ((wxFont const *)arg1)->GetWeightString(); |
d14a1e28 RD |
10539 | |
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
093d3ff1 RD |
10543 | { |
10544 | #if wxUSE_UNICODE | |
10545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10546 | #else | |
10547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10548 | #endif | |
10549 | } | |
10550 | return resultobj; | |
10551 | fail: | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
10556 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 10557 | PyObject *resultobj; |
093d3ff1 RD |
10558 | wxFont *arg1 = (wxFont *) 0 ; |
10559 | bool arg2 = (bool) true ; | |
d14a1e28 RD |
10560 | PyObject * obj0 = 0 ; |
10561 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10562 | char *kwnames[] = { |
093d3ff1 | 10563 | (char *) "self",(char *) "no", NULL |
d14a1e28 RD |
10564 | }; |
10565 | ||
093d3ff1 RD |
10566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; |
10567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10569 | if (obj1) { | |
d14a1e28 | 10570 | { |
093d3ff1 RD |
10571 | arg2 = (bool)(SWIG_As_bool(obj1)); |
10572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10573 | } |
10574 | } | |
d14a1e28 RD |
10575 | { |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10577 | (arg1)->SetNoAntiAliasing(arg2); |
d14a1e28 RD |
10578 | |
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
093d3ff1 | 10582 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10583 | return resultobj; |
10584 | fail: | |
d14a1e28 RD |
10585 | return NULL; |
10586 | } | |
10587 | ||
10588 | ||
093d3ff1 | 10589 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10590 | PyObject *resultobj; |
093d3ff1 | 10591 | wxFont *arg1 = (wxFont *) 0 ; |
d14a1e28 RD |
10592 | bool result; |
10593 | PyObject * obj0 = 0 ; | |
10594 | char *kwnames[] = { | |
093d3ff1 | 10595 | (char *) "self", NULL |
d14a1e28 RD |
10596 | }; |
10597 | ||
093d3ff1 RD |
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; |
10599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10601 | { |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10603 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d14a1e28 RD |
10604 | |
10605 | wxPyEndAllowThreads(__tstate); | |
10606 | if (PyErr_Occurred()) SWIG_fail; | |
10607 | } | |
4f89f6a3 RD |
10608 | { |
10609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10610 | } | |
d14a1e28 RD |
10611 | return resultobj; |
10612 | fail: | |
10613 | return NULL; | |
10614 | } | |
10615 | ||
10616 | ||
093d3ff1 | 10617 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10618 | PyObject *resultobj; |
093d3ff1 | 10619 | wxFontEncoding result; |
d14a1e28 RD |
10620 | char *kwnames[] = { |
10621 | NULL | |
10622 | }; | |
10623 | ||
093d3ff1 | 10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; |
d14a1e28 | 10625 | { |
093d3ff1 | 10626 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 10628 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); |
d14a1e28 RD |
10629 | |
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
093d3ff1 | 10633 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
10634 | return resultobj; |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
093d3ff1 | 10640 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10641 | PyObject *resultobj; |
093d3ff1 RD |
10642 | wxFontEncoding arg1 ; |
10643 | PyObject * obj0 = 0 ; | |
d14a1e28 | 10644 | char *kwnames[] = { |
093d3ff1 | 10645 | (char *) "encoding", NULL |
d14a1e28 RD |
10646 | }; |
10647 | ||
093d3ff1 RD |
10648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
10649 | { | |
10650 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); | |
10651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10652 | } | |
d14a1e28 | 10653 | { |
093d3ff1 | 10654 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 10656 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); |
d14a1e28 RD |
10657 | |
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
093d3ff1 | 10661 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10662 | return resultobj; |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
093d3ff1 RD |
10668 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
10669 | PyObject *obj; | |
10670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10671 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
10672 | Py_INCREF(obj); | |
10673 | return Py_BuildValue((char *)""); | |
10674 | } | |
10675 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 10676 | PyObject *resultobj; |
093d3ff1 | 10677 | wxPyFontEnumerator *result; |
d14a1e28 RD |
10678 | char *kwnames[] = { |
10679 | NULL | |
10680 | }; | |
10681 | ||
093d3ff1 | 10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; |
d14a1e28 | 10683 | { |
093d3ff1 | 10684 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 10686 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); |
d14a1e28 RD |
10687 | |
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
10690 | } | |
093d3ff1 | 10691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
10692 | return resultobj; |
10693 | fail: | |
10694 | return NULL; | |
10695 | } | |
10696 | ||
10697 | ||
093d3ff1 | 10698 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10699 | PyObject *resultobj; |
093d3ff1 | 10700 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
d14a1e28 RD |
10701 | PyObject * obj0 = 0 ; |
10702 | char *kwnames[] = { | |
10703 | (char *) "self", NULL | |
10704 | }; | |
10705 | ||
093d3ff1 RD |
10706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; |
10707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10709 | { |
10710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10711 | delete arg1; |
d14a1e28 RD |
10712 | |
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
093d3ff1 | 10716 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10717 | return resultobj; |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
093d3ff1 | 10723 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10724 | PyObject *resultobj; |
093d3ff1 RD |
10725 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10726 | PyObject *arg2 = (PyObject *) 0 ; | |
10727 | PyObject *arg3 = (PyObject *) 0 ; | |
10728 | bool arg4 ; | |
d14a1e28 | 10729 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
10730 | PyObject * obj1 = 0 ; |
10731 | PyObject * obj2 = 0 ; | |
10732 | PyObject * obj3 = 0 ; | |
d14a1e28 | 10733 | char *kwnames[] = { |
093d3ff1 | 10734 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
d14a1e28 RD |
10735 | }; |
10736 | ||
093d3ff1 RD |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10740 | arg2 = obj1; | |
10741 | arg3 = obj2; | |
10742 | { | |
10743 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
10744 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10745 | } | |
d14a1e28 RD |
10746 | { |
10747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10748 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
d14a1e28 RD |
10749 | |
10750 | wxPyEndAllowThreads(__tstate); | |
10751 | if (PyErr_Occurred()) SWIG_fail; | |
10752 | } | |
093d3ff1 | 10753 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10754 | return resultobj; |
10755 | fail: | |
10756 | return NULL; | |
10757 | } | |
10758 | ||
10759 | ||
093d3ff1 | 10760 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10761 | PyObject *resultobj; |
093d3ff1 RD |
10762 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10763 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
10764 | bool arg3 = (bool) false ; | |
10765 | bool result; | |
d14a1e28 | 10766 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
10767 | PyObject * obj1 = 0 ; |
10768 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10769 | char *kwnames[] = { |
093d3ff1 | 10770 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL |
d14a1e28 RD |
10771 | }; |
10772 | ||
093d3ff1 RD |
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
10774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10776 | if (obj1) { | |
10777 | { | |
10778 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); | |
10779 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10780 | } | |
10781 | } | |
10782 | if (obj2) { | |
10783 | { | |
10784 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
10785 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10786 | } | |
10787 | } | |
d14a1e28 RD |
10788 | { |
10789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10790 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); |
d14a1e28 RD |
10791 | |
10792 | wxPyEndAllowThreads(__tstate); | |
10793 | if (PyErr_Occurred()) SWIG_fail; | |
10794 | } | |
093d3ff1 RD |
10795 | { |
10796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10797 | } | |
d14a1e28 RD |
10798 | return resultobj; |
10799 | fail: | |
10800 | return NULL; | |
10801 | } | |
10802 | ||
10803 | ||
093d3ff1 | 10804 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10805 | PyObject *resultobj; |
093d3ff1 RD |
10806 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10807 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10808 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10809 | bool result; | |
10810 | bool temp2 = false ; | |
d14a1e28 | 10811 | PyObject * obj0 = 0 ; |
093d3ff1 | 10812 | PyObject * obj1 = 0 ; |
d14a1e28 | 10813 | char *kwnames[] = { |
093d3ff1 | 10814 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
10815 | }; |
10816 | ||
093d3ff1 RD |
10817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; |
10818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10820 | if (obj1) { | |
10821 | { | |
10822 | arg2 = wxString_in_helper(obj1); | |
10823 | if (arg2 == NULL) SWIG_fail; | |
10824 | temp2 = true; | |
10825 | } | |
10826 | } | |
d14a1e28 RD |
10827 | { |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10829 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); |
d14a1e28 RD |
10830 | |
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
10834 | { | |
093d3ff1 RD |
10835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
10836 | } | |
10837 | { | |
10838 | if (temp2) | |
10839 | delete arg2; | |
d14a1e28 RD |
10840 | } |
10841 | return resultobj; | |
10842 | fail: | |
093d3ff1 RD |
10843 | { |
10844 | if (temp2) | |
10845 | delete arg2; | |
10846 | } | |
10847 | return NULL; | |
d14a1e28 RD |
10848 | } |
10849 | ||
10850 | ||
093d3ff1 | 10851 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10852 | PyObject *resultobj; |
093d3ff1 RD |
10853 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10854 | PyObject *result; | |
d14a1e28 RD |
10855 | PyObject * obj0 = 0 ; |
10856 | char *kwnames[] = { | |
10857 | (char *) "self", NULL | |
10858 | }; | |
10859 | ||
093d3ff1 RD |
10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; |
10861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10863 | { |
10864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10865 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); |
d14a1e28 RD |
10866 | |
10867 | wxPyEndAllowThreads(__tstate); | |
10868 | if (PyErr_Occurred()) SWIG_fail; | |
10869 | } | |
093d3ff1 | 10870 | resultobj = result; |
d14a1e28 RD |
10871 | return resultobj; |
10872 | fail: | |
10873 | return NULL; | |
10874 | } | |
10875 | ||
10876 | ||
093d3ff1 | 10877 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10878 | PyObject *resultobj; |
093d3ff1 RD |
10879 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10880 | PyObject *result; | |
d14a1e28 RD |
10881 | PyObject * obj0 = 0 ; |
10882 | char *kwnames[] = { | |
093d3ff1 | 10883 | (char *) "self", NULL |
d14a1e28 RD |
10884 | }; |
10885 | ||
093d3ff1 RD |
10886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; |
10887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10889 | { |
10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10891 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); |
d14a1e28 RD |
10892 | |
10893 | wxPyEndAllowThreads(__tstate); | |
10894 | if (PyErr_Occurred()) SWIG_fail; | |
10895 | } | |
093d3ff1 RD |
10896 | resultobj = result; |
10897 | return resultobj; | |
10898 | fail: | |
10899 | return NULL; | |
10900 | } | |
10901 | ||
10902 | ||
10903 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { | |
10904 | PyObject *obj; | |
10905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10906 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
10907 | Py_INCREF(obj); | |
10908 | return Py_BuildValue((char *)""); | |
10909 | } | |
10910 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
10911 | PyObject *resultobj; | |
10912 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
10913 | int arg2 ; | |
10914 | PyObject * obj0 = 0 ; | |
10915 | PyObject * obj1 = 0 ; | |
10916 | char *kwnames[] = { | |
10917 | (char *) "self",(char *) "Language", NULL | |
10918 | }; | |
10919 | ||
10920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
10921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
10922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 10923 | { |
093d3ff1 RD |
10924 | arg2 = (int)(SWIG_As_int(obj1)); |
10925 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 10926 | } |
093d3ff1 RD |
10927 | if (arg1) (arg1)->Language = arg2; |
10928 | ||
10929 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
10930 | return resultobj; |
10931 | fail: | |
093d3ff1 RD |
10932 | return NULL; |
10933 | } | |
10934 | ||
10935 | ||
10936 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
10937 | PyObject *resultobj; | |
10938 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
10939 | int result; | |
10940 | PyObject * obj0 = 0 ; | |
10941 | char *kwnames[] = { | |
10942 | (char *) "self", NULL | |
10943 | }; | |
10944 | ||
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
10946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
10947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10948 | result = (int) ((arg1)->Language); | |
10949 | ||
d14a1e28 | 10950 | { |
093d3ff1 | 10951 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 | 10952 | } |
093d3ff1 RD |
10953 | return resultobj; |
10954 | fail: | |
d14a1e28 RD |
10955 | return NULL; |
10956 | } | |
10957 | ||
10958 | ||
093d3ff1 | 10959 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10960 | PyObject *resultobj; |
093d3ff1 RD |
10961 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
10962 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 10963 | bool temp2 = false ; |
d14a1e28 RD |
10964 | PyObject * obj0 = 0 ; |
10965 | PyObject * obj1 = 0 ; | |
10966 | char *kwnames[] = { | |
093d3ff1 | 10967 | (char *) "self",(char *) "CanonicalName", NULL |
d14a1e28 RD |
10968 | }; |
10969 | ||
093d3ff1 RD |
10970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; |
10971 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
10972 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10973 | { |
10974 | arg2 = wxString_in_helper(obj1); | |
10975 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10976 | temp2 = true; |
d14a1e28 | 10977 | } |
093d3ff1 RD |
10978 | if (arg1) (arg1)->CanonicalName = *arg2; |
10979 | ||
10980 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
10981 | { |
10982 | if (temp2) | |
10983 | delete arg2; | |
10984 | } | |
10985 | return resultobj; | |
10986 | fail: | |
10987 | { | |
10988 | if (temp2) | |
10989 | delete arg2; | |
10990 | } | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
093d3ff1 | 10995 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10996 | PyObject *resultobj; |
093d3ff1 RD |
10997 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
10998 | wxString *result; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | char *kwnames[] = { | |
11001 | (char *) "self", NULL | |
11002 | }; | |
11003 | ||
11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
11005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11007 | result = (wxString *)& ((arg1)->CanonicalName); | |
11008 | ||
11009 | { | |
11010 | #if wxUSE_UNICODE | |
11011 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11012 | #else | |
11013 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11014 | #endif | |
11015 | } | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
11022 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
11025 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 11026 | bool temp2 = false ; |
d14a1e28 RD |
11027 | PyObject * obj0 = 0 ; |
11028 | PyObject * obj1 = 0 ; | |
11029 | char *kwnames[] = { | |
093d3ff1 | 11030 | (char *) "self",(char *) "Description", NULL |
d14a1e28 RD |
11031 | }; |
11032 | ||
093d3ff1 RD |
11033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; |
11034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11036 | { |
11037 | arg2 = wxString_in_helper(obj1); | |
11038 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11039 | temp2 = true; |
d14a1e28 | 11040 | } |
093d3ff1 RD |
11041 | if (arg1) (arg1)->Description = *arg2; |
11042 | ||
11043 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11044 | { |
11045 | if (temp2) | |
11046 | delete arg2; | |
11047 | } | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | { | |
11051 | if (temp2) | |
11052 | delete arg2; | |
11053 | } | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
093d3ff1 | 11058 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11059 | PyObject *resultobj; |
093d3ff1 RD |
11060 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11061 | wxString *result; | |
994141e6 | 11062 | PyObject * obj0 = 0 ; |
d14a1e28 | 11063 | char *kwnames[] = { |
093d3ff1 | 11064 | (char *) "self", NULL |
d14a1e28 RD |
11065 | }; |
11066 | ||
093d3ff1 RD |
11067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; |
11068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11070 | result = (wxString *)& ((arg1)->Description); | |
11071 | ||
d14a1e28 | 11072 | { |
093d3ff1 RD |
11073 | #if wxUSE_UNICODE |
11074 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11075 | #else | |
11076 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11077 | #endif | |
d14a1e28 | 11078 | } |
d14a1e28 RD |
11079 | return resultobj; |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
093d3ff1 RD |
11085 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
11086 | PyObject *obj; | |
11087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11088 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
11089 | Py_INCREF(obj); | |
11090 | return Py_BuildValue((char *)""); | |
11091 | } | |
11092 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 11093 | PyObject *resultobj; |
093d3ff1 RD |
11094 | int arg1 = (int) -1 ; |
11095 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11096 | wxLocale *result; | |
994141e6 | 11097 | PyObject * obj0 = 0 ; |
093d3ff1 | 11098 | PyObject * obj1 = 0 ; |
d14a1e28 | 11099 | char *kwnames[] = { |
093d3ff1 | 11100 | (char *) "language",(char *) "flags", NULL |
d14a1e28 RD |
11101 | }; |
11102 | ||
093d3ff1 RD |
11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
11104 | if (obj0) { | |
11105 | { | |
11106 | arg1 = (int)(SWIG_As_int(obj0)); | |
11107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11108 | } | |
11109 | } | |
11110 | if (obj1) { | |
11111 | { | |
11112 | arg2 = (int)(SWIG_As_int(obj1)); | |
11113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11114 | } | |
11115 | } | |
d14a1e28 RD |
11116 | { |
11117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11118 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d14a1e28 RD |
11119 | |
11120 | wxPyEndAllowThreads(__tstate); | |
11121 | if (PyErr_Occurred()) SWIG_fail; | |
11122 | } | |
093d3ff1 | 11123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
11124 | return resultobj; |
11125 | fail: | |
11126 | return NULL; | |
11127 | } | |
11128 | ||
11129 | ||
093d3ff1 | 11130 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11131 | PyObject *resultobj; |
093d3ff1 | 11132 | wxLocale *arg1 = (wxLocale *) 0 ; |
d14a1e28 RD |
11133 | PyObject * obj0 = 0 ; |
11134 | char *kwnames[] = { | |
093d3ff1 | 11135 | (char *) "self", NULL |
d14a1e28 RD |
11136 | }; |
11137 | ||
093d3ff1 RD |
11138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; |
11139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11141 | { |
11142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11143 | delete arg1; |
d14a1e28 RD |
11144 | |
11145 | wxPyEndAllowThreads(__tstate); | |
11146 | if (PyErr_Occurred()) SWIG_fail; | |
11147 | } | |
093d3ff1 | 11148 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
11149 | return resultobj; |
11150 | fail: | |
d14a1e28 RD |
11151 | return NULL; |
11152 | } | |
11153 | ||
11154 | ||
093d3ff1 | 11155 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11156 | PyObject *resultobj; |
11157 | wxLocale *arg1 = (wxLocale *) 0 ; | |
11158 | wxString *arg2 = 0 ; | |
11159 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11160 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
093d3ff1 RD |
11161 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11162 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11163 | bool arg5 = (bool) true ; | |
11164 | bool arg6 = (bool) false ; | |
11165 | bool result; | |
ae8162c8 RD |
11166 | bool temp2 = false ; |
11167 | bool temp3 = false ; | |
093d3ff1 | 11168 | bool temp4 = false ; |
d14a1e28 RD |
11169 | PyObject * obj0 = 0 ; |
11170 | PyObject * obj1 = 0 ; | |
11171 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
11172 | PyObject * obj3 = 0 ; |
11173 | PyObject * obj4 = 0 ; | |
11174 | PyObject * obj5 = 0 ; | |
d14a1e28 | 11175 | char *kwnames[] = { |
093d3ff1 | 11176 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL |
d14a1e28 RD |
11177 | }; |
11178 | ||
093d3ff1 RD |
11179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
11180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11182 | { |
11183 | arg2 = wxString_in_helper(obj1); | |
11184 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11185 | temp2 = true; |
d14a1e28 RD |
11186 | } |
11187 | if (obj2) { | |
11188 | { | |
11189 | arg3 = wxString_in_helper(obj2); | |
11190 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11191 | temp3 = true; |
d14a1e28 RD |
11192 | } |
11193 | } | |
093d3ff1 RD |
11194 | if (obj3) { |
11195 | { | |
11196 | arg4 = wxString_in_helper(obj3); | |
11197 | if (arg4 == NULL) SWIG_fail; | |
11198 | temp4 = true; | |
11199 | } | |
11200 | } | |
11201 | if (obj4) { | |
11202 | { | |
11203 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
11204 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11205 | } | |
11206 | } | |
11207 | if (obj5) { | |
11208 | { | |
11209 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
11210 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11211 | } | |
11212 | } | |
d14a1e28 RD |
11213 | { |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11215 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d14a1e28 RD |
11216 | |
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | { | |
093d3ff1 | 11221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11222 | } |
11223 | { | |
11224 | if (temp2) | |
11225 | delete arg2; | |
11226 | } | |
11227 | { | |
11228 | if (temp3) | |
11229 | delete arg3; | |
11230 | } | |
093d3ff1 RD |
11231 | { |
11232 | if (temp4) | |
11233 | delete arg4; | |
11234 | } | |
d14a1e28 RD |
11235 | return resultobj; |
11236 | fail: | |
11237 | { | |
11238 | if (temp2) | |
11239 | delete arg2; | |
11240 | } | |
11241 | { | |
11242 | if (temp3) | |
11243 | delete arg3; | |
11244 | } | |
093d3ff1 RD |
11245 | { |
11246 | if (temp4) | |
11247 | delete arg4; | |
11248 | } | |
d14a1e28 RD |
11249 | return NULL; |
11250 | } | |
11251 | ||
11252 | ||
093d3ff1 | 11253 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11254 | PyObject *resultobj; |
11255 | wxLocale *arg1 = (wxLocale *) 0 ; | |
093d3ff1 RD |
11256 | int arg2 = (int) wxLANGUAGE_DEFAULT ; |
11257 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11258 | bool result; | |
d14a1e28 | 11259 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
11260 | PyObject * obj1 = 0 ; |
11261 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11262 | char *kwnames[] = { |
093d3ff1 | 11263 | (char *) "self",(char *) "language",(char *) "flags", NULL |
d14a1e28 RD |
11264 | }; |
11265 | ||
093d3ff1 RD |
11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11269 | if (obj1) { | |
d14a1e28 | 11270 | { |
093d3ff1 RD |
11271 | arg2 = (int)(SWIG_As_int(obj1)); |
11272 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11273 | } | |
11274 | } | |
11275 | if (obj2) { | |
11276 | { | |
11277 | arg3 = (int)(SWIG_As_int(obj2)); | |
11278 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 | 11279 | } |
093d3ff1 RD |
11280 | } |
11281 | { | |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
d14a1e28 RD |
11284 | |
11285 | wxPyEndAllowThreads(__tstate); | |
11286 | if (PyErr_Occurred()) SWIG_fail; | |
11287 | } | |
cc6dd355 | 11288 | { |
093d3ff1 | 11289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
cc6dd355 | 11290 | } |
d14a1e28 RD |
11291 | return resultobj; |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
093d3ff1 | 11297 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11298 | PyObject *resultobj; |
093d3ff1 | 11299 | int result; |
d14a1e28 RD |
11300 | char *kwnames[] = { |
11301 | NULL | |
11302 | }; | |
11303 | ||
093d3ff1 | 11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; |
d14a1e28 RD |
11305 | { |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11307 | result = (int)wxLocale::GetSystemLanguage(); |
d14a1e28 RD |
11308 | |
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
093d3ff1 RD |
11312 | { |
11313 | resultobj = SWIG_From_int((int)(result)); | |
11314 | } | |
d14a1e28 RD |
11315 | return resultobj; |
11316 | fail: | |
11317 | return NULL; | |
11318 | } | |
11319 | ||
11320 | ||
093d3ff1 | 11321 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11322 | PyObject *resultobj; |
093d3ff1 RD |
11323 | wxFontEncoding result; |
11324 | char *kwnames[] = { | |
11325 | NULL | |
11326 | }; | |
d14a1e28 | 11327 | |
093d3ff1 | 11328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; |
d14a1e28 RD |
11329 | { |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11331 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); |
d14a1e28 RD |
11332 | |
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
093d3ff1 | 11336 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
11337 | return resultobj; |
11338 | fail: | |
d14a1e28 RD |
11339 | return NULL; |
11340 | } | |
11341 | ||
11342 | ||
093d3ff1 | 11343 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11344 | PyObject *resultobj; |
d14a1e28 | 11345 | wxString result; |
093d3ff1 RD |
11346 | char *kwnames[] = { |
11347 | NULL | |
11348 | }; | |
d14a1e28 | 11349 | |
093d3ff1 | 11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; |
d14a1e28 RD |
11351 | { |
11352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11353 | result = wxLocale::GetSystemEncodingName(); |
d14a1e28 RD |
11354 | |
11355 | wxPyEndAllowThreads(__tstate); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
11357 | } | |
11358 | { | |
11359 | #if wxUSE_UNICODE | |
11360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11361 | #else | |
11362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11363 | #endif | |
11364 | } | |
d14a1e28 RD |
11365 | return resultobj; |
11366 | fail: | |
d14a1e28 RD |
11367 | return NULL; |
11368 | } | |
11369 | ||
11370 | ||
093d3ff1 | 11371 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11372 | PyObject *resultobj; |
093d3ff1 RD |
11373 | wxLocale *arg1 = (wxLocale *) 0 ; |
11374 | bool result; | |
11375 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11376 | char *kwnames[] = { |
093d3ff1 | 11377 | (char *) "self", NULL |
d14a1e28 RD |
11378 | }; |
11379 | ||
093d3ff1 RD |
11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; |
11381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11383 | { |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11385 | result = (bool)((wxLocale const *)arg1)->IsOk(); |
d14a1e28 RD |
11386 | |
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
093d3ff1 RD |
11390 | { |
11391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11392 | } | |
d14a1e28 RD |
11393 | return resultobj; |
11394 | fail: | |
11395 | return NULL; | |
11396 | } | |
11397 | ||
11398 | ||
093d3ff1 | 11399 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11400 | PyObject *resultobj; |
093d3ff1 RD |
11401 | wxLocale *arg1 = (wxLocale *) 0 ; |
11402 | wxString result; | |
d14a1e28 RD |
11403 | PyObject * obj0 = 0 ; |
11404 | char *kwnames[] = { | |
11405 | (char *) "self", NULL | |
11406 | }; | |
11407 | ||
093d3ff1 RD |
11408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; |
11409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11411 | { |
11412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11413 | result = ((wxLocale const *)arg1)->GetLocale(); |
d14a1e28 RD |
11414 | |
11415 | wxPyEndAllowThreads(__tstate); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
093d3ff1 RD |
11418 | { |
11419 | #if wxUSE_UNICODE | |
11420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11421 | #else | |
11422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11423 | #endif | |
11424 | } | |
d14a1e28 RD |
11425 | return resultobj; |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
093d3ff1 | 11431 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11432 | PyObject *resultobj; |
093d3ff1 RD |
11433 | wxLocale *arg1 = (wxLocale *) 0 ; |
11434 | int result; | |
d14a1e28 RD |
11435 | PyObject * obj0 = 0 ; |
11436 | char *kwnames[] = { | |
093d3ff1 | 11437 | (char *) "self", NULL |
d14a1e28 RD |
11438 | }; |
11439 | ||
093d3ff1 RD |
11440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; |
11441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11443 | { |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11445 | result = (int)((wxLocale const *)arg1)->GetLanguage(); |
d14a1e28 RD |
11446 | |
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
4f89f6a3 | 11450 | { |
093d3ff1 | 11451 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 11452 | } |
d14a1e28 RD |
11453 | return resultobj; |
11454 | fail: | |
11455 | return NULL; | |
11456 | } | |
11457 | ||
11458 | ||
093d3ff1 | 11459 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11460 | PyObject *resultobj; |
093d3ff1 | 11461 | wxLocale *arg1 = (wxLocale *) 0 ; |
d14a1e28 | 11462 | wxString result; |
d14a1e28 | 11463 | PyObject * obj0 = 0 ; |
d14a1e28 | 11464 | char *kwnames[] = { |
093d3ff1 | 11465 | (char *) "self", NULL |
d14a1e28 RD |
11466 | }; |
11467 | ||
093d3ff1 RD |
11468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; |
11469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11471 | { |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11473 | result = ((wxLocale const *)arg1)->GetSysName(); |
d14a1e28 RD |
11474 | |
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | { | |
11479 | #if wxUSE_UNICODE | |
11480 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11481 | #else | |
11482 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11483 | #endif | |
11484 | } | |
d14a1e28 RD |
11485 | return resultobj; |
11486 | fail: | |
d14a1e28 RD |
11487 | return NULL; |
11488 | } | |
11489 | ||
11490 | ||
093d3ff1 | 11491 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11492 | PyObject *resultobj; |
093d3ff1 RD |
11493 | wxLocale *arg1 = (wxLocale *) 0 ; |
11494 | wxString result; | |
994141e6 | 11495 | PyObject * obj0 = 0 ; |
d14a1e28 | 11496 | char *kwnames[] = { |
093d3ff1 | 11497 | (char *) "self", NULL |
d14a1e28 RD |
11498 | }; |
11499 | ||
093d3ff1 RD |
11500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; |
11501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11503 | { |
11504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11505 | result = ((wxLocale const *)arg1)->GetCanonicalName(); |
d14a1e28 RD |
11506 | |
11507 | wxPyEndAllowThreads(__tstate); | |
11508 | if (PyErr_Occurred()) SWIG_fail; | |
11509 | } | |
11510 | { | |
093d3ff1 RD |
11511 | #if wxUSE_UNICODE |
11512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11513 | #else | |
11514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11515 | #endif | |
d14a1e28 RD |
11516 | } |
11517 | return resultobj; | |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
093d3ff1 | 11523 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11524 | PyObject *resultobj; |
093d3ff1 RD |
11525 | wxString *arg1 = 0 ; |
11526 | bool temp1 = false ; | |
994141e6 | 11527 | PyObject * obj0 = 0 ; |
d14a1e28 | 11528 | char *kwnames[] = { |
093d3ff1 | 11529 | (char *) "prefix", NULL |
d14a1e28 RD |
11530 | }; |
11531 | ||
093d3ff1 RD |
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; |
11533 | { | |
11534 | arg1 = wxString_in_helper(obj0); | |
11535 | if (arg1 == NULL) SWIG_fail; | |
11536 | temp1 = true; | |
11537 | } | |
d14a1e28 RD |
11538 | { |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11540 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); |
d14a1e28 RD |
11541 | |
11542 | wxPyEndAllowThreads(__tstate); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
093d3ff1 | 11545 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 11546 | { |
093d3ff1 RD |
11547 | if (temp1) |
11548 | delete arg1; | |
d14a1e28 RD |
11549 | } |
11550 | return resultobj; | |
11551 | fail: | |
093d3ff1 RD |
11552 | { |
11553 | if (temp1) | |
11554 | delete arg1; | |
11555 | } | |
d14a1e28 RD |
11556 | return NULL; |
11557 | } | |
11558 | ||
11559 | ||
093d3ff1 | 11560 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11561 | PyObject *resultobj; |
093d3ff1 RD |
11562 | wxLocale *arg1 = (wxLocale *) 0 ; |
11563 | wxString *arg2 = 0 ; | |
d14a1e28 | 11564 | bool result; |
093d3ff1 | 11565 | bool temp2 = false ; |
994141e6 RD |
11566 | PyObject * obj0 = 0 ; |
11567 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11568 | char *kwnames[] = { |
093d3ff1 | 11569 | (char *) "self",(char *) "szDomain", NULL |
d14a1e28 RD |
11570 | }; |
11571 | ||
093d3ff1 RD |
11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; |
11573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11575 | { | |
11576 | arg2 = wxString_in_helper(obj1); | |
11577 | if (arg2 == NULL) SWIG_fail; | |
11578 | temp2 = true; | |
11579 | } | |
d14a1e28 RD |
11580 | { |
11581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11582 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); |
d14a1e28 RD |
11583 | |
11584 | wxPyEndAllowThreads(__tstate); | |
11585 | if (PyErr_Occurred()) SWIG_fail; | |
11586 | } | |
4f89f6a3 RD |
11587 | { |
11588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11589 | } | |
093d3ff1 RD |
11590 | { |
11591 | if (temp2) | |
11592 | delete arg2; | |
11593 | } | |
d14a1e28 RD |
11594 | return resultobj; |
11595 | fail: | |
093d3ff1 RD |
11596 | { |
11597 | if (temp2) | |
11598 | delete arg2; | |
11599 | } | |
d14a1e28 RD |
11600 | return NULL; |
11601 | } | |
11602 | ||
11603 | ||
093d3ff1 | 11604 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11605 | PyObject *resultobj; |
093d3ff1 RD |
11606 | wxLocale *arg1 = (wxLocale *) 0 ; |
11607 | wxString *arg2 = 0 ; | |
11608 | bool result; | |
11609 | bool temp2 = false ; | |
d14a1e28 | 11610 | PyObject * obj0 = 0 ; |
093d3ff1 | 11611 | PyObject * obj1 = 0 ; |
d14a1e28 | 11612 | char *kwnames[] = { |
093d3ff1 | 11613 | (char *) "self",(char *) "szDomain", NULL |
d14a1e28 RD |
11614 | }; |
11615 | ||
093d3ff1 RD |
11616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; |
11617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11619 | { | |
11620 | arg2 = wxString_in_helper(obj1); | |
11621 | if (arg2 == NULL) SWIG_fail; | |
11622 | temp2 = true; | |
11623 | } | |
d14a1e28 RD |
11624 | { |
11625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11626 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); |
d14a1e28 RD |
11627 | |
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
093d3ff1 RD |
11631 | { |
11632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11633 | } | |
11634 | { | |
11635 | if (temp2) | |
11636 | delete arg2; | |
11637 | } | |
d14a1e28 RD |
11638 | return resultobj; |
11639 | fail: | |
093d3ff1 RD |
11640 | { |
11641 | if (temp2) | |
11642 | delete arg2; | |
11643 | } | |
d14a1e28 RD |
11644 | return NULL; |
11645 | } | |
11646 | ||
11647 | ||
093d3ff1 | 11648 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11649 | PyObject *resultobj; |
093d3ff1 RD |
11650 | int arg1 ; |
11651 | wxLanguageInfo *result; | |
d14a1e28 RD |
11652 | PyObject * obj0 = 0 ; |
11653 | char *kwnames[] = { | |
093d3ff1 | 11654 | (char *) "lang", NULL |
d14a1e28 RD |
11655 | }; |
11656 | ||
093d3ff1 RD |
11657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
11658 | { | |
11659 | arg1 = (int)(SWIG_As_int(obj0)); | |
11660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11661 | } | |
d14a1e28 RD |
11662 | { |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11664 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); |
d14a1e28 RD |
11665 | |
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
093d3ff1 | 11669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
11670 | return resultobj; |
11671 | fail: | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
093d3ff1 | 11676 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11677 | PyObject *resultobj; |
093d3ff1 RD |
11678 | int arg1 ; |
11679 | wxString result; | |
d14a1e28 RD |
11680 | PyObject * obj0 = 0 ; |
11681 | char *kwnames[] = { | |
093d3ff1 | 11682 | (char *) "lang", NULL |
d14a1e28 RD |
11683 | }; |
11684 | ||
093d3ff1 RD |
11685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
11686 | { | |
11687 | arg1 = (int)(SWIG_As_int(obj0)); | |
11688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11689 | } | |
d14a1e28 RD |
11690 | { |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11692 | result = wxLocale::GetLanguageName(arg1); |
d14a1e28 RD |
11693 | |
11694 | wxPyEndAllowThreads(__tstate); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
093d3ff1 RD |
11697 | { |
11698 | #if wxUSE_UNICODE | |
11699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11700 | #else | |
11701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11702 | #endif | |
11703 | } | |
d14a1e28 RD |
11704 | return resultobj; |
11705 | fail: | |
11706 | return NULL; | |
11707 | } | |
11708 | ||
11709 | ||
093d3ff1 | 11710 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11711 | PyObject *resultobj; |
093d3ff1 RD |
11712 | wxString *arg1 = 0 ; |
11713 | wxLanguageInfo *result; | |
11714 | bool temp1 = false ; | |
d14a1e28 | 11715 | PyObject * obj0 = 0 ; |
d14a1e28 | 11716 | char *kwnames[] = { |
093d3ff1 | 11717 | (char *) "locale", NULL |
d14a1e28 RD |
11718 | }; |
11719 | ||
093d3ff1 | 11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; |
d14a1e28 | 11721 | { |
093d3ff1 RD |
11722 | arg1 = wxString_in_helper(obj0); |
11723 | if (arg1 == NULL) SWIG_fail; | |
11724 | temp1 = true; | |
994141e6 | 11725 | } |
d14a1e28 RD |
11726 | { |
11727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11728 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
d14a1e28 RD |
11729 | |
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
093d3ff1 | 11733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
4f89f6a3 | 11734 | { |
093d3ff1 RD |
11735 | if (temp1) |
11736 | delete arg1; | |
4f89f6a3 | 11737 | } |
d14a1e28 RD |
11738 | return resultobj; |
11739 | fail: | |
093d3ff1 RD |
11740 | { |
11741 | if (temp1) | |
11742 | delete arg1; | |
11743 | } | |
d14a1e28 RD |
11744 | return NULL; |
11745 | } | |
11746 | ||
11747 | ||
093d3ff1 | 11748 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11749 | PyObject *resultobj; |
093d3ff1 | 11750 | wxLanguageInfo *arg1 = 0 ; |
d14a1e28 | 11751 | PyObject * obj0 = 0 ; |
d14a1e28 | 11752 | char *kwnames[] = { |
093d3ff1 | 11753 | (char *) "info", NULL |
d14a1e28 RD |
11754 | }; |
11755 | ||
093d3ff1 | 11756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; |
d14a1e28 | 11757 | { |
093d3ff1 RD |
11758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); |
11759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11760 | if (arg1 == NULL) { | |
11761 | SWIG_null_ref("wxLanguageInfo"); | |
11762 | } | |
11763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 11764 | } |
d14a1e28 RD |
11765 | { |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11767 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); |
d14a1e28 RD |
11768 | |
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
093d3ff1 | 11772 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
11773 | return resultobj; |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
093d3ff1 | 11779 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11780 | PyObject *resultobj; |
093d3ff1 RD |
11781 | wxLocale *arg1 = (wxLocale *) 0 ; |
11782 | wxString *arg2 = 0 ; | |
11783 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11784 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11785 | wxString result; | |
11786 | bool temp2 = false ; | |
11787 | bool temp3 = false ; | |
d14a1e28 | 11788 | PyObject * obj0 = 0 ; |
994141e6 RD |
11789 | PyObject * obj1 = 0 ; |
11790 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11791 | char *kwnames[] = { |
093d3ff1 | 11792 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL |
d14a1e28 RD |
11793 | }; |
11794 | ||
093d3ff1 RD |
11795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11798 | { | |
11799 | arg2 = wxString_in_helper(obj1); | |
11800 | if (arg2 == NULL) SWIG_fail; | |
11801 | temp2 = true; | |
11802 | } | |
11803 | if (obj2) { | |
11804 | { | |
11805 | arg3 = wxString_in_helper(obj2); | |
11806 | if (arg3 == NULL) SWIG_fail; | |
11807 | temp3 = true; | |
11808 | } | |
11809 | } | |
d14a1e28 RD |
11810 | { |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11812 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); |
d14a1e28 RD |
11813 | |
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | { | |
093d3ff1 RD |
11818 | #if wxUSE_UNICODE |
11819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11820 | #else | |
11821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11822 | #endif | |
11823 | } | |
11824 | { | |
11825 | if (temp2) | |
11826 | delete arg2; | |
11827 | } | |
11828 | { | |
11829 | if (temp3) | |
11830 | delete arg3; | |
d14a1e28 RD |
11831 | } |
11832 | return resultobj; | |
11833 | fail: | |
093d3ff1 RD |
11834 | { |
11835 | if (temp2) | |
11836 | delete arg2; | |
11837 | } | |
11838 | { | |
11839 | if (temp3) | |
11840 | delete arg3; | |
11841 | } | |
d14a1e28 RD |
11842 | return NULL; |
11843 | } | |
11844 | ||
11845 | ||
093d3ff1 | 11846 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11847 | PyObject *resultobj; |
093d3ff1 RD |
11848 | wxLocale *arg1 = (wxLocale *) 0 ; |
11849 | wxString *result; | |
d14a1e28 | 11850 | PyObject * obj0 = 0 ; |
d14a1e28 | 11851 | char *kwnames[] = { |
093d3ff1 | 11852 | (char *) "self", NULL |
d14a1e28 RD |
11853 | }; |
11854 | ||
093d3ff1 RD |
11855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; |
11856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11858 | { |
11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
11860 | { |
11861 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
11862 | result = (wxString *) &_result_ref; | |
11863 | } | |
d14a1e28 RD |
11864 | |
11865 | wxPyEndAllowThreads(__tstate); | |
11866 | if (PyErr_Occurred()) SWIG_fail; | |
11867 | } | |
11868 | { | |
093d3ff1 RD |
11869 | #if wxUSE_UNICODE |
11870 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11871 | #else | |
11872 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11873 | #endif | |
d14a1e28 RD |
11874 | } |
11875 | return resultobj; | |
11876 | fail: | |
11877 | return NULL; | |
11878 | } | |
11879 | ||
11880 | ||
093d3ff1 RD |
11881 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
11882 | PyObject *obj; | |
11883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11884 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
11885 | Py_INCREF(obj); | |
11886 | return Py_BuildValue((char *)""); | |
11887 | } | |
11888 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 11889 | PyObject *resultobj; |
093d3ff1 | 11890 | wxLocale *result; |
d14a1e28 | 11891 | char *kwnames[] = { |
093d3ff1 | 11892 | NULL |
d14a1e28 RD |
11893 | }; |
11894 | ||
093d3ff1 | 11895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; |
d14a1e28 RD |
11896 | { |
11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11898 | result = (wxLocale *)wxGetLocale(); |
d14a1e28 RD |
11899 | |
11900 | wxPyEndAllowThreads(__tstate); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
093d3ff1 | 11903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
11904 | return resultobj; |
11905 | fail: | |
11906 | return NULL; | |
11907 | } | |
11908 | ||
11909 | ||
093d3ff1 | 11910 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 | 11911 | PyObject *resultobj; |
093d3ff1 RD |
11912 | wxString *arg1 = 0 ; |
11913 | wxString result; | |
11914 | bool temp1 = false ; | |
d14a1e28 | 11915 | PyObject * obj0 = 0 ; |
d14a1e28 | 11916 | |
093d3ff1 | 11917 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; |
d14a1e28 | 11918 | { |
093d3ff1 RD |
11919 | arg1 = wxString_in_helper(obj0); |
11920 | if (arg1 == NULL) SWIG_fail; | |
11921 | temp1 = true; | |
d14a1e28 RD |
11922 | } |
11923 | { | |
11924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11925 | result = wxGetTranslation((wxString const &)*arg1); |
d14a1e28 RD |
11926 | |
11927 | wxPyEndAllowThreads(__tstate); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
093d3ff1 RD |
11930 | { |
11931 | #if wxUSE_UNICODE | |
11932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11933 | #else | |
11934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11935 | #endif | |
11936 | } | |
11937 | { | |
11938 | if (temp1) | |
11939 | delete arg1; | |
11940 | } | |
d14a1e28 RD |
11941 | return resultobj; |
11942 | fail: | |
093d3ff1 RD |
11943 | { |
11944 | if (temp1) | |
11945 | delete arg1; | |
11946 | } | |
d14a1e28 RD |
11947 | return NULL; |
11948 | } | |
11949 | ||
11950 | ||
093d3ff1 | 11951 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 | 11952 | PyObject *resultobj; |
093d3ff1 RD |
11953 | wxString *arg1 = 0 ; |
11954 | wxString *arg2 = 0 ; | |
11955 | size_t arg3 ; | |
11956 | wxString result; | |
11957 | bool temp1 = false ; | |
11958 | bool temp2 = false ; | |
d14a1e28 | 11959 | PyObject * obj0 = 0 ; |
994141e6 RD |
11960 | PyObject * obj1 = 0 ; |
11961 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11962 | |
093d3ff1 RD |
11963 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; |
11964 | { | |
11965 | arg1 = wxString_in_helper(obj0); | |
11966 | if (arg1 == NULL) SWIG_fail; | |
11967 | temp1 = true; | |
11968 | } | |
11969 | { | |
11970 | arg2 = wxString_in_helper(obj1); | |
11971 | if (arg2 == NULL) SWIG_fail; | |
11972 | temp2 = true; | |
11973 | } | |
11974 | { | |
11975 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
11976 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11977 | } | |
d14a1e28 RD |
11978 | { |
11979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11980 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); |
d14a1e28 RD |
11981 | |
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
093d3ff1 RD |
11985 | { |
11986 | #if wxUSE_UNICODE | |
11987 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11988 | #else | |
11989 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11990 | #endif | |
11991 | } | |
11992 | { | |
11993 | if (temp1) | |
11994 | delete arg1; | |
11995 | } | |
11996 | { | |
11997 | if (temp2) | |
11998 | delete arg2; | |
11999 | } | |
d14a1e28 RD |
12000 | return resultobj; |
12001 | fail: | |
093d3ff1 RD |
12002 | { |
12003 | if (temp1) | |
12004 | delete arg1; | |
12005 | } | |
12006 | { | |
12007 | if (temp2) | |
12008 | delete arg2; | |
12009 | } | |
d14a1e28 RD |
12010 | return NULL; |
12011 | } | |
12012 | ||
12013 | ||
093d3ff1 RD |
12014 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
12015 | int argc; | |
12016 | PyObject *argv[4]; | |
12017 | int ii; | |
d14a1e28 | 12018 | |
093d3ff1 RD |
12019 | argc = PyObject_Length(args); |
12020 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
12021 | argv[ii] = PyTuple_GetItem(args,ii); | |
12022 | } | |
12023 | if (argc == 1) { | |
12024 | int _v; | |
12025 | { | |
12026 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12027 | } | |
12028 | if (_v) { | |
12029 | return _wrap_GetTranslation__SWIG_0(self,args); | |
12030 | } | |
12031 | } | |
12032 | if (argc == 3) { | |
12033 | int _v; | |
12034 | { | |
12035 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12036 | } | |
12037 | if (_v) { | |
12038 | { | |
12039 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
12040 | } | |
12041 | if (_v) { | |
12042 | _v = SWIG_Check_unsigned_SS_long(argv[2]); | |
12043 | if (_v) { | |
12044 | return _wrap_GetTranslation__SWIG_1(self,args); | |
12045 | } | |
12046 | } | |
12047 | } | |
12048 | } | |
12049 | ||
12050 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxEncodingConverter *result; | |
12058 | char *kwnames[] = { | |
12059 | NULL | |
12060 | }; | |
12061 | ||
12062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
d14a1e28 RD |
12063 | { |
12064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12065 | result = (wxEncodingConverter *)new wxEncodingConverter(); |
d14a1e28 RD |
12066 | |
12067 | wxPyEndAllowThreads(__tstate); | |
12068 | if (PyErr_Occurred()) SWIG_fail; | |
12069 | } | |
093d3ff1 | 12070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
12071 | return resultobj; |
12072 | fail: | |
12073 | return NULL; | |
12074 | } | |
12075 | ||
12076 | ||
093d3ff1 | 12077 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12078 | PyObject *resultobj; |
093d3ff1 | 12079 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
d14a1e28 RD |
12080 | PyObject * obj0 = 0 ; |
12081 | char *kwnames[] = { | |
093d3ff1 | 12082 | (char *) "self", NULL |
d14a1e28 RD |
12083 | }; |
12084 | ||
093d3ff1 RD |
12085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; |
12086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12088 | { |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12090 | delete arg1; |
d14a1e28 RD |
12091 | |
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | Py_INCREF(Py_None); resultobj = Py_None; | |
12096 | return resultobj; | |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
093d3ff1 | 12102 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12103 | PyObject *resultobj; |
093d3ff1 RD |
12104 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
12105 | wxFontEncoding arg2 ; | |
12106 | wxFontEncoding arg3 ; | |
12107 | int arg4 = (int) wxCONVERT_STRICT ; | |
12108 | bool result; | |
d14a1e28 RD |
12109 | PyObject * obj0 = 0 ; |
12110 | PyObject * obj1 = 0 ; | |
12111 | PyObject * obj2 = 0 ; | |
12112 | PyObject * obj3 = 0 ; | |
12113 | char *kwnames[] = { | |
093d3ff1 | 12114 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL |
d14a1e28 RD |
12115 | }; |
12116 | ||
093d3ff1 RD |
12117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12120 | { |
093d3ff1 RD |
12121 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); |
12122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
12123 | } |
12124 | { | |
093d3ff1 RD |
12125 | arg3 = (wxFontEncoding)(SWIG_As_int(obj2)); |
12126 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 | 12127 | } |
093d3ff1 RD |
12128 | if (obj3) { |
12129 | { | |
12130 | arg4 = (int)(SWIG_As_int(obj3)); | |
12131 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12132 | } | |
d14a1e28 RD |
12133 | } |
12134 | { | |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12136 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); |
d14a1e28 RD |
12137 | |
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
093d3ff1 RD |
12141 | { |
12142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12143 | } | |
d14a1e28 RD |
12144 | return resultobj; |
12145 | fail: | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
093d3ff1 | 12150 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12151 | PyObject *resultobj; |
093d3ff1 RD |
12152 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
12153 | wxString *arg2 = 0 ; | |
12154 | wxString result; | |
12155 | bool temp2 = false ; | |
d14a1e28 | 12156 | PyObject * obj0 = 0 ; |
994141e6 | 12157 | PyObject * obj1 = 0 ; |
d14a1e28 | 12158 | char *kwnames[] = { |
093d3ff1 | 12159 | (char *) "self",(char *) "input", NULL |
d14a1e28 RD |
12160 | }; |
12161 | ||
093d3ff1 RD |
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; |
12163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12165 | { | |
12166 | arg2 = wxString_in_helper(obj1); | |
12167 | if (arg2 == NULL) SWIG_fail; | |
12168 | temp2 = true; | |
12169 | } | |
994141e6 RD |
12170 | { |
12171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12172 | result = (arg1)->Convert((wxString const &)*arg2); |
994141e6 RD |
12173 | |
12174 | wxPyEndAllowThreads(__tstate); | |
12175 | if (PyErr_Occurred()) SWIG_fail; | |
12176 | } | |
093d3ff1 RD |
12177 | { |
12178 | #if wxUSE_UNICODE | |
12179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12180 | #else | |
12181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12182 | #endif | |
12183 | } | |
12184 | { | |
12185 | if (temp2) | |
12186 | delete arg2; | |
12187 | } | |
994141e6 RD |
12188 | return resultobj; |
12189 | fail: | |
093d3ff1 RD |
12190 | { |
12191 | if (temp2) | |
12192 | delete arg2; | |
12193 | } | |
994141e6 RD |
12194 | return NULL; |
12195 | } | |
12196 | ||
12197 | ||
093d3ff1 | 12198 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12199 | PyObject *resultobj; |
093d3ff1 RD |
12200 | wxFontEncoding arg1 ; |
12201 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
12202 | wxFontEncodingArray result; | |
d14a1e28 RD |
12203 | PyObject * obj0 = 0 ; |
12204 | PyObject * obj1 = 0 ; | |
12205 | char *kwnames[] = { | |
093d3ff1 | 12206 | (char *) "enc",(char *) "platform", NULL |
d14a1e28 RD |
12207 | }; |
12208 | ||
093d3ff1 | 12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12210 | { |
093d3ff1 RD |
12211 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); |
12212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12213 | } | |
12214 | if (obj1) { | |
12215 | { | |
12216 | arg2 = (int)(SWIG_As_int(obj1)); | |
12217 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12218 | } | |
d14a1e28 RD |
12219 | } |
12220 | { | |
12221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12222 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); |
d14a1e28 RD |
12223 | |
12224 | wxPyEndAllowThreads(__tstate); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
093d3ff1 RD |
12227 | { |
12228 | resultobj = PyList_New(0); | |
12229 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12230 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12231 | PyList_Append(resultobj, number); | |
12232 | Py_DECREF(number); | |
12233 | } | |
12234 | } | |
d14a1e28 RD |
12235 | return resultobj; |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
093d3ff1 | 12241 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12242 | PyObject *resultobj; |
093d3ff1 RD |
12243 | wxFontEncoding arg1 ; |
12244 | wxFontEncodingArray result; | |
d14a1e28 RD |
12245 | PyObject * obj0 = 0 ; |
12246 | char *kwnames[] = { | |
093d3ff1 | 12247 | (char *) "enc", NULL |
d14a1e28 RD |
12248 | }; |
12249 | ||
093d3ff1 RD |
12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
12251 | { | |
12252 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); | |
12253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12254 | } | |
d14a1e28 RD |
12255 | { |
12256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12257 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); |
d14a1e28 RD |
12258 | |
12259 | wxPyEndAllowThreads(__tstate); | |
12260 | if (PyErr_Occurred()) SWIG_fail; | |
12261 | } | |
093d3ff1 RD |
12262 | { |
12263 | resultobj = PyList_New(0); | |
12264 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12265 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12266 | PyList_Append(resultobj, number); | |
12267 | Py_DECREF(number); | |
12268 | } | |
12269 | } | |
d14a1e28 RD |
12270 | return resultobj; |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
093d3ff1 | 12276 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12277 | PyObject *resultobj; |
093d3ff1 RD |
12278 | wxFontEncoding arg1 ; |
12279 | wxFontEncoding arg2 ; | |
12280 | bool result; | |
d14a1e28 RD |
12281 | PyObject * obj0 = 0 ; |
12282 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12283 | char *kwnames[] = { |
093d3ff1 | 12284 | (char *) "encIn",(char *) "encOut", NULL |
d14a1e28 RD |
12285 | }; |
12286 | ||
093d3ff1 | 12287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12288 | { |
093d3ff1 RD |
12289 | arg1 = (wxFontEncoding)(SWIG_As_int(obj0)); |
12290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12291 | } |
12292 | { | |
093d3ff1 RD |
12293 | arg2 = (wxFontEncoding)(SWIG_As_int(obj1)); |
12294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
12295 | } |
12296 | { | |
12297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12298 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); |
d14a1e28 RD |
12299 | |
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
093d3ff1 RD |
12303 | { |
12304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12305 | } | |
d14a1e28 RD |
12306 | return resultobj; |
12307 | fail: | |
12308 | return NULL; | |
12309 | } | |
12310 | ||
12311 | ||
093d3ff1 RD |
12312 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
12313 | PyObject *obj; | |
12314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12315 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
12316 | Py_INCREF(obj); | |
12317 | return Py_BuildValue((char *)""); | |
12318 | } | |
12319 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
12320 | PyObject *resultobj; |
12321 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 RD |
12322 | PyObject * obj0 = 0 ; |
12323 | char *kwnames[] = { | |
093d3ff1 | 12324 | (char *) "self", NULL |
d14a1e28 RD |
12325 | }; |
12326 | ||
093d3ff1 RD |
12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; |
12328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12330 | { |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12332 | delete arg1; |
d14a1e28 RD |
12333 | |
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | Py_INCREF(Py_None); resultobj = Py_None; | |
12338 | return resultobj; | |
12339 | fail: | |
12340 | return NULL; | |
12341 | } | |
12342 | ||
12343 | ||
093d3ff1 | 12344 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12345 | PyObject *resultobj; |
12346 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 | 12347 | PyObject * obj0 = 0 ; |
d14a1e28 | 12348 | char *kwnames[] = { |
093d3ff1 | 12349 | (char *) "self", NULL |
d14a1e28 RD |
12350 | }; |
12351 | ||
093d3ff1 RD |
12352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; |
12353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12355 | { |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12357 | (arg1)->BeginDrawing(); |
d14a1e28 RD |
12358 | |
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | Py_INCREF(Py_None); resultobj = Py_None; | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
093d3ff1 | 12369 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12370 | PyObject *resultobj; |
12371 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 RD |
12372 | PyObject * obj0 = 0 ; |
12373 | char *kwnames[] = { | |
093d3ff1 | 12374 | (char *) "self", NULL |
d14a1e28 RD |
12375 | }; |
12376 | ||
093d3ff1 RD |
12377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; |
12378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12380 | { |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12382 | (arg1)->EndDrawing(); |
d14a1e28 RD |
12383 | |
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
12387 | Py_INCREF(Py_None); resultobj = Py_None; | |
12388 | return resultobj; | |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
093d3ff1 | 12394 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12395 | PyObject *resultobj; |
12396 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12397 | int arg2 ; |
12398 | int arg3 ; | |
12399 | wxColour *arg4 = 0 ; | |
12400 | int arg5 = (int) wxFLOOD_SURFACE ; | |
12401 | bool result; | |
12402 | wxColour temp4 ; | |
d14a1e28 RD |
12403 | PyObject * obj0 = 0 ; |
12404 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
12405 | PyObject * obj2 = 0 ; |
12406 | PyObject * obj3 = 0 ; | |
12407 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12408 | char *kwnames[] = { |
093d3ff1 | 12409 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL |
d14a1e28 RD |
12410 | }; |
12411 | ||
093d3ff1 RD |
12412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12415 | { |
093d3ff1 RD |
12416 | arg2 = (int)(SWIG_As_int(obj1)); |
12417 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12418 | } | |
12419 | { | |
12420 | arg3 = (int)(SWIG_As_int(obj2)); | |
12421 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12422 | } | |
12423 | { | |
12424 | arg4 = &temp4; | |
12425 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12426 | } | |
12427 | if (obj4) { | |
12428 | { | |
12429 | arg5 = (int)(SWIG_As_int(obj4)); | |
12430 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12431 | } | |
d14a1e28 RD |
12432 | } |
12433 | { | |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12435 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); |
d14a1e28 RD |
12436 | |
12437 | wxPyEndAllowThreads(__tstate); | |
12438 | if (PyErr_Occurred()) SWIG_fail; | |
12439 | } | |
093d3ff1 RD |
12440 | { |
12441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12442 | } | |
d14a1e28 RD |
12443 | return resultobj; |
12444 | fail: | |
12445 | return NULL; | |
12446 | } | |
12447 | ||
12448 | ||
093d3ff1 | 12449 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12450 | PyObject *resultobj; |
12451 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 | 12452 | wxPoint *arg2 = 0 ; |
093d3ff1 RD |
12453 | wxColour *arg3 = 0 ; |
12454 | int arg4 = (int) wxFLOOD_SURFACE ; | |
12455 | bool result; | |
03e37cd5 | 12456 | wxPoint temp2 ; |
093d3ff1 | 12457 | wxColour temp3 ; |
d14a1e28 RD |
12458 | PyObject * obj0 = 0 ; |
12459 | PyObject * obj1 = 0 ; | |
03e37cd5 | 12460 | PyObject * obj2 = 0 ; |
093d3ff1 | 12461 | PyObject * obj3 = 0 ; |
d14a1e28 | 12462 | char *kwnames[] = { |
093d3ff1 | 12463 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL |
d14a1e28 RD |
12464 | }; |
12465 | ||
093d3ff1 RD |
12466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12469 | { |
12470 | arg2 = &temp2; | |
03e37cd5 RD |
12471 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12472 | } | |
12473 | { | |
12474 | arg3 = &temp3; | |
093d3ff1 RD |
12475 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; |
12476 | } | |
12477 | if (obj3) { | |
12478 | { | |
12479 | arg4 = (int)(SWIG_As_int(obj3)); | |
12480 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12481 | } | |
d14a1e28 RD |
12482 | } |
12483 | { | |
12484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12485 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); |
d14a1e28 RD |
12486 | |
12487 | wxPyEndAllowThreads(__tstate); | |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
12489 | } | |
093d3ff1 RD |
12490 | { |
12491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12492 | } | |
d14a1e28 RD |
12493 | return resultobj; |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
093d3ff1 | 12499 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12500 | PyObject *resultobj; |
12501 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12502 | int arg2 ; |
12503 | int arg3 ; | |
093d3ff1 | 12504 | wxColour result; |
d14a1e28 | 12505 | PyObject * obj0 = 0 ; |
994141e6 RD |
12506 | PyObject * obj1 = 0 ; |
12507 | PyObject * obj2 = 0 ; | |
d14a1e28 | 12508 | char *kwnames[] = { |
093d3ff1 | 12509 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
12510 | }; |
12511 | ||
093d3ff1 RD |
12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12515 | { |
093d3ff1 RD |
12516 | arg2 = (int)(SWIG_As_int(obj1)); |
12517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 12518 | } |
d14a1e28 | 12519 | { |
093d3ff1 RD |
12520 | arg3 = (int)(SWIG_As_int(obj2)); |
12521 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
12522 | } |
12523 | { | |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12525 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d14a1e28 RD |
12526 | |
12527 | wxPyEndAllowThreads(__tstate); | |
12528 | if (PyErr_Occurred()) SWIG_fail; | |
12529 | } | |
093d3ff1 RD |
12530 | { |
12531 | wxColour * resultptr; | |
12532 | resultptr = new wxColour((wxColour &)(result)); | |
12533 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12534 | } | |
d14a1e28 RD |
12535 | return resultobj; |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
093d3ff1 | 12541 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12542 | PyObject *resultobj; |
12543 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 | 12544 | wxPoint *arg2 = 0 ; |
093d3ff1 | 12545 | wxColour result; |
03e37cd5 | 12546 | wxPoint temp2 ; |
d14a1e28 RD |
12547 | PyObject * obj0 = 0 ; |
12548 | PyObject * obj1 = 0 ; | |
12549 | char *kwnames[] = { | |
093d3ff1 | 12550 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
12551 | }; |
12552 | ||
093d3ff1 RD |
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
12554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12556 | { |
12557 | arg2 = &temp2; | |
03e37cd5 | 12558 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
12559 | } |
12560 | { | |
12561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12562 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
12563 | |
12564 | wxPyEndAllowThreads(__tstate); | |
12565 | if (PyErr_Occurred()) SWIG_fail; | |
12566 | } | |
093d3ff1 RD |
12567 | { |
12568 | wxColour * resultptr; | |
12569 | resultptr = new wxColour((wxColour &)(result)); | |
12570 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12571 | } | |
d14a1e28 RD |
12572 | return resultobj; |
12573 | fail: | |
12574 | return NULL; | |
12575 | } | |
12576 | ||
12577 | ||
093d3ff1 | 12578 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12579 | PyObject *resultobj; |
12580 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12581 | int arg2 ; |
12582 | int arg3 ; | |
12583 | int arg4 ; | |
093d3ff1 | 12584 | int arg5 ; |
d14a1e28 | 12585 | PyObject * obj0 = 0 ; |
994141e6 RD |
12586 | PyObject * obj1 = 0 ; |
12587 | PyObject * obj2 = 0 ; | |
12588 | PyObject * obj3 = 0 ; | |
093d3ff1 | 12589 | PyObject * obj4 = 0 ; |
d14a1e28 | 12590 | char *kwnames[] = { |
093d3ff1 | 12591 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL |
d14a1e28 RD |
12592 | }; |
12593 | ||
093d3ff1 RD |
12594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12597 | { | |
12598 | arg2 = (int)(SWIG_As_int(obj1)); | |
12599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12600 | } | |
12601 | { | |
12602 | arg3 = (int)(SWIG_As_int(obj2)); | |
12603 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12604 | } | |
12605 | { | |
12606 | arg4 = (int)(SWIG_As_int(obj3)); | |
12607 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12608 | } | |
12609 | { | |
12610 | arg5 = (int)(SWIG_As_int(obj4)); | |
12611 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12612 | } | |
d14a1e28 RD |
12613 | { |
12614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12615 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
12616 | |
12617 | wxPyEndAllowThreads(__tstate); | |
12618 | if (PyErr_Occurred()) SWIG_fail; | |
12619 | } | |
12620 | Py_INCREF(Py_None); resultobj = Py_None; | |
12621 | return resultobj; | |
12622 | fail: | |
12623 | return NULL; | |
12624 | } | |
12625 | ||
12626 | ||
093d3ff1 | 12627 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12628 | PyObject *resultobj; |
12629 | wxDC *arg1 = (wxDC *) 0 ; | |
12630 | wxPoint *arg2 = 0 ; | |
093d3ff1 | 12631 | wxPoint *arg3 = 0 ; |
d14a1e28 | 12632 | wxPoint temp2 ; |
093d3ff1 | 12633 | wxPoint temp3 ; |
d14a1e28 RD |
12634 | PyObject * obj0 = 0 ; |
12635 | PyObject * obj1 = 0 ; | |
994141e6 | 12636 | PyObject * obj2 = 0 ; |
d14a1e28 | 12637 | char *kwnames[] = { |
093d3ff1 | 12638 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL |
d14a1e28 RD |
12639 | }; |
12640 | ||
093d3ff1 RD |
12641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12644 | { |
12645 | arg2 = &temp2; | |
12646 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12647 | } | |
093d3ff1 RD |
12648 | { |
12649 | arg3 = &temp3; | |
12650 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12651 | } | |
d14a1e28 RD |
12652 | { |
12653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12654 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
12655 | |
12656 | wxPyEndAllowThreads(__tstate); | |
12657 | if (PyErr_Occurred()) SWIG_fail; | |
12658 | } | |
12659 | Py_INCREF(Py_None); resultobj = Py_None; | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | return NULL; | |
12663 | } | |
12664 | ||
12665 | ||
093d3ff1 | 12666 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12667 | PyObject *resultobj; |
12668 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12669 | int arg2 ; |
12670 | int arg3 ; | |
d14a1e28 | 12671 | PyObject * obj0 = 0 ; |
994141e6 RD |
12672 | PyObject * obj1 = 0 ; |
12673 | PyObject * obj2 = 0 ; | |
d14a1e28 | 12674 | char *kwnames[] = { |
093d3ff1 | 12675 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
12676 | }; |
12677 | ||
093d3ff1 RD |
12678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12681 | { | |
12682 | arg2 = (int)(SWIG_As_int(obj1)); | |
12683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12684 | } | |
12685 | { | |
12686 | arg3 = (int)(SWIG_As_int(obj2)); | |
12687 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12688 | } | |
d14a1e28 RD |
12689 | { |
12690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12691 | (arg1)->CrossHair(arg2,arg3); |
d14a1e28 RD |
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 | ||
093d3ff1 | 12703 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12704 | PyObject *resultobj; |
12705 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12706 | wxPoint *arg2 = 0 ; |
12707 | wxPoint temp2 ; | |
d14a1e28 RD |
12708 | PyObject * obj0 = 0 ; |
12709 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12710 | char *kwnames[] = { |
093d3ff1 | 12711 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
12712 | }; |
12713 | ||
093d3ff1 RD |
12714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
12715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12717 | { |
12718 | arg2 = &temp2; | |
093d3ff1 | 12719 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
12720 | } |
12721 | { | |
12722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12723 | (arg1)->CrossHair((wxPoint const &)*arg2); |
d14a1e28 RD |
12724 | |
12725 | wxPyEndAllowThreads(__tstate); | |
12726 | if (PyErr_Occurred()) SWIG_fail; | |
12727 | } | |
12728 | Py_INCREF(Py_None); resultobj = Py_None; | |
12729 | return resultobj; | |
12730 | fail: | |
12731 | return NULL; | |
12732 | } | |
12733 | ||
12734 | ||
093d3ff1 | 12735 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12736 | PyObject *resultobj; |
12737 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12738 | int arg2 ; |
12739 | int arg3 ; | |
12740 | int arg4 ; | |
12741 | int arg5 ; | |
12742 | int arg6 ; | |
12743 | int arg7 ; | |
d14a1e28 RD |
12744 | PyObject * obj0 = 0 ; |
12745 | PyObject * obj1 = 0 ; | |
03e37cd5 | 12746 | PyObject * obj2 = 0 ; |
093d3ff1 RD |
12747 | PyObject * obj3 = 0 ; |
12748 | PyObject * obj4 = 0 ; | |
12749 | PyObject * obj5 = 0 ; | |
12750 | PyObject * obj6 = 0 ; | |
d14a1e28 | 12751 | char *kwnames[] = { |
093d3ff1 | 12752 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL |
d14a1e28 RD |
12753 | }; |
12754 | ||
093d3ff1 RD |
12755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
12756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12758 | { |
093d3ff1 RD |
12759 | arg2 = (int)(SWIG_As_int(obj1)); |
12760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
03e37cd5 RD |
12761 | } |
12762 | { | |
093d3ff1 RD |
12763 | arg3 = (int)(SWIG_As_int(obj2)); |
12764 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12765 | } | |
12766 | { | |
12767 | arg4 = (int)(SWIG_As_int(obj3)); | |
12768 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | arg5 = (int)(SWIG_As_int(obj4)); | |
12772 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12773 | } | |
12774 | { | |
12775 | arg6 = (int)(SWIG_As_int(obj5)); | |
12776 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12777 | } | |
12778 | { | |
12779 | arg7 = (int)(SWIG_As_int(obj6)); | |
12780 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
12781 | } |
12782 | { | |
12783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12784 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
12785 | |
12786 | wxPyEndAllowThreads(__tstate); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | Py_INCREF(Py_None); resultobj = Py_None; | |
12790 | return resultobj; | |
12791 | fail: | |
12792 | return NULL; | |
12793 | } | |
12794 | ||
12795 | ||
093d3ff1 | 12796 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12797 | PyObject *resultobj; |
12798 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12799 | wxPoint *arg2 = 0 ; |
12800 | wxPoint *arg3 = 0 ; | |
12801 | wxPoint *arg4 = 0 ; | |
12802 | wxPoint temp2 ; | |
12803 | wxPoint temp3 ; | |
12804 | wxPoint temp4 ; | |
d14a1e28 RD |
12805 | PyObject * obj0 = 0 ; |
12806 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12807 | PyObject * obj2 = 0 ; |
12808 | PyObject * obj3 = 0 ; | |
d14a1e28 | 12809 | char *kwnames[] = { |
093d3ff1 | 12810 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d14a1e28 RD |
12811 | }; |
12812 | ||
093d3ff1 RD |
12813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12816 | { | |
12817 | arg2 = &temp2; | |
12818 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12819 | } | |
12820 | { | |
12821 | arg3 = &temp3; | |
12822 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12823 | } | |
12824 | { | |
12825 | arg4 = &temp4; | |
12826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
994141e6 | 12827 | } |
d14a1e28 RD |
12828 | { |
12829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12830 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); |
d14a1e28 RD |
12831 | |
12832 | wxPyEndAllowThreads(__tstate); | |
12833 | if (PyErr_Occurred()) SWIG_fail; | |
12834 | } | |
12835 | Py_INCREF(Py_None); resultobj = Py_None; | |
12836 | return resultobj; | |
12837 | fail: | |
12838 | return NULL; | |
12839 | } | |
12840 | ||
12841 | ||
093d3ff1 | 12842 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12843 | PyObject *resultobj; |
12844 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12845 | int arg2 ; |
12846 | int arg3 ; | |
12847 | int arg4 ; | |
12848 | int arg5 ; | |
d14a1e28 RD |
12849 | PyObject * obj0 = 0 ; |
12850 | PyObject * obj1 = 0 ; | |
12851 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
12852 | PyObject * obj3 = 0 ; |
12853 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12854 | char *kwnames[] = { |
093d3ff1 | 12855 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
12856 | }; |
12857 | ||
093d3ff1 RD |
12858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12861 | { | |
12862 | arg2 = (int)(SWIG_As_int(obj1)); | |
12863 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
12864 | } |
12865 | { | |
093d3ff1 RD |
12866 | arg3 = (int)(SWIG_As_int(obj2)); |
12867 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12868 | } | |
12869 | { | |
12870 | arg4 = (int)(SWIG_As_int(obj3)); | |
12871 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12872 | } | |
12873 | { | |
12874 | arg5 = (int)(SWIG_As_int(obj4)); | |
12875 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
12876 | } |
12877 | { | |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12879 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
12880 | |
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | Py_INCREF(Py_None); resultobj = Py_None; | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
093d3ff1 | 12891 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12892 | PyObject *resultobj; |
12893 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12894 | wxRect *arg2 = 0 ; |
12895 | wxRect temp2 ; | |
d14a1e28 RD |
12896 | PyObject * obj0 = 0 ; |
12897 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12898 | char *kwnames[] = { |
093d3ff1 | 12899 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
12900 | }; |
12901 | ||
093d3ff1 RD |
12902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
12903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12905 | { | |
12906 | arg2 = &temp2; | |
12907 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
12908 | } |
12909 | { | |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12911 | (arg1)->DrawCheckMark((wxRect const &)*arg2); |
d14a1e28 RD |
12912 | |
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | Py_INCREF(Py_None); resultobj = Py_None; | |
12917 | return resultobj; | |
12918 | fail: | |
12919 | return NULL; | |
12920 | } | |
12921 | ||
12922 | ||
093d3ff1 | 12923 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12924 | PyObject *resultobj; |
12925 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12926 | int arg2 ; |
12927 | int arg3 ; | |
12928 | int arg4 ; | |
12929 | int arg5 ; | |
12930 | double arg6 ; | |
12931 | double arg7 ; | |
d14a1e28 RD |
12932 | PyObject * obj0 = 0 ; |
12933 | PyObject * obj1 = 0 ; | |
12934 | PyObject * obj2 = 0 ; | |
12935 | PyObject * obj3 = 0 ; | |
093d3ff1 RD |
12936 | PyObject * obj4 = 0 ; |
12937 | PyObject * obj5 = 0 ; | |
12938 | PyObject * obj6 = 0 ; | |
d14a1e28 | 12939 | char *kwnames[] = { |
093d3ff1 | 12940 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
12941 | }; |
12942 | ||
093d3ff1 RD |
12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
12944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12946 | { | |
12947 | arg2 = (int)(SWIG_As_int(obj1)); | |
12948 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
12949 | } |
12950 | { | |
093d3ff1 RD |
12951 | arg3 = (int)(SWIG_As_int(obj2)); |
12952 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 | 12953 | } |
093d3ff1 RD |
12954 | { |
12955 | arg4 = (int)(SWIG_As_int(obj3)); | |
12956 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12957 | } | |
12958 | { | |
12959 | arg5 = (int)(SWIG_As_int(obj4)); | |
12960 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12961 | } | |
12962 | { | |
12963 | arg6 = (double)(SWIG_As_double(obj5)); | |
12964 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12965 | } | |
12966 | { | |
12967 | arg7 = (double)(SWIG_As_double(obj6)); | |
12968 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
12969 | } |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12972 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
12973 | |
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | Py_INCREF(Py_None); resultobj = Py_None; | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
093d3ff1 | 12984 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12985 | PyObject *resultobj; |
12986 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
12987 | wxPoint *arg2 = 0 ; |
12988 | wxSize *arg3 = 0 ; | |
12989 | double arg4 ; | |
12990 | double arg5 ; | |
12991 | wxPoint temp2 ; | |
12992 | wxSize temp3 ; | |
d14a1e28 RD |
12993 | PyObject * obj0 = 0 ; |
12994 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12995 | PyObject * obj2 = 0 ; |
12996 | PyObject * obj3 = 0 ; | |
093d3ff1 | 12997 | PyObject * obj4 = 0 ; |
d14a1e28 | 12998 | char *kwnames[] = { |
093d3ff1 | 12999 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
13000 | }; |
13001 | ||
093d3ff1 RD |
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13005 | { |
093d3ff1 RD |
13006 | arg2 = &temp2; |
13007 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13008 | } | |
13009 | { | |
13010 | arg3 = &temp3; | |
13011 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13012 | } | |
13013 | { | |
13014 | arg4 = (double)(SWIG_As_double(obj3)); | |
13015 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13016 | } | |
13017 | { | |
13018 | arg5 = (double)(SWIG_As_double(obj4)); | |
13019 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
13020 | } |
13021 | { | |
13022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13023 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); |
d14a1e28 RD |
13024 | |
13025 | wxPyEndAllowThreads(__tstate); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13029 | return resultobj; |
13030 | fail: | |
d14a1e28 RD |
13031 | return NULL; |
13032 | } | |
13033 | ||
13034 | ||
093d3ff1 | 13035 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13036 | PyObject *resultobj; |
13037 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13038 | int arg2 ; |
13039 | int arg3 ; | |
d14a1e28 RD |
13040 | PyObject * obj0 = 0 ; |
13041 | PyObject * obj1 = 0 ; | |
13042 | PyObject * obj2 = 0 ; | |
13043 | char *kwnames[] = { | |
093d3ff1 | 13044 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13045 | }; |
13046 | ||
093d3ff1 RD |
13047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13050 | { |
093d3ff1 RD |
13051 | arg2 = (int)(SWIG_As_int(obj1)); |
13052 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
13053 | } |
13054 | { | |
093d3ff1 RD |
13055 | arg3 = (int)(SWIG_As_int(obj2)); |
13056 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
13057 | } |
13058 | { | |
13059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13060 | (arg1)->DrawPoint(arg2,arg3); |
d14a1e28 RD |
13061 | |
13062 | wxPyEndAllowThreads(__tstate); | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | } | |
13065 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13066 | return resultobj; |
13067 | fail: | |
d14a1e28 RD |
13068 | return NULL; |
13069 | } | |
13070 | ||
13071 | ||
093d3ff1 | 13072 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13073 | PyObject *resultobj; |
13074 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13075 | wxPoint *arg2 = 0 ; |
13076 | wxPoint temp2 ; | |
d14a1e28 RD |
13077 | PyObject * obj0 = 0 ; |
13078 | PyObject * obj1 = 0 ; | |
13079 | char *kwnames[] = { | |
093d3ff1 | 13080 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
13081 | }; |
13082 | ||
093d3ff1 RD |
13083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
13084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13086 | { |
093d3ff1 RD |
13087 | arg2 = &temp2; |
13088 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13089 | } |
13090 | { | |
13091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13092 | (arg1)->DrawPoint((wxPoint const &)*arg2); |
d14a1e28 RD |
13093 | |
13094 | wxPyEndAllowThreads(__tstate); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
13097 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13098 | return resultobj; |
13099 | fail: | |
d14a1e28 RD |
13100 | return NULL; |
13101 | } | |
13102 | ||
13103 | ||
093d3ff1 | 13104 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13105 | PyObject *resultobj; |
13106 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13107 | int arg2 ; |
13108 | int arg3 ; | |
13109 | int arg4 ; | |
13110 | int arg5 ; | |
d14a1e28 RD |
13111 | PyObject * obj0 = 0 ; |
13112 | PyObject * obj1 = 0 ; | |
13113 | PyObject * obj2 = 0 ; | |
994141e6 | 13114 | PyObject * obj3 = 0 ; |
093d3ff1 | 13115 | PyObject * obj4 = 0 ; |
d14a1e28 | 13116 | char *kwnames[] = { |
093d3ff1 | 13117 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
13118 | }; |
13119 | ||
093d3ff1 RD |
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13123 | { |
093d3ff1 RD |
13124 | arg2 = (int)(SWIG_As_int(obj1)); |
13125 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
13126 | } |
13127 | { | |
093d3ff1 RD |
13128 | arg3 = (int)(SWIG_As_int(obj2)); |
13129 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13130 | } | |
13131 | { | |
13132 | arg4 = (int)(SWIG_As_int(obj3)); | |
13133 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13134 | } | |
13135 | { | |
13136 | arg5 = (int)(SWIG_As_int(obj4)); | |
13137 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
13138 | } |
13139 | { | |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13141 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13142 | |
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13147 | return resultobj; |
13148 | fail: | |
d14a1e28 RD |
13149 | return NULL; |
13150 | } | |
13151 | ||
13152 | ||
093d3ff1 | 13153 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13154 | PyObject *resultobj; |
13155 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13156 | wxRect *arg2 = 0 ; |
13157 | wxRect temp2 ; | |
d14a1e28 | 13158 | PyObject * obj0 = 0 ; |
994141e6 | 13159 | PyObject * obj1 = 0 ; |
d14a1e28 | 13160 | char *kwnames[] = { |
093d3ff1 | 13161 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
13162 | }; |
13163 | ||
093d3ff1 RD |
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
13165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13167 | { | |
13168 | arg2 = &temp2; | |
13169 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13170 | } |
13171 | { | |
13172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13173 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d14a1e28 RD |
13174 | |
13175 | wxPyEndAllowThreads(__tstate); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
093d3ff1 | 13178 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13179 | return resultobj; |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
093d3ff1 | 13185 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13186 | PyObject *resultobj; |
13187 | wxDC *arg1 = (wxDC *) 0 ; | |
13188 | wxPoint *arg2 = 0 ; | |
13189 | wxSize *arg3 = 0 ; | |
d14a1e28 RD |
13190 | wxPoint temp2 ; |
13191 | wxSize temp3 ; | |
d14a1e28 RD |
13192 | PyObject * obj0 = 0 ; |
13193 | PyObject * obj1 = 0 ; | |
13194 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13195 | char *kwnames[] = { |
093d3ff1 | 13196 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
13197 | }; |
13198 | ||
093d3ff1 RD |
13199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13202 | { |
13203 | arg2 = &temp2; | |
13204 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13205 | } | |
13206 | { | |
13207 | arg3 = &temp3; | |
13208 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13209 | } | |
d14a1e28 RD |
13210 | { |
13211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13212 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
13213 | |
13214 | wxPyEndAllowThreads(__tstate); | |
13215 | if (PyErr_Occurred()) SWIG_fail; | |
13216 | } | |
093d3ff1 | 13217 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13218 | return resultobj; |
13219 | fail: | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
093d3ff1 | 13224 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13225 | PyObject *resultobj; |
13226 | wxDC *arg1 = (wxDC *) 0 ; | |
13227 | int arg2 ; | |
03e37cd5 RD |
13228 | int arg3 ; |
13229 | int arg4 ; | |
13230 | int arg5 ; | |
093d3ff1 | 13231 | double arg6 ; |
d14a1e28 RD |
13232 | PyObject * obj0 = 0 ; |
13233 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13234 | PyObject * obj2 = 0 ; |
13235 | PyObject * obj3 = 0 ; | |
03e37cd5 | 13236 | PyObject * obj4 = 0 ; |
093d3ff1 | 13237 | PyObject * obj5 = 0 ; |
d14a1e28 | 13238 | char *kwnames[] = { |
093d3ff1 | 13239 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL |
d14a1e28 RD |
13240 | }; |
13241 | ||
093d3ff1 RD |
13242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
13243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13245 | { | |
13246 | arg2 = (int)(SWIG_As_int(obj1)); | |
13247 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13248 | } | |
13249 | { | |
13250 | arg3 = (int)(SWIG_As_int(obj2)); | |
13251 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13252 | } | |
13253 | { | |
13254 | arg4 = (int)(SWIG_As_int(obj3)); | |
13255 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13256 | } | |
13257 | { | |
13258 | arg5 = (int)(SWIG_As_int(obj4)); | |
13259 | if (SWIG_arg_fail(5)) SWIG_fail; | |
13260 | } | |
13261 | { | |
13262 | arg6 = (double)(SWIG_As_double(obj5)); | |
13263 | if (SWIG_arg_fail(6)) SWIG_fail; | |
13264 | } | |
d14a1e28 RD |
13265 | { |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13267 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
13268 | |
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13273 | return resultobj; |
13274 | fail: | |
d14a1e28 RD |
13275 | return NULL; |
13276 | } | |
13277 | ||
13278 | ||
093d3ff1 | 13279 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13280 | PyObject *resultobj; |
13281 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13282 | wxRect *arg2 = 0 ; |
13283 | double arg3 ; | |
13284 | wxRect temp2 ; | |
d14a1e28 RD |
13285 | PyObject * obj0 = 0 ; |
13286 | PyObject * obj1 = 0 ; | |
994141e6 | 13287 | PyObject * obj2 = 0 ; |
d14a1e28 | 13288 | char *kwnames[] = { |
093d3ff1 | 13289 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d14a1e28 RD |
13290 | }; |
13291 | ||
093d3ff1 RD |
13292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13295 | { |
03e37cd5 | 13296 | arg2 = &temp2; |
093d3ff1 | 13297 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
994141e6 | 13298 | } |
03e37cd5 | 13299 | { |
093d3ff1 RD |
13300 | arg3 = (double)(SWIG_As_double(obj2)); |
13301 | if (SWIG_arg_fail(3)) SWIG_fail; | |
994141e6 | 13302 | } |
d14a1e28 RD |
13303 | { |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13305 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
13306 | |
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13311 | return resultobj; |
13312 | fail: | |
d14a1e28 RD |
13313 | return NULL; |
13314 | } | |
13315 | ||
13316 | ||
093d3ff1 | 13317 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13318 | PyObject *resultobj; |
13319 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13320 | wxPoint *arg2 = 0 ; |
13321 | wxSize *arg3 = 0 ; | |
13322 | double arg4 ; | |
13323 | wxPoint temp2 ; | |
13324 | wxSize temp3 ; | |
d14a1e28 RD |
13325 | PyObject * obj0 = 0 ; |
13326 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13327 | PyObject * obj2 = 0 ; |
13328 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13329 | char *kwnames[] = { |
093d3ff1 | 13330 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d14a1e28 RD |
13331 | }; |
13332 | ||
093d3ff1 RD |
13333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13336 | { | |
13337 | arg2 = &temp2; | |
13338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13339 | } | |
13340 | { | |
13341 | arg3 = &temp3; | |
13342 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13343 | } | |
13344 | { | |
13345 | arg4 = (double)(SWIG_As_double(obj3)); | |
13346 | if (SWIG_arg_fail(4)) SWIG_fail; | |
03e37cd5 RD |
13347 | } |
13348 | { | |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13350 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
03e37cd5 RD |
13351 | |
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | Py_INCREF(Py_None); resultobj = Py_None; | |
13356 | return resultobj; | |
13357 | fail: | |
13358 | return NULL; | |
13359 | } | |
13360 | ||
13361 | ||
093d3ff1 | 13362 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
13363 | PyObject *resultobj; |
13364 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13365 | int arg2 ; |
13366 | int arg3 ; | |
13367 | int arg4 ; | |
03e37cd5 RD |
13368 | PyObject * obj0 = 0 ; |
13369 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13370 | PyObject * obj2 = 0 ; |
13371 | PyObject * obj3 = 0 ; | |
03e37cd5 | 13372 | char *kwnames[] = { |
093d3ff1 | 13373 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL |
03e37cd5 RD |
13374 | }; |
13375 | ||
093d3ff1 RD |
13376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13379 | { |
093d3ff1 RD |
13380 | arg2 = (int)(SWIG_As_int(obj1)); |
13381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13382 | } | |
13383 | { | |
13384 | arg3 = (int)(SWIG_As_int(obj2)); | |
13385 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13386 | } | |
13387 | { | |
13388 | arg4 = (int)(SWIG_As_int(obj3)); | |
13389 | if (SWIG_arg_fail(4)) SWIG_fail; | |
03e37cd5 RD |
13390 | } |
13391 | { | |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13393 | (arg1)->DrawCircle(arg2,arg3,arg4); |
03e37cd5 RD |
13394 | |
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | Py_INCREF(Py_None); resultobj = Py_None; | |
13399 | return resultobj; | |
13400 | fail: | |
13401 | return NULL; | |
13402 | } | |
13403 | ||
13404 | ||
093d3ff1 | 13405 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
13406 | PyObject *resultobj; |
13407 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13408 | wxPoint *arg2 = 0 ; |
13409 | int arg3 ; | |
13410 | wxPoint temp2 ; | |
03e37cd5 RD |
13411 | PyObject * obj0 = 0 ; |
13412 | PyObject * obj1 = 0 ; | |
13413 | PyObject * obj2 = 0 ; | |
03e37cd5 | 13414 | char *kwnames[] = { |
093d3ff1 | 13415 | (char *) "self",(char *) "pt",(char *) "radius", NULL |
03e37cd5 RD |
13416 | }; |
13417 | ||
093d3ff1 RD |
13418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13421 | { |
093d3ff1 RD |
13422 | arg2 = &temp2; |
13423 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
03e37cd5 | 13424 | } |
093d3ff1 RD |
13425 | { |
13426 | arg3 = (int)(SWIG_As_int(obj2)); | |
13427 | if (SWIG_arg_fail(3)) SWIG_fail; | |
03e37cd5 RD |
13428 | } |
13429 | { | |
13430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13431 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); |
03e37cd5 RD |
13432 | |
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | Py_INCREF(Py_None); resultobj = Py_None; | |
03e37cd5 RD |
13437 | return resultobj; |
13438 | fail: | |
03e37cd5 RD |
13439 | return NULL; |
13440 | } | |
13441 | ||
13442 | ||
093d3ff1 | 13443 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
13444 | PyObject *resultobj; |
13445 | wxDC *arg1 = (wxDC *) 0 ; | |
13446 | int arg2 ; | |
093d3ff1 RD |
13447 | int arg3 ; |
13448 | int arg4 ; | |
13449 | int arg5 ; | |
03e37cd5 RD |
13450 | PyObject * obj0 = 0 ; |
13451 | PyObject * obj1 = 0 ; | |
13452 | PyObject * obj2 = 0 ; | |
13453 | PyObject * obj3 = 0 ; | |
13454 | PyObject * obj4 = 0 ; | |
13455 | char *kwnames[] = { | |
093d3ff1 | 13456 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
03e37cd5 RD |
13457 | }; |
13458 | ||
093d3ff1 RD |
13459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13462 | { |
093d3ff1 RD |
13463 | arg2 = (int)(SWIG_As_int(obj1)); |
13464 | if (SWIG_arg_fail(2)) SWIG_fail; | |
03e37cd5 | 13465 | } |
093d3ff1 RD |
13466 | { |
13467 | arg3 = (int)(SWIG_As_int(obj2)); | |
13468 | if (SWIG_arg_fail(3)) SWIG_fail; | |
03e37cd5 | 13469 | } |
093d3ff1 RD |
13470 | { |
13471 | arg4 = (int)(SWIG_As_int(obj3)); | |
13472 | if (SWIG_arg_fail(4)) SWIG_fail; | |
03e37cd5 | 13473 | } |
093d3ff1 RD |
13474 | { |
13475 | arg5 = (int)(SWIG_As_int(obj4)); | |
13476 | if (SWIG_arg_fail(5)) SWIG_fail; | |
03e37cd5 RD |
13477 | } |
13478 | { | |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13480 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
03e37cd5 RD |
13481 | |
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
13485 | Py_INCREF(Py_None); resultobj = Py_None; | |
03e37cd5 RD |
13486 | return resultobj; |
13487 | fail: | |
03e37cd5 RD |
13488 | return NULL; |
13489 | } | |
13490 | ||
13491 | ||
093d3ff1 | 13492 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
13493 | PyObject *resultobj; |
13494 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13495 | wxRect *arg2 = 0 ; |
13496 | wxRect temp2 ; | |
03e37cd5 RD |
13497 | PyObject * obj0 = 0 ; |
13498 | PyObject * obj1 = 0 ; | |
03e37cd5 | 13499 | char *kwnames[] = { |
093d3ff1 | 13500 | (char *) "self",(char *) "rect", NULL |
03e37cd5 RD |
13501 | }; |
13502 | ||
093d3ff1 RD |
13503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
13504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13506 | { |
093d3ff1 RD |
13507 | arg2 = &temp2; |
13508 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 RD |
13509 | } |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13512 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d14a1e28 RD |
13513 | |
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
13517 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13518 | return resultobj; |
13519 | fail: | |
d14a1e28 RD |
13520 | return NULL; |
13521 | } | |
13522 | ||
13523 | ||
093d3ff1 | 13524 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13525 | PyObject *resultobj; |
13526 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13527 | wxPoint *arg2 = 0 ; |
13528 | wxSize *arg3 = 0 ; | |
13529 | wxPoint temp2 ; | |
13530 | wxSize temp3 ; | |
d14a1e28 RD |
13531 | PyObject * obj0 = 0 ; |
13532 | PyObject * obj1 = 0 ; | |
13533 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13534 | char *kwnames[] = { |
093d3ff1 | 13535 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
13536 | }; |
13537 | ||
093d3ff1 RD |
13538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13541 | { |
093d3ff1 RD |
13542 | arg2 = &temp2; |
13543 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13544 | } |
13545 | { | |
093d3ff1 RD |
13546 | arg3 = &temp3; |
13547 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 13548 | } |
d14a1e28 RD |
13549 | { |
13550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13551 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
13552 | |
13553 | wxPyEndAllowThreads(__tstate); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | } | |
093d3ff1 | 13556 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13557 | return resultobj; |
13558 | fail: | |
d14a1e28 RD |
13559 | return NULL; |
13560 | } | |
13561 | ||
13562 | ||
093d3ff1 | 13563 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13564 | PyObject *resultobj; |
13565 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13566 | wxIcon *arg2 = 0 ; |
13567 | int arg3 ; | |
13568 | int arg4 ; | |
d14a1e28 RD |
13569 | PyObject * obj0 = 0 ; |
13570 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13571 | PyObject * obj2 = 0 ; |
13572 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13573 | char *kwnames[] = { |
093d3ff1 | 13574 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13575 | }; |
13576 | ||
093d3ff1 RD |
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13580 | { |
093d3ff1 RD |
13581 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); |
13582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13583 | if (arg2 == NULL) { | |
13584 | SWIG_null_ref("wxIcon"); | |
13585 | } | |
13586 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13587 | } | |
13588 | { | |
13589 | arg3 = (int)(SWIG_As_int(obj2)); | |
13590 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13591 | } | |
13592 | { | |
13593 | arg4 = (int)(SWIG_As_int(obj3)); | |
13594 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
13595 | } |
13596 | { | |
13597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13598 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); |
d14a1e28 RD |
13599 | |
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
13603 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13604 | return resultobj; |
13605 | fail: | |
d14a1e28 RD |
13606 | return NULL; |
13607 | } | |
13608 | ||
13609 | ||
093d3ff1 | 13610 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13611 | PyObject *resultobj; |
13612 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13613 | wxIcon *arg2 = 0 ; |
13614 | wxPoint *arg3 = 0 ; | |
13615 | wxPoint temp3 ; | |
d14a1e28 | 13616 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13617 | PyObject * obj1 = 0 ; |
13618 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13619 | char *kwnames[] = { |
093d3ff1 | 13620 | (char *) "self",(char *) "icon",(char *) "pt", NULL |
d14a1e28 RD |
13621 | }; |
13622 | ||
093d3ff1 RD |
13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13626 | { | |
13627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
13628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13629 | if (arg2 == NULL) { | |
13630 | SWIG_null_ref("wxIcon"); | |
13631 | } | |
13632 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13633 | } | |
13634 | { | |
13635 | arg3 = &temp3; | |
13636 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13637 | } | |
d14a1e28 RD |
13638 | { |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13640 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
13641 | |
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
093d3ff1 | 13652 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13653 | PyObject *resultobj; |
13654 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13655 | wxBitmap *arg2 = 0 ; |
13656 | int arg3 ; | |
13657 | int arg4 ; | |
13658 | bool arg5 = (bool) false ; | |
d14a1e28 RD |
13659 | PyObject * obj0 = 0 ; |
13660 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13661 | PyObject * obj2 = 0 ; |
13662 | PyObject * obj3 = 0 ; | |
13663 | PyObject * obj4 = 0 ; | |
d14a1e28 | 13664 | char *kwnames[] = { |
093d3ff1 | 13665 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL |
d14a1e28 RD |
13666 | }; |
13667 | ||
093d3ff1 RD |
13668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13671 | { |
093d3ff1 RD |
13672 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); |
13673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13674 | if (arg2 == NULL) { | |
13675 | SWIG_null_ref("wxBitmap"); | |
13676 | } | |
13677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 13678 | } |
4f89f6a3 | 13679 | { |
093d3ff1 RD |
13680 | arg3 = (int)(SWIG_As_int(obj2)); |
13681 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4f89f6a3 | 13682 | } |
d14a1e28 | 13683 | { |
093d3ff1 RD |
13684 | arg4 = (int)(SWIG_As_int(obj3)); |
13685 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 | 13686 | } |
093d3ff1 RD |
13687 | if (obj4) { |
13688 | { | |
13689 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
13690 | if (SWIG_arg_fail(5)) SWIG_fail; | |
13691 | } | |
d14a1e28 | 13692 | } |
d14a1e28 RD |
13693 | { |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13695 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13696 | |
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | Py_INCREF(Py_None); resultobj = Py_None; | |
13701 | return resultobj; | |
13702 | fail: | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
093d3ff1 | 13707 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13708 | PyObject *resultobj; |
13709 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13710 | wxBitmap *arg2 = 0 ; |
13711 | wxPoint *arg3 = 0 ; | |
13712 | bool arg4 = (bool) false ; | |
13713 | wxPoint temp3 ; | |
d14a1e28 | 13714 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13715 | PyObject * obj1 = 0 ; |
13716 | PyObject * obj2 = 0 ; | |
13717 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13718 | char *kwnames[] = { |
093d3ff1 | 13719 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL |
d14a1e28 RD |
13720 | }; |
13721 | ||
093d3ff1 RD |
13722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13725 | { | |
13726 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
13727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13728 | if (arg2 == NULL) { | |
13729 | SWIG_null_ref("wxBitmap"); | |
13730 | } | |
13731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13732 | } | |
13733 | { | |
13734 | arg3 = &temp3; | |
13735 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13736 | } | |
13737 | if (obj3) { | |
13738 | { | |
13739 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
13740 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13741 | } | |
13742 | } | |
d14a1e28 RD |
13743 | { |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13745 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); |
d14a1e28 RD |
13746 | |
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | Py_INCREF(Py_None); resultobj = Py_None; | |
13751 | return resultobj; | |
13752 | fail: | |
13753 | return NULL; | |
13754 | } | |
13755 | ||
13756 | ||
093d3ff1 | 13757 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13758 | PyObject *resultobj; |
13759 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13760 | wxString *arg2 = 0 ; |
13761 | int arg3 ; | |
13762 | int arg4 ; | |
13763 | bool temp2 = false ; | |
d14a1e28 | 13764 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13765 | PyObject * obj1 = 0 ; |
13766 | PyObject * obj2 = 0 ; | |
13767 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13768 | char *kwnames[] = { |
093d3ff1 | 13769 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13770 | }; |
13771 | ||
093d3ff1 RD |
13772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13775 | { | |
13776 | arg2 = wxString_in_helper(obj1); | |
13777 | if (arg2 == NULL) SWIG_fail; | |
13778 | temp2 = true; | |
13779 | } | |
13780 | { | |
13781 | arg3 = (int)(SWIG_As_int(obj2)); | |
13782 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13783 | } | |
13784 | { | |
13785 | arg4 = (int)(SWIG_As_int(obj3)); | |
13786 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13787 | } | |
d14a1e28 RD |
13788 | { |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13790 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
13791 | |
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13796 | { |
13797 | if (temp2) | |
13798 | delete arg2; | |
13799 | } | |
d14a1e28 RD |
13800 | return resultobj; |
13801 | fail: | |
093d3ff1 RD |
13802 | { |
13803 | if (temp2) | |
13804 | delete arg2; | |
13805 | } | |
d14a1e28 RD |
13806 | return NULL; |
13807 | } | |
13808 | ||
13809 | ||
093d3ff1 | 13810 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13811 | PyObject *resultobj; |
13812 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13813 | wxString *arg2 = 0 ; |
13814 | wxPoint *arg3 = 0 ; | |
13815 | bool temp2 = false ; | |
13816 | wxPoint temp3 ; | |
d14a1e28 RD |
13817 | PyObject * obj0 = 0 ; |
13818 | PyObject * obj1 = 0 ; | |
093d3ff1 | 13819 | PyObject * obj2 = 0 ; |
d14a1e28 | 13820 | char *kwnames[] = { |
093d3ff1 | 13821 | (char *) "self",(char *) "text",(char *) "pt", NULL |
d14a1e28 RD |
13822 | }; |
13823 | ||
093d3ff1 RD |
13824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13827 | { | |
13828 | arg2 = wxString_in_helper(obj1); | |
13829 | if (arg2 == NULL) SWIG_fail; | |
13830 | temp2 = true; | |
13831 | } | |
13832 | { | |
13833 | arg3 = &temp3; | |
13834 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
13835 | } |
13836 | { | |
13837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13838 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
13839 | |
13840 | wxPyEndAllowThreads(__tstate); | |
13841 | if (PyErr_Occurred()) SWIG_fail; | |
13842 | } | |
13843 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13844 | { |
13845 | if (temp2) | |
13846 | delete arg2; | |
13847 | } | |
d14a1e28 RD |
13848 | return resultobj; |
13849 | fail: | |
093d3ff1 RD |
13850 | { |
13851 | if (temp2) | |
13852 | delete arg2; | |
13853 | } | |
d14a1e28 RD |
13854 | return NULL; |
13855 | } | |
13856 | ||
13857 | ||
093d3ff1 | 13858 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13859 | PyObject *resultobj; |
13860 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13861 | wxString *arg2 = 0 ; |
13862 | int arg3 ; | |
13863 | int arg4 ; | |
13864 | double arg5 ; | |
13865 | bool temp2 = false ; | |
13866 | PyObject * obj0 = 0 ; | |
d14a1e28 | 13867 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
13868 | PyObject * obj2 = 0 ; |
13869 | PyObject * obj3 = 0 ; | |
13870 | PyObject * obj4 = 0 ; | |
d14a1e28 | 13871 | char *kwnames[] = { |
093d3ff1 | 13872 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL |
d14a1e28 RD |
13873 | }; |
13874 | ||
093d3ff1 RD |
13875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13878 | { | |
13879 | arg2 = wxString_in_helper(obj1); | |
13880 | if (arg2 == NULL) SWIG_fail; | |
13881 | temp2 = true; | |
13882 | } | |
13883 | { | |
13884 | arg3 = (int)(SWIG_As_int(obj2)); | |
13885 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13886 | } | |
13887 | { | |
13888 | arg4 = (int)(SWIG_As_int(obj3)); | |
13889 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13890 | } | |
13891 | { | |
13892 | arg5 = (double)(SWIG_As_double(obj4)); | |
13893 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
13894 | } |
13895 | { | |
13896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13897 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13898 | |
13899 | wxPyEndAllowThreads(__tstate); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13903 | { |
13904 | if (temp2) | |
13905 | delete arg2; | |
13906 | } | |
d14a1e28 RD |
13907 | return resultobj; |
13908 | fail: | |
093d3ff1 RD |
13909 | { |
13910 | if (temp2) | |
13911 | delete arg2; | |
13912 | } | |
d14a1e28 RD |
13913 | return NULL; |
13914 | } | |
13915 | ||
13916 | ||
093d3ff1 | 13917 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13918 | PyObject *resultobj; |
13919 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13920 | wxString *arg2 = 0 ; |
13921 | wxPoint *arg3 = 0 ; | |
13922 | double arg4 ; | |
13923 | bool temp2 = false ; | |
13924 | wxPoint temp3 ; | |
d14a1e28 RD |
13925 | PyObject * obj0 = 0 ; |
13926 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13927 | PyObject * obj2 = 0 ; |
13928 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13929 | char *kwnames[] = { |
093d3ff1 | 13930 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL |
d14a1e28 RD |
13931 | }; |
13932 | ||
093d3ff1 RD |
13933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13936 | { | |
13937 | arg2 = wxString_in_helper(obj1); | |
13938 | if (arg2 == NULL) SWIG_fail; | |
13939 | temp2 = true; | |
13940 | } | |
13941 | { | |
13942 | arg3 = &temp3; | |
13943 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13944 | } | |
13945 | { | |
13946 | arg4 = (double)(SWIG_As_double(obj3)); | |
13947 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
13948 | } |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13951 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); |
d14a1e28 RD |
13952 | |
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13957 | { |
13958 | if (temp2) | |
13959 | delete arg2; | |
13960 | } | |
d14a1e28 RD |
13961 | return resultobj; |
13962 | fail: | |
093d3ff1 RD |
13963 | { |
13964 | if (temp2) | |
13965 | delete arg2; | |
13966 | } | |
d14a1e28 RD |
13967 | return NULL; |
13968 | } | |
13969 | ||
13970 | ||
093d3ff1 | 13971 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13972 | PyObject *resultobj; |
13973 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
13974 | int arg2 ; |
13975 | int arg3 ; | |
13976 | int arg4 ; | |
13977 | int arg5 ; | |
13978 | wxDC *arg6 = (wxDC *) 0 ; | |
13979 | int arg7 ; | |
13980 | int arg8 ; | |
13981 | int arg9 = (int) wxCOPY ; | |
13982 | bool arg10 = (bool) false ; | |
13983 | int arg11 = (int) -1 ; | |
13984 | int arg12 = (int) -1 ; | |
13985 | bool result; | |
d14a1e28 RD |
13986 | PyObject * obj0 = 0 ; |
13987 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13988 | PyObject * obj2 = 0 ; |
13989 | PyObject * obj3 = 0 ; | |
13990 | PyObject * obj4 = 0 ; | |
13991 | PyObject * obj5 = 0 ; | |
13992 | PyObject * obj6 = 0 ; | |
13993 | PyObject * obj7 = 0 ; | |
13994 | PyObject * obj8 = 0 ; | |
13995 | PyObject * obj9 = 0 ; | |
13996 | PyObject * obj10 = 0 ; | |
13997 | PyObject * obj11 = 0 ; | |
d14a1e28 | 13998 | char *kwnames[] = { |
093d3ff1 | 13999 | (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL |
d14a1e28 RD |
14000 | }; |
14001 | ||
093d3ff1 RD |
14002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
14003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14005 | { | |
14006 | arg2 = (int)(SWIG_As_int(obj1)); | |
14007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14008 | } | |
14009 | { | |
14010 | arg3 = (int)(SWIG_As_int(obj2)); | |
14011 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14012 | } | |
14013 | { | |
14014 | arg4 = (int)(SWIG_As_int(obj3)); | |
14015 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14016 | } | |
14017 | { | |
14018 | arg5 = (int)(SWIG_As_int(obj4)); | |
14019 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14020 | } | |
14021 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14022 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14023 | { | |
14024 | arg7 = (int)(SWIG_As_int(obj6)); | |
14025 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14026 | } | |
14027 | { | |
14028 | arg8 = (int)(SWIG_As_int(obj7)); | |
14029 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14030 | } | |
14031 | if (obj8) { | |
14032 | { | |
14033 | arg9 = (int)(SWIG_As_int(obj8)); | |
14034 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14035 | } | |
14036 | } | |
14037 | if (obj9) { | |
14038 | { | |
14039 | arg10 = (bool)(SWIG_As_bool(obj9)); | |
14040 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14041 | } | |
14042 | } | |
14043 | if (obj10) { | |
14044 | { | |
14045 | arg11 = (int)(SWIG_As_int(obj10)); | |
14046 | if (SWIG_arg_fail(11)) SWIG_fail; | |
14047 | } | |
14048 | } | |
14049 | if (obj11) { | |
14050 | { | |
14051 | arg12 = (int)(SWIG_As_int(obj11)); | |
14052 | if (SWIG_arg_fail(12)) SWIG_fail; | |
14053 | } | |
d14a1e28 RD |
14054 | } |
14055 | { | |
14056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14057 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); |
d14a1e28 RD |
14058 | |
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
093d3ff1 RD |
14062 | { |
14063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14064 | } | |
d14a1e28 RD |
14065 | return resultobj; |
14066 | fail: | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
093d3ff1 | 14071 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14072 | PyObject *resultobj; |
14073 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14074 | wxPoint *arg2 = 0 ; |
14075 | wxSize *arg3 = 0 ; | |
14076 | wxDC *arg4 = (wxDC *) 0 ; | |
14077 | wxPoint *arg5 = 0 ; | |
14078 | int arg6 = (int) wxCOPY ; | |
14079 | bool arg7 = (bool) false ; | |
14080 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
14081 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
14082 | bool result; | |
14083 | wxPoint temp2 ; | |
14084 | wxSize temp3 ; | |
14085 | wxPoint temp5 ; | |
14086 | wxPoint temp8 ; | |
d14a1e28 | 14087 | PyObject * obj0 = 0 ; |
994141e6 | 14088 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
14089 | PyObject * obj2 = 0 ; |
14090 | PyObject * obj3 = 0 ; | |
14091 | PyObject * obj4 = 0 ; | |
14092 | PyObject * obj5 = 0 ; | |
14093 | PyObject * obj6 = 0 ; | |
14094 | PyObject * obj7 = 0 ; | |
d14a1e28 | 14095 | char *kwnames[] = { |
093d3ff1 | 14096 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL |
d14a1e28 RD |
14097 | }; |
14098 | ||
093d3ff1 RD |
14099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
14100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14102 | { | |
14103 | arg2 = &temp2; | |
14104 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14105 | } | |
14106 | { | |
14107 | arg3 = &temp3; | |
14108 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14109 | } | |
14110 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14111 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14112 | { | |
14113 | arg5 = &temp5; | |
14114 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14115 | } | |
14116 | if (obj5) { | |
14117 | { | |
14118 | arg6 = (int)(SWIG_As_int(obj5)); | |
14119 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14120 | } | |
14121 | } | |
14122 | if (obj6) { | |
14123 | { | |
14124 | arg7 = (bool)(SWIG_As_bool(obj6)); | |
14125 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14126 | } | |
14127 | } | |
14128 | if (obj7) { | |
14129 | { | |
14130 | arg8 = &temp8; | |
14131 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
14132 | } | |
14133 | } | |
d14a1e28 RD |
14134 | { |
14135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14136 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
d14a1e28 RD |
14137 | |
14138 | wxPyEndAllowThreads(__tstate); | |
14139 | if (PyErr_Occurred()) SWIG_fail; | |
14140 | } | |
093d3ff1 RD |
14141 | { |
14142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14143 | } | |
d14a1e28 RD |
14144 | return resultobj; |
14145 | fail: | |
14146 | return NULL; | |
14147 | } | |
14148 | ||
14149 | ||
093d3ff1 | 14150 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14151 | PyObject *resultobj; |
14152 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14153 | int arg2 ; |
14154 | int arg3 ; | |
14155 | int arg4 ; | |
14156 | int arg5 ; | |
d14a1e28 RD |
14157 | PyObject * obj0 = 0 ; |
14158 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14159 | PyObject * obj2 = 0 ; |
14160 | PyObject * obj3 = 0 ; | |
14161 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14162 | char *kwnames[] = { |
093d3ff1 | 14163 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
14164 | }; |
14165 | ||
093d3ff1 RD |
14166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14169 | { | |
14170 | arg2 = (int)(SWIG_As_int(obj1)); | |
14171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14172 | } | |
14173 | { | |
14174 | arg3 = (int)(SWIG_As_int(obj2)); | |
14175 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14176 | } | |
14177 | { | |
14178 | arg4 = (int)(SWIG_As_int(obj3)); | |
14179 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | arg5 = (int)(SWIG_As_int(obj4)); | |
14183 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
14184 | } |
14185 | { | |
14186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14187 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
14188 | |
14189 | wxPyEndAllowThreads(__tstate); | |
14190 | if (PyErr_Occurred()) SWIG_fail; | |
14191 | } | |
14192 | Py_INCREF(Py_None); resultobj = Py_None; | |
14193 | return resultobj; | |
14194 | fail: | |
14195 | return NULL; | |
14196 | } | |
14197 | ||
14198 | ||
093d3ff1 | 14199 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14200 | PyObject *resultobj; |
14201 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14202 | wxPoint *arg2 = 0 ; |
14203 | wxSize *arg3 = 0 ; | |
14204 | wxPoint temp2 ; | |
14205 | wxSize temp3 ; | |
d14a1e28 | 14206 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14207 | PyObject * obj1 = 0 ; |
14208 | PyObject * obj2 = 0 ; | |
d14a1e28 | 14209 | char *kwnames[] = { |
093d3ff1 | 14210 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
14211 | }; |
14212 | ||
093d3ff1 RD |
14213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14216 | { | |
14217 | arg2 = &temp2; | |
14218 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14219 | } | |
14220 | { | |
14221 | arg3 = &temp3; | |
14222 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14223 | } | |
d14a1e28 RD |
14224 | { |
14225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14226 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
14227 | |
14228 | wxPyEndAllowThreads(__tstate); | |
14229 | if (PyErr_Occurred()) SWIG_fail; | |
14230 | } | |
14231 | Py_INCREF(Py_None); resultobj = Py_None; | |
14232 | return resultobj; | |
14233 | fail: | |
14234 | return NULL; | |
14235 | } | |
14236 | ||
14237 | ||
093d3ff1 | 14238 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14239 | PyObject *resultobj; |
14240 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14241 | wxRegion *arg2 = 0 ; |
d14a1e28 | 14242 | PyObject * obj0 = 0 ; |
093d3ff1 | 14243 | PyObject * obj1 = 0 ; |
d14a1e28 | 14244 | char *kwnames[] = { |
093d3ff1 | 14245 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
14246 | }; |
14247 | ||
093d3ff1 RD |
14248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
14249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14251 | { | |
14252 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
14253 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14254 | if (arg2 == NULL) { | |
14255 | SWIG_null_ref("wxRegion"); | |
14256 | } | |
14257 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14258 | } | |
d14a1e28 RD |
14259 | { |
14260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14261 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); |
d14a1e28 RD |
14262 | |
14263 | wxPyEndAllowThreads(__tstate); | |
14264 | if (PyErr_Occurred()) SWIG_fail; | |
14265 | } | |
14266 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14267 | return resultobj; |
14268 | fail: | |
14269 | return NULL; | |
14270 | } | |
14271 | ||
14272 | ||
093d3ff1 | 14273 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14274 | PyObject *resultobj; |
14275 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14276 | wxRect *arg2 = 0 ; |
14277 | wxRect temp2 ; | |
d14a1e28 | 14278 | PyObject * obj0 = 0 ; |
093d3ff1 | 14279 | PyObject * obj1 = 0 ; |
d14a1e28 | 14280 | char *kwnames[] = { |
093d3ff1 | 14281 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
14282 | }; |
14283 | ||
093d3ff1 RD |
14284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; |
14285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14287 | { | |
14288 | arg2 = &temp2; | |
14289 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
14290 | } | |
d14a1e28 RD |
14291 | { |
14292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14293 | (arg1)->SetClippingRegion((wxRect const &)*arg2); |
d14a1e28 RD |
14294 | |
14295 | wxPyEndAllowThreads(__tstate); | |
14296 | if (PyErr_Occurred()) SWIG_fail; | |
14297 | } | |
093d3ff1 | 14298 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14299 | return resultobj; |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
093d3ff1 | 14305 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14306 | PyObject *resultobj; |
14307 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14308 | int arg2 ; |
14309 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14310 | int arg4 = (int) 0 ; | |
14311 | int arg5 = (int) 0 ; | |
d14a1e28 | 14312 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14313 | PyObject * obj1 = 0 ; |
14314 | PyObject * obj2 = 0 ; | |
14315 | PyObject * obj3 = 0 ; | |
d14a1e28 | 14316 | char *kwnames[] = { |
093d3ff1 | 14317 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL |
d14a1e28 RD |
14318 | }; |
14319 | ||
093d3ff1 RD |
14320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14323 | { | |
14324 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14325 | if (arg3 == NULL) SWIG_fail; | |
14326 | } | |
14327 | if (obj2) { | |
14328 | { | |
14329 | arg4 = (int)(SWIG_As_int(obj2)); | |
14330 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14331 | } | |
14332 | } | |
14333 | if (obj3) { | |
14334 | { | |
14335 | arg5 = (int)(SWIG_As_int(obj3)); | |
14336 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14337 | } | |
14338 | } | |
d14a1e28 RD |
14339 | { |
14340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14341 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
14342 | |
14343 | wxPyEndAllowThreads(__tstate); | |
14344 | if (PyErr_Occurred()) SWIG_fail; | |
14345 | } | |
093d3ff1 RD |
14346 | Py_INCREF(Py_None); resultobj = Py_None; |
14347 | { | |
14348 | if (arg3) delete [] arg3; | |
14349 | } | |
d14a1e28 RD |
14350 | return resultobj; |
14351 | fail: | |
093d3ff1 RD |
14352 | { |
14353 | if (arg3) delete [] arg3; | |
14354 | } | |
d14a1e28 RD |
14355 | return NULL; |
14356 | } | |
14357 | ||
14358 | ||
093d3ff1 | 14359 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14360 | PyObject *resultobj; |
14361 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14362 | int arg2 ; |
14363 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14364 | int arg4 = (int) 0 ; | |
14365 | int arg5 = (int) 0 ; | |
14366 | int arg6 = (int) wxODDEVEN_RULE ; | |
d14a1e28 | 14367 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14368 | PyObject * obj1 = 0 ; |
14369 | PyObject * obj2 = 0 ; | |
14370 | PyObject * obj3 = 0 ; | |
14371 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14372 | char *kwnames[] = { |
093d3ff1 | 14373 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL |
d14a1e28 RD |
14374 | }; |
14375 | ||
093d3ff1 RD |
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14379 | { | |
14380 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14381 | if (arg3 == NULL) SWIG_fail; | |
14382 | } | |
14383 | if (obj2) { | |
14384 | { | |
14385 | arg4 = (int)(SWIG_As_int(obj2)); | |
14386 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14387 | } | |
14388 | } | |
14389 | if (obj3) { | |
14390 | { | |
14391 | arg5 = (int)(SWIG_As_int(obj3)); | |
14392 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14393 | } | |
14394 | } | |
14395 | if (obj4) { | |
14396 | { | |
14397 | arg6 = (int)(SWIG_As_int(obj4)); | |
14398 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14399 | } | |
14400 | } | |
d14a1e28 RD |
14401 | { |
14402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14403 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
14404 | |
14405 | wxPyEndAllowThreads(__tstate); | |
14406 | if (PyErr_Occurred()) SWIG_fail; | |
14407 | } | |
093d3ff1 RD |
14408 | Py_INCREF(Py_None); resultobj = Py_None; |
14409 | { | |
14410 | if (arg3) delete [] arg3; | |
14411 | } | |
d14a1e28 RD |
14412 | return resultobj; |
14413 | fail: | |
093d3ff1 RD |
14414 | { |
14415 | if (arg3) delete [] arg3; | |
14416 | } | |
d14a1e28 RD |
14417 | return NULL; |
14418 | } | |
14419 | ||
14420 | ||
093d3ff1 | 14421 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14422 | PyObject *resultobj; |
14423 | wxDC *arg1 = (wxDC *) 0 ; | |
14424 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
14425 | wxRect *arg3 = 0 ; |
14426 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14427 | int arg5 = (int) -1 ; | |
ae8162c8 | 14428 | bool temp2 = false ; |
093d3ff1 | 14429 | wxRect temp3 ; |
d14a1e28 RD |
14430 | PyObject * obj0 = 0 ; |
14431 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14432 | PyObject * obj2 = 0 ; |
14433 | PyObject * obj3 = 0 ; | |
14434 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14435 | char *kwnames[] = { |
093d3ff1 | 14436 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d14a1e28 RD |
14437 | }; |
14438 | ||
093d3ff1 RD |
14439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14442 | { |
14443 | arg2 = wxString_in_helper(obj1); | |
14444 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14445 | temp2 = true; |
d14a1e28 | 14446 | } |
093d3ff1 RD |
14447 | { |
14448 | arg3 = &temp3; | |
14449 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
14450 | } | |
14451 | if (obj3) { | |
14452 | { | |
14453 | arg4 = (int)(SWIG_As_int(obj3)); | |
14454 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14455 | } | |
14456 | } | |
14457 | if (obj4) { | |
14458 | { | |
14459 | arg5 = (int)(SWIG_As_int(obj4)); | |
14460 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14461 | } | |
14462 | } | |
d14a1e28 RD |
14463 | { |
14464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14465 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); |
d14a1e28 RD |
14466 | |
14467 | wxPyEndAllowThreads(__tstate); | |
14468 | if (PyErr_Occurred()) SWIG_fail; | |
14469 | } | |
14470 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14471 | { |
14472 | if (temp2) | |
14473 | delete arg2; | |
14474 | } | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | { | |
14478 | if (temp2) | |
14479 | delete arg2; | |
14480 | } | |
14481 | return NULL; | |
14482 | } | |
14483 | ||
14484 | ||
093d3ff1 | 14485 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14486 | PyObject *resultobj; |
14487 | wxDC *arg1 = (wxDC *) 0 ; | |
14488 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
14489 | wxBitmap *arg3 = 0 ; |
14490 | wxRect *arg4 = 0 ; | |
14491 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14492 | int arg6 = (int) -1 ; | |
14493 | wxRect result; | |
ae8162c8 | 14494 | bool temp2 = false ; |
093d3ff1 | 14495 | wxRect temp4 ; |
d14a1e28 RD |
14496 | PyObject * obj0 = 0 ; |
14497 | PyObject * obj1 = 0 ; | |
14498 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
14499 | PyObject * obj3 = 0 ; |
14500 | PyObject * obj4 = 0 ; | |
14501 | PyObject * obj5 = 0 ; | |
d14a1e28 | 14502 | char *kwnames[] = { |
093d3ff1 | 14503 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d14a1e28 RD |
14504 | }; |
14505 | ||
093d3ff1 RD |
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
14507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14509 | { |
14510 | arg2 = wxString_in_helper(obj1); | |
14511 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14512 | temp2 = true; |
d14a1e28 | 14513 | } |
093d3ff1 RD |
14514 | { |
14515 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
14516 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14517 | if (arg3 == NULL) { | |
14518 | SWIG_null_ref("wxBitmap"); | |
14519 | } | |
14520 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14521 | } | |
14522 | { | |
14523 | arg4 = &temp4; | |
14524 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
14525 | } | |
14526 | if (obj4) { | |
14527 | { | |
14528 | arg5 = (int)(SWIG_As_int(obj4)); | |
14529 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14530 | } | |
14531 | } | |
14532 | if (obj5) { | |
14533 | { | |
14534 | arg6 = (int)(SWIG_As_int(obj5)); | |
14535 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14536 | } | |
d14a1e28 RD |
14537 | } |
14538 | { | |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14540 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); |
d14a1e28 RD |
14541 | |
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
093d3ff1 RD |
14545 | { |
14546 | wxRect * resultptr; | |
14547 | resultptr = new wxRect((wxRect &)(result)); | |
14548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
14549 | } | |
d14a1e28 RD |
14550 | { |
14551 | if (temp2) | |
14552 | delete arg2; | |
14553 | } | |
14554 | return resultobj; | |
14555 | fail: | |
14556 | { | |
14557 | if (temp2) | |
14558 | delete arg2; | |
14559 | } | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
093d3ff1 | 14564 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14565 | PyObject *resultobj; |
14566 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14567 | int arg2 ; |
14568 | wxPoint *arg3 = (wxPoint *) 0 ; | |
d14a1e28 RD |
14569 | PyObject * obj0 = 0 ; |
14570 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14571 | char *kwnames[] = { |
093d3ff1 | 14572 | (char *) "self",(char *) "points", NULL |
d14a1e28 RD |
14573 | }; |
14574 | ||
093d3ff1 RD |
14575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; |
14576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 14578 | { |
093d3ff1 RD |
14579 | arg3 = wxPoint_LIST_helper(obj1, &arg2); |
14580 | if (arg3 == NULL) SWIG_fail; | |
d14a1e28 RD |
14581 | } |
14582 | { | |
14583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14584 | (arg1)->DrawSpline(arg2,arg3); |
d14a1e28 RD |
14585 | |
14586 | wxPyEndAllowThreads(__tstate); | |
14587 | if (PyErr_Occurred()) SWIG_fail; | |
14588 | } | |
14589 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 | 14590 | { |
093d3ff1 | 14591 | if (arg3) delete [] arg3; |
d14a1e28 RD |
14592 | } |
14593 | return resultobj; | |
14594 | fail: | |
14595 | { | |
093d3ff1 | 14596 | if (arg3) delete [] arg3; |
d14a1e28 RD |
14597 | } |
14598 | return NULL; | |
14599 | } | |
14600 | ||
14601 | ||
093d3ff1 RD |
14602 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
14603 | PyObject *resultobj; | |
14604 | wxDC *arg1 = (wxDC *) 0 ; | |
14605 | PyObject * obj0 = 0 ; | |
14606 | char *kwnames[] = { | |
14607 | (char *) "self", NULL | |
14608 | }; | |
14609 | ||
14610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
14611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14613 | { | |
14614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14615 | (arg1)->Clear(); | |
14616 | ||
14617 | wxPyEndAllowThreads(__tstate); | |
14618 | if (PyErr_Occurred()) SWIG_fail; | |
14619 | } | |
14620 | Py_INCREF(Py_None); resultobj = Py_None; | |
14621 | return resultobj; | |
14622 | fail: | |
14623 | return NULL; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
14628 | PyObject *resultobj; |
14629 | wxDC *arg1 = (wxDC *) 0 ; | |
14630 | wxString *arg2 = 0 ; | |
093d3ff1 | 14631 | bool result; |
ae8162c8 | 14632 | bool temp2 = false ; |
db914595 RD |
14633 | PyObject * obj0 = 0 ; |
14634 | PyObject * obj1 = 0 ; | |
14635 | char *kwnames[] = { | |
093d3ff1 | 14636 | (char *) "self",(char *) "message", NULL |
db914595 RD |
14637 | }; |
14638 | ||
093d3ff1 RD |
14639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; |
14640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db914595 RD |
14642 | { |
14643 | arg2 = wxString_in_helper(obj1); | |
14644 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14645 | temp2 = true; |
db914595 RD |
14646 | } |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14649 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); |
db914595 RD |
14650 | |
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | { | |
093d3ff1 | 14655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
db914595 RD |
14656 | } |
14657 | { | |
14658 | if (temp2) | |
14659 | delete arg2; | |
14660 | } | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | { | |
14664 | if (temp2) | |
14665 | delete arg2; | |
14666 | } | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
093d3ff1 | 14671 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
322913ce RD |
14672 | PyObject *resultobj; |
14673 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14674 | PyObject * obj0 = 0 ; |
14675 | char *kwnames[] = { | |
14676 | (char *) "self", NULL | |
14677 | }; | |
14678 | ||
093d3ff1 RD |
14679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; |
14680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
322913ce RD |
14682 | { |
14683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14684 | (arg1)->EndDoc(); |
322913ce RD |
14685 | |
14686 | wxPyEndAllowThreads(__tstate); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
093d3ff1 | 14689 | Py_INCREF(Py_None); resultobj = Py_None; |
322913ce RD |
14690 | return resultobj; |
14691 | fail: | |
14692 | return NULL; | |
14693 | } | |
14694 | ||
14695 | ||
093d3ff1 | 14696 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14697 | PyObject *resultobj; |
14698 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 RD |
14699 | PyObject * obj0 = 0 ; |
14700 | char *kwnames[] = { | |
14701 | (char *) "self", NULL | |
14702 | }; | |
14703 | ||
093d3ff1 RD |
14704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; |
14705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14707 | { |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14709 | (arg1)->StartPage(); |
d14a1e28 RD |
14710 | |
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14715 | return resultobj; |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
093d3ff1 | 14721 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14722 | PyObject *resultobj; |
14723 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 RD |
14724 | PyObject * obj0 = 0 ; |
14725 | char *kwnames[] = { | |
14726 | (char *) "self", NULL | |
14727 | }; | |
14728 | ||
093d3ff1 RD |
14729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; |
14730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14732 | { |
14733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14734 | (arg1)->EndPage(); |
d14a1e28 RD |
14735 | |
14736 | wxPyEndAllowThreads(__tstate); | |
14737 | if (PyErr_Occurred()) SWIG_fail; | |
14738 | } | |
093d3ff1 | 14739 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14740 | return resultobj; |
14741 | fail: | |
14742 | return NULL; | |
14743 | } | |
14744 | ||
14745 | ||
093d3ff1 | 14746 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14747 | PyObject *resultobj; |
14748 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14749 | wxFont *arg2 = 0 ; |
d14a1e28 | 14750 | PyObject * obj0 = 0 ; |
093d3ff1 | 14751 | PyObject * obj1 = 0 ; |
d14a1e28 | 14752 | char *kwnames[] = { |
093d3ff1 | 14753 | (char *) "self",(char *) "font", NULL |
d14a1e28 RD |
14754 | }; |
14755 | ||
093d3ff1 RD |
14756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; |
14757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14759 | { | |
14760 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
14761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14762 | if (arg2 == NULL) { | |
14763 | SWIG_null_ref("wxFont"); | |
14764 | } | |
14765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14766 | } | |
d14a1e28 RD |
14767 | { |
14768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14769 | (arg1)->SetFont((wxFont const &)*arg2); |
d14a1e28 RD |
14770 | |
14771 | wxPyEndAllowThreads(__tstate); | |
14772 | if (PyErr_Occurred()) SWIG_fail; | |
14773 | } | |
14774 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14775 | return resultobj; |
14776 | fail: | |
14777 | return NULL; | |
14778 | } | |
14779 | ||
14780 | ||
093d3ff1 | 14781 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14782 | PyObject *resultobj; |
14783 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14784 | wxPen *arg2 = 0 ; |
d14a1e28 | 14785 | PyObject * obj0 = 0 ; |
994141e6 | 14786 | PyObject * obj1 = 0 ; |
d14a1e28 | 14787 | char *kwnames[] = { |
093d3ff1 | 14788 | (char *) "self",(char *) "pen", NULL |
d14a1e28 RD |
14789 | }; |
14790 | ||
093d3ff1 RD |
14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; |
14792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14794 | { | |
14795 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
14796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14797 | if (arg2 == NULL) { | |
14798 | SWIG_null_ref("wxPen"); | |
14799 | } | |
14800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14801 | } | |
d14a1e28 RD |
14802 | { |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14804 | (arg1)->SetPen((wxPen const &)*arg2); |
d14a1e28 RD |
14805 | |
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
093d3ff1 | 14809 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14810 | return resultobj; |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
093d3ff1 | 14816 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14817 | PyObject *resultobj; |
14818 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14819 | wxBrush *arg2 = 0 ; |
d14a1e28 | 14820 | PyObject * obj0 = 0 ; |
994141e6 | 14821 | PyObject * obj1 = 0 ; |
d14a1e28 | 14822 | char *kwnames[] = { |
093d3ff1 | 14823 | (char *) "self",(char *) "brush", NULL |
d14a1e28 RD |
14824 | }; |
14825 | ||
093d3ff1 RD |
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; |
14827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14829 | { | |
14830 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
14831 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14832 | if (arg2 == NULL) { | |
14833 | SWIG_null_ref("wxBrush"); | |
14834 | } | |
14835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14836 | } | |
d14a1e28 RD |
14837 | { |
14838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14839 | (arg1)->SetBrush((wxBrush const &)*arg2); |
d14a1e28 RD |
14840 | |
14841 | wxPyEndAllowThreads(__tstate); | |
14842 | if (PyErr_Occurred()) SWIG_fail; | |
14843 | } | |
093d3ff1 | 14844 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14845 | return resultobj; |
14846 | fail: | |
14847 | return NULL; | |
14848 | } | |
14849 | ||
14850 | ||
093d3ff1 | 14851 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14852 | PyObject *resultobj; |
14853 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14854 | wxBrush *arg2 = 0 ; |
d14a1e28 | 14855 | PyObject * obj0 = 0 ; |
994141e6 | 14856 | PyObject * obj1 = 0 ; |
d14a1e28 | 14857 | char *kwnames[] = { |
093d3ff1 | 14858 | (char *) "self",(char *) "brush", NULL |
d14a1e28 RD |
14859 | }; |
14860 | ||
093d3ff1 RD |
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; |
14862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14864 | { | |
14865 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
14866 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14867 | if (arg2 == NULL) { | |
14868 | SWIG_null_ref("wxBrush"); | |
14869 | } | |
14870 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14871 | } | |
d14a1e28 RD |
14872 | { |
14873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14874 | (arg1)->SetBackground((wxBrush const &)*arg2); |
d14a1e28 RD |
14875 | |
14876 | wxPyEndAllowThreads(__tstate); | |
14877 | if (PyErr_Occurred()) SWIG_fail; | |
14878 | } | |
093d3ff1 | 14879 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14880 | return resultobj; |
14881 | fail: | |
14882 | return NULL; | |
14883 | } | |
14884 | ||
14885 | ||
093d3ff1 | 14886 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14887 | PyObject *resultobj; |
14888 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14889 | int arg2 ; |
d14a1e28 | 14890 | PyObject * obj0 = 0 ; |
994141e6 | 14891 | PyObject * obj1 = 0 ; |
d14a1e28 | 14892 | char *kwnames[] = { |
093d3ff1 | 14893 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
14894 | }; |
14895 | ||
093d3ff1 RD |
14896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
14897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14899 | { | |
14900 | arg2 = (int)(SWIG_As_int(obj1)); | |
14901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14902 | } | |
d14a1e28 RD |
14903 | { |
14904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14905 | (arg1)->SetBackgroundMode(arg2); |
d14a1e28 RD |
14906 | |
14907 | wxPyEndAllowThreads(__tstate); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
14909 | } | |
093d3ff1 | 14910 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14911 | return resultobj; |
14912 | fail: | |
14913 | return NULL; | |
14914 | } | |
14915 | ||
14916 | ||
093d3ff1 | 14917 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14918 | PyObject *resultobj; |
14919 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 14920 | wxPalette *arg2 = 0 ; |
d14a1e28 | 14921 | PyObject * obj0 = 0 ; |
994141e6 | 14922 | PyObject * obj1 = 0 ; |
d14a1e28 | 14923 | char *kwnames[] = { |
093d3ff1 | 14924 | (char *) "self",(char *) "palette", NULL |
d14a1e28 RD |
14925 | }; |
14926 | ||
093d3ff1 RD |
14927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
14928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14930 | { | |
14931 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
14932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14933 | if (arg2 == NULL) { | |
14934 | SWIG_null_ref("wxPalette"); | |
14935 | } | |
14936 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14937 | } | |
d14a1e28 RD |
14938 | { |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14940 | (arg1)->SetPalette((wxPalette const &)*arg2); |
d14a1e28 RD |
14941 | |
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
093d3ff1 | 14945 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14946 | return resultobj; |
14947 | fail: | |
14948 | return NULL; | |
14949 | } | |
14950 | ||
14951 | ||
093d3ff1 | 14952 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14953 | PyObject *resultobj; |
14954 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 RD |
14955 | PyObject * obj0 = 0 ; |
14956 | char *kwnames[] = { | |
093d3ff1 | 14957 | (char *) "self", NULL |
d14a1e28 RD |
14958 | }; |
14959 | ||
093d3ff1 RD |
14960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; |
14961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14963 | { |
14964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14965 | (arg1)->DestroyClippingRegion(); |
d14a1e28 RD |
14966 | |
14967 | wxPyEndAllowThreads(__tstate); | |
14968 | if (PyErr_Occurred()) SWIG_fail; | |
14969 | } | |
093d3ff1 | 14970 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14971 | return resultobj; |
14972 | fail: | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
093d3ff1 | 14977 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14978 | PyObject *resultobj; |
14979 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
14980 | int *arg2 = (int *) 0 ; |
14981 | int *arg3 = (int *) 0 ; | |
14982 | int *arg4 = (int *) 0 ; | |
14983 | int *arg5 = (int *) 0 ; | |
14984 | int temp2 ; | |
14985 | int res2 = 0 ; | |
14986 | int temp3 ; | |
14987 | int res3 = 0 ; | |
14988 | int temp4 ; | |
14989 | int res4 = 0 ; | |
14990 | int temp5 ; | |
14991 | int res5 = 0 ; | |
d14a1e28 RD |
14992 | PyObject * obj0 = 0 ; |
14993 | char *kwnames[] = { | |
093d3ff1 | 14994 | (char *) "self", NULL |
d14a1e28 RD |
14995 | }; |
14996 | ||
093d3ff1 RD |
14997 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14998 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
14999 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15000 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
15002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15004 | { |
15005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15006 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
15007 | |
15008 | wxPyEndAllowThreads(__tstate); | |
15009 | if (PyErr_Occurred()) SWIG_fail; | |
15010 | } | |
093d3ff1 RD |
15011 | Py_INCREF(Py_None); resultobj = Py_None; |
15012 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15013 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15014 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15015 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15016 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15017 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15018 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15019 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15020 | return resultobj; |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
093d3ff1 | 15026 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15027 | PyObject *resultobj; |
15028 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15029 | wxRect result; |
d14a1e28 RD |
15030 | PyObject * obj0 = 0 ; |
15031 | char *kwnames[] = { | |
093d3ff1 | 15032 | (char *) "self", NULL |
d14a1e28 RD |
15033 | }; |
15034 | ||
093d3ff1 RD |
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; |
15036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15038 | { |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15040 | result = wxDC_GetClippingRect(arg1); |
d14a1e28 RD |
15041 | |
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
093d3ff1 RD |
15045 | { |
15046 | wxRect * resultptr; | |
15047 | resultptr = new wxRect((wxRect &)(result)); | |
15048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
15049 | } | |
d14a1e28 RD |
15050 | return resultobj; |
15051 | fail: | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
093d3ff1 | 15056 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15057 | PyObject *resultobj; |
15058 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15059 | int result; |
d14a1e28 RD |
15060 | PyObject * obj0 = 0 ; |
15061 | char *kwnames[] = { | |
15062 | (char *) "self", NULL | |
15063 | }; | |
15064 | ||
093d3ff1 RD |
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; |
15066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15068 | { |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15070 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
15071 | |
15072 | wxPyEndAllowThreads(__tstate); | |
15073 | if (PyErr_Occurred()) SWIG_fail; | |
15074 | } | |
4f89f6a3 | 15075 | { |
093d3ff1 | 15076 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 15077 | } |
d14a1e28 RD |
15078 | return resultobj; |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
093d3ff1 | 15084 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15085 | PyObject *resultobj; |
15086 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15087 | int result; |
d14a1e28 RD |
15088 | PyObject * obj0 = 0 ; |
15089 | char *kwnames[] = { | |
15090 | (char *) "self", NULL | |
15091 | }; | |
15092 | ||
093d3ff1 RD |
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; |
15094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15096 | { |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15098 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
15099 | |
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
4f89f6a3 | 15103 | { |
093d3ff1 | 15104 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 15105 | } |
d14a1e28 RD |
15106 | return resultobj; |
15107 | fail: | |
15108 | return NULL; | |
15109 | } | |
15110 | ||
15111 | ||
093d3ff1 | 15112 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15113 | PyObject *resultobj; |
15114 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15115 | wxString *arg2 = 0 ; |
15116 | int *arg3 = (int *) 0 ; | |
15117 | int *arg4 = (int *) 0 ; | |
15118 | bool temp2 = false ; | |
15119 | int temp3 ; | |
15120 | int res3 = 0 ; | |
15121 | int temp4 ; | |
15122 | int res4 = 0 ; | |
d14a1e28 | 15123 | PyObject * obj0 = 0 ; |
093d3ff1 | 15124 | PyObject * obj1 = 0 ; |
d14a1e28 | 15125 | char *kwnames[] = { |
093d3ff1 | 15126 | (char *) "self",(char *) "string", NULL |
d14a1e28 RD |
15127 | }; |
15128 | ||
093d3ff1 RD |
15129 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15130 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15134 | { | |
15135 | arg2 = wxString_in_helper(obj1); | |
15136 | if (arg2 == NULL) SWIG_fail; | |
15137 | temp2 = true; | |
15138 | } | |
d14a1e28 RD |
15139 | { |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15141 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
15142 | |
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
093d3ff1 RD |
15146 | Py_INCREF(Py_None); resultobj = Py_None; |
15147 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15148 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15149 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15150 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15151 | { | |
15152 | if (temp2) | |
15153 | delete arg2; | |
15154 | } | |
d14a1e28 RD |
15155 | return resultobj; |
15156 | fail: | |
093d3ff1 RD |
15157 | { |
15158 | if (temp2) | |
15159 | delete arg2; | |
15160 | } | |
d14a1e28 RD |
15161 | return NULL; |
15162 | } | |
15163 | ||
15164 | ||
093d3ff1 | 15165 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15166 | PyObject *resultobj; |
15167 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15168 | wxString *arg2 = 0 ; |
15169 | int *arg3 = (int *) 0 ; | |
15170 | int *arg4 = (int *) 0 ; | |
15171 | int *arg5 = (int *) 0 ; | |
15172 | int *arg6 = (int *) 0 ; | |
15173 | wxFont *arg7 = (wxFont *) NULL ; | |
15174 | bool temp2 = false ; | |
15175 | int temp3 ; | |
15176 | int res3 = 0 ; | |
15177 | int temp4 ; | |
15178 | int res4 = 0 ; | |
15179 | int temp5 ; | |
15180 | int res5 = 0 ; | |
15181 | int temp6 ; | |
15182 | int res6 = 0 ; | |
d14a1e28 | 15183 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
15184 | PyObject * obj1 = 0 ; |
15185 | PyObject * obj2 = 0 ; | |
d14a1e28 | 15186 | char *kwnames[] = { |
093d3ff1 | 15187 | (char *) "self",(char *) "string",(char *) "font", NULL |
d14a1e28 RD |
15188 | }; |
15189 | ||
093d3ff1 RD |
15190 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15191 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15192 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15193 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
15194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15195 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15196 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15197 | { | |
15198 | arg2 = wxString_in_helper(obj1); | |
15199 | if (arg2 == NULL) SWIG_fail; | |
15200 | temp2 = true; | |
15201 | } | |
15202 | if (obj2) { | |
15203 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15204 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15205 | } | |
d14a1e28 RD |
15206 | { |
15207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15208 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
15209 | |
15210 | wxPyEndAllowThreads(__tstate); | |
15211 | if (PyErr_Occurred()) SWIG_fail; | |
15212 | } | |
093d3ff1 RD |
15213 | Py_INCREF(Py_None); resultobj = Py_None; |
15214 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15215 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15216 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15217 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15218 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15219 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
15220 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
15221 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 | 15222 | { |
093d3ff1 RD |
15223 | if (temp2) |
15224 | delete arg2; | |
d14a1e28 RD |
15225 | } |
15226 | return resultobj; | |
15227 | fail: | |
093d3ff1 RD |
15228 | { |
15229 | if (temp2) | |
15230 | delete arg2; | |
15231 | } | |
d14a1e28 RD |
15232 | return NULL; |
15233 | } | |
15234 | ||
15235 | ||
093d3ff1 | 15236 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15237 | PyObject *resultobj; |
15238 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15239 | wxString *arg2 = 0 ; |
15240 | int *arg3 = (int *) 0 ; | |
15241 | int *arg4 = (int *) 0 ; | |
15242 | int *arg5 = (int *) 0 ; | |
15243 | wxFont *arg6 = (wxFont *) NULL ; | |
15244 | bool temp2 = false ; | |
15245 | int temp3 ; | |
15246 | int res3 = 0 ; | |
15247 | int temp4 ; | |
15248 | int res4 = 0 ; | |
15249 | int temp5 ; | |
15250 | int res5 = 0 ; | |
d14a1e28 | 15251 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
15252 | PyObject * obj1 = 0 ; |
15253 | PyObject * obj2 = 0 ; | |
d14a1e28 | 15254 | char *kwnames[] = { |
093d3ff1 | 15255 | (char *) "self",(char *) "text",(char *) "font", NULL |
d14a1e28 RD |
15256 | }; |
15257 | ||
093d3ff1 RD |
15258 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15259 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15260 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15264 | { | |
15265 | arg2 = wxString_in_helper(obj1); | |
15266 | if (arg2 == NULL) SWIG_fail; | |
15267 | temp2 = true; | |
15268 | } | |
15269 | if (obj2) { | |
15270 | SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15271 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15272 | } | |
d14a1e28 RD |
15273 | { |
15274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15275 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
15276 | |
15277 | wxPyEndAllowThreads(__tstate); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
093d3ff1 RD |
15280 | Py_INCREF(Py_None); resultobj = Py_None; |
15281 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15282 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15283 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15284 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15285 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15286 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
4f89f6a3 | 15287 | { |
093d3ff1 RD |
15288 | if (temp2) |
15289 | delete arg2; | |
4f89f6a3 | 15290 | } |
d14a1e28 RD |
15291 | return resultobj; |
15292 | fail: | |
093d3ff1 RD |
15293 | { |
15294 | if (temp2) | |
15295 | delete arg2; | |
15296 | } | |
d14a1e28 RD |
15297 | return NULL; |
15298 | } | |
15299 | ||
15300 | ||
093d3ff1 | 15301 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15302 | PyObject *resultobj; |
15303 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15304 | wxString *arg2 = 0 ; |
15305 | wxArrayInt result; | |
15306 | bool temp2 = false ; | |
d14a1e28 | 15307 | PyObject * obj0 = 0 ; |
093d3ff1 | 15308 | PyObject * obj1 = 0 ; |
d14a1e28 | 15309 | char *kwnames[] = { |
093d3ff1 | 15310 | (char *) "self",(char *) "text", NULL |
d14a1e28 RD |
15311 | }; |
15312 | ||
093d3ff1 RD |
15313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; |
15314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15316 | { | |
15317 | arg2 = wxString_in_helper(obj1); | |
15318 | if (arg2 == NULL) SWIG_fail; | |
15319 | temp2 = true; | |
15320 | } | |
d14a1e28 RD |
15321 | { |
15322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15323 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
15324 | |
15325 | wxPyEndAllowThreads(__tstate); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
093d3ff1 RD |
15328 | { |
15329 | resultobj = PyList_New(0); | |
15330 | size_t idx; | |
15331 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
15332 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
15333 | PyList_Append(resultobj, val); | |
15334 | Py_DECREF(val); | |
15335 | } | |
15336 | } | |
15337 | { | |
15338 | if (temp2) | |
15339 | delete arg2; | |
15340 | } | |
d14a1e28 RD |
15341 | return resultobj; |
15342 | fail: | |
093d3ff1 RD |
15343 | { |
15344 | if (temp2) | |
15345 | delete arg2; | |
15346 | } | |
d14a1e28 RD |
15347 | return NULL; |
15348 | } | |
15349 | ||
15350 | ||
093d3ff1 | 15351 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15352 | PyObject *resultobj; |
15353 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15354 | wxSize result; |
d14a1e28 RD |
15355 | PyObject * obj0 = 0 ; |
15356 | char *kwnames[] = { | |
15357 | (char *) "self", NULL | |
15358 | }; | |
15359 | ||
093d3ff1 RD |
15360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; |
15361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15363 | { |
15364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15365 | result = (arg1)->GetSize(); |
d14a1e28 RD |
15366 | |
15367 | wxPyEndAllowThreads(__tstate); | |
15368 | if (PyErr_Occurred()) SWIG_fail; | |
15369 | } | |
4276dc52 | 15370 | { |
093d3ff1 RD |
15371 | wxSize * resultptr; |
15372 | resultptr = new wxSize((wxSize &)(result)); | |
15373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4276dc52 | 15374 | } |
d14a1e28 RD |
15375 | return resultobj; |
15376 | fail: | |
15377 | return NULL; | |
15378 | } | |
15379 | ||
15380 | ||
093d3ff1 | 15381 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15382 | PyObject *resultobj; |
15383 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15384 | int *arg2 = (int *) 0 ; |
15385 | int *arg3 = (int *) 0 ; | |
15386 | int temp2 ; | |
15387 | int res2 = 0 ; | |
15388 | int temp3 ; | |
15389 | int res3 = 0 ; | |
d14a1e28 RD |
15390 | PyObject * obj0 = 0 ; |
15391 | char *kwnames[] = { | |
15392 | (char *) "self", NULL | |
15393 | }; | |
15394 | ||
093d3ff1 RD |
15395 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15396 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15400 | { |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15402 | (arg1)->GetSize(arg2,arg3); |
d14a1e28 RD |
15403 | |
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
093d3ff1 RD |
15407 | Py_INCREF(Py_None); resultobj = Py_None; |
15408 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15409 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15410 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15411 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15412 | return resultobj; |
15413 | fail: | |
15414 | return NULL; | |
15415 | } | |
15416 | ||
15417 | ||
093d3ff1 | 15418 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15419 | PyObject *resultobj; |
15420 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15421 | wxSize result; |
d14a1e28 RD |
15422 | PyObject * obj0 = 0 ; |
15423 | char *kwnames[] = { | |
15424 | (char *) "self", NULL | |
15425 | }; | |
15426 | ||
093d3ff1 RD |
15427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15430 | { |
15431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15432 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
15433 | |
15434 | wxPyEndAllowThreads(__tstate); | |
15435 | if (PyErr_Occurred()) SWIG_fail; | |
15436 | } | |
4276dc52 | 15437 | { |
093d3ff1 RD |
15438 | wxSize * resultptr; |
15439 | resultptr = new wxSize((wxSize &)(result)); | |
15440 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4276dc52 | 15441 | } |
d14a1e28 RD |
15442 | return resultobj; |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
093d3ff1 | 15448 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15449 | PyObject *resultobj; |
15450 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15451 | int *arg2 = (int *) 0 ; |
15452 | int *arg3 = (int *) 0 ; | |
15453 | int temp2 ; | |
15454 | int res2 = 0 ; | |
15455 | int temp3 ; | |
15456 | int res3 = 0 ; | |
d14a1e28 RD |
15457 | PyObject * obj0 = 0 ; |
15458 | char *kwnames[] = { | |
15459 | (char *) "self", NULL | |
15460 | }; | |
15461 | ||
093d3ff1 RD |
15462 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15463 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
15465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15467 | { | |
15468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15469 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
d14a1e28 RD |
15470 | |
15471 | wxPyEndAllowThreads(__tstate); | |
15472 | if (PyErr_Occurred()) SWIG_fail; | |
15473 | } | |
093d3ff1 RD |
15474 | Py_INCREF(Py_None); resultobj = Py_None; |
15475 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15476 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15477 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15478 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15479 | return resultobj; |
15480 | fail: | |
15481 | return NULL; | |
15482 | } | |
15483 | ||
15484 | ||
093d3ff1 | 15485 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15486 | PyObject *resultobj; |
15487 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15488 | int arg2 ; |
15489 | int result; | |
d14a1e28 | 15490 | PyObject * obj0 = 0 ; |
093d3ff1 | 15491 | PyObject * obj1 = 0 ; |
d14a1e28 | 15492 | char *kwnames[] = { |
093d3ff1 | 15493 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15494 | }; |
15495 | ||
093d3ff1 RD |
15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15499 | { | |
15500 | arg2 = (int)(SWIG_As_int(obj1)); | |
15501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15502 | } | |
d14a1e28 RD |
15503 | { |
15504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15505 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
15506 | |
15507 | wxPyEndAllowThreads(__tstate); | |
15508 | if (PyErr_Occurred()) SWIG_fail; | |
15509 | } | |
093d3ff1 RD |
15510 | { |
15511 | resultobj = SWIG_From_int((int)(result)); | |
15512 | } | |
d14a1e28 RD |
15513 | return resultobj; |
15514 | fail: | |
15515 | return NULL; | |
15516 | } | |
15517 | ||
15518 | ||
093d3ff1 | 15519 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15520 | PyObject *resultobj; |
15521 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15522 | int arg2 ; |
15523 | int result; | |
d14a1e28 | 15524 | PyObject * obj0 = 0 ; |
093d3ff1 | 15525 | PyObject * obj1 = 0 ; |
d14a1e28 | 15526 | char *kwnames[] = { |
093d3ff1 | 15527 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15528 | }; |
15529 | ||
093d3ff1 RD |
15530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15533 | { | |
15534 | arg2 = (int)(SWIG_As_int(obj1)); | |
15535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15536 | } | |
d14a1e28 RD |
15537 | { |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15539 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
15540 | |
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
093d3ff1 RD |
15544 | { |
15545 | resultobj = SWIG_From_int((int)(result)); | |
15546 | } | |
d14a1e28 RD |
15547 | return resultobj; |
15548 | fail: | |
15549 | return NULL; | |
15550 | } | |
15551 | ||
15552 | ||
093d3ff1 | 15553 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15554 | PyObject *resultobj; |
15555 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15556 | int arg2 ; |
15557 | int result; | |
d14a1e28 RD |
15558 | PyObject * obj0 = 0 ; |
15559 | PyObject * obj1 = 0 ; | |
15560 | char *kwnames[] = { | |
093d3ff1 | 15561 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15562 | }; |
15563 | ||
093d3ff1 RD |
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 15567 | { |
093d3ff1 RD |
15568 | arg2 = (int)(SWIG_As_int(obj1)); |
15569 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15570 | } |
15571 | { | |
15572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15573 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
15574 | |
15575 | wxPyEndAllowThreads(__tstate); | |
15576 | if (PyErr_Occurred()) SWIG_fail; | |
15577 | } | |
093d3ff1 RD |
15578 | { |
15579 | resultobj = SWIG_From_int((int)(result)); | |
15580 | } | |
d14a1e28 RD |
15581 | return resultobj; |
15582 | fail: | |
15583 | return NULL; | |
15584 | } | |
15585 | ||
15586 | ||
093d3ff1 | 15587 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15588 | PyObject *resultobj; |
15589 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15590 | int arg2 ; |
15591 | int result; | |
d14a1e28 RD |
15592 | PyObject * obj0 = 0 ; |
15593 | PyObject * obj1 = 0 ; | |
15594 | char *kwnames[] = { | |
093d3ff1 | 15595 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15596 | }; |
15597 | ||
093d3ff1 RD |
15598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 15601 | { |
093d3ff1 RD |
15602 | arg2 = (int)(SWIG_As_int(obj1)); |
15603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15604 | } |
15605 | { | |
15606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15607 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
15608 | |
15609 | wxPyEndAllowThreads(__tstate); | |
15610 | if (PyErr_Occurred()) SWIG_fail; | |
15611 | } | |
093d3ff1 RD |
15612 | { |
15613 | resultobj = SWIG_From_int((int)(result)); | |
15614 | } | |
d14a1e28 RD |
15615 | return resultobj; |
15616 | fail: | |
15617 | return NULL; | |
15618 | } | |
15619 | ||
15620 | ||
093d3ff1 | 15621 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15622 | PyObject *resultobj; |
15623 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15624 | int arg2 ; |
d14a1e28 RD |
15625 | int result; |
15626 | PyObject * obj0 = 0 ; | |
093d3ff1 | 15627 | PyObject * obj1 = 0 ; |
d14a1e28 | 15628 | char *kwnames[] = { |
093d3ff1 | 15629 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15630 | }; |
15631 | ||
093d3ff1 RD |
15632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15635 | { | |
15636 | arg2 = (int)(SWIG_As_int(obj1)); | |
15637 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15638 | } | |
d14a1e28 RD |
15639 | { |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15641 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
15642 | |
15643 | wxPyEndAllowThreads(__tstate); | |
15644 | if (PyErr_Occurred()) SWIG_fail; | |
15645 | } | |
093d3ff1 RD |
15646 | { |
15647 | resultobj = SWIG_From_int((int)(result)); | |
15648 | } | |
d14a1e28 RD |
15649 | return resultobj; |
15650 | fail: | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
093d3ff1 | 15655 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15656 | PyObject *resultobj; |
15657 | wxDC *arg1 = (wxDC *) 0 ; | |
15658 | int arg2 ; | |
093d3ff1 | 15659 | int result; |
d14a1e28 | 15660 | PyObject * obj0 = 0 ; |
994141e6 | 15661 | PyObject * obj1 = 0 ; |
d14a1e28 | 15662 | char *kwnames[] = { |
093d3ff1 | 15663 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15664 | }; |
15665 | ||
093d3ff1 RD |
15666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15669 | { | |
15670 | arg2 = (int)(SWIG_As_int(obj1)); | |
15671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15672 | } | |
d14a1e28 RD |
15673 | { |
15674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15675 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
15676 | |
15677 | wxPyEndAllowThreads(__tstate); | |
15678 | if (PyErr_Occurred()) SWIG_fail; | |
15679 | } | |
093d3ff1 RD |
15680 | { |
15681 | resultobj = SWIG_From_int((int)(result)); | |
15682 | } | |
d14a1e28 RD |
15683 | return resultobj; |
15684 | fail: | |
15685 | return NULL; | |
15686 | } | |
15687 | ||
15688 | ||
093d3ff1 | 15689 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15690 | PyObject *resultobj; |
15691 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15692 | int arg2 ; |
15693 | int result; | |
d14a1e28 | 15694 | PyObject * obj0 = 0 ; |
093d3ff1 | 15695 | PyObject * obj1 = 0 ; |
d14a1e28 | 15696 | char *kwnames[] = { |
093d3ff1 | 15697 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15698 | }; |
15699 | ||
093d3ff1 RD |
15700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15703 | { | |
15704 | arg2 = (int)(SWIG_As_int(obj1)); | |
15705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15706 | } | |
d14a1e28 RD |
15707 | { |
15708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15709 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
15710 | |
15711 | wxPyEndAllowThreads(__tstate); | |
15712 | if (PyErr_Occurred()) SWIG_fail; | |
15713 | } | |
093d3ff1 RD |
15714 | { |
15715 | resultobj = SWIG_From_int((int)(result)); | |
15716 | } | |
d14a1e28 RD |
15717 | return resultobj; |
15718 | fail: | |
15719 | return NULL; | |
15720 | } | |
15721 | ||
15722 | ||
093d3ff1 | 15723 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15724 | PyObject *resultobj; |
15725 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
15726 | int arg2 ; |
15727 | int result; | |
d14a1e28 | 15728 | PyObject * obj0 = 0 ; |
994141e6 | 15729 | PyObject * obj1 = 0 ; |
d14a1e28 | 15730 | char *kwnames[] = { |
093d3ff1 | 15731 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15732 | }; |
15733 | ||
093d3ff1 RD |
15734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15737 | { | |
15738 | arg2 = (int)(SWIG_As_int(obj1)); | |
15739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15740 | } | |
d14a1e28 RD |
15741 | { |
15742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15743 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
15744 | |
15745 | wxPyEndAllowThreads(__tstate); | |
15746 | if (PyErr_Occurred()) SWIG_fail; | |
15747 | } | |
093d3ff1 RD |
15748 | { |
15749 | resultobj = SWIG_From_int((int)(result)); | |
15750 | } | |
d14a1e28 RD |
15751 | return resultobj; |
15752 | fail: | |
15753 | return NULL; | |
15754 | } | |
15755 | ||
15756 | ||
093d3ff1 | 15757 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15758 | PyObject *resultobj; |
15759 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15760 | bool result; |
d14a1e28 RD |
15761 | PyObject * obj0 = 0 ; |
15762 | char *kwnames[] = { | |
15763 | (char *) "self", NULL | |
15764 | }; | |
15765 | ||
093d3ff1 RD |
15766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; |
15767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15769 | { |
15770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15771 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); |
d14a1e28 RD |
15772 | |
15773 | wxPyEndAllowThreads(__tstate); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | } | |
093d3ff1 RD |
15776 | { |
15777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15778 | } | |
d14a1e28 RD |
15779 | return resultobj; |
15780 | fail: | |
15781 | return NULL; | |
15782 | } | |
15783 | ||
15784 | ||
093d3ff1 | 15785 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15786 | PyObject *resultobj; |
15787 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15788 | bool result; |
d14a1e28 RD |
15789 | PyObject * obj0 = 0 ; |
15790 | char *kwnames[] = { | |
093d3ff1 | 15791 | (char *) "self", NULL |
d14a1e28 RD |
15792 | }; |
15793 | ||
093d3ff1 RD |
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; |
15795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15797 | { |
15798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15799 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); |
d14a1e28 RD |
15800 | |
15801 | wxPyEndAllowThreads(__tstate); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | } | |
093d3ff1 RD |
15804 | { |
15805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15806 | } | |
d14a1e28 RD |
15807 | return resultobj; |
15808 | fail: | |
15809 | return NULL; | |
15810 | } | |
15811 | ||
15812 | ||
093d3ff1 | 15813 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15814 | PyObject *resultobj; |
15815 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15816 | int result; |
d14a1e28 RD |
15817 | PyObject * obj0 = 0 ; |
15818 | char *kwnames[] = { | |
15819 | (char *) "self", NULL | |
15820 | }; | |
15821 | ||
093d3ff1 RD |
15822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; |
15823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15825 | { |
15826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15827 | result = (int)((wxDC const *)arg1)->GetDepth(); |
d14a1e28 RD |
15828 | |
15829 | wxPyEndAllowThreads(__tstate); | |
15830 | if (PyErr_Occurred()) SWIG_fail; | |
15831 | } | |
d14a1e28 | 15832 | { |
093d3ff1 | 15833 | resultobj = SWIG_From_int((int)(result)); |
d14a1e28 RD |
15834 | } |
15835 | return resultobj; | |
15836 | fail: | |
15837 | return NULL; | |
15838 | } | |
15839 | ||
15840 | ||
093d3ff1 | 15841 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15842 | PyObject *resultobj; |
15843 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15844 | wxSize result; |
d14a1e28 RD |
15845 | PyObject * obj0 = 0 ; |
15846 | char *kwnames[] = { | |
15847 | (char *) "self", NULL | |
15848 | }; | |
15849 | ||
093d3ff1 RD |
15850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; |
15851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15853 | { |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15855 | result = ((wxDC const *)arg1)->GetPPI(); |
d14a1e28 RD |
15856 | |
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
093d3ff1 RD |
15860 | { |
15861 | wxSize * resultptr; | |
15862 | resultptr = new wxSize((wxSize &)(result)); | |
15863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15864 | } | |
d14a1e28 RD |
15865 | return resultobj; |
15866 | fail: | |
15867 | return NULL; | |
15868 | } | |
15869 | ||
15870 | ||
093d3ff1 | 15871 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15872 | PyObject *resultobj; |
15873 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15874 | bool result; |
d14a1e28 RD |
15875 | PyObject * obj0 = 0 ; |
15876 | char *kwnames[] = { | |
093d3ff1 | 15877 | (char *) "self", NULL |
d14a1e28 RD |
15878 | }; |
15879 | ||
093d3ff1 RD |
15880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; |
15881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15883 | { |
15884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15885 | result = (bool)((wxDC const *)arg1)->Ok(); |
d14a1e28 RD |
15886 | |
15887 | wxPyEndAllowThreads(__tstate); | |
15888 | if (PyErr_Occurred()) SWIG_fail; | |
15889 | } | |
093d3ff1 RD |
15890 | { |
15891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15892 | } | |
15893 | return resultobj; | |
d14a1e28 RD |
15894 | fail: |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
093d3ff1 | 15899 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
15900 | PyObject *resultobj; |
15901 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15902 | int result; |
03e37cd5 | 15903 | PyObject * obj0 = 0 ; |
03e37cd5 | 15904 | char *kwnames[] = { |
093d3ff1 | 15905 | (char *) "self", NULL |
03e37cd5 RD |
15906 | }; |
15907 | ||
093d3ff1 RD |
15908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; |
15909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 RD |
15911 | { |
15912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15913 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); |
03e37cd5 RD |
15914 | |
15915 | wxPyEndAllowThreads(__tstate); | |
15916 | if (PyErr_Occurred()) SWIG_fail; | |
15917 | } | |
093d3ff1 RD |
15918 | { |
15919 | resultobj = SWIG_From_int((int)(result)); | |
15920 | } | |
03e37cd5 RD |
15921 | return resultobj; |
15922 | fail: | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
093d3ff1 | 15927 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15928 | PyObject *resultobj; |
15929 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15930 | wxBrush *result; |
d14a1e28 RD |
15931 | PyObject * obj0 = 0 ; |
15932 | char *kwnames[] = { | |
15933 | (char *) "self", NULL | |
15934 | }; | |
15935 | ||
093d3ff1 RD |
15936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; |
15937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15939 | { |
15940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
15941 | { |
15942 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
15943 | result = (wxBrush *) &_result_ref; | |
15944 | } | |
d14a1e28 RD |
15945 | |
15946 | wxPyEndAllowThreads(__tstate); | |
15947 | if (PyErr_Occurred()) SWIG_fail; | |
15948 | } | |
d14a1e28 | 15949 | { |
093d3ff1 RD |
15950 | wxBrush* resultptr = new wxBrush(*result); |
15951 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
d14a1e28 RD |
15952 | } |
15953 | return resultobj; | |
15954 | fail: | |
15955 | return NULL; | |
15956 | } | |
15957 | ||
15958 | ||
093d3ff1 | 15959 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15960 | PyObject *resultobj; |
15961 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15962 | wxBrush *result; |
d14a1e28 RD |
15963 | PyObject * obj0 = 0 ; |
15964 | char *kwnames[] = { | |
15965 | (char *) "self", NULL | |
15966 | }; | |
15967 | ||
093d3ff1 RD |
15968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; |
15969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15971 | { |
15972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
15973 | { |
15974 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
15975 | result = (wxBrush *) &_result_ref; | |
15976 | } | |
d14a1e28 RD |
15977 | |
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
093d3ff1 RD |
15981 | { |
15982 | wxBrush* resultptr = new wxBrush(*result); | |
15983 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
15984 | } | |
d14a1e28 RD |
15985 | return resultobj; |
15986 | fail: | |
15987 | return NULL; | |
15988 | } | |
15989 | ||
15990 | ||
093d3ff1 | 15991 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15992 | PyObject *resultobj; |
15993 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 15994 | wxFont *result; |
d14a1e28 RD |
15995 | PyObject * obj0 = 0 ; |
15996 | char *kwnames[] = { | |
093d3ff1 | 15997 | (char *) "self", NULL |
d14a1e28 RD |
15998 | }; |
15999 | ||
093d3ff1 RD |
16000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; |
16001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16003 | { |
16004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16005 | { |
16006 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
16007 | result = (wxFont *) &_result_ref; | |
16008 | } | |
d14a1e28 RD |
16009 | |
16010 | wxPyEndAllowThreads(__tstate); | |
16011 | if (PyErr_Occurred()) SWIG_fail; | |
16012 | } | |
093d3ff1 RD |
16013 | { |
16014 | wxFont* resultptr = new wxFont(*result); | |
16015 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
16016 | } | |
d14a1e28 RD |
16017 | return resultobj; |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
093d3ff1 | 16023 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
16024 | PyObject *resultobj; |
16025 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16026 | wxPen *result; |
03e37cd5 | 16027 | PyObject * obj0 = 0 ; |
03e37cd5 | 16028 | char *kwnames[] = { |
093d3ff1 | 16029 | (char *) "self", NULL |
03e37cd5 RD |
16030 | }; |
16031 | ||
093d3ff1 RD |
16032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; |
16033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 RD |
16035 | { |
16036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16037 | { |
16038 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
16039 | result = (wxPen *) &_result_ref; | |
16040 | } | |
03e37cd5 RD |
16041 | |
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
093d3ff1 RD |
16045 | { |
16046 | wxPen* resultptr = new wxPen(*result); | |
16047 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
16048 | } | |
03e37cd5 RD |
16049 | return resultobj; |
16050 | fail: | |
16051 | return NULL; | |
16052 | } | |
16053 | ||
16054 | ||
093d3ff1 | 16055 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16056 | PyObject *resultobj; |
16057 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16058 | wxColour *result; |
d14a1e28 | 16059 | PyObject * obj0 = 0 ; |
d14a1e28 | 16060 | char *kwnames[] = { |
093d3ff1 | 16061 | (char *) "self", NULL |
d14a1e28 RD |
16062 | }; |
16063 | ||
093d3ff1 RD |
16064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; |
16065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16067 | { |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16069 | { |
16070 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
16071 | result = (wxColour *) &_result_ref; | |
16072 | } | |
d14a1e28 RD |
16073 | |
16074 | wxPyEndAllowThreads(__tstate); | |
16075 | if (PyErr_Occurred()) SWIG_fail; | |
16076 | } | |
093d3ff1 | 16077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16078 | return resultobj; |
16079 | fail: | |
16080 | return NULL; | |
16081 | } | |
16082 | ||
16083 | ||
093d3ff1 | 16084 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16085 | PyObject *resultobj; |
16086 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16087 | wxColour *result; |
d14a1e28 RD |
16088 | PyObject * obj0 = 0 ; |
16089 | char *kwnames[] = { | |
16090 | (char *) "self", NULL | |
16091 | }; | |
16092 | ||
093d3ff1 RD |
16093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; |
16094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16096 | { |
16097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16098 | { |
16099 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
16100 | result = (wxColour *) &_result_ref; | |
16101 | } | |
d14a1e28 RD |
16102 | |
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
093d3ff1 | 16106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16107 | return resultobj; |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
093d3ff1 | 16113 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16114 | PyObject *resultobj; |
16115 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16116 | wxColour *arg2 = 0 ; |
16117 | wxColour temp2 ; | |
d14a1e28 | 16118 | PyObject * obj0 = 0 ; |
994141e6 | 16119 | PyObject * obj1 = 0 ; |
d14a1e28 | 16120 | char *kwnames[] = { |
093d3ff1 | 16121 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
16122 | }; |
16123 | ||
093d3ff1 RD |
16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; |
16125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16127 | { | |
16128 | arg2 = &temp2; | |
16129 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16130 | } | |
d14a1e28 RD |
16131 | { |
16132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16133 | (arg1)->SetTextForeground((wxColour const &)*arg2); |
d14a1e28 RD |
16134 | |
16135 | wxPyEndAllowThreads(__tstate); | |
16136 | if (PyErr_Occurred()) SWIG_fail; | |
16137 | } | |
16138 | Py_INCREF(Py_None); resultobj = Py_None; | |
16139 | return resultobj; | |
16140 | fail: | |
16141 | return NULL; | |
16142 | } | |
16143 | ||
16144 | ||
093d3ff1 | 16145 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16146 | PyObject *resultobj; |
16147 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16148 | wxColour *arg2 = 0 ; |
16149 | wxColour temp2 ; | |
d14a1e28 | 16150 | PyObject * obj0 = 0 ; |
093d3ff1 | 16151 | PyObject * obj1 = 0 ; |
d14a1e28 | 16152 | char *kwnames[] = { |
093d3ff1 | 16153 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
16154 | }; |
16155 | ||
093d3ff1 RD |
16156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; |
16157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16159 | { | |
16160 | arg2 = &temp2; | |
16161 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16162 | } | |
d14a1e28 RD |
16163 | { |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16165 | (arg1)->SetTextBackground((wxColour const &)*arg2); |
d14a1e28 RD |
16166 | |
16167 | wxPyEndAllowThreads(__tstate); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | } | |
5cbf236d | 16170 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16171 | return resultobj; |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
093d3ff1 | 16177 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16178 | PyObject *resultobj; |
16179 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16180 | int result; |
d14a1e28 RD |
16181 | PyObject * obj0 = 0 ; |
16182 | char *kwnames[] = { | |
093d3ff1 | 16183 | (char *) "self", NULL |
d14a1e28 RD |
16184 | }; |
16185 | ||
093d3ff1 RD |
16186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; |
16187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16189 | { |
16190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16191 | result = (int)((wxDC const *)arg1)->GetMapMode(); |
d14a1e28 RD |
16192 | |
16193 | wxPyEndAllowThreads(__tstate); | |
16194 | if (PyErr_Occurred()) SWIG_fail; | |
16195 | } | |
093d3ff1 RD |
16196 | { |
16197 | resultobj = SWIG_From_int((int)(result)); | |
16198 | } | |
d14a1e28 RD |
16199 | return resultobj; |
16200 | fail: | |
16201 | return NULL; | |
16202 | } | |
16203 | ||
16204 | ||
093d3ff1 | 16205 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
03e37cd5 RD |
16206 | PyObject *resultobj; |
16207 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16208 | int arg2 ; |
03e37cd5 RD |
16209 | PyObject * obj0 = 0 ; |
16210 | PyObject * obj1 = 0 ; | |
16211 | char *kwnames[] = { | |
093d3ff1 | 16212 | (char *) "self",(char *) "mode", NULL |
03e37cd5 RD |
16213 | }; |
16214 | ||
093d3ff1 RD |
16215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
16216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 16218 | { |
093d3ff1 RD |
16219 | arg2 = (int)(SWIG_As_int(obj1)); |
16220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
03e37cd5 RD |
16221 | } |
16222 | { | |
16223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16224 | (arg1)->SetMapMode(arg2); |
03e37cd5 RD |
16225 | |
16226 | wxPyEndAllowThreads(__tstate); | |
16227 | if (PyErr_Occurred()) SWIG_fail; | |
16228 | } | |
16229 | Py_INCREF(Py_None); resultobj = Py_None; | |
16230 | return resultobj; | |
16231 | fail: | |
16232 | return NULL; | |
16233 | } | |
16234 | ||
16235 | ||
093d3ff1 | 16236 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16237 | PyObject *resultobj; |
16238 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16239 | double *arg2 = (double *) 0 ; |
16240 | double *arg3 = (double *) 0 ; | |
16241 | double temp2 ; | |
16242 | int res2 = 0 ; | |
16243 | double temp3 ; | |
16244 | int res3 = 0 ; | |
d14a1e28 RD |
16245 | PyObject * obj0 = 0 ; |
16246 | char *kwnames[] = { | |
16247 | (char *) "self", NULL | |
16248 | }; | |
16249 | ||
093d3ff1 RD |
16250 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16251 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
16253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16255 | { |
16256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16257 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); |
d14a1e28 RD |
16258 | |
16259 | wxPyEndAllowThreads(__tstate); | |
16260 | if (PyErr_Occurred()) SWIG_fail; | |
16261 | } | |
16262 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
16263 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16264 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16265 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16266 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
16267 | return resultobj; |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
093d3ff1 | 16273 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16274 | PyObject *resultobj; |
16275 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16276 | double arg2 ; |
16277 | double arg3 ; | |
d14a1e28 | 16278 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16279 | PyObject * obj1 = 0 ; |
16280 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16281 | char *kwnames[] = { |
093d3ff1 | 16282 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16283 | }; |
16284 | ||
093d3ff1 RD |
16285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16288 | { | |
16289 | arg2 = (double)(SWIG_As_double(obj1)); | |
16290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16291 | } | |
16292 | { | |
16293 | arg3 = (double)(SWIG_As_double(obj2)); | |
16294 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16295 | } | |
d14a1e28 RD |
16296 | { |
16297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16298 | (arg1)->SetUserScale(arg2,arg3); |
d14a1e28 RD |
16299 | |
16300 | wxPyEndAllowThreads(__tstate); | |
16301 | if (PyErr_Occurred()) SWIG_fail; | |
16302 | } | |
093d3ff1 | 16303 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16304 | return resultobj; |
16305 | fail: | |
16306 | return NULL; | |
16307 | } | |
16308 | ||
16309 | ||
093d3ff1 | 16310 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16311 | PyObject *resultobj; |
16312 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16313 | double *arg2 = (double *) 0 ; |
16314 | double *arg3 = (double *) 0 ; | |
16315 | double temp2 ; | |
16316 | int res2 = 0 ; | |
16317 | double temp3 ; | |
16318 | int res3 = 0 ; | |
d14a1e28 RD |
16319 | PyObject * obj0 = 0 ; |
16320 | char *kwnames[] = { | |
16321 | (char *) "self", NULL | |
16322 | }; | |
16323 | ||
093d3ff1 RD |
16324 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16325 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
16327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16329 | { |
16330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16331 | (arg1)->GetLogicalScale(arg2,arg3); |
d14a1e28 RD |
16332 | |
16333 | wxPyEndAllowThreads(__tstate); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | } | |
093d3ff1 RD |
16336 | Py_INCREF(Py_None); resultobj = Py_None; |
16337 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16338 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16339 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16340 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
16341 | return resultobj; |
16342 | fail: | |
16343 | return NULL; | |
16344 | } | |
16345 | ||
16346 | ||
093d3ff1 | 16347 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16348 | PyObject *resultobj; |
16349 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16350 | double arg2 ; |
16351 | double arg3 ; | |
d14a1e28 | 16352 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16353 | PyObject * obj1 = 0 ; |
16354 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16355 | char *kwnames[] = { |
093d3ff1 | 16356 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16357 | }; |
16358 | ||
093d3ff1 RD |
16359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16362 | { | |
16363 | arg2 = (double)(SWIG_As_double(obj1)); | |
16364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16365 | } | |
16366 | { | |
16367 | arg3 = (double)(SWIG_As_double(obj2)); | |
16368 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16369 | } | |
d14a1e28 RD |
16370 | { |
16371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16372 | (arg1)->SetLogicalScale(arg2,arg3); |
d14a1e28 RD |
16373 | |
16374 | wxPyEndAllowThreads(__tstate); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | } | |
093d3ff1 | 16377 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16378 | return resultobj; |
16379 | fail: | |
16380 | return NULL; | |
16381 | } | |
16382 | ||
16383 | ||
093d3ff1 | 16384 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16385 | PyObject *resultobj; |
16386 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16387 | wxPoint result; |
d14a1e28 RD |
16388 | PyObject * obj0 = 0 ; |
16389 | char *kwnames[] = { | |
16390 | (char *) "self", NULL | |
16391 | }; | |
16392 | ||
093d3ff1 RD |
16393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
16394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16396 | { |
16397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16398 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
16399 | |
16400 | wxPyEndAllowThreads(__tstate); | |
16401 | if (PyErr_Occurred()) SWIG_fail; | |
16402 | } | |
093d3ff1 RD |
16403 | { |
16404 | wxPoint * resultptr; | |
16405 | resultptr = new wxPoint((wxPoint &)(result)); | |
16406 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16407 | } | |
d14a1e28 RD |
16408 | return resultobj; |
16409 | fail: | |
16410 | return NULL; | |
16411 | } | |
16412 | ||
16413 | ||
093d3ff1 | 16414 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16415 | PyObject *resultobj; |
16416 | wxDC *arg1 = (wxDC *) 0 ; | |
16417 | int *arg2 = (int *) 0 ; | |
16418 | int *arg3 = (int *) 0 ; | |
d14a1e28 | 16419 | int temp2 ; |
c32bde28 | 16420 | int res2 = 0 ; |
d14a1e28 | 16421 | int temp3 ; |
c32bde28 | 16422 | int res3 = 0 ; |
d14a1e28 RD |
16423 | PyObject * obj0 = 0 ; |
16424 | char *kwnames[] = { | |
16425 | (char *) "self", NULL | |
16426 | }; | |
16427 | ||
c32bde28 RD |
16428 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16429 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
093d3ff1 RD |
16430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
16431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16433 | { |
16434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16435 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
16436 | |
16437 | wxPyEndAllowThreads(__tstate); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16441 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16442 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16443 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16444 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16445 | return resultobj; |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
093d3ff1 | 16451 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16452 | PyObject *resultobj; |
16453 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16454 | int arg2 ; |
16455 | int arg3 ; | |
d14a1e28 RD |
16456 | PyObject * obj0 = 0 ; |
16457 | PyObject * obj1 = 0 ; | |
16458 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16459 | char *kwnames[] = { |
093d3ff1 | 16460 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16461 | }; |
16462 | ||
093d3ff1 RD |
16463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16466 | { | |
16467 | arg2 = (int)(SWIG_As_int(obj1)); | |
16468 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | arg3 = (int)(SWIG_As_int(obj2)); | |
16472 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16473 | } | |
d14a1e28 RD |
16474 | { |
16475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16476 | (arg1)->SetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
16477 | |
16478 | wxPyEndAllowThreads(__tstate); | |
16479 | if (PyErr_Occurred()) SWIG_fail; | |
16480 | } | |
093d3ff1 | 16481 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16482 | return resultobj; |
16483 | fail: | |
16484 | return NULL; | |
16485 | } | |
16486 | ||
16487 | ||
093d3ff1 | 16488 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16489 | PyObject *resultobj; |
16490 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16491 | wxPoint *arg2 = 0 ; |
16492 | wxPoint temp2 ; | |
d14a1e28 RD |
16493 | PyObject * obj0 = 0 ; |
16494 | PyObject * obj1 = 0 ; | |
d14a1e28 | 16495 | char *kwnames[] = { |
093d3ff1 | 16496 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16497 | }; |
16498 | ||
093d3ff1 RD |
16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16502 | { | |
16503 | arg2 = &temp2; | |
16504 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16505 | } | |
d14a1e28 RD |
16506 | { |
16507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16508 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16509 | |
16510 | wxPyEndAllowThreads(__tstate); | |
16511 | if (PyErr_Occurred()) SWIG_fail; | |
16512 | } | |
093d3ff1 | 16513 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16514 | return resultobj; |
16515 | fail: | |
16516 | return NULL; | |
16517 | } | |
16518 | ||
16519 | ||
093d3ff1 | 16520 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16521 | PyObject *resultobj; |
16522 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16523 | wxPoint result; |
d14a1e28 | 16524 | PyObject * obj0 = 0 ; |
d14a1e28 | 16525 | char *kwnames[] = { |
093d3ff1 | 16526 | (char *) "self", NULL |
d14a1e28 RD |
16527 | }; |
16528 | ||
093d3ff1 RD |
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
16530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16532 | { |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16534 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
16535 | |
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
093d3ff1 RD |
16539 | { |
16540 | wxPoint * resultptr; | |
16541 | resultptr = new wxPoint((wxPoint &)(result)); | |
16542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16543 | } | |
d14a1e28 RD |
16544 | return resultobj; |
16545 | fail: | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
093d3ff1 | 16550 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16551 | PyObject *resultobj; |
16552 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16553 | int *arg2 = (int *) 0 ; |
16554 | int *arg3 = (int *) 0 ; | |
16555 | int temp2 ; | |
16556 | int res2 = 0 ; | |
16557 | int temp3 ; | |
16558 | int res3 = 0 ; | |
d14a1e28 | 16559 | PyObject * obj0 = 0 ; |
d14a1e28 | 16560 | char *kwnames[] = { |
093d3ff1 | 16561 | (char *) "self", NULL |
d14a1e28 RD |
16562 | }; |
16563 | ||
093d3ff1 RD |
16564 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16565 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
16567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16569 | { |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16571 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
16572 | |
16573 | wxPyEndAllowThreads(__tstate); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | } | |
093d3ff1 RD |
16576 | Py_INCREF(Py_None); resultobj = Py_None; |
16577 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16578 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16579 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16580 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16581 | return resultobj; |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
093d3ff1 | 16587 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16588 | PyObject *resultobj; |
16589 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16590 | int arg2 ; |
16591 | int arg3 ; | |
d14a1e28 RD |
16592 | PyObject * obj0 = 0 ; |
16593 | PyObject * obj1 = 0 ; | |
16594 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16595 | char *kwnames[] = { |
093d3ff1 | 16596 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16597 | }; |
16598 | ||
093d3ff1 RD |
16599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16602 | { | |
16603 | arg2 = (int)(SWIG_As_int(obj1)); | |
16604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16605 | } | |
16606 | { | |
16607 | arg3 = (int)(SWIG_As_int(obj2)); | |
16608 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16609 | } | |
d14a1e28 RD |
16610 | { |
16611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16612 | (arg1)->SetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
16613 | |
16614 | wxPyEndAllowThreads(__tstate); | |
16615 | if (PyErr_Occurred()) SWIG_fail; | |
16616 | } | |
093d3ff1 | 16617 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16618 | return resultobj; |
16619 | fail: | |
16620 | return NULL; | |
16621 | } | |
16622 | ||
16623 | ||
093d3ff1 | 16624 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16625 | PyObject *resultobj; |
16626 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16627 | wxPoint *arg2 = 0 ; |
16628 | wxPoint temp2 ; | |
d14a1e28 RD |
16629 | PyObject * obj0 = 0 ; |
16630 | PyObject * obj1 = 0 ; | |
d14a1e28 | 16631 | char *kwnames[] = { |
093d3ff1 | 16632 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16633 | }; |
16634 | ||
093d3ff1 RD |
16635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16638 | { | |
16639 | arg2 = &temp2; | |
16640 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16641 | } | |
d14a1e28 RD |
16642 | { |
16643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16644 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16645 | |
16646 | wxPyEndAllowThreads(__tstate); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
093d3ff1 | 16649 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16650 | return resultobj; |
16651 | fail: | |
16652 | return NULL; | |
16653 | } | |
16654 | ||
16655 | ||
093d3ff1 | 16656 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16657 | PyObject *resultobj; |
093d3ff1 RD |
16658 | wxDC *arg1 = (wxDC *) 0 ; |
16659 | bool arg2 ; | |
16660 | bool arg3 ; | |
16661 | PyObject * obj0 = 0 ; | |
16662 | PyObject * obj1 = 0 ; | |
16663 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16664 | char *kwnames[] = { |
093d3ff1 | 16665 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL |
d14a1e28 RD |
16666 | }; |
16667 | ||
093d3ff1 RD |
16668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16671 | { | |
16672 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16674 | } | |
16675 | { | |
16676 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
16677 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16678 | } | |
d14a1e28 RD |
16679 | { |
16680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16681 | (arg1)->SetAxisOrientation(arg2,arg3); |
d14a1e28 RD |
16682 | |
16683 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16684 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16685 | } |
093d3ff1 | 16686 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16687 | return resultobj; |
16688 | fail: | |
16689 | return NULL; | |
16690 | } | |
16691 | ||
16692 | ||
093d3ff1 | 16693 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16694 | PyObject *resultobj; |
16695 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 | 16696 | int result; |
d14a1e28 RD |
16697 | PyObject * obj0 = 0 ; |
16698 | char *kwnames[] = { | |
093d3ff1 | 16699 | (char *) "self", NULL |
d14a1e28 RD |
16700 | }; |
16701 | ||
093d3ff1 RD |
16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; |
16703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16705 | { |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16707 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); |
d14a1e28 RD |
16708 | |
16709 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16711 | } |
093d3ff1 RD |
16712 | { |
16713 | resultobj = SWIG_From_int((int)(result)); | |
16714 | } | |
d14a1e28 RD |
16715 | return resultobj; |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
093d3ff1 | 16721 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16722 | PyObject *resultobj; |
093d3ff1 RD |
16723 | wxDC *arg1 = (wxDC *) 0 ; |
16724 | int arg2 ; | |
d14a1e28 RD |
16725 | PyObject * obj0 = 0 ; |
16726 | PyObject * obj1 = 0 ; | |
16727 | char *kwnames[] = { | |
093d3ff1 | 16728 | (char *) "self",(char *) "function", NULL |
d14a1e28 RD |
16729 | }; |
16730 | ||
093d3ff1 RD |
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
16732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16734 | { | |
16735 | arg2 = (int)(SWIG_As_int(obj1)); | |
16736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16737 | } |
16738 | { | |
16739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16740 | (arg1)->SetLogicalFunction(arg2); |
d14a1e28 RD |
16741 | |
16742 | wxPyEndAllowThreads(__tstate); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | } | |
16745 | Py_INCREF(Py_None); resultobj = Py_None; | |
16746 | return resultobj; | |
16747 | fail: | |
16748 | return NULL; | |
16749 | } | |
16750 | ||
16751 | ||
093d3ff1 | 16752 | static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16753 | PyObject *resultobj; |
16754 | wxDC *arg1 = (wxDC *) 0 ; | |
d14a1e28 | 16755 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16756 | char *kwnames[] = { |
16757 | (char *) "self", NULL | |
16758 | }; | |
d14a1e28 | 16759 | |
093d3ff1 RD |
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail; |
16761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16763 | { |
16764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16765 | (arg1)->ComputeScaleAndOrigin(); |
d14a1e28 RD |
16766 | |
16767 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16768 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16769 | } |
093d3ff1 | 16770 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16771 | return resultobj; |
16772 | fail: | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
093d3ff1 | 16777 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16778 | PyObject *resultobj; |
16779 | wxDC *arg1 = (wxDC *) 0 ; | |
093d3ff1 RD |
16780 | int arg2 ; |
16781 | int arg3 ; | |
d14a1e28 RD |
16782 | PyObject * obj0 = 0 ; |
16783 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
16784 | PyObject * obj2 = 0 ; |
16785 | char *kwnames[] = { | |
16786 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16787 | }; | |
3adfb63b | 16788 | |
093d3ff1 RD |
16789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3adfb63b | 16792 | { |
093d3ff1 RD |
16793 | arg2 = (int)(SWIG_As_int(obj1)); |
16794 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16795 | } | |
16796 | { | |
16797 | arg3 = (int)(SWIG_As_int(obj2)); | |
16798 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3adfb63b | 16799 | } |
3adfb63b RD |
16800 | { |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16802 | (arg1)->CalcBoundingBox(arg2,arg3); |
3adfb63b RD |
16803 | |
16804 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16805 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b | 16806 | } |
093d3ff1 | 16807 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
16808 | return resultobj; |
16809 | fail: | |
16810 | return NULL; | |
16811 | } | |
16812 | ||
16813 | ||
093d3ff1 | 16814 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16815 | PyObject *resultobj; |
093d3ff1 RD |
16816 | wxDC *arg1 = (wxDC *) 0 ; |
16817 | wxPoint *arg2 = 0 ; | |
16818 | wxPoint temp2 ; | |
d14a1e28 | 16819 | PyObject * obj0 = 0 ; |
093d3ff1 | 16820 | PyObject * obj1 = 0 ; |
d14a1e28 | 16821 | char *kwnames[] = { |
093d3ff1 | 16822 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16823 | }; |
16824 | ||
093d3ff1 RD |
16825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; |
16826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16828 | { | |
16829 | arg2 = &temp2; | |
16830 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16831 | } | |
d14a1e28 RD |
16832 | { |
16833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16834 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16835 | |
16836 | wxPyEndAllowThreads(__tstate); | |
16837 | if (PyErr_Occurred()) SWIG_fail; | |
16838 | } | |
16839 | Py_INCREF(Py_None); resultobj = Py_None; | |
16840 | return resultobj; | |
16841 | fail: | |
16842 | return NULL; | |
16843 | } | |
16844 | ||
16845 | ||
093d3ff1 | 16846 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16847 | PyObject *resultobj; |
093d3ff1 | 16848 | wxDC *arg1 = (wxDC *) 0 ; |
3adfb63b | 16849 | PyObject * obj0 = 0 ; |
e498079e RD |
16850 | char *kwnames[] = { |
16851 | (char *) "self", NULL | |
16852 | }; | |
3adfb63b | 16853 | |
093d3ff1 RD |
16854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; |
16855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3adfb63b RD |
16857 | { |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16859 | (arg1)->ResetBoundingBox(); |
3adfb63b RD |
16860 | |
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
e498079e | 16864 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
16865 | return resultobj; |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
093d3ff1 | 16871 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b | 16872 | PyObject *resultobj; |
093d3ff1 RD |
16873 | wxDC *arg1 = (wxDC *) 0 ; |
16874 | int result; | |
d14a1e28 | 16875 | PyObject * obj0 = 0 ; |
e498079e | 16876 | char *kwnames[] = { |
093d3ff1 | 16877 | (char *) "self", NULL |
e498079e | 16878 | }; |
d14a1e28 | 16879 | |
093d3ff1 RD |
16880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; |
16881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16883 | { |
16884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16885 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
16886 | |
16887 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16888 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16889 | } |
093d3ff1 RD |
16890 | { |
16891 | resultobj = SWIG_From_int((int)(result)); | |
16892 | } | |
d14a1e28 RD |
16893 | return resultobj; |
16894 | fail: | |
16895 | return NULL; | |
16896 | } | |
16897 | ||
16898 | ||
093d3ff1 | 16899 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16900 | PyObject *resultobj; |
093d3ff1 RD |
16901 | wxDC *arg1 = (wxDC *) 0 ; |
16902 | int result; | |
16903 | PyObject * obj0 = 0 ; | |
d14a1e28 | 16904 | char *kwnames[] = { |
093d3ff1 | 16905 | (char *) "self", NULL |
d14a1e28 RD |
16906 | }; |
16907 | ||
093d3ff1 RD |
16908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; |
16909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16911 | { |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16913 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
16914 | |
16915 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16916 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16917 | } |
093d3ff1 RD |
16918 | { |
16919 | resultobj = SWIG_From_int((int)(result)); | |
16920 | } | |
d14a1e28 RD |
16921 | return resultobj; |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
093d3ff1 | 16927 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16928 | PyObject *resultobj; |
093d3ff1 RD |
16929 | wxDC *arg1 = (wxDC *) 0 ; |
16930 | int result; | |
d14a1e28 | 16931 | PyObject * obj0 = 0 ; |
d14a1e28 | 16932 | char *kwnames[] = { |
093d3ff1 | 16933 | (char *) "self", NULL |
d14a1e28 RD |
16934 | }; |
16935 | ||
093d3ff1 RD |
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; |
16937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16939 | { |
16940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16941 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
16942 | |
16943 | wxPyEndAllowThreads(__tstate); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | } | |
4f89f6a3 | 16946 | { |
093d3ff1 | 16947 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 16948 | } |
d14a1e28 RD |
16949 | return resultobj; |
16950 | fail: | |
16951 | return NULL; | |
16952 | } | |
16953 | ||
16954 | ||
093d3ff1 | 16955 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16956 | PyObject *resultobj; |
093d3ff1 RD |
16957 | wxDC *arg1 = (wxDC *) 0 ; |
16958 | int result; | |
d14a1e28 | 16959 | PyObject * obj0 = 0 ; |
d14a1e28 | 16960 | char *kwnames[] = { |
093d3ff1 | 16961 | (char *) "self", NULL |
d14a1e28 RD |
16962 | }; |
16963 | ||
093d3ff1 RD |
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; |
16965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16967 | { |
16968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16969 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
16970 | |
16971 | wxPyEndAllowThreads(__tstate); | |
16972 | if (PyErr_Occurred()) SWIG_fail; | |
16973 | } | |
4f89f6a3 | 16974 | { |
093d3ff1 | 16975 | resultobj = SWIG_From_int((int)(result)); |
4f89f6a3 | 16976 | } |
d14a1e28 RD |
16977 | return resultobj; |
16978 | fail: | |
16979 | return NULL; | |
16980 | } | |
16981 | ||
16982 | ||
093d3ff1 | 16983 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16984 | PyObject *resultobj; |
093d3ff1 RD |
16985 | wxDC *arg1 = (wxDC *) 0 ; |
16986 | int *arg2 = (int *) 0 ; | |
16987 | int *arg3 = (int *) 0 ; | |
16988 | int *arg4 = (int *) 0 ; | |
16989 | int *arg5 = (int *) 0 ; | |
16990 | int temp2 ; | |
16991 | int res2 = 0 ; | |
16992 | int temp3 ; | |
16993 | int res3 = 0 ; | |
16994 | int temp4 ; | |
16995 | int res4 = 0 ; | |
16996 | int temp5 ; | |
16997 | int res5 = 0 ; | |
d14a1e28 RD |
16998 | PyObject * obj0 = 0 ; |
16999 | char *kwnames[] = { | |
17000 | (char *) "self", NULL | |
17001 | }; | |
17002 | ||
093d3ff1 RD |
17003 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17004 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
17005 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
17006 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
17007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
17008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17010 | { |
17011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17012 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
17013 | |
17014 | wxPyEndAllowThreads(__tstate); | |
17015 | if (PyErr_Occurred()) SWIG_fail; | |
17016 | } | |
093d3ff1 RD |
17017 | Py_INCREF(Py_None); resultobj = Py_None; |
17018 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
17019 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
17020 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17021 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
17022 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
17023 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
17024 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
17025 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
17026 | return resultobj; |
17027 | fail: | |
17028 | return NULL; | |
17029 | } | |
17030 | ||
17031 | ||
093d3ff1 | 17032 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17033 | PyObject *resultobj; |
093d3ff1 RD |
17034 | wxDC *arg1 = (wxDC *) 0 ; |
17035 | PyObject *arg2 = (PyObject *) 0 ; | |
17036 | PyObject *arg3 = (PyObject *) 0 ; | |
17037 | PyObject *arg4 = (PyObject *) 0 ; | |
17038 | PyObject *result; | |
d14a1e28 | 17039 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17040 | PyObject * obj1 = 0 ; |
17041 | PyObject * obj2 = 0 ; | |
17042 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17043 | char *kwnames[] = { |
093d3ff1 | 17044 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17045 | }; |
17046 | ||
093d3ff1 RD |
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17050 | arg2 = obj1; | |
17051 | arg3 = obj2; | |
17052 | arg4 = obj3; | |
d14a1e28 RD |
17053 | { |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17055 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17056 | |
17057 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17058 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17059 | } |
093d3ff1 | 17060 | resultobj = result; |
d14a1e28 RD |
17061 | return resultobj; |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
093d3ff1 | 17067 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17068 | PyObject *resultobj; |
093d3ff1 RD |
17069 | wxDC *arg1 = (wxDC *) 0 ; |
17070 | PyObject *arg2 = (PyObject *) 0 ; | |
17071 | PyObject *arg3 = (PyObject *) 0 ; | |
17072 | PyObject *arg4 = (PyObject *) 0 ; | |
17073 | PyObject *result; | |
d14a1e28 | 17074 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17075 | PyObject * obj1 = 0 ; |
17076 | PyObject * obj2 = 0 ; | |
17077 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17078 | char *kwnames[] = { |
093d3ff1 | 17079 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17080 | }; |
17081 | ||
093d3ff1 RD |
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17085 | arg2 = obj1; | |
17086 | arg3 = obj2; | |
17087 | arg4 = obj3; | |
d14a1e28 RD |
17088 | { |
17089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17090 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17091 | |
17092 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17093 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17094 | } |
093d3ff1 | 17095 | resultobj = result; |
d14a1e28 RD |
17096 | return resultobj; |
17097 | fail: | |
17098 | return NULL; | |
17099 | } | |
17100 | ||
17101 | ||
093d3ff1 | 17102 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17103 | PyObject *resultobj; |
093d3ff1 RD |
17104 | wxDC *arg1 = (wxDC *) 0 ; |
17105 | PyObject *arg2 = (PyObject *) 0 ; | |
17106 | PyObject *arg3 = (PyObject *) 0 ; | |
17107 | PyObject *arg4 = (PyObject *) 0 ; | |
17108 | PyObject *result; | |
d14a1e28 | 17109 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17110 | PyObject * obj1 = 0 ; |
17111 | PyObject * obj2 = 0 ; | |
17112 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17113 | char *kwnames[] = { |
093d3ff1 | 17114 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17115 | }; |
17116 | ||
093d3ff1 RD |
17117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17120 | arg2 = obj1; | |
17121 | arg3 = obj2; | |
17122 | arg4 = obj3; | |
d14a1e28 RD |
17123 | { |
17124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17125 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17126 | |
17127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17128 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17129 | } |
093d3ff1 | 17130 | resultobj = result; |
d14a1e28 RD |
17131 | return resultobj; |
17132 | fail: | |
17133 | return NULL; | |
17134 | } | |
17135 | ||
17136 | ||
093d3ff1 | 17137 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17138 | PyObject *resultobj; |
093d3ff1 RD |
17139 | wxDC *arg1 = (wxDC *) 0 ; |
17140 | PyObject *arg2 = (PyObject *) 0 ; | |
17141 | PyObject *arg3 = (PyObject *) 0 ; | |
17142 | PyObject *arg4 = (PyObject *) 0 ; | |
17143 | PyObject *result; | |
d14a1e28 RD |
17144 | PyObject * obj0 = 0 ; |
17145 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
17146 | PyObject * obj2 = 0 ; |
17147 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17148 | char *kwnames[] = { |
093d3ff1 | 17149 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17150 | }; |
17151 | ||
093d3ff1 RD |
17152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17155 | arg2 = obj1; | |
17156 | arg3 = obj2; | |
17157 | arg4 = obj3; | |
d14a1e28 RD |
17158 | { |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17160 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17161 | |
17162 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17163 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17164 | } |
093d3ff1 | 17165 | resultobj = result; |
d14a1e28 RD |
17166 | return resultobj; |
17167 | fail: | |
17168 | return NULL; | |
17169 | } | |
17170 | ||
17171 | ||
093d3ff1 | 17172 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17173 | PyObject *resultobj; |
093d3ff1 RD |
17174 | wxDC *arg1 = (wxDC *) 0 ; |
17175 | PyObject *arg2 = (PyObject *) 0 ; | |
17176 | PyObject *arg3 = (PyObject *) 0 ; | |
17177 | PyObject *arg4 = (PyObject *) 0 ; | |
17178 | PyObject *result; | |
d14a1e28 | 17179 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17180 | PyObject * obj1 = 0 ; |
17181 | PyObject * obj2 = 0 ; | |
17182 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17183 | char *kwnames[] = { |
093d3ff1 | 17184 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17185 | }; |
17186 | ||
093d3ff1 RD |
17187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17190 | arg2 = obj1; | |
17191 | arg3 = obj2; | |
17192 | arg4 = obj3; | |
d14a1e28 RD |
17193 | { |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17195 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17196 | |
17197 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17198 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17199 | } |
093d3ff1 | 17200 | resultobj = result; |
d14a1e28 RD |
17201 | return resultobj; |
17202 | fail: | |
17203 | return NULL; | |
17204 | } | |
17205 | ||
17206 | ||
093d3ff1 | 17207 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17208 | PyObject *resultobj; |
093d3ff1 RD |
17209 | wxDC *arg1 = (wxDC *) 0 ; |
17210 | PyObject *arg2 = (PyObject *) 0 ; | |
17211 | PyObject *arg3 = (PyObject *) 0 ; | |
17212 | PyObject *arg4 = (PyObject *) 0 ; | |
17213 | PyObject *arg5 = (PyObject *) 0 ; | |
17214 | PyObject *result; | |
d14a1e28 | 17215 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17216 | PyObject * obj1 = 0 ; |
17217 | PyObject * obj2 = 0 ; | |
17218 | PyObject * obj3 = 0 ; | |
17219 | PyObject * obj4 = 0 ; | |
d14a1e28 | 17220 | char *kwnames[] = { |
093d3ff1 | 17221 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL |
d14a1e28 RD |
17222 | }; |
17223 | ||
093d3ff1 RD |
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
17225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17227 | arg2 = obj1; | |
17228 | arg3 = obj2; | |
17229 | arg4 = obj3; | |
17230 | arg5 = obj4; | |
d14a1e28 RD |
17231 | { |
17232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17233 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
17234 | |
17235 | wxPyEndAllowThreads(__tstate); | |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
17237 | } | |
093d3ff1 | 17238 | resultobj = result; |
d14a1e28 RD |
17239 | return resultobj; |
17240 | fail: | |
17241 | return NULL; | |
17242 | } | |
17243 | ||
17244 | ||
093d3ff1 RD |
17245 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
17246 | PyObject *obj; | |
17247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17248 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
17249 | Py_INCREF(obj); | |
17250 | return Py_BuildValue((char *)""); | |
17251 | } | |
17252 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17253 | PyObject *resultobj; |
093d3ff1 | 17254 | wxMemoryDC *result; |
d14a1e28 | 17255 | char *kwnames[] = { |
093d3ff1 | 17256 | NULL |
d14a1e28 RD |
17257 | }; |
17258 | ||
093d3ff1 | 17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; |
d14a1e28 | 17260 | { |
093d3ff1 | 17261 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17263 | result = (wxMemoryDC *)new wxMemoryDC(); |
d14a1e28 RD |
17264 | |
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
093d3ff1 | 17268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
17269 | return resultobj; |
17270 | fail: | |
17271 | return NULL; | |
17272 | } | |
17273 | ||
17274 | ||
093d3ff1 | 17275 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17276 | PyObject *resultobj; |
093d3ff1 RD |
17277 | wxDC *arg1 = (wxDC *) 0 ; |
17278 | wxMemoryDC *result; | |
994141e6 | 17279 | PyObject * obj0 = 0 ; |
d14a1e28 | 17280 | char *kwnames[] = { |
093d3ff1 | 17281 | (char *) "oldDC", NULL |
d14a1e28 RD |
17282 | }; |
17283 | ||
093d3ff1 RD |
17284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; |
17285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17287 | { |
093d3ff1 | 17288 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17290 | result = (wxMemoryDC *)new wxMemoryDC(arg1); |
d14a1e28 RD |
17291 | |
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
093d3ff1 | 17295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
17296 | return resultobj; |
17297 | fail: | |
17298 | return NULL; | |
17299 | } | |
17300 | ||
17301 | ||
093d3ff1 | 17302 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17303 | PyObject *resultobj; |
093d3ff1 RD |
17304 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; |
17305 | wxBitmap *arg2 = 0 ; | |
17306 | PyObject * obj0 = 0 ; | |
17307 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17308 | char *kwnames[] = { |
093d3ff1 | 17309 | (char *) "self",(char *) "bitmap", NULL |
d14a1e28 RD |
17310 | }; |
17311 | ||
093d3ff1 RD |
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; |
17313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
17314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17315 | { | |
17316 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17318 | if (arg2 == NULL) { | |
17319 | SWIG_null_ref("wxBitmap"); | |
17320 | } | |
17321 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17322 | } | |
d14a1e28 RD |
17323 | { |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17325 | (arg1)->SelectObject((wxBitmap const &)*arg2); |
d14a1e28 RD |
17326 | |
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
093d3ff1 | 17330 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17331 | return resultobj; |
17332 | fail: | |
17333 | return NULL; | |
17334 | } | |
17335 | ||
17336 | ||
093d3ff1 | 17337 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17338 | PyObject *obj; |
17339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 17340 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); |
d14a1e28 RD |
17341 | Py_INCREF(obj); |
17342 | return Py_BuildValue((char *)""); | |
17343 | } | |
093d3ff1 | 17344 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 | 17345 | PyObject *resultobj; |
093d3ff1 | 17346 | wxDC *arg1 = (wxDC *) 0 ; |
8f4d7c19 RD |
17347 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
17348 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
e2950dbb | 17349 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; |
093d3ff1 | 17350 | wxBufferedDC *result; |
d14a1e28 | 17351 | PyObject * obj0 = 0 ; |
093d3ff1 | 17352 | PyObject * obj1 = 0 ; |
e2950dbb | 17353 | PyObject * obj2 = 0 ; |
d14a1e28 | 17354 | |
8f4d7c19 | 17355 | if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8f4d7c19 RD |
17358 | if (obj1) { |
17359 | { | |
17360 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17362 | if (arg2 == NULL) { | |
17363 | SWIG_null_ref("wxBitmap"); | |
17364 | } | |
17365 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17366 | } |
17367 | } | |
e2950dbb RD |
17368 | if (obj2) { |
17369 | { | |
17370 | arg3 = (int)(SWIG_As_int(obj2)); | |
17371 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17372 | } | |
17373 | } | |
d14a1e28 | 17374 | { |
e3b71cb8 | 17375 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e2950dbb | 17377 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); |
d14a1e28 RD |
17378 | |
17379 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17380 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17381 | } |
093d3ff1 | 17382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
17383 | return resultobj; |
17384 | fail: | |
d14a1e28 RD |
17385 | return NULL; |
17386 | } | |
17387 | ||
17388 | ||
093d3ff1 | 17389 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 | 17390 | PyObject *resultobj; |
093d3ff1 RD |
17391 | wxDC *arg1 = (wxDC *) 0 ; |
17392 | wxSize *arg2 = 0 ; | |
e2950dbb | 17393 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; |
093d3ff1 RD |
17394 | wxBufferedDC *result; |
17395 | wxSize temp2 ; | |
d14a1e28 | 17396 | PyObject * obj0 = 0 ; |
994141e6 | 17397 | PyObject * obj1 = 0 ; |
e2950dbb | 17398 | PyObject * obj2 = 0 ; |
d14a1e28 | 17399 | |
e2950dbb | 17400 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17403 | { | |
17404 | arg2 = &temp2; | |
17405 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 17406 | } |
e2950dbb RD |
17407 | if (obj2) { |
17408 | { | |
17409 | arg3 = (int)(SWIG_As_int(obj2)); | |
17410 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17411 | } | |
17412 | } | |
093d3ff1 RD |
17413 | { |
17414 | if (!wxPyCheckForApp()) SWIG_fail; | |
17415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 17416 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); |
093d3ff1 RD |
17417 | |
17418 | wxPyEndAllowThreads(__tstate); | |
15afbcd0 | 17419 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17420 | } |
093d3ff1 RD |
17421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
17422 | return resultobj; | |
17423 | fail: | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
17429 | int argc; | |
e2950dbb | 17430 | PyObject *argv[4]; |
093d3ff1 RD |
17431 | int ii; |
17432 | ||
17433 | argc = PyObject_Length(args); | |
e2950dbb | 17434 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { |
093d3ff1 | 17435 | argv[ii] = PyTuple_GetItem(args,ii); |
994141e6 | 17436 | } |
8f4d7c19 | 17437 | if ((argc >= 1) && (argc <= 3)) { |
093d3ff1 | 17438 | int _v; |
d14a1e28 | 17439 | { |
093d3ff1 RD |
17440 | void *ptr; |
17441 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17442 | _v = 0; | |
17443 | PyErr_Clear(); | |
17444 | } else { | |
17445 | _v = 1; | |
17446 | } | |
17447 | } | |
17448 | if (_v) { | |
8f4d7c19 RD |
17449 | if (argc <= 1) { |
17450 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
17451 | } | |
093d3ff1 RD |
17452 | { |
17453 | void *ptr = 0; | |
17454 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
17455 | _v = 0; | |
17456 | PyErr_Clear(); | |
17457 | } else { | |
17458 | _v = (ptr != 0); | |
17459 | } | |
17460 | } | |
17461 | if (_v) { | |
e2950dbb RD |
17462 | if (argc <= 2) { |
17463 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
17464 | } | |
17465 | _v = SWIG_Check_int(argv[2]); | |
17466 | if (_v) { | |
17467 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
17468 | } | |
093d3ff1 RD |
17469 | } |
17470 | } | |
17471 | } | |
e2950dbb | 17472 | if ((argc >= 2) && (argc <= 3)) { |
093d3ff1 RD |
17473 | int _v; |
17474 | { | |
17475 | void *ptr; | |
17476 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17477 | _v = 0; | |
17478 | PyErr_Clear(); | |
17479 | } else { | |
17480 | _v = 1; | |
17481 | } | |
17482 | } | |
17483 | if (_v) { | |
17484 | { | |
17485 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
17486 | } | |
17487 | if (_v) { | |
e2950dbb RD |
17488 | if (argc <= 2) { |
17489 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
17490 | } | |
17491 | _v = SWIG_Check_int(argv[2]); | |
17492 | if (_v) { | |
17493 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
17494 | } | |
093d3ff1 | 17495 | } |
d14a1e28 RD |
17496 | } |
17497 | } | |
093d3ff1 RD |
17498 | |
17499 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
17505 | PyObject *resultobj; | |
17506 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
17507 | PyObject * obj0 = 0 ; | |
17508 | char *kwnames[] = { | |
17509 | (char *) "self", NULL | |
17510 | }; | |
17511 | ||
17512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
17513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17515 | { |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17517 | delete arg1; |
d14a1e28 RD |
17518 | |
17519 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17521 | } |
093d3ff1 | 17522 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17523 | return resultobj; |
17524 | fail: | |
d14a1e28 RD |
17525 | return NULL; |
17526 | } | |
17527 | ||
17528 | ||
093d3ff1 | 17529 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17530 | PyObject *resultobj; |
093d3ff1 | 17531 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
d14a1e28 RD |
17532 | PyObject * obj0 = 0 ; |
17533 | char *kwnames[] = { | |
093d3ff1 | 17534 | (char *) "self", NULL |
d14a1e28 RD |
17535 | }; |
17536 | ||
093d3ff1 RD |
17537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
17538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17540 | { |
17541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17542 | (arg1)->UnMask(); |
d14a1e28 RD |
17543 | |
17544 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17545 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17546 | } |
093d3ff1 | 17547 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17548 | return resultobj; |
17549 | fail: | |
17550 | return NULL; | |
17551 | } | |
17552 | ||
17553 | ||
093d3ff1 | 17554 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17555 | PyObject *obj; |
17556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 17557 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); |
d14a1e28 RD |
17558 | Py_INCREF(obj); |
17559 | return Py_BuildValue((char *)""); | |
17560 | } | |
093d3ff1 | 17561 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17562 | PyObject *resultobj; |
093d3ff1 RD |
17563 | wxWindow *arg1 = (wxWindow *) 0 ; |
17564 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
17565 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
e2950dbb | 17566 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; |
093d3ff1 | 17567 | wxBufferedPaintDC *result; |
994141e6 RD |
17568 | PyObject * obj0 = 0 ; |
17569 | PyObject * obj1 = 0 ; | |
e2950dbb | 17570 | PyObject * obj2 = 0 ; |
d14a1e28 | 17571 | char *kwnames[] = { |
e2950dbb | 17572 | (char *) "window",(char *) "buffer",(char *) "style", NULL |
d14a1e28 RD |
17573 | }; |
17574 | ||
e2950dbb | 17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17578 | if (obj1) { | |
17579 | { | |
17580 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17581 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17582 | if (arg2 == NULL) { | |
17583 | SWIG_null_ref("wxBitmap"); | |
17584 | } | |
17585 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17586 | } | |
994141e6 | 17587 | } |
e2950dbb RD |
17588 | if (obj2) { |
17589 | { | |
17590 | arg3 = (int)(SWIG_As_int(obj2)); | |
17591 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17592 | } | |
17593 | } | |
d14a1e28 | 17594 | { |
e3b71cb8 | 17595 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e2950dbb | 17597 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); |
d14a1e28 RD |
17598 | |
17599 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17601 | } |
093d3ff1 | 17602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
17603 | return resultobj; |
17604 | fail: | |
17605 | return NULL; | |
17606 | } | |
17607 | ||
17608 | ||
093d3ff1 RD |
17609 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
17610 | PyObject *obj; | |
17611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17612 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
17613 | Py_INCREF(obj); | |
17614 | return Py_BuildValue((char *)""); | |
17615 | } | |
17616 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17617 | PyObject *resultobj; |
093d3ff1 | 17618 | wxScreenDC *result; |
d14a1e28 | 17619 | char *kwnames[] = { |
093d3ff1 | 17620 | NULL |
d14a1e28 RD |
17621 | }; |
17622 | ||
093d3ff1 | 17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; |
d14a1e28 | 17624 | { |
093d3ff1 | 17625 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17627 | result = (wxScreenDC *)new wxScreenDC(); |
d14a1e28 RD |
17628 | |
17629 | wxPyEndAllowThreads(__tstate); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
093d3ff1 | 17632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
17633 | return resultobj; |
17634 | fail: | |
17635 | return NULL; | |
17636 | } | |
17637 | ||
17638 | ||
093d3ff1 | 17639 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17640 | PyObject *resultobj; |
093d3ff1 RD |
17641 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17642 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17643 | bool result; | |
d14a1e28 RD |
17644 | PyObject * obj0 = 0 ; |
17645 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17646 | char *kwnames[] = { |
093d3ff1 | 17647 | (char *) "self",(char *) "window", NULL |
d14a1e28 RD |
17648 | }; |
17649 | ||
093d3ff1 RD |
17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; |
17651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17653 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17655 | { |
17656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17657 | result = (bool)(arg1)->StartDrawingOnTop(arg2); |
d14a1e28 RD |
17658 | |
17659 | wxPyEndAllowThreads(__tstate); | |
17660 | if (PyErr_Occurred()) SWIG_fail; | |
17661 | } | |
093d3ff1 RD |
17662 | { |
17663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17664 | } | |
d14a1e28 RD |
17665 | return resultobj; |
17666 | fail: | |
17667 | return NULL; | |
17668 | } | |
17669 | ||
17670 | ||
093d3ff1 | 17671 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17672 | PyObject *resultobj; |
093d3ff1 RD |
17673 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17674 | wxRect *arg2 = (wxRect *) NULL ; | |
17675 | bool result; | |
d14a1e28 RD |
17676 | PyObject * obj0 = 0 ; |
17677 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17678 | char *kwnames[] = { |
093d3ff1 | 17679 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
17680 | }; |
17681 | ||
093d3ff1 RD |
17682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; |
17683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17685 | if (obj1) { | |
17686 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
17687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17688 | } |
17689 | { | |
17690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17691 | result = (bool)(arg1)->StartDrawingOnTop(arg2); |
d14a1e28 RD |
17692 | |
17693 | wxPyEndAllowThreads(__tstate); | |
17694 | if (PyErr_Occurred()) SWIG_fail; | |
17695 | } | |
093d3ff1 RD |
17696 | { |
17697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17698 | } | |
d14a1e28 RD |
17699 | return resultobj; |
17700 | fail: | |
17701 | return NULL; | |
17702 | } | |
17703 | ||
17704 | ||
093d3ff1 | 17705 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17706 | PyObject *resultobj; |
093d3ff1 RD |
17707 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17708 | bool result; | |
d14a1e28 | 17709 | PyObject * obj0 = 0 ; |
d14a1e28 | 17710 | char *kwnames[] = { |
093d3ff1 | 17711 | (char *) "self", NULL |
d14a1e28 RD |
17712 | }; |
17713 | ||
093d3ff1 RD |
17714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; |
17715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17717 | { |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17719 | result = (bool)(arg1)->EndDrawingOnTop(); |
d14a1e28 RD |
17720 | |
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
093d3ff1 RD |
17724 | { |
17725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17726 | } | |
d14a1e28 RD |
17727 | return resultobj; |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
093d3ff1 RD |
17733 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
17734 | PyObject *obj; | |
17735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17736 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
17737 | Py_INCREF(obj); | |
17738 | return Py_BuildValue((char *)""); | |
17739 | } | |
17740 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17741 | PyObject *resultobj; |
093d3ff1 RD |
17742 | wxWindow *arg1 = (wxWindow *) 0 ; |
17743 | wxClientDC *result; | |
d14a1e28 | 17744 | PyObject * obj0 = 0 ; |
d14a1e28 | 17745 | char *kwnames[] = { |
093d3ff1 | 17746 | (char *) "win", NULL |
d14a1e28 RD |
17747 | }; |
17748 | ||
093d3ff1 RD |
17749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; |
17750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17752 | { |
093d3ff1 | 17753 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17755 | result = (wxClientDC *)new wxClientDC(arg1); |
d14a1e28 RD |
17756 | |
17757 | wxPyEndAllowThreads(__tstate); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
17759 | } | |
093d3ff1 | 17760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
17761 | return resultobj; |
17762 | fail: | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
093d3ff1 RD |
17767 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
17768 | PyObject *obj; | |
17769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17770 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
17771 | Py_INCREF(obj); | |
17772 | return Py_BuildValue((char *)""); | |
17773 | } | |
17774 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17775 | PyObject *resultobj; |
093d3ff1 RD |
17776 | wxWindow *arg1 = (wxWindow *) 0 ; |
17777 | wxPaintDC *result; | |
d14a1e28 | 17778 | PyObject * obj0 = 0 ; |
d14a1e28 | 17779 | char *kwnames[] = { |
093d3ff1 | 17780 | (char *) "win", NULL |
d14a1e28 RD |
17781 | }; |
17782 | ||
093d3ff1 RD |
17783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; |
17784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17786 | { |
093d3ff1 | 17787 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17789 | result = (wxPaintDC *)new wxPaintDC(arg1); |
d14a1e28 RD |
17790 | |
17791 | wxPyEndAllowThreads(__tstate); | |
17792 | if (PyErr_Occurred()) SWIG_fail; | |
17793 | } | |
093d3ff1 | 17794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
17795 | return resultobj; |
17796 | fail: | |
17797 | return NULL; | |
17798 | } | |
17799 | ||
17800 | ||
093d3ff1 RD |
17801 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
17802 | PyObject *obj; | |
17803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17804 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
17805 | Py_INCREF(obj); | |
17806 | return Py_BuildValue((char *)""); | |
17807 | } | |
17808 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17809 | PyObject *resultobj; |
093d3ff1 RD |
17810 | wxWindow *arg1 = (wxWindow *) 0 ; |
17811 | wxWindowDC *result; | |
d14a1e28 RD |
17812 | PyObject * obj0 = 0 ; |
17813 | char *kwnames[] = { | |
093d3ff1 | 17814 | (char *) "win", NULL |
d14a1e28 RD |
17815 | }; |
17816 | ||
093d3ff1 RD |
17817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; |
17818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17820 | { |
093d3ff1 | 17821 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17823 | result = (wxWindowDC *)new wxWindowDC(arg1); |
d14a1e28 RD |
17824 | |
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
093d3ff1 | 17828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
17829 | return resultobj; |
17830 | fail: | |
17831 | return NULL; | |
17832 | } | |
17833 | ||
17834 | ||
093d3ff1 RD |
17835 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
17836 | PyObject *obj; | |
17837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17838 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
17839 | Py_INCREF(obj); | |
17840 | return Py_BuildValue((char *)""); | |
17841 | } | |
17842 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 | 17843 | PyObject *resultobj; |
093d3ff1 RD |
17844 | wxDC *arg1 = 0 ; |
17845 | bool arg2 ; | |
17846 | wxMirrorDC *result; | |
d14a1e28 | 17847 | PyObject * obj0 = 0 ; |
994141e6 | 17848 | PyObject * obj1 = 0 ; |
d14a1e28 | 17849 | char *kwnames[] = { |
093d3ff1 | 17850 | (char *) "dc",(char *) "mirror", NULL |
d14a1e28 RD |
17851 | }; |
17852 | ||
093d3ff1 RD |
17853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; |
17854 | { | |
17855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17857 | if (arg1 == NULL) { | |
17858 | SWIG_null_ref("wxDC"); | |
17859 | } | |
17860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17861 | } | |
17862 | { | |
17863 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17865 | } | |
d14a1e28 | 17866 | { |
093d3ff1 | 17867 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17869 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); |
d14a1e28 RD |
17870 | |
17871 | wxPyEndAllowThreads(__tstate); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
093d3ff1 RD |
17874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
17875 | return resultobj; | |
17876 | fail: | |
17877 | return NULL; | |
17878 | } | |
17879 | ||
17880 | ||
17881 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { | |
17882 | PyObject *obj; | |
17883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17884 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
17885 | Py_INCREF(obj); | |
17886 | return Py_BuildValue((char *)""); | |
17887 | } | |
17888 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
17889 | PyObject *resultobj; | |
17890 | wxPrintData *arg1 = 0 ; | |
17891 | wxPostScriptDC *result; | |
17892 | PyObject * obj0 = 0 ; | |
17893 | char *kwnames[] = { | |
17894 | (char *) "printData", NULL | |
17895 | }; | |
17896 | ||
17897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
17898 | { | |
17899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
17900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17901 | if (arg1 == NULL) { | |
17902 | SWIG_null_ref("wxPrintData"); | |
17903 | } | |
17904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17905 | } | |
4f89f6a3 | 17906 | { |
093d3ff1 RD |
17907 | if (!wxPyCheckForApp()) SWIG_fail; |
17908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17909 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
17910 | ||
17911 | wxPyEndAllowThreads(__tstate); | |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
4f89f6a3 | 17913 | } |
093d3ff1 | 17914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
17915 | return resultobj; |
17916 | fail: | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
093d3ff1 | 17921 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17922 | PyObject *resultobj; |
093d3ff1 RD |
17923 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
17924 | wxPrintData *result; | |
d14a1e28 RD |
17925 | PyObject * obj0 = 0 ; |
17926 | char *kwnames[] = { | |
17927 | (char *) "self", NULL | |
17928 | }; | |
17929 | ||
093d3ff1 RD |
17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; |
17931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
17932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17933 | { |
17934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
17935 | { |
17936 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
17937 | result = (wxPrintData *) &_result_ref; | |
17938 | } | |
d14a1e28 RD |
17939 | |
17940 | wxPyEndAllowThreads(__tstate); | |
17941 | if (PyErr_Occurred()) SWIG_fail; | |
17942 | } | |
093d3ff1 | 17943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
17944 | return resultobj; |
17945 | fail: | |
17946 | return NULL; | |
17947 | } | |
17948 | ||
17949 | ||
093d3ff1 | 17950 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17951 | PyObject *resultobj; |
093d3ff1 RD |
17952 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
17953 | wxPrintData *arg2 = 0 ; | |
d14a1e28 | 17954 | PyObject * obj0 = 0 ; |
994141e6 | 17955 | PyObject * obj1 = 0 ; |
d14a1e28 | 17956 | char *kwnames[] = { |
093d3ff1 | 17957 | (char *) "self",(char *) "data", NULL |
d14a1e28 RD |
17958 | }; |
17959 | ||
093d3ff1 RD |
17960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; |
17961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
17962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17963 | { | |
17964 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
17965 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17966 | if (arg2 == NULL) { | |
17967 | SWIG_null_ref("wxPrintData"); | |
17968 | } | |
17969 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17970 | } | |
d14a1e28 RD |
17971 | { |
17972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17973 | (arg1)->SetPrintData((wxPrintData const &)*arg2); |
d14a1e28 RD |
17974 | |
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
17978 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
17979 | return resultobj; |
17980 | fail: | |
17981 | return NULL; | |
17982 | } | |
17983 | ||
17984 | ||
093d3ff1 RD |
17985 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
17986 | PyObject *resultobj; | |
17987 | int arg1 ; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | char *kwnames[] = { | |
17990 | (char *) "ppi", NULL | |
17991 | }; | |
d14a1e28 | 17992 | |
093d3ff1 RD |
17993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
17994 | { | |
17995 | arg1 = (int)(SWIG_As_int(obj0)); | |
17996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17997 | } | |
17998 | { | |
17999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18000 | wxPostScriptDC::SetResolution(arg1); | |
18001 | ||
18002 | wxPyEndAllowThreads(__tstate); | |
18003 | if (PyErr_Occurred()) SWIG_fail; | |
18004 | } | |
18005 | Py_INCREF(Py_None); resultobj = Py_None; | |
18006 | return resultobj; | |
18007 | fail: | |
18008 | return NULL; | |
d14a1e28 RD |
18009 | } |
18010 | ||
18011 | ||
093d3ff1 RD |
18012 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
18013 | PyObject *resultobj; | |
18014 | int result; | |
18015 | char *kwnames[] = { | |
18016 | NULL | |
18017 | }; | |
d14a1e28 | 18018 | |
093d3ff1 RD |
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; |
18020 | { | |
18021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18022 | result = (int)wxPostScriptDC::GetResolution(); | |
18023 | ||
18024 | wxPyEndAllowThreads(__tstate); | |
18025 | if (PyErr_Occurred()) SWIG_fail; | |
18026 | } | |
18027 | { | |
18028 | resultobj = SWIG_From_int((int)(result)); | |
18029 | } | |
18030 | return resultobj; | |
18031 | fail: | |
18032 | return NULL; | |
d14a1e28 RD |
18033 | } |
18034 | ||
18035 | ||
093d3ff1 RD |
18036 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
18037 | PyObject *obj; | |
18038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18039 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
18040 | Py_INCREF(obj); | |
18041 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18042 | } |
093d3ff1 RD |
18043 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
18044 | PyObject *resultobj; | |
18045 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18046 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18047 | wxMetaFile *result; | |
18048 | bool temp1 = false ; | |
18049 | PyObject * obj0 = 0 ; | |
18050 | char *kwnames[] = { | |
18051 | (char *) "filename", NULL | |
18052 | }; | |
d14a1e28 | 18053 | |
093d3ff1 RD |
18054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; |
18055 | if (obj0) { | |
18056 | { | |
18057 | arg1 = wxString_in_helper(obj0); | |
18058 | if (arg1 == NULL) SWIG_fail; | |
18059 | temp1 = true; | |
18060 | } | |
18061 | } | |
18062 | { | |
18063 | if (!wxPyCheckForApp()) SWIG_fail; | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
18071 | { | |
18072 | if (temp1) | |
18073 | delete arg1; | |
18074 | } | |
18075 | return resultobj; | |
18076 | fail: | |
18077 | { | |
18078 | if (temp1) | |
18079 | delete arg1; | |
18080 | } | |
18081 | return NULL; | |
d14a1e28 RD |
18082 | } |
18083 | ||
18084 | ||
093d3ff1 RD |
18085 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
18086 | PyObject *obj; | |
18087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18088 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
18089 | Py_INCREF(obj); | |
18090 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18091 | } |
093d3ff1 RD |
18092 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
18093 | PyObject *resultobj; | |
18094 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
18095 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18096 | int arg2 = (int) 0 ; | |
18097 | int arg3 = (int) 0 ; | |
18098 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18099 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18100 | wxMetaFileDC *result; | |
18101 | bool temp1 = false ; | |
18102 | bool temp4 = false ; | |
18103 | PyObject * obj0 = 0 ; | |
18104 | PyObject * obj1 = 0 ; | |
18105 | PyObject * obj2 = 0 ; | |
18106 | PyObject * obj3 = 0 ; | |
18107 | char *kwnames[] = { | |
18108 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
18109 | }; | |
d14a1e28 | 18110 | |
093d3ff1 RD |
18111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18112 | if (obj0) { | |
18113 | { | |
18114 | arg1 = wxString_in_helper(obj0); | |
18115 | if (arg1 == NULL) SWIG_fail; | |
18116 | temp1 = true; | |
18117 | } | |
18118 | } | |
18119 | if (obj1) { | |
18120 | { | |
18121 | arg2 = (int)(SWIG_As_int(obj1)); | |
18122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18123 | } | |
18124 | } | |
18125 | if (obj2) { | |
18126 | { | |
18127 | arg3 = (int)(SWIG_As_int(obj2)); | |
18128 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18129 | } | |
18130 | } | |
18131 | if (obj3) { | |
18132 | { | |
18133 | arg4 = wxString_in_helper(obj3); | |
18134 | if (arg4 == NULL) SWIG_fail; | |
18135 | temp4 = true; | |
18136 | } | |
18137 | } | |
18138 | { | |
18139 | if (!wxPyCheckForApp()) SWIG_fail; | |
18140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18141 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
18142 | ||
18143 | wxPyEndAllowThreads(__tstate); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
18145 | } | |
18146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
18147 | { | |
18148 | if (temp1) | |
18149 | delete arg1; | |
18150 | } | |
18151 | { | |
18152 | if (temp4) | |
18153 | delete arg4; | |
18154 | } | |
18155 | return resultobj; | |
18156 | fail: | |
18157 | { | |
18158 | if (temp1) | |
18159 | delete arg1; | |
18160 | } | |
18161 | { | |
18162 | if (temp4) | |
18163 | delete arg4; | |
18164 | } | |
18165 | return NULL; | |
d14a1e28 RD |
18166 | } |
18167 | ||
18168 | ||
093d3ff1 RD |
18169 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
18170 | PyObject *obj; | |
18171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18172 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
18173 | Py_INCREF(obj); | |
18174 | return Py_BuildValue((char *)""); | |
994141e6 | 18175 | } |
093d3ff1 RD |
18176 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
18177 | PyObject *resultobj; | |
18178 | wxPrintData *arg1 = 0 ; | |
18179 | wxPrinterDC *result; | |
18180 | PyObject * obj0 = 0 ; | |
18181 | char *kwnames[] = { | |
18182 | (char *) "printData", NULL | |
18183 | }; | |
d14a1e28 | 18184 | |
093d3ff1 RD |
18185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; |
18186 | { | |
18187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18189 | if (arg1 == NULL) { | |
18190 | SWIG_null_ref("wxPrintData"); | |
18191 | } | |
18192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18193 | } | |
18194 | { | |
18195 | if (!wxPyCheckForApp()) SWIG_fail; | |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
18198 | ||
18199 | wxPyEndAllowThreads(__tstate); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
18202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
18203 | return resultobj; | |
18204 | fail: | |
18205 | return NULL; | |
d14a1e28 | 18206 | } |
994141e6 RD |
18207 | |
18208 | ||
093d3ff1 RD |
18209 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
18210 | PyObject *obj; | |
18211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18212 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
18213 | Py_INCREF(obj); | |
18214 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18215 | } |
093d3ff1 RD |
18216 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
18217 | PyObject *resultobj; | |
18218 | int arg1 ; | |
18219 | int arg2 ; | |
18220 | int arg3 = (int) true ; | |
18221 | int arg4 = (int) 1 ; | |
18222 | wxImageList *result; | |
18223 | PyObject * obj0 = 0 ; | |
18224 | PyObject * obj1 = 0 ; | |
18225 | PyObject * obj2 = 0 ; | |
18226 | PyObject * obj3 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
18229 | }; | |
d14a1e28 | 18230 | |
093d3ff1 RD |
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18232 | { | |
18233 | arg1 = (int)(SWIG_As_int(obj0)); | |
18234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18235 | } | |
18236 | { | |
18237 | arg2 = (int)(SWIG_As_int(obj1)); | |
18238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18239 | } | |
18240 | if (obj2) { | |
18241 | { | |
18242 | arg3 = (int)(SWIG_As_int(obj2)); | |
18243 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18244 | } | |
18245 | } | |
18246 | if (obj3) { | |
18247 | { | |
18248 | arg4 = (int)(SWIG_As_int(obj3)); | |
18249 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18250 | } | |
18251 | } | |
18252 | { | |
18253 | if (!wxPyCheckForApp()) SWIG_fail; | |
18254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18255 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
18256 | ||
18257 | wxPyEndAllowThreads(__tstate); | |
18258 | if (PyErr_Occurred()) SWIG_fail; | |
18259 | } | |
18260 | { | |
18261 | resultobj = wxPyMake_wxObject(result, 1); | |
18262 | } | |
18263 | return resultobj; | |
18264 | fail: | |
18265 | return NULL; | |
d14a1e28 RD |
18266 | } |
18267 | ||
18268 | ||
093d3ff1 RD |
18269 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
18270 | PyObject *resultobj; | |
18271 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | char *kwnames[] = { | |
18274 | (char *) "self", NULL | |
18275 | }; | |
d14a1e28 | 18276 | |
093d3ff1 RD |
18277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; |
18278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18280 | { | |
18281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18282 | delete arg1; | |
18283 | ||
18284 | wxPyEndAllowThreads(__tstate); | |
18285 | if (PyErr_Occurred()) SWIG_fail; | |
18286 | } | |
18287 | Py_INCREF(Py_None); resultobj = Py_None; | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
d14a1e28 RD |
18291 | } |
18292 | ||
18293 | ||
093d3ff1 RD |
18294 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
18295 | PyObject *resultobj; | |
18296 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18297 | wxBitmap *arg2 = 0 ; | |
18298 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
18299 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
18300 | int result; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | PyObject * obj1 = 0 ; | |
18303 | PyObject * obj2 = 0 ; | |
18304 | char *kwnames[] = { | |
18305 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
18306 | }; | |
d14a1e28 | 18307 | |
093d3ff1 RD |
18308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18311 | { | |
18312 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18314 | if (arg2 == NULL) { | |
18315 | SWIG_null_ref("wxBitmap"); | |
18316 | } | |
18317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18318 | } | |
18319 | if (obj2) { | |
18320 | { | |
18321 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18322 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18323 | if (arg3 == NULL) { | |
18324 | SWIG_null_ref("wxBitmap"); | |
18325 | } | |
18326 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18327 | } | |
18328 | } | |
18329 | { | |
18330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18331 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
18332 | ||
18333 | wxPyEndAllowThreads(__tstate); | |
18334 | if (PyErr_Occurred()) SWIG_fail; | |
18335 | } | |
18336 | { | |
18337 | resultobj = SWIG_From_int((int)(result)); | |
18338 | } | |
18339 | return resultobj; | |
18340 | fail: | |
18341 | return NULL; | |
d14a1e28 RD |
18342 | } |
18343 | ||
18344 | ||
093d3ff1 RD |
18345 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
18346 | PyObject *resultobj; | |
18347 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18348 | wxBitmap *arg2 = 0 ; | |
18349 | wxColour *arg3 = 0 ; | |
18350 | int result; | |
18351 | wxColour temp3 ; | |
18352 | PyObject * obj0 = 0 ; | |
18353 | PyObject * obj1 = 0 ; | |
18354 | PyObject * obj2 = 0 ; | |
18355 | char *kwnames[] = { | |
18356 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
18357 | }; | |
d14a1e28 | 18358 | |
093d3ff1 RD |
18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18362 | { | |
18363 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18365 | if (arg2 == NULL) { | |
18366 | SWIG_null_ref("wxBitmap"); | |
18367 | } | |
18368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18369 | } | |
18370 | { | |
18371 | arg3 = &temp3; | |
18372 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18373 | } | |
18374 | { | |
18375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18376 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
18377 | ||
18378 | wxPyEndAllowThreads(__tstate); | |
18379 | if (PyErr_Occurred()) SWIG_fail; | |
18380 | } | |
18381 | { | |
18382 | resultobj = SWIG_From_int((int)(result)); | |
18383 | } | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
d14a1e28 RD |
18387 | } |
18388 | ||
18389 | ||
093d3ff1 RD |
18390 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
18391 | PyObject *resultobj; | |
18392 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18393 | wxIcon *arg2 = 0 ; | |
18394 | int result; | |
18395 | PyObject * obj0 = 0 ; | |
18396 | PyObject * obj1 = 0 ; | |
18397 | char *kwnames[] = { | |
18398 | (char *) "self",(char *) "icon", NULL | |
18399 | }; | |
994141e6 | 18400 | |
093d3ff1 RD |
18401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
18402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18404 | { | |
18405 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
18406 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18407 | if (arg2 == NULL) { | |
18408 | SWIG_null_ref("wxIcon"); | |
18409 | } | |
18410 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18411 | } | |
18412 | { | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
18419 | { | |
18420 | resultobj = SWIG_From_int((int)(result)); | |
18421 | } | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
d14a1e28 RD |
18425 | } |
18426 | ||
18427 | ||
b9d6a5f3 RD |
18428 | static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
18429 | PyObject *resultobj; | |
18430 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18431 | int arg2 ; | |
18432 | SwigValueWrapper<wxBitmap > result; | |
18433 | PyObject * obj0 = 0 ; | |
18434 | PyObject * obj1 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self",(char *) "index", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
18440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18442 | { | |
18443 | arg2 = (int)(SWIG_As_int(obj1)); | |
18444 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18445 | } | |
18446 | { | |
18447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18448 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
18449 | ||
18450 | wxPyEndAllowThreads(__tstate); | |
18451 | if (PyErr_Occurred()) SWIG_fail; | |
18452 | } | |
18453 | { | |
18454 | wxBitmap * resultptr; | |
18455 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
18456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18457 | } | |
18458 | return resultobj; | |
18459 | fail: | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
18464 | static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
18465 | PyObject *resultobj; | |
18466 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18467 | int arg2 ; | |
18468 | wxIcon result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | PyObject * obj1 = 0 ; | |
18471 | char *kwnames[] = { | |
18472 | (char *) "self",(char *) "index", NULL | |
18473 | }; | |
18474 | ||
18475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
18476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18478 | { | |
18479 | arg2 = (int)(SWIG_As_int(obj1)); | |
18480 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18481 | } | |
18482 | { | |
18483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18484 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
18485 | ||
18486 | wxPyEndAllowThreads(__tstate); | |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
18488 | } | |
18489 | { | |
18490 | wxIcon * resultptr; | |
18491 | resultptr = new wxIcon((wxIcon &)(result)); | |
18492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
18493 | } | |
18494 | return resultobj; | |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
093d3ff1 RD |
18500 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
18501 | PyObject *resultobj; | |
18502 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18503 | int arg2 ; | |
18504 | wxBitmap *arg3 = 0 ; | |
18505 | bool result; | |
18506 | PyObject * obj0 = 0 ; | |
18507 | PyObject * obj1 = 0 ; | |
18508 | PyObject * obj2 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
18511 | }; | |
d14a1e28 | 18512 | |
093d3ff1 RD |
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18516 | { | |
18517 | arg2 = (int)(SWIG_As_int(obj1)); | |
18518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18519 | } | |
18520 | { | |
18521 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18522 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18523 | if (arg3 == NULL) { | |
18524 | SWIG_null_ref("wxBitmap"); | |
18525 | } | |
18526 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18527 | } | |
18528 | { | |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
18531 | ||
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
18535 | { | |
18536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18537 | } | |
18538 | return resultobj; | |
18539 | fail: | |
18540 | return NULL; | |
d14a1e28 RD |
18541 | } |
18542 | ||
18543 | ||
093d3ff1 RD |
18544 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
18545 | PyObject *resultobj; | |
18546 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18547 | int arg2 ; | |
18548 | wxDC *arg3 = 0 ; | |
18549 | int arg4 ; | |
18550 | int arg5 ; | |
18551 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
18552 | bool arg7 = (bool) (bool)false ; | |
18553 | bool result; | |
18554 | PyObject * obj0 = 0 ; | |
18555 | PyObject * obj1 = 0 ; | |
18556 | PyObject * obj2 = 0 ; | |
18557 | PyObject * obj3 = 0 ; | |
18558 | PyObject * obj4 = 0 ; | |
18559 | PyObject * obj5 = 0 ; | |
18560 | PyObject * obj6 = 0 ; | |
18561 | char *kwnames[] = { | |
18562 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
18563 | }; | |
18564 | ||
18565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18568 | { | |
18569 | arg2 = (int)(SWIG_As_int(obj1)); | |
18570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18571 | } | |
18572 | { | |
18573 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
18574 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18575 | if (arg3 == NULL) { | |
18576 | SWIG_null_ref("wxDC"); | |
18577 | } | |
18578 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18579 | } | |
18580 | { | |
18581 | arg4 = (int)(SWIG_As_int(obj3)); | |
18582 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18583 | } | |
18584 | { | |
18585 | arg5 = (int)(SWIG_As_int(obj4)); | |
18586 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18587 | } | |
18588 | if (obj5) { | |
18589 | { | |
18590 | arg6 = (int)(SWIG_As_int(obj5)); | |
18591 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18592 | } | |
18593 | } | |
18594 | if (obj6) { | |
18595 | { | |
18596 | arg7 = (bool const)(SWIG_As_bool(obj6)); | |
18597 | if (SWIG_arg_fail(7)) SWIG_fail; | |
18598 | } | |
18599 | } | |
18600 | { | |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | { | |
18608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18609 | } | |
18610 | return resultobj; | |
18611 | fail: | |
18612 | return NULL; | |
d14a1e28 RD |
18613 | } |
18614 | ||
18615 | ||
093d3ff1 RD |
18616 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
18617 | PyObject *resultobj; | |
18618 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18619 | int result; | |
18620 | PyObject * obj0 = 0 ; | |
18621 | char *kwnames[] = { | |
18622 | (char *) "self", NULL | |
18623 | }; | |
d14a1e28 | 18624 | |
093d3ff1 RD |
18625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; |
18626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18628 | { | |
18629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18630 | result = (int)(arg1)->GetImageCount(); | |
18631 | ||
18632 | wxPyEndAllowThreads(__tstate); | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | } | |
18635 | { | |
18636 | resultobj = SWIG_From_int((int)(result)); | |
18637 | } | |
18638 | return resultobj; | |
18639 | fail: | |
18640 | return NULL; | |
d14a1e28 RD |
18641 | } |
18642 | ||
18643 | ||
093d3ff1 RD |
18644 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
18645 | PyObject *resultobj; | |
18646 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18647 | int arg2 ; | |
18648 | bool result; | |
18649 | PyObject * obj0 = 0 ; | |
18650 | PyObject * obj1 = 0 ; | |
18651 | char *kwnames[] = { | |
18652 | (char *) "self",(char *) "index", NULL | |
18653 | }; | |
18654 | ||
18655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
18656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18658 | { | |
18659 | arg2 = (int)(SWIG_As_int(obj1)); | |
18660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18661 | } | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | result = (bool)(arg1)->Remove(arg2); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | { | |
18670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18671 | } | |
18672 | return resultobj; | |
18673 | fail: | |
18674 | return NULL; | |
d14a1e28 RD |
18675 | } |
18676 | ||
18677 | ||
093d3ff1 RD |
18678 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
18679 | PyObject *resultobj; | |
18680 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18681 | bool result; | |
18682 | PyObject * obj0 = 0 ; | |
18683 | char *kwnames[] = { | |
18684 | (char *) "self", NULL | |
18685 | }; | |
d14a1e28 | 18686 | |
093d3ff1 RD |
18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; |
18688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18690 | { | |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | result = (bool)(arg1)->RemoveAll(); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | { | |
18698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18699 | } | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
d14a1e28 RD |
18703 | } |
18704 | ||
18705 | ||
093d3ff1 RD |
18706 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
18707 | PyObject *resultobj; | |
18708 | wxImageList *arg1 = (wxImageList *) 0 ; | |
18709 | int arg2 ; | |
18710 | int *arg3 = 0 ; | |
18711 | int *arg4 = 0 ; | |
18712 | int temp3 ; | |
18713 | int res3 = 0 ; | |
18714 | int temp4 ; | |
18715 | int res4 = 0 ; | |
18716 | PyObject * obj0 = 0 ; | |
18717 | PyObject * obj1 = 0 ; | |
18718 | char *kwnames[] = { | |
18719 | (char *) "self",(char *) "index", NULL | |
18720 | }; | |
18721 | ||
18722 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
18723 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
18724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
18725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18727 | { | |
18728 | arg2 = (int)(SWIG_As_int(obj1)); | |
18729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18730 | } | |
18731 | { | |
18732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18733 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
18734 | ||
18735 | wxPyEndAllowThreads(__tstate); | |
18736 | if (PyErr_Occurred()) SWIG_fail; | |
18737 | } | |
18738 | Py_INCREF(Py_None); resultobj = Py_None; | |
18739 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
18740 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
18741 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
18742 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
18743 | return resultobj; | |
18744 | fail: | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { | |
18750 | PyObject *obj; | |
18751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18752 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
18753 | Py_INCREF(obj); | |
18754 | return Py_BuildValue((char *)""); | |
18755 | } | |
18756 | static int _wrap_NORMAL_FONT_set(PyObject *) { | |
18757 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
d14a1e28 RD |
18758 | return 1; |
18759 | } | |
18760 | ||
18761 | ||
093d3ff1 | 18762 | static PyObject *_wrap_NORMAL_FONT_get(void) { |
d14a1e28 RD |
18763 | PyObject *pyobj; |
18764 | ||
093d3ff1 | 18765 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
18766 | return pyobj; |
18767 | } | |
18768 | ||
18769 | ||
093d3ff1 RD |
18770 | static int _wrap_SMALL_FONT_set(PyObject *) { |
18771 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
d14a1e28 RD |
18772 | return 1; |
18773 | } | |
18774 | ||
18775 | ||
093d3ff1 | 18776 | static PyObject *_wrap_SMALL_FONT_get(void) { |
d14a1e28 RD |
18777 | PyObject *pyobj; |
18778 | ||
093d3ff1 | 18779 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
18780 | return pyobj; |
18781 | } | |
18782 | ||
18783 | ||
093d3ff1 RD |
18784 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
18785 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
d14a1e28 RD |
18786 | return 1; |
18787 | } | |
18788 | ||
18789 | ||
093d3ff1 | 18790 | static PyObject *_wrap_ITALIC_FONT_get(void) { |
d14a1e28 RD |
18791 | PyObject *pyobj; |
18792 | ||
093d3ff1 | 18793 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
18794 | return pyobj; |
18795 | } | |
18796 | ||
18797 | ||
093d3ff1 RD |
18798 | static int _wrap_SWISS_FONT_set(PyObject *) { |
18799 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
d14a1e28 RD |
18800 | return 1; |
18801 | } | |
18802 | ||
18803 | ||
093d3ff1 | 18804 | static PyObject *_wrap_SWISS_FONT_get(void) { |
d14a1e28 RD |
18805 | PyObject *pyobj; |
18806 | ||
093d3ff1 | 18807 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
18808 | return pyobj; |
18809 | } | |
18810 | ||
18811 | ||
093d3ff1 RD |
18812 | static int _wrap_RED_PEN_set(PyObject *) { |
18813 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
d14a1e28 RD |
18814 | return 1; |
18815 | } | |
18816 | ||
18817 | ||
093d3ff1 | 18818 | static PyObject *_wrap_RED_PEN_get(void) { |
d14a1e28 RD |
18819 | PyObject *pyobj; |
18820 | ||
093d3ff1 | 18821 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18822 | return pyobj; |
18823 | } | |
18824 | ||
18825 | ||
093d3ff1 RD |
18826 | static int _wrap_CYAN_PEN_set(PyObject *) { |
18827 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
d14a1e28 RD |
18828 | return 1; |
18829 | } | |
18830 | ||
18831 | ||
093d3ff1 | 18832 | static PyObject *_wrap_CYAN_PEN_get(void) { |
d14a1e28 RD |
18833 | PyObject *pyobj; |
18834 | ||
093d3ff1 | 18835 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18836 | return pyobj; |
18837 | } | |
18838 | ||
18839 | ||
093d3ff1 RD |
18840 | static int _wrap_GREEN_PEN_set(PyObject *) { |
18841 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
d14a1e28 RD |
18842 | return 1; |
18843 | } | |
18844 | ||
18845 | ||
093d3ff1 | 18846 | static PyObject *_wrap_GREEN_PEN_get(void) { |
d14a1e28 RD |
18847 | PyObject *pyobj; |
18848 | ||
093d3ff1 | 18849 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18850 | return pyobj; |
18851 | } | |
18852 | ||
18853 | ||
093d3ff1 RD |
18854 | static int _wrap_BLACK_PEN_set(PyObject *) { |
18855 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
d14a1e28 RD |
18856 | return 1; |
18857 | } | |
18858 | ||
18859 | ||
093d3ff1 | 18860 | static PyObject *_wrap_BLACK_PEN_get(void) { |
d14a1e28 RD |
18861 | PyObject *pyobj; |
18862 | ||
093d3ff1 | 18863 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18864 | return pyobj; |
18865 | } | |
18866 | ||
18867 | ||
093d3ff1 RD |
18868 | static int _wrap_WHITE_PEN_set(PyObject *) { |
18869 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
d14a1e28 RD |
18870 | return 1; |
18871 | } | |
18872 | ||
18873 | ||
093d3ff1 | 18874 | static PyObject *_wrap_WHITE_PEN_get(void) { |
d14a1e28 RD |
18875 | PyObject *pyobj; |
18876 | ||
093d3ff1 | 18877 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18878 | return pyobj; |
18879 | } | |
18880 | ||
18881 | ||
093d3ff1 RD |
18882 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
18883 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
d14a1e28 RD |
18884 | return 1; |
18885 | } | |
18886 | ||
18887 | ||
093d3ff1 | 18888 | static PyObject *_wrap_TRANSPARENT_PEN_get(void) { |
d14a1e28 RD |
18889 | PyObject *pyobj; |
18890 | ||
093d3ff1 | 18891 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18892 | return pyobj; |
18893 | } | |
18894 | ||
18895 | ||
093d3ff1 RD |
18896 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
18897 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
d14a1e28 RD |
18898 | return 1; |
18899 | } | |
18900 | ||
18901 | ||
093d3ff1 | 18902 | static PyObject *_wrap_BLACK_DASHED_PEN_get(void) { |
d14a1e28 RD |
18903 | PyObject *pyobj; |
18904 | ||
093d3ff1 | 18905 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18906 | return pyobj; |
18907 | } | |
18908 | ||
18909 | ||
093d3ff1 RD |
18910 | static int _wrap_GREY_PEN_set(PyObject *) { |
18911 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
d14a1e28 RD |
18912 | return 1; |
18913 | } | |
18914 | ||
18915 | ||
093d3ff1 | 18916 | static PyObject *_wrap_GREY_PEN_get(void) { |
d14a1e28 RD |
18917 | PyObject *pyobj; |
18918 | ||
093d3ff1 | 18919 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
18920 | return pyobj; |
18921 | } | |
18922 | ||
18923 | ||
093d3ff1 RD |
18924 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
18925 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
18926 | return 1; |
18927 | } | |
18928 | ||
18929 | ||
093d3ff1 | 18930 | static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) { |
d14a1e28 RD |
18931 | PyObject *pyobj; |
18932 | ||
093d3ff1 RD |
18933 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
18934 | return pyobj; | |
18935 | } | |
18936 | ||
18937 | ||
18938 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { | |
18939 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
18940 | return 1; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject *_wrap_LIGHT_GREY_PEN_get(void) { | |
18945 | PyObject *pyobj; | |
18946 | ||
18947 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
18948 | return pyobj; | |
18949 | } | |
18950 | ||
18951 | ||
18952 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
18953 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
18954 | return 1; | |
18955 | } | |
18956 | ||
18957 | ||
18958 | static PyObject *_wrap_BLUE_BRUSH_get(void) { | |
18959 | PyObject *pyobj; | |
18960 | ||
18961 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
18962 | return pyobj; | |
18963 | } | |
18964 | ||
18965 | ||
18966 | static int _wrap_GREEN_BRUSH_set(PyObject *) { | |
18967 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
18968 | return 1; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | static PyObject *_wrap_GREEN_BRUSH_get(void) { | |
18973 | PyObject *pyobj; | |
18974 | ||
18975 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
18976 | return pyobj; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static int _wrap_WHITE_BRUSH_set(PyObject *) { | |
18981 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
18982 | return 1; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject *_wrap_WHITE_BRUSH_get(void) { | |
18987 | PyObject *pyobj; | |
18988 | ||
18989 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
18990 | return pyobj; | |
18991 | } | |
18992 | ||
18993 | ||
18994 | static int _wrap_BLACK_BRUSH_set(PyObject *) { | |
18995 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
18996 | return 1; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_BLACK_BRUSH_get(void) { | |
19001 | PyObject *pyobj; | |
19002 | ||
19003 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19004 | return pyobj; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { | |
19009 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
19010 | return 1; | |
19011 | } | |
19012 | ||
19013 | ||
19014 | static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) { | |
19015 | PyObject *pyobj; | |
19016 | ||
19017 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19018 | return pyobj; | |
19019 | } | |
19020 | ||
19021 | ||
19022 | static int _wrap_CYAN_BRUSH_set(PyObject *) { | |
19023 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
19024 | return 1; | |
19025 | } | |
19026 | ||
19027 | ||
19028 | static PyObject *_wrap_CYAN_BRUSH_get(void) { | |
19029 | PyObject *pyobj; | |
19030 | ||
19031 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19032 | return pyobj; | |
19033 | } | |
19034 | ||
19035 | ||
19036 | static int _wrap_RED_BRUSH_set(PyObject *) { | |
19037 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
19038 | return 1; | |
19039 | } | |
19040 | ||
19041 | ||
19042 | static PyObject *_wrap_RED_BRUSH_get(void) { | |
19043 | PyObject *pyobj; | |
19044 | ||
19045 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19046 | return pyobj; | |
19047 | } | |
19048 | ||
19049 | ||
19050 | static int _wrap_GREY_BRUSH_set(PyObject *) { | |
19051 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
19052 | return 1; | |
19053 | } | |
19054 | ||
19055 | ||
19056 | static PyObject *_wrap_GREY_BRUSH_get(void) { | |
19057 | PyObject *pyobj; | |
19058 | ||
19059 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19060 | return pyobj; | |
19061 | } | |
19062 | ||
19063 | ||
19064 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { | |
19065 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
19066 | return 1; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) { | |
19071 | PyObject *pyobj; | |
19072 | ||
19073 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19074 | return pyobj; | |
19075 | } | |
19076 | ||
19077 | ||
19078 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { | |
19079 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
19080 | return 1; | |
19081 | } | |
19082 | ||
19083 | ||
19084 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) { | |
19085 | PyObject *pyobj; | |
19086 | ||
19087 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19088 | return pyobj; | |
19089 | } | |
19090 | ||
19091 | ||
19092 | static int _wrap_BLACK_set(PyObject *) { | |
19093 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
19094 | return 1; | |
19095 | } | |
19096 | ||
19097 | ||
19098 | static PyObject *_wrap_BLACK_get(void) { | |
19099 | PyObject *pyobj; | |
19100 | ||
19101 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
19102 | return pyobj; | |
19103 | } | |
19104 | ||
19105 | ||
19106 | static int _wrap_WHITE_set(PyObject *) { | |
19107 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
19108 | return 1; | |
19109 | } | |
19110 | ||
19111 | ||
19112 | static PyObject *_wrap_WHITE_get(void) { | |
19113 | PyObject *pyobj; | |
19114 | ||
19115 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
19116 | return pyobj; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static int _wrap_RED_set(PyObject *) { | |
19121 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
19122 | return 1; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_RED_get(void) { | |
19127 | PyObject *pyobj; | |
19128 | ||
19129 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
19130 | return pyobj; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static int _wrap_BLUE_set(PyObject *) { | |
19135 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
19136 | return 1; | |
19137 | } | |
19138 | ||
19139 | ||
19140 | static PyObject *_wrap_BLUE_get(void) { | |
19141 | PyObject *pyobj; | |
19142 | ||
19143 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
d14a1e28 RD |
19144 | return pyobj; |
19145 | } | |
19146 | ||
19147 | ||
c32bde28 | 19148 | static int _wrap_GREEN_set(PyObject *) { |
994141e6 | 19149 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
d14a1e28 RD |
19150 | return 1; |
19151 | } | |
19152 | ||
19153 | ||
093d3ff1 | 19154 | static PyObject *_wrap_GREEN_get(void) { |
d14a1e28 RD |
19155 | PyObject *pyobj; |
19156 | ||
15afbcd0 | 19157 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19158 | return pyobj; |
19159 | } | |
19160 | ||
19161 | ||
c32bde28 | 19162 | static int _wrap_CYAN_set(PyObject *) { |
994141e6 | 19163 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
d14a1e28 RD |
19164 | return 1; |
19165 | } | |
19166 | ||
19167 | ||
093d3ff1 | 19168 | static PyObject *_wrap_CYAN_get(void) { |
d14a1e28 RD |
19169 | PyObject *pyobj; |
19170 | ||
15afbcd0 | 19171 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19172 | return pyobj; |
19173 | } | |
19174 | ||
19175 | ||
c32bde28 | 19176 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
994141e6 | 19177 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
d14a1e28 RD |
19178 | return 1; |
19179 | } | |
19180 | ||
19181 | ||
093d3ff1 | 19182 | static PyObject *_wrap_LIGHT_GREY_get(void) { |
d14a1e28 RD |
19183 | PyObject *pyobj; |
19184 | ||
15afbcd0 | 19185 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19186 | return pyobj; |
19187 | } | |
19188 | ||
19189 | ||
c32bde28 | 19190 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
994141e6 | 19191 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
d14a1e28 RD |
19192 | return 1; |
19193 | } | |
19194 | ||
19195 | ||
093d3ff1 | 19196 | static PyObject *_wrap_STANDARD_CURSOR_get(void) { |
d14a1e28 RD |
19197 | PyObject *pyobj; |
19198 | ||
15afbcd0 | 19199 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19200 | return pyobj; |
19201 | } | |
19202 | ||
19203 | ||
c32bde28 | 19204 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
994141e6 | 19205 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
d14a1e28 RD |
19206 | return 1; |
19207 | } | |
19208 | ||
19209 | ||
093d3ff1 | 19210 | static PyObject *_wrap_HOURGLASS_CURSOR_get(void) { |
d14a1e28 RD |
19211 | PyObject *pyobj; |
19212 | ||
15afbcd0 | 19213 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19214 | return pyobj; |
19215 | } | |
19216 | ||
19217 | ||
c32bde28 | 19218 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
994141e6 | 19219 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
d14a1e28 RD |
19220 | return 1; |
19221 | } | |
19222 | ||
19223 | ||
093d3ff1 | 19224 | static PyObject *_wrap_CROSS_CURSOR_get(void) { |
d14a1e28 RD |
19225 | PyObject *pyobj; |
19226 | ||
15afbcd0 | 19227 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19228 | return pyobj; |
19229 | } | |
19230 | ||
19231 | ||
c32bde28 | 19232 | static int _wrap_NullBitmap_set(PyObject *) { |
994141e6 | 19233 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
d14a1e28 RD |
19234 | return 1; |
19235 | } | |
19236 | ||
19237 | ||
093d3ff1 | 19238 | static PyObject *_wrap_NullBitmap_get(void) { |
d14a1e28 RD |
19239 | PyObject *pyobj; |
19240 | ||
15afbcd0 | 19241 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
19242 | return pyobj; |
19243 | } | |
19244 | ||
19245 | ||
c32bde28 | 19246 | static int _wrap_NullIcon_set(PyObject *) { |
994141e6 | 19247 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
d14a1e28 RD |
19248 | return 1; |
19249 | } | |
19250 | ||
19251 | ||
093d3ff1 | 19252 | static PyObject *_wrap_NullIcon_get(void) { |
d14a1e28 RD |
19253 | PyObject *pyobj; |
19254 | ||
15afbcd0 | 19255 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
19256 | return pyobj; |
19257 | } | |
19258 | ||
19259 | ||
c32bde28 | 19260 | static int _wrap_NullCursor_set(PyObject *) { |
994141e6 | 19261 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
d14a1e28 RD |
19262 | return 1; |
19263 | } | |
19264 | ||
19265 | ||
093d3ff1 | 19266 | static PyObject *_wrap_NullCursor_get(void) { |
d14a1e28 RD |
19267 | PyObject *pyobj; |
19268 | ||
15afbcd0 | 19269 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19270 | return pyobj; |
19271 | } | |
19272 | ||
19273 | ||
c32bde28 | 19274 | static int _wrap_NullPen_set(PyObject *) { |
994141e6 | 19275 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
d14a1e28 RD |
19276 | return 1; |
19277 | } | |
19278 | ||
19279 | ||
093d3ff1 | 19280 | static PyObject *_wrap_NullPen_get(void) { |
d14a1e28 RD |
19281 | PyObject *pyobj; |
19282 | ||
15afbcd0 | 19283 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19284 | return pyobj; |
19285 | } | |
19286 | ||
19287 | ||
c32bde28 | 19288 | static int _wrap_NullBrush_set(PyObject *) { |
994141e6 | 19289 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
d14a1e28 RD |
19290 | return 1; |
19291 | } | |
19292 | ||
19293 | ||
093d3ff1 | 19294 | static PyObject *_wrap_NullBrush_get(void) { |
d14a1e28 RD |
19295 | PyObject *pyobj; |
19296 | ||
15afbcd0 | 19297 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
19298 | return pyobj; |
19299 | } | |
19300 | ||
19301 | ||
c32bde28 | 19302 | static int _wrap_NullPalette_set(PyObject *) { |
994141e6 | 19303 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
d14a1e28 RD |
19304 | return 1; |
19305 | } | |
19306 | ||
19307 | ||
093d3ff1 | 19308 | static PyObject *_wrap_NullPalette_get(void) { |
d14a1e28 RD |
19309 | PyObject *pyobj; |
19310 | ||
15afbcd0 | 19311 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
19312 | return pyobj; |
19313 | } | |
19314 | ||
19315 | ||
c32bde28 | 19316 | static int _wrap_NullFont_set(PyObject *) { |
994141e6 | 19317 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
d14a1e28 RD |
19318 | return 1; |
19319 | } | |
19320 | ||
19321 | ||
093d3ff1 | 19322 | static PyObject *_wrap_NullFont_get(void) { |
d14a1e28 RD |
19323 | PyObject *pyobj; |
19324 | ||
15afbcd0 | 19325 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19326 | return pyobj; |
19327 | } | |
19328 | ||
19329 | ||
c32bde28 | 19330 | static int _wrap_NullColour_set(PyObject *) { |
994141e6 | 19331 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
d14a1e28 RD |
19332 | return 1; |
19333 | } | |
19334 | ||
19335 | ||
093d3ff1 | 19336 | static PyObject *_wrap_NullColour_get(void) { |
d14a1e28 RD |
19337 | PyObject *pyobj; |
19338 | ||
15afbcd0 | 19339 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19340 | return pyobj; |
19341 | } | |
19342 | ||
19343 | ||
c32bde28 | 19344 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19345 | PyObject *resultobj; |
19346 | wxPenList *arg1 = (wxPenList *) 0 ; | |
19347 | wxPen *arg2 = (wxPen *) 0 ; | |
19348 | PyObject * obj0 = 0 ; | |
19349 | PyObject * obj1 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "self",(char *) "pen", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19357 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19358 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19359 | { |
19360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19361 | (arg1)->AddPen(arg2); | |
19362 | ||
19363 | wxPyEndAllowThreads(__tstate); | |
19364 | if (PyErr_Occurred()) SWIG_fail; | |
19365 | } | |
19366 | Py_INCREF(Py_None); resultobj = Py_None; | |
19367 | return resultobj; | |
19368 | fail: | |
19369 | return NULL; | |
d14a1e28 RD |
19370 | } |
19371 | ||
19372 | ||
c32bde28 | 19373 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19374 | PyObject *resultobj; |
19375 | wxPenList *arg1 = (wxPenList *) 0 ; | |
19376 | wxColour *arg2 = 0 ; | |
19377 | int arg3 ; | |
19378 | int arg4 ; | |
19379 | wxPen *result; | |
19380 | wxColour temp2 ; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | PyObject * obj1 = 0 ; | |
19383 | PyObject * obj2 = 0 ; | |
19384 | PyObject * obj3 = 0 ; | |
19385 | char *kwnames[] = { | |
19386 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
19387 | }; | |
d14a1e28 | 19388 | |
994141e6 | 19389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
19390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19392 | { |
19393 | arg2 = &temp2; | |
19394 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19395 | } | |
093d3ff1 RD |
19396 | { |
19397 | arg3 = (int)(SWIG_As_int(obj2)); | |
19398 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19399 | } | |
19400 | { | |
19401 | arg4 = (int)(SWIG_As_int(obj3)); | |
19402 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19403 | } | |
994141e6 RD |
19404 | { |
19405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19406 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
19407 | ||
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
15afbcd0 | 19411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
19412 | return resultobj; |
19413 | fail: | |
19414 | return NULL; | |
d14a1e28 RD |
19415 | } |
19416 | ||
19417 | ||
c32bde28 | 19418 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19419 | PyObject *resultobj; |
19420 | wxPenList *arg1 = (wxPenList *) 0 ; | |
19421 | wxPen *arg2 = (wxPen *) 0 ; | |
19422 | PyObject * obj0 = 0 ; | |
19423 | PyObject * obj1 = 0 ; | |
19424 | char *kwnames[] = { | |
19425 | (char *) "self",(char *) "pen", NULL | |
19426 | }; | |
19427 | ||
19428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19431 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19433 | { |
19434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19435 | (arg1)->RemovePen(arg2); | |
19436 | ||
19437 | wxPyEndAllowThreads(__tstate); | |
19438 | if (PyErr_Occurred()) SWIG_fail; | |
19439 | } | |
19440 | Py_INCREF(Py_None); resultobj = Py_None; | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
d14a1e28 RD |
19444 | } |
19445 | ||
19446 | ||
c32bde28 | 19447 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19448 | PyObject *resultobj; |
19449 | wxPenList *arg1 = (wxPenList *) 0 ; | |
19450 | int result; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self", NULL | |
19454 | }; | |
d14a1e28 | 19455 | |
994141e6 | 19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19459 | { |
19460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19461 | result = (int)(arg1)->GetCount(); | |
19462 | ||
19463 | wxPyEndAllowThreads(__tstate); | |
19464 | if (PyErr_Occurred()) SWIG_fail; | |
19465 | } | |
093d3ff1 RD |
19466 | { |
19467 | resultobj = SWIG_From_int((int)(result)); | |
19468 | } | |
994141e6 RD |
19469 | return resultobj; |
19470 | fail: | |
19471 | return NULL; | |
d14a1e28 RD |
19472 | } |
19473 | ||
19474 | ||
c32bde28 | 19475 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
19476 | PyObject *obj; |
19477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19478 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
19479 | Py_INCREF(obj); | |
19480 | return Py_BuildValue((char *)""); | |
19481 | } | |
c32bde28 | 19482 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19483 | PyObject *resultobj; |
19484 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
19485 | wxBrush *arg2 = (wxBrush *) 0 ; | |
19486 | PyObject * obj0 = 0 ; | |
19487 | PyObject * obj1 = 0 ; | |
19488 | char *kwnames[] = { | |
19489 | (char *) "self",(char *) "brush", NULL | |
19490 | }; | |
19491 | ||
19492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19495 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
19496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19497 | { |
19498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19499 | (arg1)->AddBrush(arg2); | |
19500 | ||
19501 | wxPyEndAllowThreads(__tstate); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | } | |
19504 | Py_INCREF(Py_None); resultobj = Py_None; | |
19505 | return resultobj; | |
19506 | fail: | |
19507 | return NULL; | |
19508 | } | |
19509 | ||
19510 | ||
c32bde28 | 19511 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19512 | PyObject *resultobj; |
19513 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
19514 | wxColour *arg2 = 0 ; | |
61d07ac7 | 19515 | int arg3 = (int) wxSOLID ; |
994141e6 RD |
19516 | wxBrush *result; |
19517 | wxColour temp2 ; | |
19518 | PyObject * obj0 = 0 ; | |
19519 | PyObject * obj1 = 0 ; | |
19520 | PyObject * obj2 = 0 ; | |
19521 | char *kwnames[] = { | |
19522 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
19523 | }; | |
19524 | ||
61d07ac7 | 19525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
19526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19528 | { |
19529 | arg2 = &temp2; | |
19530 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19531 | } | |
61d07ac7 RD |
19532 | if (obj2) { |
19533 | { | |
19534 | arg3 = (int)(SWIG_As_int(obj2)); | |
19535 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19536 | } | |
093d3ff1 | 19537 | } |
994141e6 RD |
19538 | { |
19539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19540 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
19541 | ||
19542 | wxPyEndAllowThreads(__tstate); | |
19543 | if (PyErr_Occurred()) SWIG_fail; | |
19544 | } | |
15afbcd0 | 19545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
19546 | return resultobj; |
19547 | fail: | |
19548 | return NULL; | |
d14a1e28 RD |
19549 | } |
19550 | ||
19551 | ||
c32bde28 | 19552 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19553 | PyObject *resultobj; |
19554 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
19555 | wxBrush *arg2 = (wxBrush *) 0 ; | |
19556 | PyObject * obj0 = 0 ; | |
19557 | PyObject * obj1 = 0 ; | |
19558 | char *kwnames[] = { | |
19559 | (char *) "self",(char *) "brush", NULL | |
19560 | }; | |
d14a1e28 | 19561 | |
994141e6 | 19562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19565 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
19566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19567 | { |
19568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19569 | (arg1)->RemoveBrush(arg2); | |
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; | |
d14a1e28 RD |
19578 | } |
19579 | ||
19580 | ||
c32bde28 | 19581 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19582 | PyObject *resultobj; |
19583 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
19584 | int result; | |
19585 | PyObject * obj0 = 0 ; | |
19586 | char *kwnames[] = { | |
19587 | (char *) "self", NULL | |
19588 | }; | |
d14a1e28 | 19589 | |
994141e6 | 19590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19593 | { |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | result = (int)(arg1)->GetCount(); | |
19596 | ||
19597 | wxPyEndAllowThreads(__tstate); | |
19598 | if (PyErr_Occurred()) SWIG_fail; | |
19599 | } | |
093d3ff1 RD |
19600 | { |
19601 | resultobj = SWIG_From_int((int)(result)); | |
19602 | } | |
994141e6 RD |
19603 | return resultobj; |
19604 | fail: | |
19605 | return NULL; | |
d14a1e28 RD |
19606 | } |
19607 | ||
19608 | ||
c32bde28 | 19609 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
19610 | PyObject *obj; |
19611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19612 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
19613 | Py_INCREF(obj); | |
19614 | return Py_BuildValue((char *)""); | |
d14a1e28 | 19615 | } |
c32bde28 | 19616 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19617 | PyObject *resultobj; |
19618 | wxColourDatabase *result; | |
19619 | char *kwnames[] = { | |
19620 | NULL | |
19621 | }; | |
d14a1e28 | 19622 | |
994141e6 RD |
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
19624 | { | |
e3b71cb8 | 19625 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19627 | result = (wxColourDatabase *)new wxColourDatabase(); | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19630 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19631 | } |
15afbcd0 | 19632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
19633 | return resultobj; |
19634 | fail: | |
19635 | return NULL; | |
d14a1e28 RD |
19636 | } |
19637 | ||
19638 | ||
c32bde28 | 19639 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19640 | PyObject *resultobj; |
19641 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
19642 | PyObject * obj0 = 0 ; | |
19643 | char *kwnames[] = { | |
19644 | (char *) "self", NULL | |
19645 | }; | |
d14a1e28 | 19646 | |
994141e6 | 19647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19650 | { |
19651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19652 | delete arg1; | |
19653 | ||
19654 | wxPyEndAllowThreads(__tstate); | |
19655 | if (PyErr_Occurred()) SWIG_fail; | |
19656 | } | |
19657 | Py_INCREF(Py_None); resultobj = Py_None; | |
19658 | return resultobj; | |
19659 | fail: | |
19660 | return NULL; | |
d14a1e28 RD |
19661 | } |
19662 | ||
19663 | ||
c32bde28 | 19664 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19665 | PyObject *resultobj; |
19666 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
19667 | wxString *arg2 = 0 ; | |
19668 | wxColour result; | |
ae8162c8 | 19669 | bool temp2 = false ; |
994141e6 RD |
19670 | PyObject * obj0 = 0 ; |
19671 | PyObject * obj1 = 0 ; | |
19672 | char *kwnames[] = { | |
19673 | (char *) "self",(char *) "name", NULL | |
19674 | }; | |
19675 | ||
19676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19679 | { |
19680 | arg2 = wxString_in_helper(obj1); | |
19681 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19682 | temp2 = true; |
994141e6 RD |
19683 | } |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
19687 | ||
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | { | |
19692 | wxColour * resultptr; | |
093d3ff1 | 19693 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 19694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
19695 | } |
19696 | { | |
19697 | if (temp2) | |
19698 | delete arg2; | |
19699 | } | |
19700 | return resultobj; | |
19701 | fail: | |
19702 | { | |
19703 | if (temp2) | |
19704 | delete arg2; | |
19705 | } | |
19706 | return NULL; | |
d14a1e28 RD |
19707 | } |
19708 | ||
19709 | ||
c32bde28 | 19710 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19711 | PyObject *resultobj; |
19712 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
19713 | wxColour *arg2 = 0 ; | |
19714 | wxString result; | |
19715 | wxColour temp2 ; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | PyObject * obj1 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self",(char *) "colour", NULL | |
19720 | }; | |
d14a1e28 | 19721 | |
994141e6 | 19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19725 | { |
19726 | arg2 = &temp2; | |
19727 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19728 | } | |
19729 | { | |
19730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19731 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
19732 | ||
19733 | wxPyEndAllowThreads(__tstate); | |
19734 | if (PyErr_Occurred()) SWIG_fail; | |
19735 | } | |
19736 | { | |
19737 | #if wxUSE_UNICODE | |
19738 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19739 | #else | |
19740 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19741 | #endif | |
19742 | } | |
19743 | return resultobj; | |
19744 | fail: | |
19745 | return NULL; | |
d14a1e28 RD |
19746 | } |
19747 | ||
19748 | ||
c32bde28 | 19749 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19750 | PyObject *resultobj; |
19751 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
19752 | wxString *arg2 = 0 ; | |
19753 | wxColour *arg3 = 0 ; | |
ae8162c8 | 19754 | bool temp2 = false ; |
994141e6 RD |
19755 | wxColour temp3 ; |
19756 | PyObject * obj0 = 0 ; | |
19757 | PyObject * obj1 = 0 ; | |
19758 | PyObject * obj2 = 0 ; | |
19759 | char *kwnames[] = { | |
19760 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
19761 | }; | |
19762 | ||
19763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19766 | { |
19767 | arg2 = wxString_in_helper(obj1); | |
19768 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19769 | temp2 = true; |
994141e6 RD |
19770 | } |
19771 | { | |
19772 | arg3 = &temp3; | |
19773 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19774 | } | |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
19782 | Py_INCREF(Py_None); resultobj = Py_None; | |
19783 | { | |
19784 | if (temp2) | |
19785 | delete arg2; | |
19786 | } | |
19787 | return resultobj; | |
19788 | fail: | |
19789 | { | |
19790 | if (temp2) | |
19791 | delete arg2; | |
19792 | } | |
19793 | return NULL; | |
d14a1e28 RD |
19794 | } |
19795 | ||
19796 | ||
c32bde28 | 19797 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19798 | PyObject *resultobj; |
19799 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
19800 | wxString *arg2 = 0 ; | |
19801 | int arg3 ; | |
19802 | int arg4 ; | |
19803 | int arg5 ; | |
ae8162c8 | 19804 | bool temp2 = false ; |
994141e6 RD |
19805 | PyObject * obj0 = 0 ; |
19806 | PyObject * obj1 = 0 ; | |
19807 | PyObject * obj2 = 0 ; | |
19808 | PyObject * obj3 = 0 ; | |
19809 | PyObject * obj4 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
19812 | }; | |
d14a1e28 | 19813 | |
994141e6 | 19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
19815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19817 | { |
19818 | arg2 = wxString_in_helper(obj1); | |
19819 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19820 | temp2 = true; |
994141e6 | 19821 | } |
093d3ff1 RD |
19822 | { |
19823 | arg3 = (int)(SWIG_As_int(obj2)); | |
19824 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19825 | } | |
19826 | { | |
19827 | arg4 = (int)(SWIG_As_int(obj3)); | |
19828 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19829 | } | |
19830 | { | |
19831 | arg5 = (int)(SWIG_As_int(obj4)); | |
19832 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19833 | } | |
994141e6 RD |
19834 | { |
19835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19836 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19837 | ||
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
19841 | Py_INCREF(Py_None); resultobj = Py_None; | |
19842 | { | |
19843 | if (temp2) | |
19844 | delete arg2; | |
19845 | } | |
19846 | return resultobj; | |
19847 | fail: | |
19848 | { | |
19849 | if (temp2) | |
19850 | delete arg2; | |
19851 | } | |
19852 | return NULL; | |
d14a1e28 RD |
19853 | } |
19854 | ||
19855 | ||
c32bde28 | 19856 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
19857 | PyObject *obj; |
19858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19859 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
19860 | Py_INCREF(obj); | |
19861 | return Py_BuildValue((char *)""); | |
d14a1e28 | 19862 | } |
c32bde28 | 19863 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19864 | PyObject *resultobj; |
19865 | wxFontList *arg1 = (wxFontList *) 0 ; | |
19866 | wxFont *arg2 = (wxFont *) 0 ; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | PyObject * obj1 = 0 ; | |
19869 | char *kwnames[] = { | |
19870 | (char *) "self",(char *) "font", NULL | |
19871 | }; | |
d14a1e28 | 19872 | |
994141e6 | 19873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
19875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19876 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
19877 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19878 | { |
19879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19880 | (arg1)->AddFont(arg2); | |
19881 | ||
19882 | wxPyEndAllowThreads(__tstate); | |
19883 | if (PyErr_Occurred()) SWIG_fail; | |
19884 | } | |
19885 | Py_INCREF(Py_None); resultobj = Py_None; | |
19886 | return resultobj; | |
19887 | fail: | |
19888 | return NULL; | |
d14a1e28 RD |
19889 | } |
19890 | ||
19891 | ||
c32bde28 | 19892 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19893 | PyObject *resultobj; |
19894 | wxFontList *arg1 = (wxFontList *) 0 ; | |
19895 | int arg2 ; | |
19896 | int arg3 ; | |
19897 | int arg4 ; | |
19898 | int arg5 ; | |
ae8162c8 | 19899 | bool arg6 = (bool) false ; |
994141e6 RD |
19900 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19901 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
093d3ff1 | 19902 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; |
994141e6 | 19903 | wxFont *result; |
ae8162c8 | 19904 | bool temp7 = false ; |
994141e6 RD |
19905 | PyObject * obj0 = 0 ; |
19906 | PyObject * obj1 = 0 ; | |
19907 | PyObject * obj2 = 0 ; | |
19908 | PyObject * obj3 = 0 ; | |
19909 | PyObject * obj4 = 0 ; | |
19910 | PyObject * obj5 = 0 ; | |
19911 | PyObject * obj6 = 0 ; | |
19912 | PyObject * obj7 = 0 ; | |
19913 | char *kwnames[] = { | |
19914 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
19915 | }; | |
d14a1e28 | 19916 | |
994141e6 | 19917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
19918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
19919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19920 | { | |
19921 | arg2 = (int)(SWIG_As_int(obj1)); | |
19922 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19923 | } | |
19924 | { | |
19925 | arg3 = (int)(SWIG_As_int(obj2)); | |
19926 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19927 | } | |
19928 | { | |
19929 | arg4 = (int)(SWIG_As_int(obj3)); | |
19930 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19931 | } | |
19932 | { | |
19933 | arg5 = (int)(SWIG_As_int(obj4)); | |
19934 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19935 | } | |
994141e6 | 19936 | if (obj5) { |
093d3ff1 RD |
19937 | { |
19938 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
19939 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19940 | } | |
994141e6 RD |
19941 | } |
19942 | if (obj6) { | |
19943 | { | |
19944 | arg7 = wxString_in_helper(obj6); | |
19945 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19946 | temp7 = true; |
994141e6 RD |
19947 | } |
19948 | } | |
19949 | if (obj7) { | |
093d3ff1 RD |
19950 | { |
19951 | arg8 = (wxFontEncoding)(SWIG_As_int(obj7)); | |
19952 | if (SWIG_arg_fail(8)) SWIG_fail; | |
19953 | } | |
994141e6 RD |
19954 | } |
19955 | { | |
19956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19957 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
19958 | ||
19959 | wxPyEndAllowThreads(__tstate); | |
19960 | if (PyErr_Occurred()) SWIG_fail; | |
19961 | } | |
15afbcd0 | 19962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
19963 | { |
19964 | if (temp7) | |
19965 | delete arg7; | |
19966 | } | |
19967 | return resultobj; | |
19968 | fail: | |
19969 | { | |
19970 | if (temp7) | |
19971 | delete arg7; | |
19972 | } | |
19973 | return NULL; | |
d14a1e28 RD |
19974 | } |
19975 | ||
19976 | ||
c32bde28 | 19977 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
19978 | PyObject *resultobj; |
19979 | wxFontList *arg1 = (wxFontList *) 0 ; | |
19980 | wxFont *arg2 = (wxFont *) 0 ; | |
19981 | PyObject * obj0 = 0 ; | |
19982 | PyObject * obj1 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self",(char *) "font", NULL | |
19985 | }; | |
d14a1e28 | 19986 | |
994141e6 | 19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
19989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19990 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
19991 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19992 | { |
19993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19994 | (arg1)->RemoveFont(arg2); | |
19995 | ||
19996 | wxPyEndAllowThreads(__tstate); | |
19997 | if (PyErr_Occurred()) SWIG_fail; | |
19998 | } | |
19999 | Py_INCREF(Py_None); resultobj = Py_None; | |
20000 | return resultobj; | |
20001 | fail: | |
20002 | return NULL; | |
d14a1e28 RD |
20003 | } |
20004 | ||
20005 | ||
c32bde28 | 20006 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
20007 | PyObject *resultobj; |
20008 | wxFontList *arg1 = (wxFontList *) 0 ; | |
20009 | int result; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | char *kwnames[] = { | |
20012 | (char *) "self", NULL | |
20013 | }; | |
d14a1e28 | 20014 | |
994141e6 | 20015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
20017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
20018 | { |
20019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20020 | result = (int)(arg1)->GetCount(); | |
20021 | ||
20022 | wxPyEndAllowThreads(__tstate); | |
20023 | if (PyErr_Occurred()) SWIG_fail; | |
20024 | } | |
093d3ff1 RD |
20025 | { |
20026 | resultobj = SWIG_From_int((int)(result)); | |
20027 | } | |
994141e6 RD |
20028 | return resultobj; |
20029 | fail: | |
20030 | return NULL; | |
d14a1e28 RD |
20031 | } |
20032 | ||
20033 | ||
c32bde28 | 20034 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
20035 | PyObject *obj; |
20036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20037 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
20038 | Py_INCREF(obj); | |
20039 | return Py_BuildValue((char *)""); | |
20040 | } | |
c32bde28 | 20041 | static int _wrap_TheFontList_set(PyObject *) { |
d14a1e28 RD |
20042 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
20043 | return 1; | |
20044 | } | |
20045 | ||
20046 | ||
093d3ff1 | 20047 | static PyObject *_wrap_TheFontList_get(void) { |
d14a1e28 RD |
20048 | PyObject *pyobj; |
20049 | ||
15afbcd0 | 20050 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
20051 | return pyobj; |
20052 | } | |
20053 | ||
20054 | ||
c32bde28 | 20055 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
20056 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
20057 | return 1; | |
20058 | } | |
20059 | ||
20060 | ||
093d3ff1 | 20061 | static PyObject *_wrap_ThePenList_get(void) { |
d14a1e28 RD |
20062 | PyObject *pyobj; |
20063 | ||
15afbcd0 | 20064 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
20065 | return pyobj; |
20066 | } | |
20067 | ||
20068 | ||
c32bde28 | 20069 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
20070 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
20071 | return 1; | |
20072 | } | |
20073 | ||
20074 | ||
093d3ff1 | 20075 | static PyObject *_wrap_TheBrushList_get(void) { |
d14a1e28 RD |
20076 | PyObject *pyobj; |
20077 | ||
15afbcd0 | 20078 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
20079 | return pyobj; |
20080 | } | |
20081 | ||
20082 | ||
c32bde28 | 20083 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
20084 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
20085 | return 1; | |
20086 | } | |
20087 | ||
20088 | ||
093d3ff1 | 20089 | static PyObject *_wrap_TheColourDatabase_get(void) { |
d14a1e28 RD |
20090 | PyObject *pyobj; |
20091 | ||
15afbcd0 | 20092 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
20093 | return pyobj; |
20094 | } | |
20095 | ||
20096 | ||
c32bde28 | 20097 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20098 | PyObject *resultobj; |
e811c8ce | 20099 | wxEffects *result; |
d14a1e28 | 20100 | char *kwnames[] = { |
e811c8ce | 20101 | NULL |
d14a1e28 RD |
20102 | }; |
20103 | ||
e811c8ce | 20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
20105 | { |
20106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20107 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
20108 | |
20109 | wxPyEndAllowThreads(__tstate); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | } | |
15afbcd0 | 20112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
20113 | return resultobj; |
20114 | fail: | |
20115 | return NULL; | |
20116 | } | |
20117 | ||
20118 | ||
c32bde28 | 20119 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20120 | PyObject *resultobj; |
e811c8ce RD |
20121 | wxEffects *arg1 = (wxEffects *) 0 ; |
20122 | wxColour result; | |
d14a1e28 | 20123 | PyObject * obj0 = 0 ; |
d14a1e28 | 20124 | char *kwnames[] = { |
e811c8ce | 20125 | (char *) "self", NULL |
d14a1e28 RD |
20126 | }; |
20127 | ||
e811c8ce | 20128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20131 | { |
20132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20133 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
20134 | |
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
e811c8ce RD |
20138 | { |
20139 | wxColour * resultptr; | |
093d3ff1 | 20140 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 20141 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 20142 | } |
d14a1e28 RD |
20143 | return resultobj; |
20144 | fail: | |
20145 | return NULL; | |
20146 | } | |
20147 | ||
20148 | ||
c32bde28 | 20149 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20150 | PyObject *resultobj; |
e811c8ce RD |
20151 | wxEffects *arg1 = (wxEffects *) 0 ; |
20152 | wxColour result; | |
d14a1e28 | 20153 | PyObject * obj0 = 0 ; |
d14a1e28 | 20154 | char *kwnames[] = { |
e811c8ce | 20155 | (char *) "self", NULL |
d14a1e28 RD |
20156 | }; |
20157 | ||
e811c8ce | 20158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20161 | { |
20162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20163 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
20164 | |
20165 | wxPyEndAllowThreads(__tstate); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
d14a1e28 | 20168 | { |
e811c8ce | 20169 | wxColour * resultptr; |
093d3ff1 | 20170 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 20171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20172 | } |
20173 | return resultobj; | |
20174 | fail: | |
d14a1e28 RD |
20175 | return NULL; |
20176 | } | |
20177 | ||
20178 | ||
c32bde28 | 20179 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20180 | PyObject *resultobj; |
e811c8ce RD |
20181 | wxEffects *arg1 = (wxEffects *) 0 ; |
20182 | wxColour result; | |
d14a1e28 | 20183 | PyObject * obj0 = 0 ; |
d14a1e28 | 20184 | char *kwnames[] = { |
e811c8ce | 20185 | (char *) "self", NULL |
d14a1e28 RD |
20186 | }; |
20187 | ||
e811c8ce | 20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20191 | { |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20193 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
20194 | |
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
e811c8ce RD |
20198 | { |
20199 | wxColour * resultptr; | |
093d3ff1 | 20200 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 20201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 20202 | } |
d14a1e28 RD |
20203 | return resultobj; |
20204 | fail: | |
20205 | return NULL; | |
20206 | } | |
20207 | ||
20208 | ||
c32bde28 | 20209 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20210 | PyObject *resultobj; |
e811c8ce RD |
20211 | wxEffects *arg1 = (wxEffects *) 0 ; |
20212 | wxColour result; | |
d14a1e28 RD |
20213 | PyObject * obj0 = 0 ; |
20214 | char *kwnames[] = { | |
e811c8ce | 20215 | (char *) "self", NULL |
d14a1e28 RD |
20216 | }; |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20221 | { |
20222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20223 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
20224 | ||
20225 | wxPyEndAllowThreads(__tstate); | |
20226 | if (PyErr_Occurred()) SWIG_fail; | |
20227 | } | |
20228 | { | |
20229 | wxColour * resultptr; | |
093d3ff1 | 20230 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 20231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20232 | } |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
c32bde28 | 20239 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20240 | PyObject *resultobj; |
20241 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20242 | wxColour result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | char *kwnames[] = { | |
20245 | (char *) "self", NULL | |
20246 | }; | |
20247 | ||
20248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20251 | { |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
20254 | ||
20255 | wxPyEndAllowThreads(__tstate); | |
20256 | if (PyErr_Occurred()) SWIG_fail; | |
20257 | } | |
20258 | { | |
20259 | wxColour * resultptr; | |
093d3ff1 | 20260 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 20261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20262 | } |
20263 | return resultobj; | |
20264 | fail: | |
20265 | return NULL; | |
20266 | } | |
20267 | ||
20268 | ||
c32bde28 | 20269 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20270 | PyObject *resultobj; |
20271 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20272 | wxColour *arg2 = 0 ; | |
20273 | wxColour temp2 ; | |
20274 | PyObject * obj0 = 0 ; | |
20275 | PyObject * obj1 = 0 ; | |
20276 | char *kwnames[] = { | |
20277 | (char *) "self",(char *) "c", NULL | |
20278 | }; | |
20279 | ||
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20283 | { |
20284 | arg2 = &temp2; | |
20285 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20286 | } | |
20287 | { | |
20288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20289 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
20290 | ||
20291 | wxPyEndAllowThreads(__tstate); | |
20292 | if (PyErr_Occurred()) SWIG_fail; | |
20293 | } | |
20294 | Py_INCREF(Py_None); resultobj = Py_None; | |
20295 | return resultobj; | |
20296 | fail: | |
20297 | return NULL; | |
20298 | } | |
20299 | ||
20300 | ||
c32bde28 | 20301 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20302 | PyObject *resultobj; |
20303 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20304 | wxColour *arg2 = 0 ; | |
20305 | wxColour temp2 ; | |
20306 | PyObject * obj0 = 0 ; | |
20307 | PyObject * obj1 = 0 ; | |
20308 | char *kwnames[] = { | |
20309 | (char *) "self",(char *) "c", NULL | |
20310 | }; | |
20311 | ||
20312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20315 | { |
20316 | arg2 = &temp2; | |
20317 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20318 | } | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
20322 | ||
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
20326 | Py_INCREF(Py_None); resultobj = Py_None; | |
20327 | return resultobj; | |
20328 | fail: | |
20329 | return NULL; | |
20330 | } | |
20331 | ||
20332 | ||
c32bde28 | 20333 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20334 | PyObject *resultobj; |
20335 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20336 | wxColour *arg2 = 0 ; | |
20337 | wxColour temp2 ; | |
20338 | PyObject * obj0 = 0 ; | |
20339 | PyObject * obj1 = 0 ; | |
20340 | char *kwnames[] = { | |
20341 | (char *) "self",(char *) "c", NULL | |
20342 | }; | |
20343 | ||
20344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20347 | { |
20348 | arg2 = &temp2; | |
20349 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20350 | } | |
20351 | { | |
20352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20353 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
20354 | ||
20355 | wxPyEndAllowThreads(__tstate); | |
20356 | if (PyErr_Occurred()) SWIG_fail; | |
20357 | } | |
20358 | Py_INCREF(Py_None); resultobj = Py_None; | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
c32bde28 | 20365 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20366 | PyObject *resultobj; |
20367 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20368 | wxColour *arg2 = 0 ; | |
20369 | wxColour temp2 ; | |
20370 | PyObject * obj0 = 0 ; | |
20371 | PyObject * obj1 = 0 ; | |
20372 | char *kwnames[] = { | |
20373 | (char *) "self",(char *) "c", NULL | |
20374 | }; | |
20375 | ||
20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20379 | { |
20380 | arg2 = &temp2; | |
20381 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20382 | } | |
20383 | { | |
20384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20385 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
20386 | ||
20387 | wxPyEndAllowThreads(__tstate); | |
20388 | if (PyErr_Occurred()) SWIG_fail; | |
20389 | } | |
20390 | Py_INCREF(Py_None); resultobj = Py_None; | |
20391 | return resultobj; | |
20392 | fail: | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
c32bde28 | 20397 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20398 | PyObject *resultobj; |
20399 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20400 | wxColour *arg2 = 0 ; | |
20401 | wxColour temp2 ; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | char *kwnames[] = { | |
20405 | (char *) "self",(char *) "c", NULL | |
20406 | }; | |
20407 | ||
20408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20411 | { |
20412 | arg2 = &temp2; | |
20413 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20414 | } | |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | Py_INCREF(Py_None); resultobj = Py_None; | |
20423 | return resultobj; | |
20424 | fail: | |
20425 | return NULL; | |
20426 | } | |
20427 | ||
20428 | ||
c32bde28 | 20429 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20430 | PyObject *resultobj; |
20431 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20432 | wxColour *arg2 = 0 ; | |
20433 | wxColour *arg3 = 0 ; | |
20434 | wxColour *arg4 = 0 ; | |
20435 | wxColour *arg5 = 0 ; | |
20436 | wxColour *arg6 = 0 ; | |
20437 | wxColour temp2 ; | |
20438 | wxColour temp3 ; | |
20439 | wxColour temp4 ; | |
20440 | wxColour temp5 ; | |
20441 | wxColour temp6 ; | |
20442 | PyObject * obj0 = 0 ; | |
20443 | PyObject * obj1 = 0 ; | |
20444 | PyObject * obj2 = 0 ; | |
20445 | PyObject * obj3 = 0 ; | |
20446 | PyObject * obj4 = 0 ; | |
20447 | PyObject * obj5 = 0 ; | |
20448 | char *kwnames[] = { | |
20449 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
20453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20455 | { |
20456 | arg2 = &temp2; | |
20457 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20458 | } | |
20459 | { | |
20460 | arg3 = &temp3; | |
20461 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
20462 | } | |
20463 | { | |
20464 | arg4 = &temp4; | |
20465 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
20466 | } | |
20467 | { | |
20468 | arg5 = &temp5; | |
20469 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
20470 | } | |
20471 | { | |
20472 | arg6 = &temp6; | |
20473 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
20474 | } | |
20475 | { | |
20476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20477 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
20478 | ||
20479 | wxPyEndAllowThreads(__tstate); | |
20480 | if (PyErr_Occurred()) SWIG_fail; | |
20481 | } | |
20482 | Py_INCREF(Py_None); resultobj = Py_None; | |
20483 | return resultobj; | |
20484 | fail: | |
20485 | return NULL; | |
20486 | } | |
20487 | ||
20488 | ||
c32bde28 | 20489 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20490 | PyObject *resultobj; |
20491 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20492 | wxDC *arg2 = 0 ; | |
20493 | wxRect *arg3 = 0 ; | |
20494 | int arg4 = (int) 1 ; | |
20495 | wxRect temp3 ; | |
20496 | PyObject * obj0 = 0 ; | |
20497 | PyObject * obj1 = 0 ; | |
20498 | PyObject * obj2 = 0 ; | |
994141e6 | 20499 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
20500 | char *kwnames[] = { |
20501 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
20502 | }; | |
20503 | ||
994141e6 | 20504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20507 | { | |
20508 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20510 | if (arg2 == NULL) { | |
20511 | SWIG_null_ref("wxDC"); | |
20512 | } | |
20513 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20514 | } |
20515 | { | |
20516 | arg3 = &temp3; | |
20517 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20518 | } | |
994141e6 | 20519 | if (obj3) { |
093d3ff1 RD |
20520 | { |
20521 | arg4 = (int)(SWIG_As_int(obj3)); | |
20522 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20523 | } | |
994141e6 | 20524 | } |
d14a1e28 RD |
20525 | { |
20526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20527 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
20528 | ||
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
20532 | Py_INCREF(Py_None); resultobj = Py_None; | |
20533 | return resultobj; | |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
c32bde28 | 20539 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20540 | PyObject *resultobj; |
20541 | wxEffects *arg1 = (wxEffects *) 0 ; | |
20542 | wxRect *arg2 = 0 ; | |
20543 | wxDC *arg3 = 0 ; | |
20544 | wxBitmap *arg4 = 0 ; | |
20545 | bool result; | |
20546 | wxRect temp2 ; | |
20547 | PyObject * obj0 = 0 ; | |
20548 | PyObject * obj1 = 0 ; | |
20549 | PyObject * obj2 = 0 ; | |
20550 | PyObject * obj3 = 0 ; | |
20551 | char *kwnames[] = { | |
20552 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
20553 | }; | |
20554 | ||
20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
20556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20558 | { |
20559 | arg2 = &temp2; | |
20560 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20561 | } | |
093d3ff1 RD |
20562 | { |
20563 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20564 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20565 | if (arg3 == NULL) { | |
20566 | SWIG_null_ref("wxDC"); | |
20567 | } | |
20568 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 | 20569 | } |
093d3ff1 RD |
20570 | { |
20571 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20572 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20573 | if (arg4 == NULL) { | |
20574 | SWIG_null_ref("wxBitmap"); | |
20575 | } | |
20576 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
20577 | } |
20578 | { | |
20579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20580 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
20581 | ||
20582 | wxPyEndAllowThreads(__tstate); | |
20583 | if (PyErr_Occurred()) SWIG_fail; | |
20584 | } | |
4f89f6a3 RD |
20585 | { |
20586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20587 | } | |
d14a1e28 RD |
20588 | return resultobj; |
20589 | fail: | |
20590 | return NULL; | |
20591 | } | |
20592 | ||
20593 | ||
c32bde28 | 20594 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20595 | PyObject *obj; |
20596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20597 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
20598 | Py_INCREF(obj); | |
20599 | return Py_BuildValue((char *)""); | |
20600 | } | |
8d38bd1d RD |
20601 | static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { |
20602 | PyObject *resultobj; | |
20603 | int arg1 ; | |
20604 | int arg2 ; | |
20605 | bool arg3 ; | |
20606 | wxSplitterRenderParams *result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | PyObject * obj1 = 0 ; | |
20609 | PyObject * obj2 = 0 ; | |
20610 | char *kwnames[] = { | |
20611 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
20612 | }; | |
20613 | ||
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20615 | { | |
20616 | arg1 = (int)(SWIG_As_int(obj0)); | |
20617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20618 | } | |
20619 | { | |
20620 | arg2 = (int)(SWIG_As_int(obj1)); | |
20621 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20622 | } | |
20623 | { | |
20624 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20625 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20626 | } | |
20627 | { | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
20630 | ||
20631 | wxPyEndAllowThreads(__tstate); | |
20632 | if (PyErr_Occurred()) SWIG_fail; | |
20633 | } | |
20634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1); | |
20635 | return resultobj; | |
20636 | fail: | |
20637 | return NULL; | |
20638 | } | |
20639 | ||
20640 | ||
20641 | static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
20642 | PyObject *resultobj; | |
20643 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
20644 | PyObject * obj0 = 0 ; | |
20645 | char *kwnames[] = { | |
20646 | (char *) "self", NULL | |
20647 | }; | |
20648 | ||
20649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail; | |
20650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20652 | { | |
20653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20654 | delete arg1; | |
20655 | ||
20656 | wxPyEndAllowThreads(__tstate); | |
20657 | if (PyErr_Occurred()) SWIG_fail; | |
20658 | } | |
20659 | Py_INCREF(Py_None); resultobj = Py_None; | |
20660 | return resultobj; | |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
20667 | PyObject *resultobj; | |
20668 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
20669 | int result; | |
20670 | PyObject * obj0 = 0 ; | |
20671 | char *kwnames[] = { | |
20672 | (char *) "self", NULL | |
20673 | }; | |
20674 | ||
20675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail; | |
20676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20678 | result = (int)(int) ((arg1)->widthSash); | |
20679 | ||
20680 | { | |
20681 | resultobj = SWIG_From_int((int)(result)); | |
20682 | } | |
20683 | return resultobj; | |
20684 | fail: | |
20685 | return NULL; | |
20686 | } | |
20687 | ||
20688 | ||
20689 | static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
20690 | PyObject *resultobj; | |
20691 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
20692 | int result; | |
20693 | PyObject * obj0 = 0 ; | |
20694 | char *kwnames[] = { | |
20695 | (char *) "self", NULL | |
20696 | }; | |
20697 | ||
20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail; | |
20699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20701 | result = (int)(int) ((arg1)->border); | |
20702 | ||
20703 | { | |
20704 | resultobj = SWIG_From_int((int)(result)); | |
20705 | } | |
20706 | return resultobj; | |
20707 | fail: | |
20708 | return NULL; | |
20709 | } | |
20710 | ||
20711 | ||
20712 | static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
20713 | PyObject *resultobj; | |
20714 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
20715 | bool result; | |
20716 | PyObject * obj0 = 0 ; | |
20717 | char *kwnames[] = { | |
20718 | (char *) "self", NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail; | |
20722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20724 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
20725 | ||
20726 | { | |
20727 | resultobj = SWIG_From_bool((bool)(result)); | |
20728 | } | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) { | |
20736 | PyObject *obj; | |
20737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20738 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj); | |
20739 | Py_INCREF(obj); | |
20740 | return Py_BuildValue((char *)""); | |
20741 | } | |
20742 | static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
20743 | PyObject *resultobj; | |
20744 | int arg1 ; | |
20745 | int arg2 ; | |
20746 | wxRendererVersion *result; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | PyObject * obj1 = 0 ; | |
20749 | char *kwnames[] = { | |
20750 | (char *) "version_",(char *) "age_", NULL | |
20751 | }; | |
20752 | ||
20753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail; | |
20754 | { | |
20755 | arg1 = (int)(SWIG_As_int(obj0)); | |
20756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20757 | } | |
20758 | { | |
20759 | arg2 = (int)(SWIG_As_int(obj1)); | |
20760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20761 | } | |
20762 | { | |
20763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20764 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
20765 | ||
20766 | wxPyEndAllowThreads(__tstate); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | } | |
20769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1); | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
20776 | static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
20777 | PyObject *resultobj; | |
20778 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
20779 | PyObject * obj0 = 0 ; | |
20780 | char *kwnames[] = { | |
20781 | (char *) "self", NULL | |
20782 | }; | |
20783 | ||
20784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail; | |
20785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
20786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20787 | { | |
20788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20789 | delete arg1; | |
20790 | ||
20791 | wxPyEndAllowThreads(__tstate); | |
20792 | if (PyErr_Occurred()) SWIG_fail; | |
20793 | } | |
20794 | Py_INCREF(Py_None); resultobj = Py_None; | |
20795 | return resultobj; | |
20796 | fail: | |
20797 | return NULL; | |
20798 | } | |
20799 | ||
20800 | ||
20801 | static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) { | |
20802 | PyObject *resultobj; | |
20803 | wxRendererVersion *arg1 = 0 ; | |
20804 | bool result; | |
20805 | PyObject * obj0 = 0 ; | |
20806 | char *kwnames[] = { | |
20807 | (char *) "ver", NULL | |
20808 | }; | |
20809 | ||
20810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail; | |
20811 | { | |
20812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
20813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20814 | if (arg1 == NULL) { | |
20815 | SWIG_null_ref("wxRendererVersion"); | |
20816 | } | |
20817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20818 | } | |
20819 | { | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | { | |
20827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20828 | } | |
20829 | return resultobj; | |
20830 | fail: | |
20831 | return NULL; | |
20832 | } | |
20833 | ||
20834 | ||
20835 | static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
20836 | PyObject *resultobj; | |
20837 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
20838 | int result; | |
20839 | PyObject * obj0 = 0 ; | |
20840 | char *kwnames[] = { | |
20841 | (char *) "self", NULL | |
20842 | }; | |
20843 | ||
20844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail; | |
20845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
20846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20847 | result = (int)(int) ((arg1)->version); | |
20848 | ||
20849 | { | |
20850 | resultobj = SWIG_From_int((int)(result)); | |
20851 | } | |
20852 | return resultobj; | |
20853 | fail: | |
20854 | return NULL; | |
20855 | } | |
20856 | ||
20857 | ||
20858 | static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
20859 | PyObject *resultobj; | |
20860 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
20861 | int result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | char *kwnames[] = { | |
20864 | (char *) "self", NULL | |
20865 | }; | |
20866 | ||
20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail; | |
20868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
20869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20870 | result = (int)(int) ((arg1)->age); | |
20871 | ||
20872 | { | |
20873 | resultobj = SWIG_From_int((int)(result)); | |
20874 | } | |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
20881 | static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) { | |
20882 | PyObject *obj; | |
20883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20884 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj); | |
20885 | Py_INCREF(obj); | |
20886 | return Py_BuildValue((char *)""); | |
20887 | } | |
20888 | static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj; | |
20890 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
20891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20892 | wxDC *arg3 = 0 ; | |
20893 | wxRect *arg4 = 0 ; | |
20894 | int arg5 = (int) 0 ; | |
20895 | wxRect temp4 ; | |
20896 | PyObject * obj0 = 0 ; | |
20897 | PyObject * obj1 = 0 ; | |
20898 | PyObject * obj2 = 0 ; | |
20899 | PyObject * obj3 = 0 ; | |
20900 | PyObject * obj4 = 0 ; | |
20901 | char *kwnames[] = { | |
20902 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
20903 | }; | |
20904 | ||
20905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
20906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
20907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20908 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
20909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20910 | { | |
20911 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20912 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20913 | if (arg3 == NULL) { | |
20914 | SWIG_null_ref("wxDC"); | |
20915 | } | |
20916 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20917 | } | |
20918 | { | |
20919 | arg4 = &temp4; | |
20920 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20921 | } | |
20922 | if (obj4) { | |
20923 | { | |
20924 | arg5 = (int)(SWIG_As_int(obj4)); | |
20925 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20926 | } | |
20927 | } | |
20928 | { | |
20929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20930 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
20931 | ||
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
20935 | Py_INCREF(Py_None); resultobj = Py_None; | |
20936 | return resultobj; | |
20937 | fail: | |
20938 | return NULL; | |
20939 | } | |
20940 | ||
20941 | ||
20942 | static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
20943 | PyObject *resultobj; | |
20944 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
20945 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20946 | wxDC *arg3 = 0 ; | |
20947 | wxRect *arg4 = 0 ; | |
20948 | int arg5 = (int) 0 ; | |
20949 | wxRect temp4 ; | |
20950 | PyObject * obj0 = 0 ; | |
20951 | PyObject * obj1 = 0 ; | |
20952 | PyObject * obj2 = 0 ; | |
20953 | PyObject * obj3 = 0 ; | |
20954 | PyObject * obj4 = 0 ; | |
20955 | char *kwnames[] = { | |
20956 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
20957 | }; | |
20958 | ||
20959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
20960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
20961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20962 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
20963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20964 | { | |
20965 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20966 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20967 | if (arg3 == NULL) { | |
20968 | SWIG_null_ref("wxDC"); | |
20969 | } | |
20970 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20971 | } | |
20972 | { | |
20973 | arg4 = &temp4; | |
20974 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20975 | } | |
20976 | if (obj4) { | |
20977 | { | |
20978 | arg5 = (int)(SWIG_As_int(obj4)); | |
20979 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20980 | } | |
20981 | } | |
20982 | { | |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
20985 | ||
20986 | wxPyEndAllowThreads(__tstate); | |
20987 | if (PyErr_Occurred()) SWIG_fail; | |
20988 | } | |
20989 | Py_INCREF(Py_None); resultobj = Py_None; | |
20990 | return resultobj; | |
20991 | fail: | |
20992 | return NULL; | |
20993 | } | |
20994 | ||
20995 | ||
20996 | static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
20997 | PyObject *resultobj; | |
20998 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
20999 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21000 | wxDC *arg3 = 0 ; | |
21001 | wxRect *arg4 = 0 ; | |
21002 | int arg5 = (int) 0 ; | |
21003 | wxRect temp4 ; | |
21004 | PyObject * obj0 = 0 ; | |
21005 | PyObject * obj1 = 0 ; | |
21006 | PyObject * obj2 = 0 ; | |
21007 | PyObject * obj3 = 0 ; | |
21008 | PyObject * obj4 = 0 ; | |
21009 | char *kwnames[] = { | |
21010 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21011 | }; | |
21012 | ||
21013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21016 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21018 | { | |
21019 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21020 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21021 | if (arg3 == NULL) { | |
21022 | SWIG_null_ref("wxDC"); | |
21023 | } | |
21024 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21025 | } | |
21026 | { | |
21027 | arg4 = &temp4; | |
21028 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21029 | } | |
21030 | if (obj4) { | |
21031 | { | |
21032 | arg5 = (int)(SWIG_As_int(obj4)); | |
21033 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21034 | } | |
21035 | } | |
21036 | { | |
21037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21038 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21039 | ||
21040 | wxPyEndAllowThreads(__tstate); | |
21041 | if (PyErr_Occurred()) SWIG_fail; | |
21042 | } | |
21043 | Py_INCREF(Py_None); resultobj = Py_None; | |
21044 | return resultobj; | |
21045 | fail: | |
21046 | return NULL; | |
21047 | } | |
21048 | ||
21049 | ||
21050 | static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) { | |
21051 | PyObject *resultobj; | |
21052 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21054 | wxDC *arg3 = 0 ; | |
21055 | wxSize *arg4 = 0 ; | |
21056 | int arg5 ; | |
21057 | wxOrientation arg6 ; | |
21058 | int arg7 = (int) 0 ; | |
21059 | wxSize temp4 ; | |
21060 | PyObject * obj0 = 0 ; | |
21061 | PyObject * obj1 = 0 ; | |
21062 | PyObject * obj2 = 0 ; | |
21063 | PyObject * obj3 = 0 ; | |
21064 | PyObject * obj4 = 0 ; | |
21065 | PyObject * obj5 = 0 ; | |
21066 | PyObject * obj6 = 0 ; | |
21067 | char *kwnames[] = { | |
21068 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
21069 | }; | |
21070 | ||
21071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21074 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21076 | { | |
21077 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21078 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21079 | if (arg3 == NULL) { | |
21080 | SWIG_null_ref("wxDC"); | |
21081 | } | |
21082 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21083 | } | |
21084 | { | |
21085 | arg4 = &temp4; | |
21086 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21087 | } | |
21088 | { | |
21089 | arg5 = (int)(SWIG_As_int(obj4)); | |
21090 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21091 | } | |
21092 | { | |
21093 | arg6 = (wxOrientation)(SWIG_As_int(obj5)); | |
21094 | if (SWIG_arg_fail(6)) SWIG_fail; | |
21095 | } | |
21096 | if (obj6) { | |
21097 | { | |
21098 | arg7 = (int)(SWIG_As_int(obj6)); | |
21099 | if (SWIG_arg_fail(7)) SWIG_fail; | |
21100 | } | |
21101 | } | |
21102 | { | |
21103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21104 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,(wxOrientation )arg6,arg7); | |
21105 | ||
21106 | wxPyEndAllowThreads(__tstate); | |
21107 | if (PyErr_Occurred()) SWIG_fail; | |
21108 | } | |
21109 | Py_INCREF(Py_None); resultobj = Py_None; | |
21110 | return resultobj; | |
21111 | fail: | |
21112 | return NULL; | |
21113 | } | |
21114 | ||
21115 | ||
21116 | static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
21117 | PyObject *resultobj; | |
21118 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21120 | wxDC *arg3 = 0 ; | |
21121 | wxRect *arg4 = 0 ; | |
21122 | int arg5 = (int) 0 ; | |
21123 | wxRect temp4 ; | |
21124 | PyObject * obj0 = 0 ; | |
21125 | PyObject * obj1 = 0 ; | |
21126 | PyObject * obj2 = 0 ; | |
21127 | PyObject * obj3 = 0 ; | |
21128 | PyObject * obj4 = 0 ; | |
21129 | char *kwnames[] = { | |
21130 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21131 | }; | |
21132 | ||
21133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21136 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21138 | { | |
21139 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21140 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21141 | if (arg3 == NULL) { | |
21142 | SWIG_null_ref("wxDC"); | |
21143 | } | |
21144 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21145 | } | |
21146 | { | |
21147 | arg4 = &temp4; | |
21148 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21149 | } | |
21150 | if (obj4) { | |
21151 | { | |
21152 | arg5 = (int)(SWIG_As_int(obj4)); | |
21153 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21154 | } | |
21155 | } | |
21156 | { | |
21157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21158 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | Py_INCREF(Py_None); resultobj = Py_None; | |
21164 | return resultobj; | |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
21171 | PyObject *resultobj; | |
21172 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21174 | wxDC *arg3 = 0 ; | |
21175 | wxRect *arg4 = 0 ; | |
21176 | int arg5 = (int) 0 ; | |
21177 | wxRect temp4 ; | |
21178 | PyObject * obj0 = 0 ; | |
21179 | PyObject * obj1 = 0 ; | |
21180 | PyObject * obj2 = 0 ; | |
21181 | PyObject * obj3 = 0 ; | |
21182 | PyObject * obj4 = 0 ; | |
21183 | char *kwnames[] = { | |
21184 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21185 | }; | |
21186 | ||
21187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21190 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21192 | { | |
21193 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21194 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21195 | if (arg3 == NULL) { | |
21196 | SWIG_null_ref("wxDC"); | |
21197 | } | |
21198 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21199 | } | |
21200 | { | |
21201 | arg4 = &temp4; | |
21202 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21203 | } | |
21204 | if (obj4) { | |
21205 | { | |
21206 | arg5 = (int)(SWIG_As_int(obj4)); | |
21207 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21208 | } | |
21209 | } | |
21210 | { | |
21211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21212 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21213 | ||
21214 | wxPyEndAllowThreads(__tstate); | |
21215 | if (PyErr_Occurred()) SWIG_fail; | |
21216 | } | |
21217 | Py_INCREF(Py_None); resultobj = Py_None; | |
21218 | return resultobj; | |
21219 | fail: | |
21220 | return NULL; | |
21221 | } | |
21222 | ||
21223 | ||
21224 | static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
21225 | PyObject *resultobj; | |
21226 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21228 | SwigValueWrapper<wxSplitterRenderParams > result; | |
21229 | PyObject * obj0 = 0 ; | |
21230 | PyObject * obj1 = 0 ; | |
21231 | char *kwnames[] = { | |
21232 | (char *) "self",(char *) "win", NULL | |
21233 | }; | |
21234 | ||
21235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail; | |
21236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21238 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21239 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21240 | { | |
21241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21242 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
21243 | ||
21244 | wxPyEndAllowThreads(__tstate); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
21247 | { | |
21248 | wxSplitterRenderParams * resultptr; | |
21249 | resultptr = new wxSplitterRenderParams((wxSplitterRenderParams &)(result)); | |
21250 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1); | |
21251 | } | |
21252 | return resultobj; | |
21253 | fail: | |
21254 | return NULL; | |
21255 | } | |
21256 | ||
21257 | ||
21258 | static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
21259 | PyObject *resultobj; | |
21260 | wxRendererNative *result; | |
21261 | char *kwnames[] = { | |
21262 | NULL | |
21263 | }; | |
21264 | ||
21265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail; | |
21266 | { | |
21267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21268 | { | |
21269 | wxRendererNative &_result_ref = wxRendererNative::Get(); | |
21270 | result = (wxRendererNative *) &_result_ref; | |
21271 | } | |
21272 | ||
21273 | wxPyEndAllowThreads(__tstate); | |
21274 | if (PyErr_Occurred()) SWIG_fail; | |
21275 | } | |
21276 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21277 | return resultobj; | |
21278 | fail: | |
21279 | return NULL; | |
21280 | } | |
21281 | ||
21282 | ||
21283 | static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) { | |
21284 | PyObject *resultobj; | |
21285 | wxRendererNative *result; | |
21286 | char *kwnames[] = { | |
21287 | NULL | |
21288 | }; | |
21289 | ||
21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail; | |
21291 | { | |
21292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21293 | { | |
21294 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); | |
21295 | result = (wxRendererNative *) &_result_ref; | |
21296 | } | |
21297 | ||
21298 | wxPyEndAllowThreads(__tstate); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
21301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21302 | return resultobj; | |
21303 | fail: | |
21304 | return NULL; | |
21305 | } | |
21306 | ||
21307 | ||
21308 | static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) { | |
21309 | PyObject *resultobj; | |
21310 | wxRendererNative *result; | |
21311 | char *kwnames[] = { | |
21312 | NULL | |
21313 | }; | |
21314 | ||
21315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail; | |
21316 | { | |
21317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21318 | { | |
21319 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); | |
21320 | result = (wxRendererNative *) &_result_ref; | |
21321 | } | |
21322 | ||
21323 | wxPyEndAllowThreads(__tstate); | |
21324 | if (PyErr_Occurred()) SWIG_fail; | |
21325 | } | |
21326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21327 | return resultobj; | |
21328 | fail: | |
21329 | return NULL; | |
21330 | } | |
21331 | ||
21332 | ||
21333 | static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
21334 | PyObject *resultobj; | |
21335 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21336 | wxRendererNative *result; | |
21337 | PyObject * obj0 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "renderer", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail; | |
21343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21345 | { | |
21346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21347 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
21348 | ||
21349 | wxPyEndAllowThreads(__tstate); | |
21350 | if (PyErr_Occurred()) SWIG_fail; | |
21351 | } | |
21352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21353 | return resultobj; | |
21354 | fail: | |
21355 | return NULL; | |
21356 | } | |
21357 | ||
21358 | ||
21359 | static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
21360 | PyObject *resultobj; | |
21361 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
21362 | SwigValueWrapper<wxRendererVersion > result; | |
21363 | PyObject * obj0 = 0 ; | |
21364 | char *kwnames[] = { | |
21365 | (char *) "self", NULL | |
21366 | }; | |
21367 | ||
21368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail; | |
21369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | { | |
21379 | wxRendererVersion * resultptr; | |
21380 | resultptr = new wxRendererVersion((wxRendererVersion &)(result)); | |
21381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1); | |
21382 | } | |
21383 | return resultobj; | |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
21389 | static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) { | |
21390 | PyObject *obj; | |
21391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21392 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj); | |
21393 | Py_INCREF(obj); | |
21394 | return Py_BuildValue((char *)""); | |
21395 | } | |
21396 | static PyMethodDef SwigMethods[] = { | |
21397 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21398 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21399 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21400 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21401 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21402 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
21403 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21404 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21405 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21406 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21407 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21408 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21409 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21410 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21411 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21412 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21413 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21414 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21415 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21416 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21417 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21418 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21419 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
21420 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21421 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21422 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21423 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21424 | { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21425 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21426 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
21427 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21428 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21429 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21430 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21431 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21432 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21433 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21434 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21435 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21436 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21437 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21438 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21439 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21440 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21441 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21442 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21443 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21444 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21445 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21446 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
21447 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21448 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21449 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21450 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21451 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21452 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21453 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21454 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21455 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21456 | { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21457 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21458 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
21459 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21460 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21461 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21462 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21463 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21464 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21465 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21466 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21467 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21468 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21469 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21470 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21471 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21472 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21473 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21474 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21475 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21476 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21477 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21478 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21479 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21480 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21481 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21482 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21483 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21484 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21485 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21486 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
21487 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21488 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
21489 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21490 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21491 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21492 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21493 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21494 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21495 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21496 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21497 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21498 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21499 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21500 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21501 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21502 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21503 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21504 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
21505 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21506 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21507 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21508 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21509 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21510 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21511 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21512 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
21513 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21514 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21515 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21516 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21517 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21518 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21519 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21520 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
21521 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21522 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21523 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21524 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21525 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21526 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
21527 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21528 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21529 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21530 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21531 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21532 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21533 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21534 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21535 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21536 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21537 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21538 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21539 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21540 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21541 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21542 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21543 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21544 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21545 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21546 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21547 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21548 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21549 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21550 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21551 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21552 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21553 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21554 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21555 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
21556 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21557 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21558 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21559 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21560 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21561 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21562 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21563 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21564 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21565 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21566 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21567 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21568 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21569 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
21570 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21571 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21572 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21573 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21574 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21575 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21576 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21577 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21578 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21579 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21580 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21581 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21582 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21583 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21584 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21585 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21586 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21587 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21588 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21589 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21590 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21591 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21592 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21593 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
21594 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21595 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21596 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21597 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21598 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21599 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21600 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21601 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21602 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
21603 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21604 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21605 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21606 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21607 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21608 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21609 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21610 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21611 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21612 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21613 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21614 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21615 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21616 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21617 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21618 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21619 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21620 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21621 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21622 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
21623 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21624 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21625 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21626 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21627 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21628 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21629 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21630 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21631 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21632 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21633 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21634 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21635 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21636 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21637 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21638 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21639 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21640 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21641 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21642 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21643 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21644 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21645 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
21646 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
21647 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21648 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21649 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21650 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21651 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21652 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21653 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21654 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21655 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21656 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21657 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21658 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21659 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21660 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21661 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21662 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21663 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21664 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
21665 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21666 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21667 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21668 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21669 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21670 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21671 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21672 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, | |
21673 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21674 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21675 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21676 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21677 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21678 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21679 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
21680 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21681 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21682 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21683 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21684 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21685 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21686 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21687 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21688 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21689 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21690 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21691 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21692 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21693 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21694 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21695 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21696 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21697 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21698 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21699 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21700 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21701 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
21702 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21703 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
21704 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21705 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21706 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21707 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21708 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21709 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21710 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21711 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
21712 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21713 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21714 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21715 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21716 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21717 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21718 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21719 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21720 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21721 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21722 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21723 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21724 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21725 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21726 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21727 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21728 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21729 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21730 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21731 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21732 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21733 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21734 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21735 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21736 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21737 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21738 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21739 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21740 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21741 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21742 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21743 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21744 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21745 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21746 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21747 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21748 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21749 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21750 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21751 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21752 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21753 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21754 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21755 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21756 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21757 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21758 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21759 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21760 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21761 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21762 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21763 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21764 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21765 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21766 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21767 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21768 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21769 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21770 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21771 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21772 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21773 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21774 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21775 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21776 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21777 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21778 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21779 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21780 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21781 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21782 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21783 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21784 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21785 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21786 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21787 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21788 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21789 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21790 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21791 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21792 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21793 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21794 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21795 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21796 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21797 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21798 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21799 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21800 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21801 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21802 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21803 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21804 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21805 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21806 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21807 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21808 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21809 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21810 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21811 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21812 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21813 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21814 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21815 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21816 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21817 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21818 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21819 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21820 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21821 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21822 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21823 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21824 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21825 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21826 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21827 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21828 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21829 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21830 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21831 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21832 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21833 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21834 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21835 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21836 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21837 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21838 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21839 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
21840 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21841 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21842 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21843 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
21844 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
21845 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21846 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21847 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
21848 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21849 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
21850 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21851 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21852 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21853 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21854 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
21855 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21856 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
21857 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21858 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
21859 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21860 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
21861 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21862 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
21863 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21864 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21865 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21866 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21867 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21868 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
21869 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21870 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
21871 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21872 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
21873 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21874 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
21875 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21876 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21877 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21878 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21879 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b9d6a5f3 RD |
21880 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
21881 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
21882 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, |
21883 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21884 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21885 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21886 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21887 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21888 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
21889 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21890 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21891 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21892 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21893 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, | |
21894 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21895 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21896 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21897 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21898 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, | |
21899 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21900 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21901 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21902 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21903 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21904 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21905 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
21906 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21907 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21908 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21909 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21910 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
21911 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21912 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21913 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21914 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21915 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21916 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21917 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21918 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21919 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21920 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21921 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21922 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21923 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21924 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21925 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
8d38bd1d RD |
21926 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
21927 | { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21928 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21929 | { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21930 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21931 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
21932 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21933 | { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21934 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21935 | { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21936 | { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21937 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
21938 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21939 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21940 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21941 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21942 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21943 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21944 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21945 | { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21946 | { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21947 | { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21948 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21949 | { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21950 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 21951 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
21952 | }; |
21953 | ||
21954 | ||
21955 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
21956 | ||
21957 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
21958 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
21959 | } | |
21960 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
21961 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
21962 | } | |
093d3ff1 RD |
21963 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
21964 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
d14a1e28 | 21965 | } |
093d3ff1 RD |
21966 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { |
21967 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
d14a1e28 | 21968 | } |
093d3ff1 RD |
21969 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { |
21970 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
21971 | } | |
21972 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
21973 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
21974 | } | |
21975 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
21976 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
21977 | } | |
21978 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
21979 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
21980 | } | |
21981 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
21982 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
21983 | } | |
21984 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
21985 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
21986 | } | |
21987 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
21988 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
21989 | } | |
21990 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
21991 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
21992 | } | |
21993 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
21994 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
21995 | } | |
21996 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
21997 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
21998 | } | |
21999 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
22000 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
22001 | } | |
22002 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
22003 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
22004 | } | |
22005 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
22006 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22007 | } | |
22008 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
22009 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
22010 | } | |
22011 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
22012 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
22013 | } | |
22014 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
22015 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
22016 | } | |
22017 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
22018 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
22019 | } | |
22020 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
22021 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22022 | } | |
22023 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
22024 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
22025 | } | |
22026 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
22027 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
22028 | } | |
22029 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
d14a1e28 RD |
22030 | return (void *)((wxObject *) ((wxRegionIterator *) x)); |
22031 | } | |
22032 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
22033 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
22034 | } | |
22035 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
22036 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
22037 | } | |
22038 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
22039 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
22040 | } | |
22041 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
22042 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
22043 | } | |
22044 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
22045 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
22046 | } | |
22047 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
22048 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
22049 | } | |
22050 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
22051 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
22052 | } | |
22053 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
22054 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
22055 | } | |
22056 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
22057 | return (void *)((wxObject *) ((wxSizer *) x)); | |
22058 | } | |
22059 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
22060 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
22061 | } | |
22062 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
22063 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
22064 | } | |
22065 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
22066 | return (void *)((wxObject *) ((wxPenList *) x)); | |
22067 | } | |
22068 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
22069 | return (void *)((wxObject *) ((wxEvent *) x)); | |
22070 | } | |
22071 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
22072 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
22073 | } | |
22074 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
22075 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
22076 | } | |
22077 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
22078 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
22079 | } | |
22080 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
22081 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
22082 | } | |
22083 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
22084 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
22085 | } | |
22086 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
22087 | return (void *)((wxObject *) ((wxDC *) x)); | |
22088 | } | |
22089 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
22090 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
22091 | } | |
22092 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
22093 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
22094 | } | |
22095 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
22096 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
22097 | } | |
22098 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
22099 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
22100 | } | |
22101 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
22102 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
22103 | } | |
22104 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
22105 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
22106 | } | |
22107 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
22108 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
22109 | } | |
22110 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
22111 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
22112 | } | |
22113 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
22114 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
22115 | } | |
22116 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
22117 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
22118 | } | |
22119 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
22120 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
22121 | } | |
22122 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
22123 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
22124 | } | |
22125 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
22126 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
22127 | } | |
22128 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
22129 | return (void *)((wxObject *) ((wxEffects *) x)); | |
22130 | } | |
22131 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
22132 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
22133 | } | |
22134 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
22135 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
22136 | } | |
22137 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
22138 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
22139 | } | |
22140 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
22141 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
22142 | } | |
22143 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
22144 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
22145 | } | |
53aa7709 RD |
22146 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
22147 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
22148 | } | |
d14a1e28 RD |
22149 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
22150 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
22151 | } | |
22152 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
22153 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
22154 | } | |
22155 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
22156 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
22157 | } | |
22158 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
22159 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
22160 | } | |
22161 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
22162 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
22163 | } | |
22164 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
22165 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
22166 | } | |
22167 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
22168 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
22169 | } | |
22170 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
22171 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
22172 | } | |
22173 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
22174 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
22175 | } | |
22176 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
22177 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
22178 | } | |
22179 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
22180 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
22181 | } | |
22182 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
22183 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
22184 | } | |
22185 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
22186 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
22187 | } | |
22188 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
22189 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
22190 | } | |
22191 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
22192 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
22193 | } | |
22194 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
22195 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
22196 | } | |
22197 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
22198 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
22199 | } | |
22200 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
22201 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
22202 | } | |
22203 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
22204 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
22205 | } | |
22206 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
22207 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
22208 | } | |
22209 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
22210 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
22211 | } | |
22212 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
22213 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22214 | } | |
22215 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
22216 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
22217 | } | |
22218 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
22219 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
22220 | } | |
22221 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
22222 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
22223 | } | |
51b83b37 RD |
22224 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
22225 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
22226 | } | |
1e0c8722 RD |
22227 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
22228 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
22229 | } | |
d14a1e28 RD |
22230 | static void *_p_wxImageTo_p_wxObject(void *x) { |
22231 | return (void *)((wxObject *) ((wxImage *) x)); | |
22232 | } | |
22233 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
22234 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
22235 | } | |
d14a1e28 RD |
22236 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
22237 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
22238 | } | |
22239 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
22240 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
22241 | } | |
22242 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
22243 | return (void *)((wxObject *) ((wxImageList *) x)); | |
22244 | } | |
22245 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
22246 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
22247 | } | |
22248 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
22249 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
22250 | } | |
22251 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
22252 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
22253 | } | |
22254 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
22255 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
22256 | } | |
22257 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
22258 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
22259 | } | |
22260 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
22261 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
22262 | } | |
22263 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
22264 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
22265 | } | |
22266 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
22267 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
22268 | } | |
22269 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
22270 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
22271 | } | |
22272 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
22273 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
22274 | } | |
22275 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
22276 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
22277 | } | |
d14a1e28 RD |
22278 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
22279 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
22280 | } | |
22281 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
22282 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
22283 | } | |
22284 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
22285 | return (void *)((wxObject *) ((wxMask *) x)); | |
22286 | } | |
22287 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
22288 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
22289 | } | |
22290 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
22291 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
22292 | } | |
22293 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
22294 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
22295 | } | |
22296 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
22297 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
22298 | } | |
22299 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
22300 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
22301 | } | |
22302 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
22303 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
22304 | } | |
22305 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
22306 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
22307 | } | |
22308 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
22309 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
22310 | } | |
22311 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
22312 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
22313 | } | |
22314 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
22315 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
22316 | } | |
22317 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
22318 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
22319 | } | |
22320 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
22321 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
22322 | } | |
22323 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
22324 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
22325 | } | |
22326 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
22327 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
22328 | } | |
22329 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
22330 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
22331 | } | |
22332 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
22333 | return (void *)((wxObject *) ((wxColour *) x)); | |
22334 | } | |
22335 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
22336 | return (void *)((wxObject *) ((wxFontList *) x)); | |
22337 | } | |
22338 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
22339 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
22340 | } | |
22341 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
22342 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
22343 | } | |
093d3ff1 RD |
22344 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
22345 | return (void *)((wxWindow *) ((wxControl *) x)); | |
e811c8ce | 22346 | } |
093d3ff1 RD |
22347 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { |
22348 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
e811c8ce | 22349 | } |
093d3ff1 RD |
22350 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
22351 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
e811c8ce | 22352 | } |
15afbcd0 RD |
22353 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22354 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22355 | 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}}; | |
22356 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22357 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 22358 | 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}}; |
8d38bd1d | 22359 | static swig_type_info _swigt__p_wxRendererVersion[] = {{"_p_wxRendererVersion", 0, "wxRendererVersion *", 0, 0, 0, 0},{"_p_wxRendererVersion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 22360 | 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 |
22361 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22362 | 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}}; | |
22363 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22364 | 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}}; | |
22365 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22366 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b2df227b | 22367 | 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}}; |
15afbcd0 RD |
22368 | 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}}; |
22369 | 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}}; | |
15afbcd0 RD |
22370 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22371 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22372 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22373 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22374 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22375 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22376 | 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}}; | |
53aa7709 | 22377 | 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_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_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_wxPenList", _p_wxPenListTo_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_wxMask", _p_wxMaskTo_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_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_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_wxPostScriptDC", _p_wxPostScriptDCTo_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_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_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_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_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_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_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_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_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_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_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 RD |
22378 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22379 | 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}}; | |
093d3ff1 | 22380 | 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 | 22381 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
22382 | 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}}; |
22383 | 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 |
22384 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22385 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22386 | 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}}; | |
22387 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22388 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22389 | 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}}; | |
22390 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22391 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22392 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 22393 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
66c033b4 | 22394 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
22395 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22396 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
22397 | 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}}; |
22398 | 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 | 22399 | 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}}; |
66c033b4 | 22400 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 22401 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
22402 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22403 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22404 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22405 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
66c033b4 | 22406 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
22407 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22408 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22409 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 RD |
22410 | 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}}; |
22411 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8d38bd1d | 22412 | static swig_type_info _swigt__p_wxRendererNative[] = {{"_p_wxRendererNative", 0, "wxRendererNative *", 0, 0, 0, 0},{"_p_wxRendererNative", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 22413 | 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 |
22414 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
22415 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8d38bd1d | 22416 | static swig_type_info _swigt__p_wxSplitterRenderParams[] = {{"_p_wxSplitterRenderParams", 0, "wxSplitterRenderParams *", 0, 0, 0, 0},{"_p_wxSplitterRenderParams", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 22417 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d14a1e28 RD |
22418 | |
22419 | static swig_type_info *swig_types_initial[] = { | |
22420 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
22421 | _swigt__p_wxBrush, |
22422 | _swigt__p_wxColour, | |
d14a1e28 RD |
22423 | _swigt__p_wxDC, |
22424 | _swigt__p_wxMirrorDC, | |
093d3ff1 | 22425 | _swigt__p_form_ops_t, |
8d38bd1d | 22426 | _swigt__p_wxRendererVersion, |
093d3ff1 | 22427 | _swigt__p_wxDuplexMode, |
d14a1e28 | 22428 | _swigt__p_wxPyFontEnumerator, |
994141e6 | 22429 | _swigt__p_char, |
d14a1e28 RD |
22430 | _swigt__p_wxIconLocation, |
22431 | _swigt__p_wxImage, | |
22432 | _swigt__p_wxMetaFileDC, | |
22433 | _swigt__p_wxMask, | |
b2df227b | 22434 | _swigt__p_wxSize, |
d14a1e28 RD |
22435 | _swigt__p_wxFont, |
22436 | _swigt__p_wxWindow, | |
d14a1e28 RD |
22437 | _swigt__p_double, |
22438 | _swigt__p_wxMemoryDC, | |
22439 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
22440 | _swigt__p_wxEffects, |
22441 | _swigt__p_wxNativeEncodingInfo, | |
22442 | _swigt__p_wxPalette, | |
22443 | _swigt__p_wxBitmap, | |
22444 | _swigt__p_wxObject, | |
22445 | _swigt__p_wxRegionIterator, | |
22446 | _swigt__p_wxRect, | |
093d3ff1 | 22447 | _swigt__p_wxPaperSize, |
d14a1e28 | 22448 | _swigt__p_wxString, |
093d3ff1 RD |
22449 | _swigt__unsigned_int, |
22450 | _swigt__p_unsigned_int, | |
d14a1e28 RD |
22451 | _swigt__p_wxPrinterDC, |
22452 | _swigt__p_wxIconBundle, | |
22453 | _swigt__p_wxPoint, | |
22454 | _swigt__p_wxDash, | |
22455 | _swigt__p_wxScreenDC, | |
22456 | _swigt__p_wxCursor, | |
22457 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
22458 | _swigt__p_wxBufferedDC, |
22459 | _swigt__p_wxImageList, | |
22460 | _swigt__p_unsigned_char, | |
22461 | _swigt__p_wxGDIObject, | |
d14a1e28 | 22462 | _swigt__p_wxIcon, |
994141e6 | 22463 | _swigt__p_wxLocale, |
093d3ff1 RD |
22464 | _swigt__ptrdiff_t, |
22465 | _swigt__std__ptrdiff_t, | |
d14a1e28 | 22466 | _swigt__p_wxRegion, |
66c033b4 | 22467 | _swigt__p_wxConfigBase, |
093d3ff1 | 22468 | _swigt__p_wxLanguageInfo, |
d14a1e28 RD |
22469 | _swigt__p_wxWindowDC, |
22470 | _swigt__p_wxPrintData, | |
22471 | _swigt__p_wxBrushList, | |
22472 | _swigt__p_wxFontList, | |
22473 | _swigt__p_wxPen, | |
22474 | _swigt__p_wxBufferedPaintDC, | |
22475 | _swigt__p_wxPaintDC, | |
22476 | _swigt__p_wxPenList, | |
d14a1e28 RD |
22477 | _swigt__p_int, |
22478 | _swigt__p_wxMetaFile, | |
8d38bd1d | 22479 | _swigt__p_wxRendererNative, |
093d3ff1 | 22480 | _swigt__p_unsigned_long, |
d14a1e28 RD |
22481 | _swigt__p_wxNativeFontInfo, |
22482 | _swigt__p_wxEncodingConverter, | |
8d38bd1d | 22483 | _swigt__p_wxSplitterRenderParams, |
d14a1e28 RD |
22484 | _swigt__p_wxColourDatabase, |
22485 | 0 | |
22486 | }; | |
22487 | ||
22488 | ||
22489 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
22490 | ||
22491 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 22492 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
22493 | |
22494 | #ifdef __cplusplus | |
22495 | } | |
22496 | #endif | |
22497 | ||
093d3ff1 RD |
22498 | |
22499 | #ifdef __cplusplus | |
22500 | extern "C" { | |
22501 | #endif | |
22502 | ||
22503 | /* Python-specific SWIG API */ | |
22504 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
22505 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
22506 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
22507 | ||
22508 | /* ----------------------------------------------------------------------------- | |
22509 | * global variable support code. | |
22510 | * ----------------------------------------------------------------------------- */ | |
22511 | ||
22512 | typedef struct swig_globalvar { | |
22513 | char *name; /* Name of global variable */ | |
22514 | PyObject *(*get_attr)(); /* Return the current value */ | |
22515 | int (*set_attr)(PyObject *); /* Set the value */ | |
22516 | struct swig_globalvar *next; | |
22517 | } swig_globalvar; | |
22518 | ||
22519 | typedef struct swig_varlinkobject { | |
22520 | PyObject_HEAD | |
22521 | swig_globalvar *vars; | |
22522 | } swig_varlinkobject; | |
22523 | ||
22524 | static PyObject * | |
22525 | swig_varlink_repr(swig_varlinkobject *v) { | |
22526 | v = v; | |
22527 | return PyString_FromString("<Swig global variables>"); | |
22528 | } | |
22529 | ||
22530 | static int | |
22531 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
22532 | swig_globalvar *var; | |
22533 | flags = flags; | |
22534 | fprintf(fp,"Swig global variables { "); | |
22535 | for (var = v->vars; var; var=var->next) { | |
22536 | fprintf(fp,"%s", var->name); | |
22537 | if (var->next) fprintf(fp,", "); | |
22538 | } | |
22539 | fprintf(fp," }\n"); | |
22540 | return 0; | |
22541 | } | |
22542 | ||
22543 | static PyObject * | |
22544 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
22545 | swig_globalvar *var = v->vars; | |
22546 | while (var) { | |
22547 | if (strcmp(var->name,n) == 0) { | |
22548 | return (*var->get_attr)(); | |
22549 | } | |
22550 | var = var->next; | |
22551 | } | |
22552 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | static int | |
22557 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
22558 | swig_globalvar *var = v->vars; | |
22559 | while (var) { | |
22560 | if (strcmp(var->name,n) == 0) { | |
22561 | return (*var->set_attr)(p); | |
22562 | } | |
22563 | var = var->next; | |
22564 | } | |
22565 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
22566 | return 1; | |
22567 | } | |
22568 | ||
22569 | static PyTypeObject varlinktype = { | |
22570 | PyObject_HEAD_INIT(0) | |
22571 | 0, /* Number of items in variable part (ob_size) */ | |
22572 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
22573 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
22574 | 0, /* Itemsize (tp_itemsize) */ | |
22575 | 0, /* Deallocator (tp_dealloc) */ | |
22576 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
22577 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
22578 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
22579 | 0, /* tp_compare */ | |
22580 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
22581 | 0, /* tp_as_number */ | |
22582 | 0, /* tp_as_sequence */ | |
22583 | 0, /* tp_as_mapping */ | |
22584 | 0, /* tp_hash */ | |
22585 | 0, /* tp_call */ | |
22586 | 0, /* tp_str */ | |
22587 | 0, /* tp_getattro */ | |
22588 | 0, /* tp_setattro */ | |
22589 | 0, /* tp_as_buffer */ | |
22590 | 0, /* tp_flags */ | |
22591 | 0, /* tp_doc */ | |
22592 | #if PY_VERSION_HEX >= 0x02000000 | |
22593 | 0, /* tp_traverse */ | |
22594 | 0, /* tp_clear */ | |
22595 | #endif | |
22596 | #if PY_VERSION_HEX >= 0x02010000 | |
22597 | 0, /* tp_richcompare */ | |
22598 | 0, /* tp_weaklistoffset */ | |
22599 | #endif | |
22600 | #if PY_VERSION_HEX >= 0x02020000 | |
22601 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
22602 | #endif | |
22603 | #if PY_VERSION_HEX >= 0x02030000 | |
22604 | 0, /* tp_del */ | |
22605 | #endif | |
22606 | #ifdef COUNT_ALLOCS | |
22607 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
22608 | #endif | |
22609 | }; | |
22610 | ||
22611 | /* Create a variable linking object for use later */ | |
22612 | static PyObject * | |
22613 | SWIG_Python_newvarlink(void) { | |
22614 | swig_varlinkobject *result = 0; | |
22615 | result = PyMem_NEW(swig_varlinkobject,1); | |
22616 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
22617 | result->ob_type = &varlinktype; | |
22618 | result->vars = 0; | |
22619 | result->ob_refcnt = 0; | |
22620 | Py_XINCREF((PyObject *) result); | |
22621 | return ((PyObject*) result); | |
22622 | } | |
22623 | ||
22624 | static void | |
22625 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
22626 | swig_varlinkobject *v; | |
22627 | swig_globalvar *gv; | |
22628 | v= (swig_varlinkobject *) p; | |
22629 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
22630 | gv->name = (char *) malloc(strlen(name)+1); | |
22631 | strcpy(gv->name,name); | |
22632 | gv->get_attr = get_attr; | |
22633 | gv->set_attr = set_attr; | |
22634 | gv->next = v->vars; | |
22635 | v->vars = gv; | |
22636 | } | |
22637 | ||
22638 | /* ----------------------------------------------------------------------------- | |
22639 | * constants/methods manipulation | |
22640 | * ----------------------------------------------------------------------------- */ | |
22641 | ||
22642 | /* Install Constants */ | |
22643 | static void | |
22644 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
22645 | PyObject *obj = 0; | |
22646 | size_t i; | |
22647 | for (i = 0; constants[i].type; i++) { | |
22648 | switch(constants[i].type) { | |
22649 | case SWIG_PY_INT: | |
22650 | obj = PyInt_FromLong(constants[i].lvalue); | |
22651 | break; | |
22652 | case SWIG_PY_FLOAT: | |
22653 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
22654 | break; | |
22655 | case SWIG_PY_STRING: | |
22656 | if (constants[i].pvalue) { | |
22657 | obj = PyString_FromString((char *) constants[i].pvalue); | |
22658 | } else { | |
22659 | Py_INCREF(Py_None); | |
22660 | obj = Py_None; | |
22661 | } | |
22662 | break; | |
22663 | case SWIG_PY_POINTER: | |
22664 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
22665 | break; | |
22666 | case SWIG_PY_BINARY: | |
22667 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
22668 | break; | |
22669 | default: | |
22670 | obj = 0; | |
22671 | break; | |
22672 | } | |
22673 | if (obj) { | |
22674 | PyDict_SetItemString(d,constants[i].name,obj); | |
22675 | Py_DECREF(obj); | |
22676 | } | |
22677 | } | |
22678 | } | |
22679 | ||
22680 | /* -----------------------------------------------------------------------------*/ | |
22681 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
22682 | /* -----------------------------------------------------------------------------*/ | |
22683 | ||
22684 | static void | |
22685 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
22686 | swig_const_info *const_table, | |
22687 | swig_type_info **types, | |
22688 | swig_type_info **types_initial) { | |
22689 | size_t i; | |
22690 | for (i = 0; methods[i].ml_name; ++i) { | |
22691 | char *c = methods[i].ml_doc; | |
22692 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
22693 | int j; | |
22694 | swig_const_info *ci = 0; | |
22695 | char *name = c + 10; | |
22696 | for (j = 0; const_table[j].type; j++) { | |
22697 | if (strncmp(const_table[j].name, name, | |
22698 | strlen(const_table[j].name)) == 0) { | |
22699 | ci = &(const_table[j]); | |
22700 | break; | |
22701 | } | |
22702 | } | |
22703 | if (ci) { | |
22704 | size_t shift = (ci->ptype) - types; | |
22705 | swig_type_info *ty = types_initial[shift]; | |
22706 | size_t ldoc = (c - methods[i].ml_doc); | |
22707 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
22708 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
22709 | char *buff = ndoc; | |
22710 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
22711 | strncpy(buff, methods[i].ml_doc, ldoc); | |
22712 | buff += ldoc; | |
22713 | strncpy(buff, "swig_ptr: ", 10); | |
22714 | buff += 10; | |
22715 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
22716 | methods[i].ml_doc = ndoc; | |
22717 | } | |
22718 | } | |
22719 | } | |
22720 | } | |
22721 | ||
22722 | /* -----------------------------------------------------------------------------* | |
22723 | * Initialize type list | |
22724 | * -----------------------------------------------------------------------------*/ | |
22725 | ||
22726 | #if PY_MAJOR_VERSION < 2 | |
22727 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
22728 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
22729 | static int | |
22730 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
22731 | { | |
22732 | PyObject *dict; | |
22733 | if (!PyModule_Check(m)) { | |
22734 | PyErr_SetString(PyExc_TypeError, | |
22735 | "PyModule_AddObject() needs module as first arg"); | |
22736 | return -1; | |
22737 | } | |
22738 | if (!o) { | |
22739 | PyErr_SetString(PyExc_TypeError, | |
22740 | "PyModule_AddObject() needs non-NULL value"); | |
22741 | return -1; | |
22742 | } | |
22743 | ||
22744 | dict = PyModule_GetDict(m); | |
22745 | if (dict == NULL) { | |
22746 | /* Internal error -- modules must have a dict! */ | |
22747 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
22748 | PyModule_GetName(m)); | |
22749 | return -1; | |
22750 | } | |
22751 | if (PyDict_SetItemString(dict, name, o)) | |
22752 | return -1; | |
22753 | Py_DECREF(o); | |
22754 | return 0; | |
22755 | } | |
22756 | #endif | |
22757 | ||
22758 | static swig_type_info ** | |
22759 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
22760 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
22761 | { | |
22762 | NULL, NULL, 0, NULL | |
22763 | } | |
22764 | };/* Sentinel */ | |
22765 | ||
22766 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
22767 | swig_empty_runtime_method_table); | |
22768 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
22769 | if (pointer && module) { | |
22770 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
22771 | } | |
22772 | return type_list_handle; | |
22773 | } | |
22774 | ||
22775 | static swig_type_info ** | |
22776 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
22777 | swig_type_info **type_pointer; | |
22778 | ||
22779 | /* first check if module already created */ | |
22780 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
22781 | if (type_pointer) { | |
22782 | return type_pointer; | |
22783 | } else { | |
22784 | /* create a new module and variable */ | |
22785 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
22786 | } | |
22787 | } | |
22788 | ||
22789 | #ifdef __cplusplus | |
22790 | } | |
22791 | #endif | |
22792 | ||
22793 | /* -----------------------------------------------------------------------------* | |
22794 | * Partial Init method | |
22795 | * -----------------------------------------------------------------------------*/ | |
22796 | ||
22797 | #ifdef SWIG_LINK_RUNTIME | |
22798 | #ifdef __cplusplus | |
22799 | extern "C" | |
22800 | #endif | |
22801 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
22802 | #endif | |
22803 | ||
d14a1e28 RD |
22804 | #ifdef __cplusplus |
22805 | extern "C" | |
22806 | #endif | |
22807 | SWIGEXPORT(void) SWIG_init(void) { | |
22808 | static PyObject *SWIG_globals = 0; | |
22809 | static int typeinit = 0; | |
22810 | PyObject *m, *d; | |
22811 | int i; | |
22812 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
22813 | |
22814 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
22815 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
22816 | ||
d14a1e28 RD |
22817 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
22818 | d = PyModule_GetDict(m); | |
22819 | ||
22820 | if (!typeinit) { | |
093d3ff1 RD |
22821 | #ifdef SWIG_LINK_RUNTIME |
22822 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
22823 | #else | |
22824 | # ifndef SWIG_STATIC_RUNTIME | |
22825 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
22826 | # endif | |
22827 | #endif | |
d14a1e28 RD |
22828 | for (i = 0; swig_types_initial[i]; i++) { |
22829 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
22830 | } | |
22831 | typeinit = 1; | |
22832 | } | |
22833 | SWIG_InstallConstants(d,swig_const_table); | |
22834 | ||
093d3ff1 RD |
22835 | { |
22836 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)(wxOutRegion))); | |
22837 | } | |
22838 | { | |
22839 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)(wxPartRegion))); | |
22840 | } | |
22841 | { | |
22842 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)(wxInRegion))); | |
22843 | } | |
22844 | { | |
22845 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)(wxFONTFAMILY_DEFAULT))); | |
22846 | } | |
22847 | { | |
22848 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)(wxFONTFAMILY_DECORATIVE))); | |
22849 | } | |
22850 | { | |
22851 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)(wxFONTFAMILY_ROMAN))); | |
22852 | } | |
22853 | { | |
22854 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)(wxFONTFAMILY_SCRIPT))); | |
22855 | } | |
22856 | { | |
22857 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)(wxFONTFAMILY_SWISS))); | |
22858 | } | |
22859 | { | |
22860 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)(wxFONTFAMILY_MODERN))); | |
22861 | } | |
22862 | { | |
22863 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)(wxFONTFAMILY_TELETYPE))); | |
22864 | } | |
22865 | { | |
22866 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)(wxFONTFAMILY_MAX))); | |
22867 | } | |
22868 | { | |
22869 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)(wxFONTFAMILY_UNKNOWN))); | |
22870 | } | |
22871 | { | |
22872 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)(wxFONTSTYLE_NORMAL))); | |
22873 | } | |
22874 | { | |
22875 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)(wxFONTSTYLE_ITALIC))); | |
22876 | } | |
22877 | { | |
22878 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)(wxFONTSTYLE_SLANT))); | |
22879 | } | |
22880 | { | |
22881 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)(wxFONTSTYLE_MAX))); | |
22882 | } | |
22883 | { | |
22884 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)(wxFONTWEIGHT_NORMAL))); | |
22885 | } | |
22886 | { | |
22887 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)(wxFONTWEIGHT_LIGHT))); | |
22888 | } | |
22889 | { | |
22890 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)(wxFONTWEIGHT_BOLD))); | |
22891 | } | |
22892 | { | |
22893 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)(wxFONTWEIGHT_MAX))); | |
22894 | } | |
22895 | { | |
22896 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)(wxFONTFLAG_DEFAULT))); | |
22897 | } | |
22898 | { | |
22899 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)(wxFONTFLAG_ITALIC))); | |
22900 | } | |
22901 | { | |
22902 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)(wxFONTFLAG_SLANT))); | |
22903 | } | |
22904 | { | |
22905 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)(wxFONTFLAG_LIGHT))); | |
22906 | } | |
22907 | { | |
22908 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)(wxFONTFLAG_BOLD))); | |
22909 | } | |
22910 | { | |
22911 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_ANTIALIASED))); | |
22912 | } | |
22913 | { | |
22914 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)(wxFONTFLAG_NOT_ANTIALIASED))); | |
22915 | } | |
22916 | { | |
22917 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)(wxFONTFLAG_UNDERLINED))); | |
22918 | } | |
22919 | { | |
22920 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)(wxFONTFLAG_STRIKETHROUGH))); | |
22921 | } | |
22922 | { | |
22923 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)(wxFONTFLAG_MASK))); | |
22924 | } | |
22925 | { | |
22926 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)(wxFONTENCODING_SYSTEM))); | |
22927 | } | |
22928 | { | |
22929 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)(wxFONTENCODING_DEFAULT))); | |
22930 | } | |
22931 | { | |
22932 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)(wxFONTENCODING_ISO8859_1))); | |
22933 | } | |
22934 | { | |
22935 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)(wxFONTENCODING_ISO8859_2))); | |
22936 | } | |
22937 | { | |
22938 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)(wxFONTENCODING_ISO8859_3))); | |
22939 | } | |
22940 | { | |
22941 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)(wxFONTENCODING_ISO8859_4))); | |
22942 | } | |
22943 | { | |
22944 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)(wxFONTENCODING_ISO8859_5))); | |
22945 | } | |
22946 | { | |
22947 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)(wxFONTENCODING_ISO8859_6))); | |
22948 | } | |
22949 | { | |
22950 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)(wxFONTENCODING_ISO8859_7))); | |
22951 | } | |
22952 | { | |
22953 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)(wxFONTENCODING_ISO8859_8))); | |
22954 | } | |
22955 | { | |
22956 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)(wxFONTENCODING_ISO8859_9))); | |
22957 | } | |
22958 | { | |
22959 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)(wxFONTENCODING_ISO8859_10))); | |
22960 | } | |
22961 | { | |
22962 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)(wxFONTENCODING_ISO8859_11))); | |
22963 | } | |
22964 | { | |
22965 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)(wxFONTENCODING_ISO8859_12))); | |
22966 | } | |
22967 | { | |
22968 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)(wxFONTENCODING_ISO8859_13))); | |
22969 | } | |
22970 | { | |
22971 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)(wxFONTENCODING_ISO8859_14))); | |
22972 | } | |
22973 | { | |
22974 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)(wxFONTENCODING_ISO8859_15))); | |
22975 | } | |
22976 | { | |
22977 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)(wxFONTENCODING_ISO8859_MAX))); | |
22978 | } | |
22979 | { | |
22980 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)(wxFONTENCODING_KOI8))); | |
22981 | } | |
22982 | { | |
22983 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)(wxFONTENCODING_KOI8_U))); | |
22984 | } | |
22985 | { | |
22986 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)(wxFONTENCODING_ALTERNATIVE))); | |
22987 | } | |
22988 | { | |
22989 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)(wxFONTENCODING_BULGARIAN))); | |
22990 | } | |
22991 | { | |
22992 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)(wxFONTENCODING_CP437))); | |
22993 | } | |
22994 | { | |
22995 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)(wxFONTENCODING_CP850))); | |
22996 | } | |
22997 | { | |
22998 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)(wxFONTENCODING_CP852))); | |
22999 | } | |
23000 | { | |
23001 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)(wxFONTENCODING_CP855))); | |
23002 | } | |
23003 | { | |
23004 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)(wxFONTENCODING_CP866))); | |
23005 | } | |
23006 | { | |
23007 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)(wxFONTENCODING_CP874))); | |
23008 | } | |
23009 | { | |
23010 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)(wxFONTENCODING_CP932))); | |
23011 | } | |
23012 | { | |
23013 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)(wxFONTENCODING_CP936))); | |
23014 | } | |
23015 | { | |
23016 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)(wxFONTENCODING_CP949))); | |
23017 | } | |
23018 | { | |
23019 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)(wxFONTENCODING_CP950))); | |
23020 | } | |
23021 | { | |
23022 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)(wxFONTENCODING_CP1250))); | |
23023 | } | |
23024 | { | |
23025 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)(wxFONTENCODING_CP1251))); | |
23026 | } | |
23027 | { | |
23028 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)(wxFONTENCODING_CP1252))); | |
23029 | } | |
23030 | { | |
23031 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)(wxFONTENCODING_CP1253))); | |
23032 | } | |
23033 | { | |
23034 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)(wxFONTENCODING_CP1254))); | |
23035 | } | |
23036 | { | |
23037 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)(wxFONTENCODING_CP1255))); | |
23038 | } | |
23039 | { | |
23040 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)(wxFONTENCODING_CP1256))); | |
23041 | } | |
23042 | { | |
23043 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)(wxFONTENCODING_CP1257))); | |
23044 | } | |
23045 | { | |
23046 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)(wxFONTENCODING_CP12_MAX))); | |
23047 | } | |
23048 | { | |
23049 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)(wxFONTENCODING_UTF7))); | |
23050 | } | |
23051 | { | |
23052 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)(wxFONTENCODING_UTF8))); | |
23053 | } | |
23054 | { | |
23055 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)(wxFONTENCODING_EUC_JP))); | |
23056 | } | |
23057 | { | |
23058 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)(wxFONTENCODING_UTF16BE))); | |
23059 | } | |
23060 | { | |
23061 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)(wxFONTENCODING_UTF16LE))); | |
23062 | } | |
23063 | { | |
23064 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)(wxFONTENCODING_UTF32BE))); | |
23065 | } | |
23066 | { | |
23067 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)(wxFONTENCODING_UTF32LE))); | |
23068 | } | |
23069 | { | |
23070 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)(wxFONTENCODING_MACROMAN))); | |
23071 | } | |
23072 | { | |
23073 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)(wxFONTENCODING_MACJAPANESE))); | |
23074 | } | |
23075 | { | |
23076 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)(wxFONTENCODING_MACCHINESETRAD))); | |
23077 | } | |
23078 | { | |
23079 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)(wxFONTENCODING_MACKOREAN))); | |
23080 | } | |
23081 | { | |
23082 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)(wxFONTENCODING_MACARABIC))); | |
23083 | } | |
23084 | { | |
23085 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)(wxFONTENCODING_MACHEBREW))); | |
23086 | } | |
23087 | { | |
23088 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)(wxFONTENCODING_MACGREEK))); | |
23089 | } | |
23090 | { | |
23091 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)(wxFONTENCODING_MACCYRILLIC))); | |
23092 | } | |
23093 | { | |
23094 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)(wxFONTENCODING_MACDEVANAGARI))); | |
23095 | } | |
23096 | { | |
23097 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)(wxFONTENCODING_MACGURMUKHI))); | |
23098 | } | |
23099 | { | |
23100 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)(wxFONTENCODING_MACGUJARATI))); | |
23101 | } | |
23102 | { | |
23103 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)(wxFONTENCODING_MACORIYA))); | |
23104 | } | |
23105 | { | |
23106 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)(wxFONTENCODING_MACBENGALI))); | |
23107 | } | |
23108 | { | |
23109 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)(wxFONTENCODING_MACTAMIL))); | |
23110 | } | |
23111 | { | |
23112 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)(wxFONTENCODING_MACTELUGU))); | |
23113 | } | |
23114 | { | |
23115 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)(wxFONTENCODING_MACKANNADA))); | |
23116 | } | |
23117 | { | |
23118 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)(wxFONTENCODING_MACMALAJALAM))); | |
23119 | } | |
23120 | { | |
23121 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)(wxFONTENCODING_MACSINHALESE))); | |
23122 | } | |
23123 | { | |
23124 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)(wxFONTENCODING_MACBURMESE))); | |
23125 | } | |
23126 | { | |
23127 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)(wxFONTENCODING_MACKHMER))); | |
23128 | } | |
23129 | { | |
23130 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)(wxFONTENCODING_MACTHAI))); | |
23131 | } | |
23132 | { | |
23133 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)(wxFONTENCODING_MACLAOTIAN))); | |
23134 | } | |
23135 | { | |
23136 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)(wxFONTENCODING_MACGEORGIAN))); | |
23137 | } | |
23138 | { | |
23139 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)(wxFONTENCODING_MACARMENIAN))); | |
23140 | } | |
23141 | { | |
23142 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)(wxFONTENCODING_MACCHINESESIMP))); | |
23143 | } | |
23144 | { | |
23145 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)(wxFONTENCODING_MACTIBETAN))); | |
23146 | } | |
23147 | { | |
23148 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)(wxFONTENCODING_MACMONGOLIAN))); | |
23149 | } | |
23150 | { | |
23151 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)(wxFONTENCODING_MACETHIOPIC))); | |
23152 | } | |
23153 | { | |
23154 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)(wxFONTENCODING_MACCENTRALEUR))); | |
23155 | } | |
23156 | { | |
23157 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)(wxFONTENCODING_MACVIATNAMESE))); | |
23158 | } | |
23159 | { | |
23160 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)(wxFONTENCODING_MACARABICEXT))); | |
23161 | } | |
23162 | { | |
23163 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)(wxFONTENCODING_MACSYMBOL))); | |
23164 | } | |
23165 | { | |
23166 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)(wxFONTENCODING_MACDINGBATS))); | |
23167 | } | |
23168 | { | |
23169 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)(wxFONTENCODING_MACTURKISH))); | |
23170 | } | |
23171 | { | |
23172 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)(wxFONTENCODING_MACCROATIAN))); | |
23173 | } | |
23174 | { | |
23175 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)(wxFONTENCODING_MACICELANDIC))); | |
23176 | } | |
23177 | { | |
23178 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)(wxFONTENCODING_MACROMANIAN))); | |
23179 | } | |
23180 | { | |
23181 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)(wxFONTENCODING_MACCELTIC))); | |
23182 | } | |
23183 | { | |
23184 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)(wxFONTENCODING_MACGAELIC))); | |
23185 | } | |
23186 | { | |
23187 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)(wxFONTENCODING_MACKEYBOARD))); | |
23188 | } | |
23189 | { | |
23190 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)(wxFONTENCODING_MACMIN))); | |
23191 | } | |
23192 | { | |
23193 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)(wxFONTENCODING_MACMAX))); | |
23194 | } | |
23195 | { | |
23196 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)(wxFONTENCODING_MAX))); | |
23197 | } | |
23198 | { | |
23199 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)(wxFONTENCODING_UTF16))); | |
23200 | } | |
23201 | { | |
23202 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)(wxFONTENCODING_UTF32))); | |
23203 | } | |
23204 | { | |
23205 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)(wxFONTENCODING_UNICODE))); | |
23206 | } | |
23207 | { | |
23208 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)(wxFONTENCODING_GB2312))); | |
23209 | } | |
23210 | { | |
23211 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)(wxFONTENCODING_BIG5))); | |
23212 | } | |
23213 | { | |
23214 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)(wxFONTENCODING_SHIFT_JIS))); | |
23215 | } | |
23216 | ||
23217 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
23218 | ||
23219 | { | |
23220 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)(wxLANGUAGE_DEFAULT))); | |
23221 | } | |
23222 | { | |
23223 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)(wxLANGUAGE_UNKNOWN))); | |
23224 | } | |
23225 | { | |
23226 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)(wxLANGUAGE_ABKHAZIAN))); | |
23227 | } | |
23228 | { | |
23229 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)(wxLANGUAGE_AFAR))); | |
23230 | } | |
23231 | { | |
23232 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)(wxLANGUAGE_AFRIKAANS))); | |
23233 | } | |
23234 | { | |
23235 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)(wxLANGUAGE_ALBANIAN))); | |
23236 | } | |
23237 | { | |
23238 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)(wxLANGUAGE_AMHARIC))); | |
23239 | } | |
23240 | { | |
23241 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)(wxLANGUAGE_ARABIC))); | |
23242 | } | |
23243 | { | |
23244 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_ALGERIA))); | |
23245 | } | |
23246 | { | |
23247 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_BAHRAIN))); | |
23248 | } | |
23249 | { | |
23250 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_EGYPT))); | |
23251 | } | |
23252 | { | |
23253 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)(wxLANGUAGE_ARABIC_IRAQ))); | |
23254 | } | |
23255 | { | |
23256 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_JORDAN))); | |
23257 | } | |
23258 | { | |
23259 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)(wxLANGUAGE_ARABIC_KUWAIT))); | |
23260 | } | |
23261 | { | |
23262 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LEBANON))); | |
23263 | } | |
23264 | { | |
23265 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_LIBYA))); | |
23266 | } | |
23267 | { | |
23268 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)(wxLANGUAGE_ARABIC_MOROCCO))); | |
23269 | } | |
23270 | { | |
23271 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_OMAN))); | |
23272 | } | |
23273 | { | |
23274 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)(wxLANGUAGE_ARABIC_QATAR))); | |
23275 | } | |
23276 | { | |
23277 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
23278 | } | |
23279 | { | |
23280 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SUDAN))); | |
23281 | } | |
23282 | { | |
23283 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_SYRIA))); | |
23284 | } | |
23285 | { | |
23286 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)(wxLANGUAGE_ARABIC_TUNISIA))); | |
23287 | } | |
23288 | { | |
23289 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)(wxLANGUAGE_ARABIC_UAE))); | |
23290 | } | |
23291 | { | |
23292 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)(wxLANGUAGE_ARABIC_YEMEN))); | |
23293 | } | |
23294 | { | |
23295 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)(wxLANGUAGE_ARMENIAN))); | |
23296 | } | |
23297 | { | |
23298 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)(wxLANGUAGE_ASSAMESE))); | |
23299 | } | |
23300 | { | |
23301 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)(wxLANGUAGE_AYMARA))); | |
23302 | } | |
23303 | { | |
23304 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)(wxLANGUAGE_AZERI))); | |
23305 | } | |
23306 | { | |
23307 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_AZERI_CYRILLIC))); | |
23308 | } | |
23309 | { | |
23310 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)(wxLANGUAGE_AZERI_LATIN))); | |
23311 | } | |
23312 | { | |
23313 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)(wxLANGUAGE_BASHKIR))); | |
23314 | } | |
23315 | { | |
23316 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)(wxLANGUAGE_BASQUE))); | |
23317 | } | |
23318 | { | |
23319 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)(wxLANGUAGE_BELARUSIAN))); | |
23320 | } | |
23321 | { | |
23322 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)(wxLANGUAGE_BENGALI))); | |
23323 | } | |
23324 | { | |
23325 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)(wxLANGUAGE_BHUTANI))); | |
23326 | } | |
23327 | { | |
23328 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)(wxLANGUAGE_BIHARI))); | |
23329 | } | |
23330 | { | |
23331 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)(wxLANGUAGE_BISLAMA))); | |
23332 | } | |
23333 | { | |
23334 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)(wxLANGUAGE_BRETON))); | |
23335 | } | |
23336 | { | |
23337 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)(wxLANGUAGE_BULGARIAN))); | |
23338 | } | |
23339 | { | |
23340 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)(wxLANGUAGE_BURMESE))); | |
23341 | } | |
23342 | { | |
23343 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)(wxLANGUAGE_CAMBODIAN))); | |
23344 | } | |
23345 | { | |
23346 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)(wxLANGUAGE_CATALAN))); | |
23347 | } | |
23348 | { | |
23349 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)(wxLANGUAGE_CHINESE))); | |
23350 | } | |
23351 | { | |
23352 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
23353 | } | |
23354 | { | |
23355 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
23356 | } | |
23357 | { | |
23358 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)(wxLANGUAGE_CHINESE_HONGKONG))); | |
23359 | } | |
23360 | { | |
23361 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)(wxLANGUAGE_CHINESE_MACAU))); | |
23362 | } | |
23363 | { | |
23364 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)(wxLANGUAGE_CHINESE_SINGAPORE))); | |
23365 | } | |
23366 | { | |
23367 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)(wxLANGUAGE_CHINESE_TAIWAN))); | |
23368 | } | |
23369 | { | |
23370 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)(wxLANGUAGE_CORSICAN))); | |
23371 | } | |
23372 | { | |
23373 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_CROATIAN))); | |
23374 | } | |
23375 | { | |
23376 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)(wxLANGUAGE_CZECH))); | |
23377 | } | |
23378 | { | |
23379 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)(wxLANGUAGE_DANISH))); | |
23380 | } | |
23381 | { | |
23382 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)(wxLANGUAGE_DUTCH))); | |
23383 | } | |
23384 | { | |
23385 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_DUTCH_BELGIAN))); | |
23386 | } | |
23387 | { | |
23388 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)(wxLANGUAGE_ENGLISH))); | |
23389 | } | |
23390 | { | |
23391 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_UK))); | |
23392 | } | |
23393 | { | |
23394 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_US))); | |
23395 | } | |
23396 | { | |
23397 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
23398 | } | |
23399 | { | |
23400 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BELIZE))); | |
23401 | } | |
23402 | { | |
23403 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
23404 | } | |
23405 | { | |
23406 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CANADA))); | |
23407 | } | |
23408 | { | |
23409 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
23410 | } | |
23411 | { | |
23412 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_DENMARK))); | |
23413 | } | |
23414 | { | |
23415 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_EIRE))); | |
23416 | } | |
23417 | { | |
23418 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_JAMAICA))); | |
23419 | } | |
23420 | { | |
23421 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
23422 | } | |
23423 | { | |
23424 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
23425 | } | |
23426 | { | |
23427 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
23428 | } | |
23429 | { | |
23430 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
23431 | } | |
23432 | { | |
23433 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
23434 | } | |
23435 | { | |
23436 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)(wxLANGUAGE_ESPERANTO))); | |
23437 | } | |
23438 | { | |
23439 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)(wxLANGUAGE_ESTONIAN))); | |
23440 | } | |
23441 | { | |
23442 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)(wxLANGUAGE_FAEROESE))); | |
23443 | } | |
23444 | { | |
23445 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)(wxLANGUAGE_FARSI))); | |
23446 | } | |
23447 | { | |
23448 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)(wxLANGUAGE_FIJI))); | |
23449 | } | |
23450 | { | |
23451 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)(wxLANGUAGE_FINNISH))); | |
23452 | } | |
23453 | { | |
23454 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)(wxLANGUAGE_FRENCH))); | |
23455 | } | |
23456 | { | |
23457 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_BELGIAN))); | |
23458 | } | |
23459 | { | |
23460 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)(wxLANGUAGE_FRENCH_CANADIAN))); | |
23461 | } | |
23462 | { | |
23463 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
23464 | } | |
23465 | { | |
23466 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)(wxLANGUAGE_FRENCH_MONACO))); | |
23467 | } | |
23468 | { | |
23469 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)(wxLANGUAGE_FRENCH_SWISS))); | |
23470 | } | |
23471 | { | |
23472 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)(wxLANGUAGE_FRISIAN))); | |
23473 | } | |
23474 | { | |
23475 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)(wxLANGUAGE_GALICIAN))); | |
23476 | } | |
23477 | { | |
23478 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)(wxLANGUAGE_GEORGIAN))); | |
23479 | } | |
23480 | { | |
23481 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN))); | |
23482 | } | |
23483 | { | |
23484 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
23485 | } | |
23486 | { | |
23487 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)(wxLANGUAGE_GERMAN_BELGIUM))); | |
23488 | } | |
23489 | { | |
23490 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
23491 | } | |
23492 | { | |
23493 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
23494 | } | |
23495 | { | |
23496 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_GERMAN_SWISS))); | |
23497 | } | |
23498 | { | |
23499 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)(wxLANGUAGE_GREEK))); | |
23500 | } | |
23501 | { | |
23502 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)(wxLANGUAGE_GREENLANDIC))); | |
23503 | } | |
23504 | { | |
23505 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)(wxLANGUAGE_GUARANI))); | |
23506 | } | |
23507 | { | |
23508 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)(wxLANGUAGE_GUJARATI))); | |
23509 | } | |
23510 | { | |
23511 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)(wxLANGUAGE_HAUSA))); | |
23512 | } | |
23513 | { | |
23514 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)(wxLANGUAGE_HEBREW))); | |
23515 | } | |
23516 | { | |
23517 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)(wxLANGUAGE_HINDI))); | |
23518 | } | |
23519 | { | |
23520 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)(wxLANGUAGE_HUNGARIAN))); | |
23521 | } | |
23522 | { | |
23523 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)(wxLANGUAGE_ICELANDIC))); | |
23524 | } | |
23525 | { | |
23526 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)(wxLANGUAGE_INDONESIAN))); | |
23527 | } | |
23528 | { | |
23529 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUA))); | |
23530 | } | |
23531 | { | |
23532 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)(wxLANGUAGE_INTERLINGUE))); | |
23533 | } | |
23534 | { | |
23535 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)(wxLANGUAGE_INUKTITUT))); | |
23536 | } | |
23537 | { | |
23538 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)(wxLANGUAGE_INUPIAK))); | |
23539 | } | |
23540 | { | |
23541 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)(wxLANGUAGE_IRISH))); | |
23542 | } | |
23543 | { | |
23544 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)(wxLANGUAGE_ITALIAN))); | |
23545 | } | |
23546 | { | |
23547 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)(wxLANGUAGE_ITALIAN_SWISS))); | |
23548 | } | |
23549 | { | |
23550 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)(wxLANGUAGE_JAPANESE))); | |
23551 | } | |
23552 | { | |
23553 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)(wxLANGUAGE_JAVANESE))); | |
23554 | } | |
23555 | { | |
23556 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)(wxLANGUAGE_KANNADA))); | |
23557 | } | |
23558 | { | |
23559 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI))); | |
23560 | } | |
23561 | { | |
23562 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)(wxLANGUAGE_KASHMIRI_INDIA))); | |
23563 | } | |
23564 | { | |
23565 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)(wxLANGUAGE_KAZAKH))); | |
23566 | } | |
23567 | { | |
23568 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)(wxLANGUAGE_KERNEWEK))); | |
23569 | } | |
23570 | { | |
23571 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)(wxLANGUAGE_KINYARWANDA))); | |
23572 | } | |
23573 | { | |
23574 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)(wxLANGUAGE_KIRGHIZ))); | |
23575 | } | |
23576 | { | |
23577 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)(wxLANGUAGE_KIRUNDI))); | |
23578 | } | |
23579 | { | |
23580 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)(wxLANGUAGE_KONKANI))); | |
23581 | } | |
23582 | { | |
23583 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)(wxLANGUAGE_KOREAN))); | |
23584 | } | |
23585 | { | |
23586 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)(wxLANGUAGE_KURDISH))); | |
23587 | } | |
23588 | { | |
23589 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)(wxLANGUAGE_LAOTHIAN))); | |
23590 | } | |
23591 | { | |
23592 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)(wxLANGUAGE_LATIN))); | |
23593 | } | |
23594 | { | |
23595 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)(wxLANGUAGE_LATVIAN))); | |
23596 | } | |
23597 | { | |
23598 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)(wxLANGUAGE_LINGALA))); | |
23599 | } | |
23600 | { | |
23601 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)(wxLANGUAGE_LITHUANIAN))); | |
23602 | } | |
23603 | { | |
23604 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)(wxLANGUAGE_MACEDONIAN))); | |
23605 | } | |
23606 | { | |
23607 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)(wxLANGUAGE_MALAGASY))); | |
23608 | } | |
23609 | { | |
23610 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)(wxLANGUAGE_MALAY))); | |
23611 | } | |
23612 | { | |
23613 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)(wxLANGUAGE_MALAYALAM))); | |
23614 | } | |
23615 | { | |
23616 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
23617 | } | |
23618 | { | |
23619 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)(wxLANGUAGE_MALAY_MALAYSIA))); | |
23620 | } | |
23621 | { | |
23622 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)(wxLANGUAGE_MALTESE))); | |
23623 | } | |
23624 | { | |
23625 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)(wxLANGUAGE_MANIPURI))); | |
23626 | } | |
23627 | { | |
23628 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)(wxLANGUAGE_MAORI))); | |
23629 | } | |
23630 | { | |
23631 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)(wxLANGUAGE_MARATHI))); | |
23632 | } | |
23633 | { | |
23634 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)(wxLANGUAGE_MOLDAVIAN))); | |
23635 | } | |
23636 | { | |
23637 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)(wxLANGUAGE_MONGOLIAN))); | |
23638 | } | |
23639 | { | |
23640 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)(wxLANGUAGE_NAURU))); | |
23641 | } | |
23642 | { | |
23643 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)(wxLANGUAGE_NEPALI))); | |
23644 | } | |
23645 | { | |
23646 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)(wxLANGUAGE_NEPALI_INDIA))); | |
23647 | } | |
23648 | { | |
23649 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
23650 | } | |
23651 | { | |
23652 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
23653 | } | |
23654 | { | |
23655 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)(wxLANGUAGE_OCCITAN))); | |
23656 | } | |
23657 | { | |
23658 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)(wxLANGUAGE_ORIYA))); | |
23659 | } | |
23660 | { | |
23661 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)(wxLANGUAGE_OROMO))); | |
23662 | } | |
23663 | { | |
23664 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)(wxLANGUAGE_PASHTO))); | |
23665 | } | |
23666 | { | |
23667 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)(wxLANGUAGE_POLISH))); | |
23668 | } | |
23669 | { | |
23670 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE))); | |
23671 | } | |
23672 | { | |
23673 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
23674 | } | |
23675 | { | |
23676 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)(wxLANGUAGE_PUNJABI))); | |
23677 | } | |
23678 | { | |
23679 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)(wxLANGUAGE_QUECHUA))); | |
23680 | } | |
23681 | { | |
23682 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)(wxLANGUAGE_RHAETO_ROMANCE))); | |
23683 | } | |
23684 | { | |
23685 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)(wxLANGUAGE_ROMANIAN))); | |
23686 | } | |
23687 | { | |
23688 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN))); | |
23689 | } | |
23690 | { | |
23691 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
23692 | } | |
23693 | { | |
23694 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)(wxLANGUAGE_SAMOAN))); | |
23695 | } | |
23696 | { | |
23697 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)(wxLANGUAGE_SANGHO))); | |
23698 | } | |
23699 | { | |
23700 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)(wxLANGUAGE_SANSKRIT))); | |
23701 | } | |
23702 | { | |
23703 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)(wxLANGUAGE_SCOTS_GAELIC))); | |
23704 | } | |
23705 | { | |
23706 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN))); | |
23707 | } | |
23708 | { | |
23709 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
23710 | } | |
23711 | { | |
23712 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)(wxLANGUAGE_SERBIAN_LATIN))); | |
23713 | } | |
23714 | { | |
23715 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)(wxLANGUAGE_SERBO_CROATIAN))); | |
23716 | } | |
23717 | { | |
23718 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)(wxLANGUAGE_SESOTHO))); | |
23719 | } | |
23720 | { | |
23721 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)(wxLANGUAGE_SETSWANA))); | |
23722 | } | |
23723 | { | |
23724 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)(wxLANGUAGE_SHONA))); | |
23725 | } | |
23726 | { | |
23727 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)(wxLANGUAGE_SINDHI))); | |
23728 | } | |
23729 | { | |
23730 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)(wxLANGUAGE_SINHALESE))); | |
23731 | } | |
23732 | { | |
23733 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)(wxLANGUAGE_SISWATI))); | |
23734 | } | |
23735 | { | |
23736 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)(wxLANGUAGE_SLOVAK))); | |
23737 | } | |
23738 | { | |
23739 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)(wxLANGUAGE_SLOVENIAN))); | |
23740 | } | |
23741 | { | |
23742 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)(wxLANGUAGE_SOMALI))); | |
23743 | } | |
23744 | { | |
23745 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)(wxLANGUAGE_SPANISH))); | |
23746 | } | |
23747 | { | |
23748 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ARGENTINA))); | |
23749 | } | |
23750 | { | |
23751 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_BOLIVIA))); | |
23752 | } | |
23753 | { | |
23754 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)(wxLANGUAGE_SPANISH_CHILE))); | |
23755 | } | |
23756 | { | |
23757 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COLOMBIA))); | |
23758 | } | |
23759 | { | |
23760 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
23761 | } | |
23762 | { | |
23763 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
23764 | } | |
23765 | { | |
23766 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_ECUADOR))); | |
23767 | } | |
23768 | { | |
23769 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
23770 | } | |
23771 | { | |
23772 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_GUATEMALA))); | |
23773 | } | |
23774 | { | |
23775 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)(wxLANGUAGE_SPANISH_HONDURAS))); | |
23776 | } | |
23777 | { | |
23778 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MEXICAN))); | |
23779 | } | |
23780 | { | |
23781 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)(wxLANGUAGE_SPANISH_MODERN))); | |
23782 | } | |
23783 | { | |
23784 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_NICARAGUA))); | |
23785 | } | |
23786 | { | |
23787 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PANAMA))); | |
23788 | } | |
23789 | { | |
23790 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PARAGUAY))); | |
23791 | } | |
23792 | { | |
23793 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PERU))); | |
23794 | } | |
23795 | { | |
23796 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
23797 | } | |
23798 | { | |
23799 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)(wxLANGUAGE_SPANISH_URUGUAY))); | |
23800 | } | |
23801 | { | |
23802 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)(wxLANGUAGE_SPANISH_US))); | |
23803 | } | |
23804 | { | |
23805 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)(wxLANGUAGE_SPANISH_VENEZUELA))); | |
23806 | } | |
23807 | { | |
23808 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)(wxLANGUAGE_SUNDANESE))); | |
23809 | } | |
23810 | { | |
23811 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)(wxLANGUAGE_SWAHILI))); | |
23812 | } | |
23813 | { | |
23814 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)(wxLANGUAGE_SWEDISH))); | |
23815 | } | |
23816 | { | |
23817 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)(wxLANGUAGE_SWEDISH_FINLAND))); | |
23818 | } | |
23819 | { | |
23820 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)(wxLANGUAGE_TAGALOG))); | |
23821 | } | |
23822 | { | |
23823 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)(wxLANGUAGE_TAJIK))); | |
23824 | } | |
23825 | { | |
23826 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)(wxLANGUAGE_TAMIL))); | |
23827 | } | |
23828 | { | |
23829 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)(wxLANGUAGE_TATAR))); | |
23830 | } | |
23831 | { | |
23832 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)(wxLANGUAGE_TELUGU))); | |
23833 | } | |
23834 | { | |
23835 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)(wxLANGUAGE_THAI))); | |
23836 | } | |
23837 | { | |
23838 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)(wxLANGUAGE_TIBETAN))); | |
23839 | } | |
23840 | { | |
23841 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)(wxLANGUAGE_TIGRINYA))); | |
23842 | } | |
23843 | { | |
23844 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)(wxLANGUAGE_TONGA))); | |
23845 | } | |
23846 | { | |
23847 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)(wxLANGUAGE_TSONGA))); | |
23848 | } | |
23849 | { | |
23850 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)(wxLANGUAGE_TURKISH))); | |
23851 | } | |
23852 | { | |
23853 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)(wxLANGUAGE_TURKMEN))); | |
23854 | } | |
23855 | { | |
23856 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)(wxLANGUAGE_TWI))); | |
23857 | } | |
23858 | { | |
23859 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)(wxLANGUAGE_UIGHUR))); | |
23860 | } | |
23861 | { | |
23862 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)(wxLANGUAGE_UKRAINIAN))); | |
23863 | } | |
23864 | { | |
23865 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)(wxLANGUAGE_URDU))); | |
23866 | } | |
23867 | { | |
23868 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)(wxLANGUAGE_URDU_INDIA))); | |
23869 | } | |
23870 | { | |
23871 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)(wxLANGUAGE_URDU_PAKISTAN))); | |
23872 | } | |
23873 | { | |
23874 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)(wxLANGUAGE_UZBEK))); | |
23875 | } | |
23876 | { | |
23877 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)(wxLANGUAGE_UZBEK_CYRILLIC))); | |
23878 | } | |
23879 | { | |
23880 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)(wxLANGUAGE_UZBEK_LATIN))); | |
23881 | } | |
23882 | { | |
23883 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)(wxLANGUAGE_VIETNAMESE))); | |
23884 | } | |
23885 | { | |
23886 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)(wxLANGUAGE_VOLAPUK))); | |
23887 | } | |
23888 | { | |
23889 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)(wxLANGUAGE_WELSH))); | |
23890 | } | |
23891 | { | |
23892 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)(wxLANGUAGE_WOLOF))); | |
23893 | } | |
23894 | { | |
23895 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)(wxLANGUAGE_XHOSA))); | |
23896 | } | |
23897 | { | |
23898 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)(wxLANGUAGE_YIDDISH))); | |
23899 | } | |
23900 | { | |
23901 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)(wxLANGUAGE_YORUBA))); | |
23902 | } | |
23903 | { | |
23904 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)(wxLANGUAGE_ZHUANG))); | |
23905 | } | |
23906 | { | |
23907 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)(wxLANGUAGE_ZULU))); | |
23908 | } | |
23909 | { | |
23910 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)(wxLANGUAGE_USER_DEFINED))); | |
23911 | } | |
23912 | { | |
23913 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)(wxLOCALE_CAT_NUMBER))); | |
23914 | } | |
23915 | { | |
23916 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)(wxLOCALE_CAT_DATE))); | |
23917 | } | |
23918 | { | |
23919 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)(wxLOCALE_CAT_MONEY))); | |
23920 | } | |
23921 | { | |
23922 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)(wxLOCALE_CAT_MAX))); | |
23923 | } | |
23924 | { | |
23925 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)(wxLOCALE_THOUSANDS_SEP))); | |
23926 | } | |
23927 | { | |
23928 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)(wxLOCALE_DECIMAL_POINT))); | |
23929 | } | |
23930 | { | |
23931 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)(wxLOCALE_LOAD_DEFAULT))); | |
23932 | } | |
23933 | { | |
23934 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)(wxLOCALE_CONV_ENCODING))); | |
23935 | } | |
23936 | { | |
23937 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)(wxCONVERT_STRICT))); | |
23938 | } | |
23939 | { | |
23940 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)(wxCONVERT_SUBSTITUTE))); | |
23941 | } | |
23942 | { | |
23943 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)(wxPLATFORM_CURRENT))); | |
23944 | } | |
23945 | { | |
23946 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)(wxPLATFORM_UNIX))); | |
23947 | } | |
23948 | { | |
23949 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)(wxPLATFORM_WINDOWS))); | |
23950 | } | |
23951 | { | |
23952 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)(wxPLATFORM_OS2))); | |
23953 | } | |
23954 | { | |
23955 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)(wxPLATFORM_MAC))); | |
23956 | } | |
e2950dbb RD |
23957 | { |
23958 | PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int((int)(wxBUFFER_VIRTUAL_AREA))); | |
23959 | } | |
23960 | { | |
23961 | PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int((int)(wxBUFFER_CLIENT_AREA))); | |
23962 | } | |
093d3ff1 RD |
23963 | { |
23964 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)(wxIMAGELIST_DRAW_NORMAL))); | |
23965 | } | |
23966 | { | |
23967 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)(wxIMAGELIST_DRAW_TRANSPARENT))); | |
23968 | } | |
23969 | { | |
23970 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)(wxIMAGELIST_DRAW_SELECTED))); | |
23971 | } | |
23972 | { | |
23973 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)(wxIMAGELIST_DRAW_FOCUSED))); | |
23974 | } | |
23975 | { | |
23976 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)(wxIMAGE_LIST_NORMAL))); | |
23977 | } | |
23978 | { | |
23979 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)(wxIMAGE_LIST_SMALL))); | |
23980 | } | |
23981 | { | |
23982 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)(wxIMAGE_LIST_STATE))); | |
23983 | } | |
d14a1e28 RD |
23984 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
23985 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
23986 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
23987 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
23988 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
23989 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
23990 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
23991 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
23992 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
23993 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
23994 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
23995 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
23996 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
23997 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
23998 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
23999 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
24000 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
24001 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
24002 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
24003 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
24004 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
24005 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
24006 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
24007 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
24008 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
24009 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
24010 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
24011 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
24012 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
24013 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
24014 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
24015 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
24016 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
24017 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
24018 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
24019 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
24020 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
24021 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
24022 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
24023 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
24024 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
24025 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
24026 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
24027 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
24028 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
24029 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
24030 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
8d38bd1d RD |
24031 | { |
24032 | PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int((int)(wxCONTROL_DISABLED))); | |
24033 | } | |
24034 | { | |
24035 | PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int((int)(wxCONTROL_FOCUSED))); | |
24036 | } | |
24037 | { | |
24038 | PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int((int)(wxCONTROL_PRESSED))); | |
24039 | } | |
24040 | { | |
24041 | PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int((int)(wxCONTROL_ISDEFAULT))); | |
24042 | } | |
24043 | { | |
24044 | PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int((int)(wxCONTROL_ISSUBMENU))); | |
24045 | } | |
24046 | { | |
24047 | PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int((int)(wxCONTROL_EXPANDED))); | |
24048 | } | |
24049 | { | |
24050 | PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int((int)(wxCONTROL_CURRENT))); | |
24051 | } | |
24052 | { | |
24053 | PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int((int)(wxCONTROL_SELECTED))); | |
24054 | } | |
24055 | { | |
24056 | PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int((int)(wxCONTROL_CHECKED))); | |
24057 | } | |
24058 | { | |
24059 | PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int((int)(wxCONTROL_CHECKABLE))); | |
24060 | } | |
24061 | { | |
24062 | PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int((int)(wxCONTROL_UNDETERMINED))); | |
24063 | } | |
24064 | { | |
24065 | PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int((int)(wxCONTROL_FLAGS_MASK))); | |
24066 | } | |
24067 | { | |
24068 | PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int((int)(wxCONTROL_DIRTY))); | |
24069 | } | |
24070 | { | |
24071 | PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int((int)(wxRendererVersion::Current_Version))); | |
24072 | } | |
24073 | { | |
24074 | PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int((int)(wxRendererVersion::Current_Age))); | |
24075 | } | |
7722248d RD |
24076 | |
24077 | // Work around a chicken/egg problem in drawlist.cpp | |
24078 | wxPyDrawList_SetAPIPtr(); | |
24079 | ||
d14a1e28 RD |
24080 | } |
24081 |