]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
32fe5131 | 3 | * Version 1.3.27 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d55e5bfc RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
36ed4f51 | 26 | }; |
d55e5bfc RD |
27 | #endif |
28 | ||
32fe5131 RD |
29 | /*********************************************************************** |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
d55e5bfc | 35 | |
32fe5131 RD |
36 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
37 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
38 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
36ed4f51 | 40 | # else |
32fe5131 | 41 | # define SWIGTEMPLATEDISAMBIGUATOR |
36ed4f51 RD |
42 | # endif |
43 | #endif | |
d55e5bfc | 44 | |
32fe5131 RD |
45 | /* inline attribute */ |
46 | #ifndef SWIGINLINE | |
47 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
48 | # define SWIGINLINE inline | |
49 | # else | |
50 | # define SWIGINLINE | |
51 | # endif | |
52 | #endif | |
53 | ||
54 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
55 | #ifndef SWIGUNUSED | |
56 | # if defined(__GNUC__) || defined(__ICC) | |
57 | # define SWIGUNUSED __attribute__ ((unused)) | |
58 | # else | |
59 | # define SWIGUNUSED | |
60 | # endif | |
61 | #endif | |
62 | ||
63 | /* internal SWIG method */ | |
64 | #ifndef SWIGINTERN | |
65 | # define SWIGINTERN static SWIGUNUSED | |
66 | #endif | |
67 | ||
68 | /* internal inline SWIG method */ | |
69 | #ifndef SWIGINTERNINLINE | |
70 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
71 | #endif | |
72 | ||
73 | /* exporting methods for Windows DLLs */ | |
74 | #ifndef SWIGEXPORT | |
75 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
76 | # if defined(STATIC_LINKED) | |
77 | # define SWIGEXPORT | |
78 | # else | |
79 | # define SWIGEXPORT __declspec(dllexport) | |
80 | # endif | |
81 | # else | |
82 | # define SWIGEXPORT | |
83 | # endif | |
84 | #endif | |
85 | ||
86 | /* calling conventions for Windows */ | |
87 | #ifndef SWIGSTDCALL | |
88 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
89 | # define SWIGSTDCALL __stdcall | |
90 | # else | |
91 | # define SWIGSTDCALL | |
92 | # endif | |
93 | #endif | |
94 | ||
95 | ||
d55e5bfc | 96 | |
36ed4f51 | 97 | #include <Python.h> |
d55e5bfc RD |
98 | |
99 | /*********************************************************************** | |
36ed4f51 | 100 | * swigrun.swg |
d55e5bfc | 101 | * |
36ed4f51 RD |
102 | * This file contains generic CAPI SWIG runtime support for pointer |
103 | * type checking. | |
d55e5bfc RD |
104 | * |
105 | ************************************************************************/ | |
106 | ||
36ed4f51 RD |
107 | /* This should only be incremented when either the layout of swig_type_info changes, |
108 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 109 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 110 | |
36ed4f51 RD |
111 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
112 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
113 | # define SWIG_QUOTE_STRING(x) #x |
114 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
115 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 116 | #else |
32fe5131 | 117 | # define SWIG_TYPE_TABLE_NAME |
36ed4f51 RD |
118 | #endif |
119 | ||
120 | /* | |
121 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
122 | creating a static or dynamic library from the swig runtime code. | |
123 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
124 | ||
125 | But only do this if is strictly necessary, ie, if you have problems | |
126 | with your compiler or so. | |
127 | */ | |
32fe5131 | 128 | |
36ed4f51 | 129 | #ifndef SWIGRUNTIME |
32fe5131 | 130 | # define SWIGRUNTIME SWIGINTERN |
36ed4f51 | 131 | #endif |
32fe5131 | 132 | |
36ed4f51 | 133 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
135 | #endif |
136 | ||
32fe5131 RD |
137 | #include <string.h> |
138 | ||
d55e5bfc RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | typedef void *(*swig_converter_func)(void *); | |
144 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
145 | ||
32fe5131 | 146 | /* Structure to store inforomation on one type */ |
d55e5bfc | 147 | typedef struct swig_type_info { |
32fe5131 RD |
148 | const char *name; /* mangled name of this type */ |
149 | const char *str; /* human readable name of this type */ | |
150 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
151 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
152 | void *clientdata; /* language specific type data */ | |
d55e5bfc RD |
153 | } swig_type_info; |
154 | ||
32fe5131 RD |
155 | /* Structure to store a type and conversion function used for casting */ |
156 | typedef struct swig_cast_info { | |
157 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
158 | swig_converter_func converter; /* function to cast the void pointers */ | |
159 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
160 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
161 | } swig_cast_info; | |
162 | ||
163 | /* Structure used to store module information | |
164 | * Each module generates one structure like this, and the runtime collects | |
165 | * all of these structures and stores them in a circularly linked list.*/ | |
166 | typedef struct swig_module_info { | |
167 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
168 | size_t size; /* Number of types in this module */ | |
169 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
170 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
171 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
172 | void *clientdata; /* Language specific module data */ | |
173 | } swig_module_info; | |
174 | ||
175 | ||
36ed4f51 RD |
176 | /* |
177 | Compare two type names skipping the space characters, therefore | |
178 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
179 | ||
180 | Return 0 when the two name types are equivalent, as in | |
181 | strncmp, but skipping ' '. | |
182 | */ | |
183 | SWIGRUNTIME int | |
184 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
185 | const char *f2, const char *l2) { | |
186 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
187 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
188 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
32fe5131 | 189 | if (*f1 != *f2) return (int)(*f1 - *f2); |
36ed4f51 RD |
190 | } |
191 | return (l1 - f1) - (l2 - f2); | |
192 | } | |
193 | ||
194 | /* | |
195 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 196 | Return 0 if not equal, 1 if equal |
36ed4f51 RD |
197 | */ |
198 | SWIGRUNTIME int | |
199 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
200 | int equiv = 0; | |
201 | const char* te = tb + strlen(tb); | |
202 | const char* ne = nb; | |
203 | while (!equiv && *ne) { | |
204 | for (nb = ne; *ne; ++ne) { | |
205 | if (*ne == '|') break; | |
206 | } | |
32fe5131 | 207 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
36ed4f51 RD |
208 | if (*ne) ++ne; |
209 | } | |
210 | return equiv; | |
211 | } | |
212 | ||
213 | /* | |
32fe5131 RD |
214 | Check type equivalence in a name list like <name1>|<name2>|... |
215 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
36ed4f51 | 216 | */ |
32fe5131 RD |
217 | SWIGRUNTIME int |
218 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
219 | int equiv = 0; | |
220 | const char* te = tb + strlen(tb); | |
221 | const char* ne = nb; | |
222 | while (!equiv && *ne) { | |
223 | for (nb = ne; *ne; ++ne) { | |
224 | if (*ne == '|') break; | |
36ed4f51 | 225 | } |
32fe5131 RD |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
227 | if (*ne) ++ne; | |
36ed4f51 | 228 | } |
32fe5131 | 229 | return equiv; |
36ed4f51 RD |
230 | } |
231 | ||
32fe5131 RD |
232 | |
233 | /* think of this as a c++ template<> or a scheme macro */ | |
234 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
235 | if (ty) { \ | |
236 | swig_cast_info *iter = ty->cast; \ | |
237 | while (iter) { \ | |
238 | if (comparison) { \ | |
239 | if (iter == ty->cast) return iter; \ | |
240 | /* Move iter to the top of the linked list */ \ | |
241 | iter->prev->next = iter->next; \ | |
242 | if (iter->next) \ | |
243 | iter->next->prev = iter->prev; \ | |
244 | iter->next = ty->cast; \ | |
245 | iter->prev = 0; \ | |
246 | if (ty->cast) ty->cast->prev = iter; \ | |
247 | ty->cast = iter; \ | |
248 | return iter; \ | |
249 | } \ | |
250 | iter = iter->next; \ | |
251 | } \ | |
252 | } \ | |
253 | return 0 | |
254 | ||
36ed4f51 RD |
255 | /* |
256 | Check the typename | |
257 | */ | |
32fe5131 | 258 | SWIGRUNTIME swig_cast_info * |
36ed4f51 | 259 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
260 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
261 | } | |
262 | ||
263 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
264 | SWIGRUNTIME swig_cast_info * | |
265 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
266 | SWIG_TypeCheck_Template(iter->type == from, into); | |
36ed4f51 RD |
267 | } |
268 | ||
269 | /* | |
270 | Cast a pointer up an inheritance hierarchy | |
271 | */ | |
272 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 273 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
36ed4f51 RD |
274 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
275 | } | |
276 | ||
277 | /* | |
278 | Dynamic pointer casting. Down an inheritance hierarchy | |
279 | */ | |
280 | SWIGRUNTIME swig_type_info * | |
281 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
282 | swig_type_info *lastty = ty; | |
283 | if (!ty || !ty->dcast) return ty; | |
284 | while (ty && (ty->dcast)) { | |
285 | ty = (*ty->dcast)(ptr); | |
286 | if (ty) lastty = ty; | |
287 | } | |
288 | return lastty; | |
289 | } | |
290 | ||
291 | /* | |
292 | Return the name associated with this type | |
293 | */ | |
294 | SWIGRUNTIMEINLINE const char * | |
295 | SWIG_TypeName(const swig_type_info *ty) { | |
296 | return ty->name; | |
297 | } | |
298 | ||
299 | /* | |
300 | Return the pretty name associated with this type, | |
301 | that is an unmangled type name in a form presentable to the user. | |
302 | */ | |
303 | SWIGRUNTIME const char * | |
304 | SWIG_TypePrettyName(const swig_type_info *type) { | |
305 | /* The "str" field contains the equivalent pretty names of the | |
306 | type, separated by vertical-bar characters. We choose | |
307 | to print the last name, as it is often (?) the most | |
308 | specific. */ | |
309 | if (type->str != NULL) { | |
310 | const char *last_name = type->str; | |
311 | const char *s; | |
312 | for (s = type->str; *s; s++) | |
313 | if (*s == '|') last_name = s+1; | |
314 | return last_name; | |
315 | } | |
316 | else | |
317 | return type->name; | |
318 | } | |
319 | ||
36ed4f51 RD |
320 | /* |
321 | Set the clientdata field for a type | |
322 | */ | |
323 | SWIGRUNTIME void | |
32fe5131 RD |
324 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
325 | swig_cast_info *cast = ti->cast; | |
36ed4f51 RD |
326 | /* if (ti->clientdata == clientdata) return; */ |
327 | ti->clientdata = clientdata; | |
32fe5131 RD |
328 | |
329 | while (cast) { | |
330 | if (!cast->converter) { | |
331 | swig_type_info *tc = cast->type; | |
332 | if (!tc->clientdata) { | |
333 | SWIG_TypeClientData(tc, clientdata); | |
36ed4f51 | 334 | } |
32fe5131 RD |
335 | } |
336 | cast = cast->next; | |
337 | } | |
338 | } | |
339 | ||
340 | /* | |
341 | Search for a swig_type_info structure only by mangled name | |
342 | Search is a O(log #types) | |
343 | ||
344 | We start searching at module start, and finish searching when start == end. | |
345 | Note: if start == end at the beginning of the function, we go all the way around | |
346 | the circular list. | |
347 | */ | |
348 | SWIGRUNTIME swig_type_info * | |
349 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
350 | swig_module_info *end, | |
351 | const char *name) { | |
352 | swig_module_info *iter = start; | |
353 | do { | |
354 | if (iter->size) { | |
355 | register size_t l = 0; | |
356 | register size_t r = iter->size - 1; | |
357 | do { | |
358 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
359 | register size_t i = (l + r) >> 1; | |
360 | const char *iname = iter->types[i]->name; | |
361 | if (iname) { | |
362 | register int compare = strcmp(name, iname); | |
363 | if (compare == 0) { | |
364 | return iter->types[i]; | |
365 | } else if (compare < 0) { | |
366 | if (i) { | |
367 | r = i - 1; | |
368 | } else { | |
369 | break; | |
370 | } | |
371 | } else if (compare > 0) { | |
372 | l = i + 1; | |
373 | } | |
374 | } else { | |
375 | break; /* should never happen */ | |
376 | } | |
377 | } while (l <= r); | |
36ed4f51 | 378 | } |
32fe5131 RD |
379 | iter = iter->next; |
380 | } while (iter != end); | |
381 | return 0; | |
382 | } | |
383 | ||
384 | /* | |
385 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
386 | It first searches the mangled names of the types, which is a O(log #types) | |
387 | If a type is not found it then searches the human readable names, which is O(#types). | |
388 | ||
389 | We start searching at module start, and finish searching when start == end. | |
390 | Note: if start == end at the beginning of the function, we go all the way around | |
391 | the circular list. | |
392 | */ | |
393 | SWIGRUNTIME swig_type_info * | |
394 | SWIG_TypeQueryModule(swig_module_info *start, | |
395 | swig_module_info *end, | |
396 | const char *name) { | |
397 | /* STEP 1: Search the name field using binary search */ | |
398 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
399 | if (ret) { | |
400 | return ret; | |
401 | } else { | |
402 | /* STEP 2: If the type hasn't been found, do a complete search | |
403 | of the str field (the human readable name) */ | |
404 | swig_module_info *iter = start; | |
405 | do { | |
406 | register size_t i = 0; | |
407 | for (; i < iter->size; ++i) { | |
408 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
409 | return iter->types[i]; | |
410 | } | |
411 | iter = iter->next; | |
412 | } while (iter != end); | |
36ed4f51 | 413 | } |
32fe5131 RD |
414 | |
415 | /* neither found a match */ | |
416 | return 0; | |
36ed4f51 RD |
417 | } |
418 | ||
32fe5131 | 419 | |
36ed4f51 RD |
420 | /* |
421 | Pack binary data into a string | |
422 | */ | |
423 | SWIGRUNTIME char * | |
424 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
425 | static const char hex[17] = "0123456789abcdef"; |
426 | register const unsigned char *u = (unsigned char *) ptr; | |
427 | register const unsigned char *eu = u + sz; | |
36ed4f51 | 428 | for (; u != eu; ++u) { |
32fe5131 | 429 | register unsigned char uu = *u; |
36ed4f51 RD |
430 | *(c++) = hex[(uu & 0xf0) >> 4]; |
431 | *(c++) = hex[uu & 0xf]; | |
432 | } | |
433 | return c; | |
434 | } | |
435 | ||
436 | /* | |
437 | Unpack binary data from a string | |
438 | */ | |
439 | SWIGRUNTIME const char * | |
440 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
441 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 442 | register const unsigned char *eu = u + sz; |
36ed4f51 | 443 | for (; u != eu; ++u) { |
32fe5131 | 444 | register char d = *(c++); |
36ed4f51 RD |
445 | register unsigned char uu = 0; |
446 | if ((d >= '0') && (d <= '9')) | |
447 | uu = ((d - '0') << 4); | |
448 | else if ((d >= 'a') && (d <= 'f')) | |
449 | uu = ((d - ('a'-10)) << 4); | |
450 | else | |
451 | return (char *) 0; | |
452 | d = *(c++); | |
453 | if ((d >= '0') && (d <= '9')) | |
454 | uu |= (d - '0'); | |
455 | else if ((d >= 'a') && (d <= 'f')) | |
456 | uu |= (d - ('a'-10)); | |
457 | else | |
458 | return (char *) 0; | |
459 | *u = uu; | |
460 | } | |
461 | return c; | |
462 | } | |
463 | ||
36ed4f51 RD |
464 | /* |
465 | Pack 'void *' into a string buffer. | |
466 | */ | |
467 | SWIGRUNTIME char * | |
468 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
469 | char *r = buff; | |
470 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
471 | *(r++) = '_'; | |
472 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
473 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
474 | strcpy(r,name); | |
475 | return buff; | |
476 | } | |
477 | ||
478 | SWIGRUNTIME const char * | |
479 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
480 | if (*c != '_') { | |
481 | if (strcmp(c,"NULL") == 0) { | |
482 | *ptr = (void *) 0; | |
483 | return name; | |
484 | } else { | |
485 | return 0; | |
486 | } | |
487 | } | |
488 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
489 | } | |
490 | ||
491 | SWIGRUNTIME char * | |
492 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
493 | char *r = buff; | |
494 | size_t lname = (name ? strlen(name) : 0); | |
495 | if ((2*sz + 2 + lname) > bsz) return 0; | |
496 | *(r++) = '_'; | |
497 | r = SWIG_PackData(r,ptr,sz); | |
498 | if (lname) { | |
499 | strncpy(r,name,lname+1); | |
500 | } else { | |
501 | *r = 0; | |
502 | } | |
503 | return buff; | |
504 | } | |
d55e5bfc | 505 | |
36ed4f51 RD |
506 | SWIGRUNTIME const char * |
507 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
508 | if (*c != '_') { | |
509 | if (strcmp(c,"NULL") == 0) { | |
510 | memset(ptr,0,sz); | |
511 | return name; | |
512 | } else { | |
513 | return 0; | |
514 | } | |
515 | } | |
516 | return SWIG_UnpackData(++c,ptr,sz); | |
517 | } | |
d55e5bfc RD |
518 | |
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
36ed4f51 RD |
523 | /* ----------------------------------------------------------------------------- |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 526 | |
36ed4f51 RD |
527 | #ifdef __cplusplus |
528 | extern "C" { | |
529 | #endif | |
c370783e | 530 | |
36ed4f51 RD |
531 | /* ----------------------------------------------------------------------------- |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 534 | |
36ed4f51 | 535 | #ifndef SWIGINTERN |
32fe5131 | 536 | # define SWIGINTERN static SWIGUNUSED |
36ed4f51 | 537 | #endif |
d55e5bfc | 538 | |
32fe5131 RD |
539 | #ifndef SWIGINTERNINLINE |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
36ed4f51 | 541 | #endif |
d55e5bfc | 542 | |
36ed4f51 RD |
543 | /* |
544 | Exception handling in wrappers | |
545 | */ | |
546 | #define SWIG_fail goto fail | |
547 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
548 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
549 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
550 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
551 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
552 | ||
553 | /* | |
554 | Contract support | |
555 | */ | |
556 | #define SWIG_contract_assert(expr, msg) \ | |
557 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
558 | ||
559 | /* ----------------------------------------------------------------------------- | |
560 | * Constant declarations | |
561 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 562 | |
36ed4f51 RD |
563 | /* Constant Types */ |
564 | #define SWIG_PY_INT 1 | |
565 | #define SWIG_PY_FLOAT 2 | |
566 | #define SWIG_PY_STRING 3 | |
567 | #define SWIG_PY_POINTER 4 | |
568 | #define SWIG_PY_BINARY 5 | |
569 | ||
570 | /* Constant information structure */ | |
571 | typedef struct swig_const_info { | |
572 | int type; | |
573 | char *name; | |
574 | long lvalue; | |
575 | double dvalue; | |
576 | void *pvalue; | |
577 | swig_type_info **ptype; | |
578 | } swig_const_info; | |
d55e5bfc | 579 | |
c370783e | 580 | |
36ed4f51 RD |
581 | /* ----------------------------------------------------------------------------- |
582 | * Alloc. memory flags | |
583 | * ----------------------------------------------------------------------------- */ | |
c370783e RD |
584 | #define SWIG_OLDOBJ 1 |
585 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
586 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
587 | |
588 | #ifdef __cplusplus | |
36ed4f51 RD |
589 | } |
590 | #endif | |
d55e5bfc | 591 | |
d55e5bfc | 592 | |
36ed4f51 RD |
593 | /*********************************************************************** |
594 | * pyrun.swg | |
595 | * | |
596 | * This file contains the runtime support for Python modules | |
597 | * and includes code for managing global variables and pointer | |
598 | * type checking. | |
599 | * | |
600 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
601 | ************************************************************************/ | |
d55e5bfc | 602 | |
36ed4f51 RD |
603 | /* Common SWIG API */ |
604 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
605 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
606 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
607 | ||
d55e5bfc | 608 | |
36ed4f51 RD |
609 | /* Python-specific SWIG API */ |
610 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
611 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 612 | |
32fe5131 RD |
613 | /* Runtime API */ |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
d55e5bfc | 616 | |
36ed4f51 RD |
617 | /* ----------------------------------------------------------------------------- |
618 | * Pointer declarations | |
619 | * ----------------------------------------------------------------------------- */ | |
620 | /* | |
621 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
622 | C/C++ pointers in the python side. Very useful for debugging, but | |
623 | not always safe. | |
624 | */ | |
625 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
626 | # define SWIG_COBJECT_TYPES | |
627 | #endif | |
d55e5bfc | 628 | |
36ed4f51 RD |
629 | /* Flags for pointer conversion */ |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 632 | |
d55e5bfc | 633 | |
32fe5131 RD |
634 | /* Add PyOS_snprintf for old Pythons */ |
635 | #if PY_VERSION_HEX < 0x02020000 | |
636 | #define PyOS_snprintf snprintf | |
637 | #endif | |
638 | ||
36ed4f51 RD |
639 | #ifdef __cplusplus |
640 | extern "C" { | |
641 | #endif | |
c370783e | 642 | |
36ed4f51 RD |
643 | /* ----------------------------------------------------------------------------- |
644 | * Create a new pointer string | |
645 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 RD |
646 | #ifndef SWIG_BUFFER_SIZE |
647 | #define SWIG_BUFFER_SIZE 1024 | |
648 | #endif | |
d55e5bfc | 649 | |
32fe5131 RD |
650 | /* A crude PyString_FromFormat implementation for old Pythons */ |
651 | #if PY_VERSION_HEX < 0x02020000 | |
652 | static PyObject * | |
653 | PyString_FromFormat(const char *fmt, ...) { | |
654 | va_list ap; | |
655 | char buf[SWIG_BUFFER_SIZE * 2]; | |
656 | int res; | |
657 | va_start(ap, fmt); | |
658 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
659 | va_end(ap); | |
660 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
661 | } | |
662 | #endif | |
663 | ||
664 | #if PY_VERSION_HEX < 0x01060000 | |
665 | #define PyObject_Del(op) PyMem_DEL((op)) | |
666 | #endif | |
667 | ||
36ed4f51 RD |
668 | #if defined(SWIG_COBJECT_TYPES) |
669 | #if !defined(SWIG_COBJECT_PYTHON) | |
670 | /* ----------------------------------------------------------------------------- | |
671 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
672 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 673 | |
36ed4f51 RD |
674 | typedef struct { |
675 | PyObject_HEAD | |
676 | void *ptr; | |
677 | const char *desc; | |
678 | } PySwigObject; | |
c370783e | 679 | |
36ed4f51 | 680 | /* Declarations for objects of type PySwigObject */ |
c370783e | 681 | |
36ed4f51 RD |
682 | SWIGRUNTIME int |
683 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
684 | { | |
685 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 686 | flags = flags; |
36ed4f51 RD |
687 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { |
688 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
689 | return 0; | |
d55e5bfc | 690 | } else { |
36ed4f51 | 691 | return 1; |
c370783e | 692 | } |
d55e5bfc | 693 | } |
36ed4f51 RD |
694 | |
695 | SWIGRUNTIME PyObject * | |
696 | PySwigObject_repr(PySwigObject *v) | |
c370783e | 697 | { |
36ed4f51 RD |
698 | char result[SWIG_BUFFER_SIZE]; |
699 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
700 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
c370783e | 701 | } |
d55e5bfc | 702 | |
36ed4f51 RD |
703 | SWIGRUNTIME PyObject * |
704 | PySwigObject_str(PySwigObject *v) | |
c370783e | 705 | { |
36ed4f51 RD |
706 | char result[SWIG_BUFFER_SIZE]; |
707 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
708 | PyString_FromString(result) : 0; | |
c370783e | 709 | } |
d55e5bfc | 710 | |
36ed4f51 RD |
711 | SWIGRUNTIME PyObject * |
712 | PySwigObject_long(PySwigObject *v) | |
713 | { | |
32fe5131 RD |
714 | return PyLong_FromVoidPtr(v->ptr); |
715 | } | |
716 | ||
717 | SWIGRUNTIME PyObject * | |
718 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
719 | { | |
720 | PyObject *res = NULL; | |
721 | PyObject *args = PyTuple_New(1); | |
722 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
723 | PyObject *ofmt = PyString_FromString(fmt); | |
724 | if (ofmt) { | |
725 | res = PyString_Format(ofmt,args); | |
726 | Py_DECREF(ofmt); | |
727 | } | |
728 | Py_DECREF(args); | |
729 | } | |
730 | return res; | |
36ed4f51 | 731 | } |
d55e5bfc | 732 | |
36ed4f51 RD |
733 | SWIGRUNTIME PyObject * |
734 | PySwigObject_oct(PySwigObject *v) | |
d55e5bfc | 735 | { |
32fe5131 | 736 | return PySwigObject_format("%o",v); |
d55e5bfc RD |
737 | } |
738 | ||
36ed4f51 RD |
739 | SWIGRUNTIME PyObject * |
740 | PySwigObject_hex(PySwigObject *v) | |
c370783e | 741 | { |
32fe5131 | 742 | return PySwigObject_format("%x",v); |
c370783e | 743 | } |
d55e5bfc | 744 | |
36ed4f51 RD |
745 | SWIGRUNTIME int |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
747 | { | |
748 | int c = strcmp(v->desc, w->desc); | |
749 | if (c) { | |
32fe5131 | 750 | return (c > 0) ? 1 : -1; |
36ed4f51 RD |
751 | } else { |
752 | void *i = v->ptr; | |
753 | void *j = w->ptr; | |
32fe5131 | 754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
36ed4f51 RD |
755 | } |
756 | } | |
c370783e | 757 | |
36ed4f51 RD |
758 | SWIGRUNTIME void |
759 | PySwigObject_dealloc(PySwigObject *self) | |
d55e5bfc | 760 | { |
32fe5131 | 761 | PyObject_Del(self); |
d55e5bfc RD |
762 | } |
763 | ||
36ed4f51 | 764 | SWIGRUNTIME PyTypeObject* |
32fe5131 RD |
765 | PySwigObject_type(void) { |
766 | static char pyswigobject_type__doc__[] = | |
36ed4f51 RD |
767 | "Swig object carries a C/C++ instance pointer"; |
768 | ||
769 | static PyNumberMethods PySwigObject_as_number = { | |
770 | (binaryfunc)0, /*nb_add*/ | |
771 | (binaryfunc)0, /*nb_subtract*/ | |
772 | (binaryfunc)0, /*nb_multiply*/ | |
773 | (binaryfunc)0, /*nb_divide*/ | |
774 | (binaryfunc)0, /*nb_remainder*/ | |
775 | (binaryfunc)0, /*nb_divmod*/ | |
776 | (ternaryfunc)0,/*nb_power*/ | |
777 | (unaryfunc)0, /*nb_negative*/ | |
778 | (unaryfunc)0, /*nb_positive*/ | |
779 | (unaryfunc)0, /*nb_absolute*/ | |
780 | (inquiry)0, /*nb_nonzero*/ | |
781 | 0, /*nb_invert*/ | |
782 | 0, /*nb_lshift*/ | |
783 | 0, /*nb_rshift*/ | |
784 | 0, /*nb_and*/ | |
785 | 0, /*nb_xor*/ | |
786 | 0, /*nb_or*/ | |
787 | (coercion)0, /*nb_coerce*/ | |
788 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
790 | (unaryfunc)0, /*nb_float*/ | |
791 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
792 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 793 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 794 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
795 | #elif PY_VERSION_HEX >= 0x02000000 |
796 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
36ed4f51 RD |
797 | #endif |
798 | }; | |
799 | ||
32fe5131 RD |
800 | static PyTypeObject pyswigobject_type |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
36ed4f51 | 804 | if (!type_init) { |
32fe5131 RD |
805 | PyTypeObject tmp |
806 | #endif | |
807 | = { | |
36ed4f51 RD |
808 | PyObject_HEAD_INIT(&PyType_Type) |
809 | 0, /*ob_size*/ | |
32fe5131 | 810 | (char *)"PySwigObject", /*tp_name*/ |
36ed4f51 RD |
811 | sizeof(PySwigObject), /*tp_basicsize*/ |
812 | 0, /*tp_itemsize*/ | |
813 | /* methods */ | |
814 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
815 | (printfunc)PySwigObject_print, /*tp_print*/ | |
816 | (getattrfunc)0, /*tp_getattr*/ | |
817 | (setattrfunc)0, /*tp_setattr*/ | |
818 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
819 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
820 | &PySwigObject_as_number, /*tp_as_number*/ | |
821 | 0, /*tp_as_sequence*/ | |
822 | 0, /*tp_as_mapping*/ | |
823 | (hashfunc)0, /*tp_hash*/ | |
824 | (ternaryfunc)0, /*tp_call*/ | |
825 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
826 | /* Space for future expansion */ | |
32fe5131 RD |
827 | 0,0,0,0, |
828 | pyswigobject_type__doc__, /* Documentation string */ | |
36ed4f51 RD |
829 | #if PY_VERSION_HEX >= 0x02000000 |
830 | 0, /* tp_traverse */ | |
831 | 0, /* tp_clear */ | |
832 | #endif | |
833 | #if PY_VERSION_HEX >= 0x02010000 | |
834 | 0, /* tp_richcompare */ | |
835 | 0, /* tp_weaklistoffset */ | |
836 | #endif | |
837 | #if PY_VERSION_HEX >= 0x02020000 | |
838 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
839 | #endif | |
840 | #if PY_VERSION_HEX >= 0x02030000 | |
841 | 0, /* tp_del */ | |
842 | #endif | |
843 | #ifdef COUNT_ALLOCS | |
844 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
845 | #endif | |
846 | }; | |
32fe5131 RD |
847 | #if !defined(__cplusplus) |
848 | pyswigobject_type = tmp; | |
36ed4f51 | 849 | type_init = 1; |
d55e5bfc | 850 | } |
32fe5131 RD |
851 | #endif |
852 | return &pyswigobject_type; | |
d55e5bfc RD |
853 | } |
854 | ||
36ed4f51 RD |
855 | SWIGRUNTIME PyObject * |
856 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
857 | { | |
32fe5131 RD |
858 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
859 | if (self) { | |
860 | self->ptr = ptr; | |
861 | self->desc = desc; | |
862 | } | |
36ed4f51 RD |
863 | return (PyObject *)self; |
864 | } | |
d55e5bfc | 865 | |
36ed4f51 RD |
866 | SWIGRUNTIMEINLINE void * |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
d55e5bfc | 868 | { |
36ed4f51 | 869 | return ((PySwigObject *)self)->ptr; |
d55e5bfc RD |
870 | } |
871 | ||
36ed4f51 RD |
872 | SWIGRUNTIMEINLINE const char * |
873 | PySwigObject_GetDesc(PyObject *self) | |
d55e5bfc | 874 | { |
36ed4f51 | 875 | return ((PySwigObject *)self)->desc; |
c370783e RD |
876 | } |
877 | ||
36ed4f51 RD |
878 | SWIGRUNTIMEINLINE int |
879 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 880 | return ((op)->ob_type == PySwigObject_type()) |
36ed4f51 RD |
881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
882 | } | |
c370783e | 883 | |
36ed4f51 RD |
884 | /* ----------------------------------------------------------------------------- |
885 | * Implements a simple Swig Packed type, and use it instead of string | |
886 | * ----------------------------------------------------------------------------- */ | |
887 | ||
888 | typedef struct { | |
889 | PyObject_HEAD | |
890 | void *pack; | |
891 | const char *desc; | |
892 | size_t size; | |
893 | } PySwigPacked; | |
894 | ||
895 | SWIGRUNTIME int | |
896 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
c370783e | 897 | { |
36ed4f51 | 898 | char result[SWIG_BUFFER_SIZE]; |
32fe5131 | 899 | flags = flags; |
36ed4f51 RD |
900 | fputs("<Swig Packed ", fp); |
901 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
902 | fputs("at ", fp); | |
903 | fputs(result, fp); | |
d55e5bfc | 904 | } |
36ed4f51 RD |
905 | fputs(v->desc,fp); |
906 | fputs(">", fp); | |
907 | return 0; | |
c370783e | 908 | } |
c370783e | 909 | |
36ed4f51 RD |
910 | SWIGRUNTIME PyObject * |
911 | PySwigPacked_repr(PySwigPacked *v) | |
c370783e | 912 | { |
36ed4f51 RD |
913 | char result[SWIG_BUFFER_SIZE]; |
914 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
915 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
916 | } else { | |
917 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
918 | } | |
d55e5bfc RD |
919 | } |
920 | ||
36ed4f51 RD |
921 | SWIGRUNTIME PyObject * |
922 | PySwigPacked_str(PySwigPacked *v) | |
923 | { | |
924 | char result[SWIG_BUFFER_SIZE]; | |
925 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
926 | return PyString_FromFormat("%s%s", result, v->desc); | |
927 | } else { | |
32fe5131 | 928 | return PyString_FromString(v->desc); |
36ed4f51 RD |
929 | } |
930 | } | |
d55e5bfc | 931 | |
36ed4f51 RD |
932 | SWIGRUNTIME int |
933 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 934 | { |
36ed4f51 RD |
935 | int c = strcmp(v->desc, w->desc); |
936 | if (c) { | |
32fe5131 | 937 | return (c > 0) ? 1 : -1; |
36ed4f51 RD |
938 | } else { |
939 | size_t i = v->size; | |
940 | size_t j = w->size; | |
32fe5131 | 941 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
36ed4f51 RD |
942 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
943 | } | |
d55e5bfc RD |
944 | } |
945 | ||
36ed4f51 RD |
946 | SWIGRUNTIME void |
947 | PySwigPacked_dealloc(PySwigPacked *self) | |
948 | { | |
949 | free(self->pack); | |
32fe5131 | 950 | PyObject_Del(self); |
36ed4f51 | 951 | } |
d55e5bfc | 952 | |
36ed4f51 | 953 | SWIGRUNTIME PyTypeObject* |
32fe5131 RD |
954 | PySwigPacked_type(void) { |
955 | static char pyswigpacked_type__doc__[] = | |
36ed4f51 | 956 | "Swig object carries a C/C++ instance pointer"; |
32fe5131 RD |
957 | static PyTypeObject pyswigpacked_type |
958 | #if !defined(__cplusplus) | |
959 | ; | |
960 | static int type_init = 0; | |
36ed4f51 | 961 | if (!type_init) { |
32fe5131 RD |
962 | PyTypeObject tmp |
963 | #endif | |
964 | = { | |
36ed4f51 RD |
965 | PyObject_HEAD_INIT(&PyType_Type) |
966 | 0, /*ob_size*/ | |
32fe5131 | 967 | (char *)"PySwigPacked", /*tp_name*/ |
36ed4f51 RD |
968 | sizeof(PySwigPacked), /*tp_basicsize*/ |
969 | 0, /*tp_itemsize*/ | |
970 | /* methods */ | |
971 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
972 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
973 | (getattrfunc)0, /*tp_getattr*/ | |
974 | (setattrfunc)0, /*tp_setattr*/ | |
975 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
976 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
977 | 0, /*tp_as_number*/ | |
978 | 0, /*tp_as_sequence*/ | |
979 | 0, /*tp_as_mapping*/ | |
980 | (hashfunc)0, /*tp_hash*/ | |
981 | (ternaryfunc)0, /*tp_call*/ | |
982 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
983 | /* Space for future expansion */ | |
32fe5131 RD |
984 | 0,0,0,0, |
985 | pyswigpacked_type__doc__, /* Documentation string */ | |
36ed4f51 RD |
986 | #if PY_VERSION_HEX >= 0x02000000 |
987 | 0, /* tp_traverse */ | |
988 | 0, /* tp_clear */ | |
989 | #endif | |
990 | #if PY_VERSION_HEX >= 0x02010000 | |
991 | 0, /* tp_richcompare */ | |
992 | 0, /* tp_weaklistoffset */ | |
993 | #endif | |
994 | #if PY_VERSION_HEX >= 0x02020000 | |
995 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
996 | #endif | |
997 | #if PY_VERSION_HEX >= 0x02030000 | |
998 | 0, /* tp_del */ | |
999 | #endif | |
1000 | #ifdef COUNT_ALLOCS | |
1001 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1002 | #endif | |
1003 | }; | |
32fe5131 RD |
1004 | #if !defined(__cplusplus) |
1005 | pyswigpacked_type = tmp; | |
36ed4f51 RD |
1006 | type_init = 1; |
1007 | } | |
32fe5131 RD |
1008 | #endif |
1009 | return &pyswigpacked_type; | |
36ed4f51 RD |
1010 | } |
1011 | ||
1012 | SWIGRUNTIME PyObject * | |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
d55e5bfc | 1014 | { |
32fe5131 | 1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
36ed4f51 RD |
1016 | if (self == NULL) { |
1017 | return NULL; | |
1018 | } else { | |
1019 | void *pack = malloc(size); | |
32fe5131 RD |
1020 | if (pack) { |
1021 | memcpy(pack, ptr, size); | |
1022 | self->pack = pack; | |
1023 | self->desc = desc; | |
1024 | self->size = size; | |
1025 | return (PyObject *) self; | |
1026 | } | |
1027 | return NULL; | |
d55e5bfc | 1028 | } |
d55e5bfc RD |
1029 | } |
1030 | ||
36ed4f51 RD |
1031 | SWIGRUNTIMEINLINE const char * |
1032 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
d55e5bfc | 1033 | { |
36ed4f51 RD |
1034 | PySwigPacked *self = (PySwigPacked *)obj; |
1035 | if (self->size != size) return 0; | |
1036 | memcpy(ptr, self->pack, size); | |
1037 | return self->desc; | |
d55e5bfc RD |
1038 | } |
1039 | ||
36ed4f51 RD |
1040 | SWIGRUNTIMEINLINE const char * |
1041 | PySwigPacked_GetDesc(PyObject *self) | |
1042 | { | |
1043 | return ((PySwigPacked *)self)->desc; | |
1044 | } | |
d55e5bfc | 1045 | |
36ed4f51 RD |
1046 | SWIGRUNTIMEINLINE int |
1047 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1048 | return ((op)->ob_type == PySwigPacked_type()) |
36ed4f51 RD |
1049 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1050 | } | |
d55e5bfc | 1051 | |
36ed4f51 RD |
1052 | #else |
1053 | /* ----------------------------------------------------------------------------- | |
1054 | * Use the old Python PyCObject instead of PySwigObject | |
1055 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1056 | |
36ed4f51 RD |
1057 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) |
1058 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1059 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1060 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
c370783e | 1061 | |
36ed4f51 | 1062 | #endif |
d6c14a4c | 1063 | |
36ed4f51 | 1064 | #endif |
d55e5bfc | 1065 | |
36ed4f51 RD |
1066 | /* ----------------------------------------------------------------------------- |
1067 | * errors manipulation | |
1068 | * ----------------------------------------------------------------------------- */ | |
1069 | ||
1070 | SWIGRUNTIME void | |
1071 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1072 | { | |
1073 | if (type) { | |
1074 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1075 | if (obj && PySwigObject_Check(obj)) { |
36ed4f51 RD |
1076 | const char *otype = (const char *) PySwigObject_GetDesc(obj); |
1077 | if (otype) { | |
1078 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1079 | type, otype); | |
1080 | return; | |
1081 | } | |
1082 | } else | |
1083 | #endif | |
1084 | { | |
1085 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1086 | if (otype) { | |
1087 | PyObject *str = PyObject_Str(obj); | |
1088 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1089 | if (cstr) { | |
1090 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1091 | type, otype, cstr); | |
1092 | } else { | |
1093 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1094 | type, otype); | |
1095 | } | |
32fe5131 | 1096 | Py_XDECREF(str); |
36ed4f51 RD |
1097 | return; |
1098 | } | |
1099 | } | |
1100 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
c370783e | 1101 | } else { |
36ed4f51 | 1102 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
c370783e | 1103 | } |
d55e5bfc RD |
1104 | } |
1105 | ||
36ed4f51 RD |
1106 | SWIGRUNTIMEINLINE void |
1107 | SWIG_Python_NullRef(const char *type) | |
1108 | { | |
1109 | if (type) { | |
1110 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1111 | } else { | |
1112 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1113 | } | |
1114 | } | |
d55e5bfc | 1115 | |
36ed4f51 RD |
1116 | SWIGRUNTIME int |
1117 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
d55e5bfc | 1118 | { |
36ed4f51 RD |
1119 | if (PyErr_Occurred()) { |
1120 | PyObject *type = 0; | |
1121 | PyObject *value = 0; | |
1122 | PyObject *traceback = 0; | |
1123 | PyErr_Fetch(&type, &value, &traceback); | |
1124 | if (value) { | |
1125 | PyObject *old_str = PyObject_Str(value); | |
1126 | Py_XINCREF(type); | |
1127 | PyErr_Clear(); | |
1128 | if (infront) { | |
1129 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1130 | } else { | |
1131 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1132 | } | |
1133 | Py_DECREF(old_str); | |
1134 | } | |
1135 | return 1; | |
1136 | } else { | |
1137 | return 0; | |
d55e5bfc | 1138 | } |
c370783e RD |
1139 | } |
1140 | ||
36ed4f51 RD |
1141 | SWIGRUNTIME int |
1142 | SWIG_Python_ArgFail(int argnum) | |
c370783e | 1143 | { |
36ed4f51 RD |
1144 | if (PyErr_Occurred()) { |
1145 | /* add information about failing argument */ | |
1146 | char mesg[256]; | |
32fe5131 | 1147 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
36ed4f51 RD |
1148 | return SWIG_Python_AddErrMesg(mesg, 1); |
1149 | } else { | |
1150 | return 0; | |
1151 | } | |
d55e5bfc RD |
1152 | } |
1153 | ||
1154 | ||
36ed4f51 RD |
1155 | /* ----------------------------------------------------------------------------- |
1156 | * pointers/data manipulation | |
1157 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1158 | |
36ed4f51 RD |
1159 | /* Convert a pointer value */ |
1160 | SWIGRUNTIME int | |
1161 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
32fe5131 | 1162 | swig_cast_info *tc; |
36ed4f51 RD |
1163 | const char *c = 0; |
1164 | static PyObject *SWIG_this = 0; | |
1165 | int newref = 0; | |
1166 | PyObject *pyobj = 0; | |
1167 | void *vptr; | |
1168 | ||
1169 | if (!obj) return 0; | |
1170 | if (obj == Py_None) { | |
1171 | *ptr = 0; | |
1172 | return 0; | |
1173 | } | |
d55e5bfc | 1174 | |
36ed4f51 RD |
1175 | #ifdef SWIG_COBJECT_TYPES |
1176 | if (!(PySwigObject_Check(obj))) { | |
1177 | if (!SWIG_this) | |
1178 | SWIG_this = PyString_FromString("this"); | |
1179 | pyobj = obj; | |
1180 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1181 | newref = 1; | |
1182 | if (!obj) goto type_error; | |
1183 | if (!PySwigObject_Check(obj)) { | |
1184 | Py_DECREF(obj); | |
1185 | goto type_error; | |
1186 | } | |
1187 | } | |
1188 | vptr = PySwigObject_AsVoidPtr(obj); | |
1189 | c = (const char *) PySwigObject_GetDesc(obj); | |
1190 | if (newref) { Py_DECREF(obj); } | |
1191 | goto type_check; | |
1192 | #else | |
1193 | if (!(PyString_Check(obj))) { | |
1194 | if (!SWIG_this) | |
1195 | SWIG_this = PyString_FromString("this"); | |
1196 | pyobj = obj; | |
1197 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1198 | newref = 1; | |
1199 | if (!obj) goto type_error; | |
1200 | if (!PyString_Check(obj)) { | |
1201 | Py_DECREF(obj); | |
1202 | goto type_error; | |
1203 | } | |
1204 | } | |
32fe5131 | 1205 | c = PyString_AsString(obj); |
36ed4f51 RD |
1206 | /* Pointer values must start with leading underscore */ |
1207 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1208 | if (newref) { Py_DECREF(obj); } | |
1209 | if (!c) goto type_error; | |
1210 | #endif | |
d55e5bfc | 1211 | |
36ed4f51 | 1212 | type_check: |
36ed4f51 RD |
1213 | if (ty) { |
1214 | tc = SWIG_TypeCheck(c,ty); | |
1215 | if (!tc) goto type_error; | |
1216 | *ptr = SWIG_TypeCast(tc,vptr); | |
1217 | } else { | |
1218 | *ptr = vptr; | |
1219 | } | |
36ed4f51 RD |
1220 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1221 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1222 | } | |
1223 | return 0; | |
d55e5bfc | 1224 | |
36ed4f51 RD |
1225 | type_error: |
1226 | PyErr_Clear(); | |
1227 | if (pyobj && !obj) { | |
1228 | obj = pyobj; | |
1229 | if (PyCFunction_Check(obj)) { | |
1230 | /* here we get the method pointer for callbacks */ | |
1231 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1232 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1233 | if (c) { | |
32fe5131 | 1234 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
36ed4f51 RD |
1235 | if (!c) goto type_error; |
1236 | goto type_check; | |
1237 | } | |
1238 | } | |
1239 | } | |
1240 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1241 | if (ty) { | |
1242 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1243 | } else { | |
1244 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1245 | } | |
1246 | } | |
1247 | return -1; | |
1248 | } | |
d55e5bfc | 1249 | |
36ed4f51 RD |
1250 | /* Convert a pointer value, signal an exception on a type mismatch */ |
1251 | SWIGRUNTIME void * | |
1252 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1253 | void *result; | |
1254 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1255 | PyErr_Clear(); | |
1256 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1257 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1258 | SWIG_Python_ArgFail(argnum); | |
1259 | } | |
1260 | } | |
1261 | return result; | |
1262 | } | |
d55e5bfc | 1263 | |
36ed4f51 RD |
1264 | /* Convert a packed value value */ |
1265 | SWIGRUNTIME int | |
1266 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
32fe5131 | 1267 | swig_cast_info *tc; |
36ed4f51 | 1268 | const char *c = 0; |
d55e5bfc | 1269 | |
36ed4f51 RD |
1270 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) |
1271 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1272 | #else | |
1273 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
32fe5131 | 1274 | c = PyString_AsString(obj); |
36ed4f51 RD |
1275 | /* Pointer values must start with leading underscore */ |
1276 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1277 | #endif | |
1278 | if (!c) goto type_error; | |
1279 | if (ty) { | |
1280 | tc = SWIG_TypeCheck(c,ty); | |
1281 | if (!tc) goto type_error; | |
1282 | } | |
1283 | return 0; | |
d55e5bfc | 1284 | |
36ed4f51 RD |
1285 | type_error: |
1286 | PyErr_Clear(); | |
1287 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1288 | if (ty) { | |
1289 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1290 | } else { | |
1291 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1292 | } | |
d55e5bfc | 1293 | } |
36ed4f51 RD |
1294 | return -1; |
1295 | } | |
1296 | ||
1297 | /* Create a new array object */ | |
1298 | SWIGRUNTIME PyObject * | |
1299 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1300 | PyObject *robj = 0; | |
32fe5131 RD |
1301 | if (!type) { |
1302 | if (!PyErr_Occurred()) { | |
1303 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1304 | } | |
1305 | return robj; | |
1306 | } | |
36ed4f51 RD |
1307 | if (!ptr) { |
1308 | Py_INCREF(Py_None); | |
1309 | return Py_None; | |
1310 | } | |
1311 | #ifdef SWIG_COBJECT_TYPES | |
1312 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1313 | #else | |
1314 | { | |
1315 | char result[SWIG_BUFFER_SIZE]; | |
1316 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1317 | PyString_FromString(result) : 0; | |
1318 | } | |
1319 | #endif | |
1320 | if (!robj || (robj == Py_None)) return robj; | |
1321 | if (type->clientdata) { | |
1322 | PyObject *inst; | |
1323 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1324 | Py_DECREF(robj); | |
1325 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1326 | Py_DECREF(args); | |
1327 | if (inst) { | |
1328 | if (own) { | |
1329 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1330 | } | |
1331 | robj = inst; | |
1332 | } | |
1333 | } | |
1334 | return robj; | |
c370783e RD |
1335 | } |
1336 | ||
36ed4f51 RD |
1337 | SWIGRUNTIME PyObject * |
1338 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1339 | PyObject *robj = 0; | |
1340 | if (!ptr) { | |
1341 | Py_INCREF(Py_None); | |
1342 | return Py_None; | |
1343 | } | |
1344 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1345 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1346 | #else | |
1347 | { | |
1348 | char result[SWIG_BUFFER_SIZE]; | |
1349 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1350 | PyString_FromString(result) : 0; | |
1351 | } | |
1352 | #endif | |
1353 | return robj; | |
d55e5bfc RD |
1354 | } |
1355 | ||
36ed4f51 RD |
1356 | /* -----------------------------------------------------------------------------* |
1357 | * Get type list | |
1358 | * -----------------------------------------------------------------------------*/ | |
1359 | ||
1360 | #ifdef SWIG_LINK_RUNTIME | |
1361 | void *SWIG_ReturnGlobalTypeList(void *); | |
1362 | #endif | |
1363 | ||
32fe5131 RD |
1364 | SWIGRUNTIME swig_module_info * |
1365 | SWIG_Python_GetModule(void) { | |
36ed4f51 RD |
1366 | static void *type_pointer = (void *)0; |
1367 | /* first check if module already created */ | |
1368 | if (!type_pointer) { | |
1369 | #ifdef SWIG_LINK_RUNTIME | |
1370 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
d55e5bfc | 1371 | #else |
36ed4f51 RD |
1372 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
1373 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1374 | if (PyErr_Occurred()) { | |
1375 | PyErr_Clear(); | |
1376 | type_pointer = (void *)0; | |
1377 | } | |
d55e5bfc | 1378 | #endif |
32fe5131 RD |
1379 | } |
1380 | return (swig_module_info *) type_pointer; | |
36ed4f51 | 1381 | } |
d55e5bfc | 1382 | |
32fe5131 RD |
1383 | #if PY_MAJOR_VERSION < 2 |
1384 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1385 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1386 | SWIGINTERN int | |
1387 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1388 | { | |
1389 | PyObject *dict; | |
1390 | if (!PyModule_Check(m)) { | |
1391 | PyErr_SetString(PyExc_TypeError, | |
1392 | "PyModule_AddObject() needs module as first arg"); | |
1393 | return -1; | |
1394 | } | |
1395 | if (!o) { | |
1396 | PyErr_SetString(PyExc_TypeError, | |
1397 | "PyModule_AddObject() needs non-NULL value"); | |
1398 | return -1; | |
1399 | } | |
1400 | ||
1401 | dict = PyModule_GetDict(m); | |
1402 | if (dict == NULL) { | |
1403 | /* Internal error -- modules must have a dict! */ | |
1404 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1405 | PyModule_GetName(m)); | |
1406 | return -1; | |
1407 | } | |
1408 | if (PyDict_SetItemString(dict, name, o)) | |
1409 | return -1; | |
1410 | Py_DECREF(o); | |
1411 | return 0; | |
36ed4f51 | 1412 | } |
32fe5131 | 1413 | #endif |
d55e5bfc | 1414 | |
32fe5131 RD |
1415 | SWIGRUNTIME void |
1416 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1417 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1418 | ||
1419 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1420 | swig_empty_runtime_method_table); | |
1421 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1422 | if (pointer && module) { | |
1423 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1424 | } | |
1425 | } | |
d55e5bfc | 1426 | |
36ed4f51 RD |
1427 | #ifdef __cplusplus |
1428 | } | |
1429 | #endif | |
d55e5bfc | 1430 | |
d55e5bfc | 1431 | |
36ed4f51 | 1432 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d55e5bfc | 1433 | |
32fe5131 RD |
1434 | #define SWIGTYPE_p_char swig_types[0] |
1435 | #define SWIGTYPE_p_double swig_types[1] | |
1436 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
1437 | #define SWIGTYPE_p_int swig_types[3] | |
1438 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
1439 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
1440 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
1441 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
1442 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
1443 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
1444 | #define SWIGTYPE_p_wxBMPHandler swig_types[10] | |
1445 | #define SWIGTYPE_p_wxBitmap swig_types[11] | |
1446 | #define SWIGTYPE_p_wxBoxSizer swig_types[12] | |
1447 | #define SWIGTYPE_p_wxBrush swig_types[13] | |
1448 | #define SWIGTYPE_p_wxBrushList swig_types[14] | |
1449 | #define SWIGTYPE_p_wxBufferedDC swig_types[15] | |
1450 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16] | |
1451 | #define SWIGTYPE_p_wxCURHandler swig_types[17] | |
1452 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[18] | |
1453 | #define SWIGTYPE_p_wxClientDC swig_types[19] | |
1454 | #define SWIGTYPE_p_wxCloseEvent swig_types[20] | |
1455 | #define SWIGTYPE_p_wxColour swig_types[21] | |
1456 | #define SWIGTYPE_p_wxColourDatabase swig_types[22] | |
1457 | #define SWIGTYPE_p_wxCommandEvent swig_types[23] | |
1458 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[24] | |
1459 | #define SWIGTYPE_p_wxControl swig_types[25] | |
1460 | #define SWIGTYPE_p_wxControlWithItems swig_types[26] | |
1461 | #define SWIGTYPE_p_wxCursor swig_types[27] | |
1462 | #define SWIGTYPE_p_wxDC swig_types[28] | |
1463 | #define SWIGTYPE_p_wxDash swig_types[29] | |
1464 | #define SWIGTYPE_p_wxDateEvent swig_types[30] | |
1465 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31] | |
1466 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[32] | |
1467 | #define SWIGTYPE_p_wxDuplexMode swig_types[33] | |
1468 | #define SWIGTYPE_p_wxEffects swig_types[34] | |
1469 | #define SWIGTYPE_p_wxEncodingConverter swig_types[35] | |
1470 | #define SWIGTYPE_p_wxEraseEvent swig_types[36] | |
1471 | #define SWIGTYPE_p_wxEvent swig_types[37] | |
1472 | #define SWIGTYPE_p_wxEvtHandler swig_types[38] | |
1473 | #define SWIGTYPE_p_wxFSFile swig_types[39] | |
1474 | #define SWIGTYPE_p_wxFileSystem swig_types[40] | |
1475 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[41] | |
1476 | #define SWIGTYPE_p_wxFocusEvent swig_types[42] | |
1477 | #define SWIGTYPE_p_wxFont swig_types[43] | |
1478 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
1479 | #define SWIGTYPE_p_wxFontMapper swig_types[45] | |
1480 | #define SWIGTYPE_p_wxGBSizerItem swig_types[46] | |
1481 | #define SWIGTYPE_p_wxGDIObject swig_types[47] | |
1482 | #define SWIGTYPE_p_wxGIFHandler swig_types[48] | |
1483 | #define SWIGTYPE_p_wxGridBagSizer swig_types[49] | |
1484 | #define SWIGTYPE_p_wxGridSizer swig_types[50] | |
1485 | #define SWIGTYPE_p_wxICOHandler swig_types[51] | |
1486 | #define SWIGTYPE_p_wxIcon swig_types[52] | |
1487 | #define SWIGTYPE_p_wxIconBundle swig_types[53] | |
1488 | #define SWIGTYPE_p_wxIconLocation swig_types[54] | |
1489 | #define SWIGTYPE_p_wxIconizeEvent swig_types[55] | |
1490 | #define SWIGTYPE_p_wxIdleEvent swig_types[56] | |
1491 | #define SWIGTYPE_p_wxImage swig_types[57] | |
1492 | #define SWIGTYPE_p_wxImageHandler swig_types[58] | |
1493 | #define SWIGTYPE_p_wxImageList swig_types[59] | |
1494 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60] | |
1495 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[61] | |
1496 | #define SWIGTYPE_p_wxJPEGHandler swig_types[62] | |
1497 | #define SWIGTYPE_p_wxKeyEvent swig_types[63] | |
1498 | #define SWIGTYPE_p_wxLanguageInfo swig_types[64] | |
1499 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[65] | |
1500 | #define SWIGTYPE_p_wxLocale swig_types[66] | |
1501 | #define SWIGTYPE_p_wxMask swig_types[67] | |
1502 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[68] | |
1503 | #define SWIGTYPE_p_wxMemoryDC swig_types[69] | |
1504 | #define SWIGTYPE_p_wxMenu swig_types[70] | |
1505 | #define SWIGTYPE_p_wxMenuBar swig_types[71] | |
1506 | #define SWIGTYPE_p_wxMenuEvent swig_types[72] | |
1507 | #define SWIGTYPE_p_wxMenuItem swig_types[73] | |
1508 | #define SWIGTYPE_p_wxMetaFile swig_types[74] | |
1509 | #define SWIGTYPE_p_wxMetaFileDC swig_types[75] | |
1510 | #define SWIGTYPE_p_wxMirrorDC swig_types[76] | |
1511 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77] | |
1512 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
1513 | #define SWIGTYPE_p_wxMoveEvent swig_types[79] | |
1514 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80] | |
1515 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[81] | |
1516 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82] | |
1517 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[83] | |
1518 | #define SWIGTYPE_p_wxNotifyEvent swig_types[84] | |
1519 | #define SWIGTYPE_p_wxObject swig_types[85] | |
1520 | #define SWIGTYPE_p_wxPCXHandler swig_types[86] | |
1521 | #define SWIGTYPE_p_wxPNGHandler swig_types[87] | |
1522 | #define SWIGTYPE_p_wxPNMHandler swig_types[88] | |
1523 | #define SWIGTYPE_p_wxPaintDC swig_types[89] | |
1524 | #define SWIGTYPE_p_wxPaintEvent swig_types[90] | |
1525 | #define SWIGTYPE_p_wxPalette swig_types[91] | |
1526 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92] | |
1527 | #define SWIGTYPE_p_wxPaperSize swig_types[93] | |
1528 | #define SWIGTYPE_p_wxPen swig_types[94] | |
1529 | #define SWIGTYPE_p_wxPenList swig_types[95] | |
1530 | #define SWIGTYPE_p_wxPoint swig_types[96] | |
1531 | #define SWIGTYPE_p_wxPostScriptDC swig_types[97] | |
1532 | #define SWIGTYPE_p_wxPrintData swig_types[98] | |
1533 | #define SWIGTYPE_p_wxPrinterDC swig_types[99] | |
1534 | #define SWIGTYPE_p_wxPyApp swig_types[100] | |
1535 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[101] | |
1536 | #define SWIGTYPE_p_wxPyEvent swig_types[102] | |
1537 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103] | |
1538 | #define SWIGTYPE_p_wxPyImageHandler swig_types[104] | |
1539 | #define SWIGTYPE_p_wxPySizer swig_types[105] | |
1540 | #define SWIGTYPE_p_wxPyValidator swig_types[106] | |
1541 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107] | |
1542 | #define SWIGTYPE_p_wxRect swig_types[108] | |
1543 | #define SWIGTYPE_p_wxRegion swig_types[109] | |
1544 | #define SWIGTYPE_p_wxRegionIterator swig_types[110] | |
1545 | #define SWIGTYPE_p_wxRendererNative swig_types[111] | |
1546 | #define SWIGTYPE_p_wxRendererVersion swig_types[112] | |
1547 | #define SWIGTYPE_p_wxScreenDC swig_types[113] | |
1548 | #define SWIGTYPE_p_wxScrollEvent swig_types[114] | |
1549 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[115] | |
1550 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[116] | |
1551 | #define SWIGTYPE_p_wxShowEvent swig_types[117] | |
1552 | #define SWIGTYPE_p_wxSize swig_types[118] | |
1553 | #define SWIGTYPE_p_wxSizeEvent swig_types[119] | |
1554 | #define SWIGTYPE_p_wxSizer swig_types[120] | |
1555 | #define SWIGTYPE_p_wxSizerItem swig_types[121] | |
1556 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122] | |
1557 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123] | |
1558 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124] | |
1559 | #define SWIGTYPE_p_wxString swig_types[125] | |
1560 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126] | |
1561 | #define SWIGTYPE_p_wxTIFFHandler swig_types[127] | |
1562 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128] | |
1563 | #define SWIGTYPE_p_wxValidator swig_types[129] | |
1564 | #define SWIGTYPE_p_wxWindow swig_types[130] | |
1565 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131] | |
1566 | #define SWIGTYPE_p_wxWindowDC swig_types[132] | |
1567 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133] | |
1568 | #define SWIGTYPE_p_wxXPMHandler swig_types[134] | |
1569 | #define SWIGTYPE_ptrdiff_t swig_types[135] | |
1570 | #define SWIGTYPE_std__ptrdiff_t swig_types[136] | |
1571 | #define SWIGTYPE_unsigned_int swig_types[137] | |
1572 | static swig_type_info *swig_types[139]; | |
1573 | static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0}; | |
1574 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1575 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 1576 | |
36ed4f51 | 1577 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 1578 | |
d55e5bfc | 1579 | |
36ed4f51 RD |
1580 | /*----------------------------------------------- |
1581 | @(target):= _gdi_.so | |
1582 | ------------------------------------------------*/ | |
1583 | #define SWIG_init init_gdi_ | |
d55e5bfc | 1584 | |
36ed4f51 | 1585 | #define SWIG_name "_gdi_" |
d55e5bfc | 1586 | |
36ed4f51 RD |
1587 | #include "wx/wxPython/wxPython.h" |
1588 | #include "wx/wxPython/pyclasses.h" | |
1589 | ||
d55e5bfc | 1590 | |
36ed4f51 | 1591 | static const wxString wxPyEmptyString(wxEmptyString); |
d55e5bfc | 1592 | |
36ed4f51 | 1593 | #include <limits.h> |
d55e5bfc RD |
1594 | |
1595 | ||
36ed4f51 RD |
1596 | SWIGINTERN int |
1597 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1598 | const char *errmsg) | |
1599 | { | |
1600 | if (value < min_value) { | |
1601 | if (errmsg) { | |
1602 | PyErr_Format(PyExc_OverflowError, | |
1603 | "value %ld is less than '%s' minimum %ld", | |
1604 | value, errmsg, min_value); | |
1605 | } | |
1606 | return 0; | |
1607 | } else if (value > max_value) { | |
1608 | if (errmsg) { | |
1609 | PyErr_Format(PyExc_OverflowError, | |
1610 | "value %ld is greater than '%s' maximum %ld", | |
1611 | value, errmsg, max_value); | |
1612 | } | |
1613 | return 0; | |
1614 | } | |
1615 | return 1; | |
1616 | } | |
d55e5bfc | 1617 | |
d55e5bfc | 1618 | |
36ed4f51 RD |
1619 | SWIGINTERN int |
1620 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 1621 | { |
c370783e | 1622 | if (PyNumber_Check(obj)) { |
36ed4f51 | 1623 | if (val) *val = PyInt_AsLong(obj); |
c370783e RD |
1624 | return 1; |
1625 | } | |
d55e5bfc | 1626 | else { |
36ed4f51 | 1627 | SWIG_type_error("number", obj); |
d55e5bfc | 1628 | } |
c370783e | 1629 | return 0; |
d55e5bfc RD |
1630 | } |
1631 | ||
1632 | ||
36ed4f51 RD |
1633 | #if INT_MAX != LONG_MAX |
1634 | SWIGINTERN int | |
1635 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1636 | { | |
1637 | const char* errmsg = val ? "int" : (char*)0; | |
1638 | long v; | |
1639 | if (SWIG_AsVal_long(obj, &v)) { | |
1640 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
32fe5131 | 1641 | if (val) *val = static_cast<int >(v); |
36ed4f51 RD |
1642 | return 1; |
1643 | } else { | |
1644 | return 0; | |
1645 | } | |
1646 | } else { | |
1647 | PyErr_Clear(); | |
d55e5bfc | 1648 | } |
36ed4f51 RD |
1649 | if (val) { |
1650 | SWIG_type_error(errmsg, obj); | |
1651 | } | |
1652 | return 0; | |
1653 | } | |
1654 | #else | |
32fe5131 | 1655 | SWIGINTERNINLINE int |
36ed4f51 | 1656 | SWIG_AsVal_int(PyObject *obj, int *val) |
c370783e | 1657 | { |
36ed4f51 | 1658 | return SWIG_AsVal_long(obj,(long*)val); |
d55e5bfc | 1659 | } |
36ed4f51 | 1660 | #endif |
d55e5bfc | 1661 | |
c370783e | 1662 | |
36ed4f51 RD |
1663 | SWIGINTERN int |
1664 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1665 | { | |
1666 | if (obj == Py_True) { | |
1667 | if (val) *val = true; | |
1668 | return 1; | |
1669 | } | |
1670 | if (obj == Py_False) { | |
1671 | if (val) *val = false; | |
1672 | return 1; | |
1673 | } | |
1674 | int res = 0; | |
1675 | if (SWIG_AsVal_int(obj, &res)) { | |
1676 | if (val) *val = res ? true : false; | |
1677 | return 1; | |
1678 | } else { | |
1679 | PyErr_Clear(); | |
1680 | } | |
1681 | if (val) { | |
1682 | SWIG_type_error("bool", obj); | |
1683 | } | |
1684 | return 0; | |
1685 | } | |
c370783e | 1686 | |
d55e5bfc | 1687 | |
32fe5131 | 1688 | SWIGINTERNINLINE bool |
36ed4f51 RD |
1689 | SWIG_As_bool(PyObject* obj) |
1690 | { | |
1691 | bool v; | |
1692 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1693 | /* | |
1694 | this is needed to make valgrind/purify happier. | |
1695 | */ | |
1696 | memset((void*)&v, 0, sizeof(bool)); | |
1697 | } | |
1698 | return v; | |
d55e5bfc RD |
1699 | } |
1700 | ||
36ed4f51 | 1701 | |
32fe5131 | 1702 | SWIGINTERNINLINE int |
36ed4f51 RD |
1703 | SWIG_Check_bool(PyObject* obj) |
1704 | { | |
1705 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1706 | } | |
d55e5bfc RD |
1707 | |
1708 | ||
36ed4f51 RD |
1709 | SWIGINTERN int |
1710 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1711 | { | |
1712 | long v = 0; | |
1713 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1714 | SWIG_type_error("unsigned number", obj); | |
1715 | } | |
1716 | else if (val) | |
1717 | *val = (unsigned long)v; | |
1718 | return 1; | |
1719 | } | |
d55e5bfc RD |
1720 | |
1721 | ||
32fe5131 | 1722 | SWIGINTERNINLINE int |
36ed4f51 RD |
1723 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
1724 | unsigned long max_value, | |
1725 | const char *errmsg) | |
1726 | { | |
1727 | if (value > max_value) { | |
1728 | if (errmsg) { | |
1729 | PyErr_Format(PyExc_OverflowError, | |
1730 | "value %lu is greater than '%s' minimum %lu", | |
1731 | value, errmsg, max_value); | |
1732 | } | |
1733 | return 0; | |
1734 | } | |
1735 | return 1; | |
1736 | } | |
d55e5bfc RD |
1737 | |
1738 | ||
36ed4f51 RD |
1739 | SWIGINTERN int |
1740 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
1741 | { | |
1742 | const char* errmsg = val ? "unsigned char" : (char*)0; | |
1743 | unsigned long v; | |
1744 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1745 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
32fe5131 | 1746 | if (val) *val = static_cast<unsigned char >(v); |
36ed4f51 RD |
1747 | return 1; |
1748 | } else { | |
1749 | return 0; | |
1750 | } | |
1751 | } else { | |
1752 | PyErr_Clear(); | |
1753 | } | |
1754 | if (val) { | |
1755 | SWIG_type_error(errmsg, obj); | |
1756 | } | |
1757 | return 0; | |
1758 | } | |
d55e5bfc | 1759 | |
d55e5bfc | 1760 | |
32fe5131 | 1761 | SWIGINTERNINLINE unsigned char |
36ed4f51 RD |
1762 | SWIG_As_unsigned_SS_char(PyObject* obj) |
1763 | { | |
1764 | unsigned char v; | |
1765 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
1766 | /* | |
1767 | this is needed to make valgrind/purify happier. | |
1768 | */ | |
1769 | memset((void*)&v, 0, sizeof(unsigned char)); | |
1770 | } | |
1771 | return v; | |
1772 | } | |
d55e5bfc | 1773 | |
36ed4f51 | 1774 | |
32fe5131 | 1775 | SWIGINTERNINLINE int |
36ed4f51 RD |
1776 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
1777 | { | |
1778 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
d55e5bfc RD |
1779 | } |
1780 | ||
1781 | ||
32fe5131 | 1782 | SWIGINTERNINLINE unsigned long |
36ed4f51 RD |
1783 | SWIG_As_unsigned_SS_long(PyObject* obj) |
1784 | { | |
1785 | unsigned long v; | |
1786 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1787 | /* | |
1788 | this is needed to make valgrind/purify happier. | |
1789 | */ | |
1790 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1791 | } | |
1792 | return v; | |
d55e5bfc RD |
1793 | } |
1794 | ||
36ed4f51 | 1795 | |
32fe5131 | 1796 | SWIGINTERNINLINE int |
36ed4f51 RD |
1797 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1798 | { | |
1799 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1800 | } |
1801 | ||
1802 | ||
32fe5131 | 1803 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
36ed4f51 RD |
1804 | #define SWIG_From_unsigned_SS_char PyInt_FromLong |
1805 | /*@@*/ | |
d55e5bfc RD |
1806 | |
1807 | ||
32fe5131 | 1808 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
36ed4f51 RD |
1809 | #define SWIG_From_long PyInt_FromLong |
1810 | /*@@*/ | |
d55e5bfc | 1811 | |
36ed4f51 RD |
1812 | static PyObject *wxColour_Get(wxColour *self){ |
1813 | PyObject* rv = PyTuple_New(3); | |
1814 | int red = -1; | |
1815 | int green = -1; | |
1816 | int blue = -1; | |
1817 | if (self->Ok()) { | |
1818 | red = self->Red(); | |
1819 | green = self->Green(); | |
1820 | blue = self->Blue(); | |
1821 | } | |
1822 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
1823 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
1824 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
1825 | return rv; | |
1826 | } | |
1827 | static unsigned long wxColour_GetRGB(wxColour *self){ | |
1828 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
1829 | } | |
d55e5bfc | 1830 | |
32fe5131 | 1831 | SWIGINTERNINLINE PyObject* |
36ed4f51 RD |
1832 | SWIG_From_unsigned_SS_long(unsigned long value) |
1833 | { | |
1834 | return (value > LONG_MAX) ? | |
1835 | PyLong_FromUnsignedLong(value) | |
32fe5131 | 1836 | : PyInt_FromLong(static_cast<long >(value)); |
d55e5bfc RD |
1837 | } |
1838 | ||
1839 | ||
32fe5131 | 1840 | SWIGINTERNINLINE int |
36ed4f51 RD |
1841 | SWIG_As_int(PyObject* obj) |
1842 | { | |
1843 | int v; | |
1844 | if (!SWIG_AsVal_int(obj, &v)) { | |
1845 | /* | |
1846 | this is needed to make valgrind/purify happier. | |
1847 | */ | |
1848 | memset((void*)&v, 0, sizeof(int)); | |
1849 | } | |
1850 | return v; | |
d55e5bfc RD |
1851 | } |
1852 | ||
36ed4f51 | 1853 | |
32fe5131 | 1854 | SWIGINTERNINLINE int |
36ed4f51 RD |
1855 | SWIG_Check_int(PyObject* obj) |
1856 | { | |
1857 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
1858 | } |
1859 | ||
1860 | ||
32fe5131 | 1861 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
36ed4f51 RD |
1862 | #define SWIG_From_int PyInt_FromLong |
1863 | /*@@*/ | |
d55e5bfc RD |
1864 | |
1865 | ||
36ed4f51 RD |
1866 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1867 | PyObject* o2; | |
1868 | PyObject* o3; | |
d55e5bfc | 1869 | |
36ed4f51 RD |
1870 | if (!target) { |
1871 | target = o; | |
1872 | } else if (target == Py_None) { | |
1873 | Py_DECREF(Py_None); | |
1874 | target = o; | |
1875 | } else { | |
1876 | if (!PyTuple_Check(target)) { | |
1877 | o2 = target; | |
1878 | target = PyTuple_New(1); | |
1879 | PyTuple_SetItem(target, 0, o2); | |
1880 | } | |
1881 | o3 = PyTuple_New(1); | |
1882 | PyTuple_SetItem(o3, 0, o); | |
d55e5bfc | 1883 | |
36ed4f51 RD |
1884 | o2 = target; |
1885 | target = PySequence_Concat(o2, o3); | |
1886 | Py_DECREF(o2); | |
1887 | Py_DECREF(o3); | |
d55e5bfc | 1888 | } |
36ed4f51 RD |
1889 | return target; |
1890 | } | |
d55e5bfc RD |
1891 | |
1892 | ||
36ed4f51 RD |
1893 | static PyObject *wxPen_GetDashes(wxPen *self){ |
1894 | wxDash* dashes; | |
1895 | int count = self->GetDashes(&dashes); | |
5a446332 | 1896 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
36ed4f51 RD |
1897 | PyObject* retval = PyList_New(0); |
1898 | for (int x=0; x<count; x++) { | |
1899 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
1900 | PyList_Append(retval, pyint); | |
1901 | Py_DECREF(pyint); | |
1902 | } | |
1903 | wxPyEndBlockThreads(blocked); | |
1904 | return retval; | |
1905 | } | |
1906 | static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ | |
5a446332 | 1907 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
36ed4f51 RD |
1908 | int size = PyList_Size(pyDashes); |
1909 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 1910 | |
36ed4f51 RD |
1911 | // black magic warning! The array of wxDashes needs to exist as |
1912 | // long as the pen does because wxPen does not copy the array. So | |
1913 | // stick a copy in a Python string object and attach it to _self, | |
1914 | // and then call SetDashes with a pointer to that array. Then | |
1915 | // when the Python pen object is destroyed the array will be | |
1916 | // cleaned up too. | |
1917 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
1918 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
1919 | ||
1920 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
1921 | delete [] dashes; | |
1922 | Py_DECREF(strDashes); | |
1923 | wxPyEndBlockThreads(blocked); | |
1924 | } | |
1925 | static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } | |
1926 | static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 1927 | |
32fe5131 | 1928 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
36ed4f51 RD |
1929 | #define SWIG_From_short PyInt_FromLong |
1930 | /*@@*/ | |
d55e5bfc RD |
1931 | |
1932 | ||
36ed4f51 RD |
1933 | SWIGINTERN int |
1934 | SWIG_AsVal_short(PyObject *obj, short *val) | |
1935 | { | |
1936 | const char* errmsg = val ? "short" : (char*)0; | |
1937 | long v; | |
1938 | if (SWIG_AsVal_long(obj, &v)) { | |
1939 | if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) { | |
32fe5131 | 1940 | if (val) *val = static_cast<short >(v); |
36ed4f51 RD |
1941 | return 1; |
1942 | } else { | |
1943 | return 0; | |
1944 | } | |
1945 | } else { | |
1946 | PyErr_Clear(); | |
1947 | } | |
1948 | if (val) { | |
1949 | SWIG_type_error(errmsg, obj); | |
1950 | } | |
1951 | return 0; | |
d55e5bfc RD |
1952 | } |
1953 | ||
1954 | ||
32fe5131 | 1955 | SWIGINTERNINLINE short |
36ed4f51 RD |
1956 | SWIG_As_short(PyObject* obj) |
1957 | { | |
1958 | short v; | |
1959 | if (!SWIG_AsVal_short(obj, &v)) { | |
1960 | /* | |
1961 | this is needed to make valgrind/purify happier. | |
1962 | */ | |
1963 | memset((void*)&v, 0, sizeof(short)); | |
1964 | } | |
1965 | return v; | |
d55e5bfc RD |
1966 | } |
1967 | ||
36ed4f51 | 1968 | |
32fe5131 | 1969 | SWIGINTERNINLINE int |
36ed4f51 RD |
1970 | SWIG_Check_short(PyObject* obj) |
1971 | { | |
1972 | return SWIG_AsVal_short(obj, (short*)0); | |
d55e5bfc RD |
1973 | } |
1974 | ||
1975 | ||
36ed4f51 | 1976 | #include <wx/image.h> |
d55e5bfc | 1977 | |
36ed4f51 RD |
1978 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
1979 | char** cArray = NULL; | |
1980 | int count; | |
d55e5bfc | 1981 | |
36ed4f51 RD |
1982 | if (!PyList_Check(listOfStrings)) { |
1983 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
1984 | return NULL; | |
1985 | } | |
1986 | count = PyList_Size(listOfStrings); | |
1987 | cArray = new char*[count]; | |
d55e5bfc | 1988 | |
36ed4f51 RD |
1989 | for(int x=0; x<count; x++) { |
1990 | // TODO: Need some validation and error checking here | |
1991 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
1992 | } | |
1993 | return cArray; | |
d55e5bfc | 1994 | } |
d55e5bfc RD |
1995 | |
1996 | ||
36ed4f51 RD |
1997 | static wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
1998 | char** cArray = NULL; | |
1999 | wxBitmap* bmp; | |
d55e5bfc | 2000 | |
36ed4f51 RD |
2001 | cArray = ConvertListOfStrings(listOfStrings); |
2002 | if (! cArray) | |
2003 | return NULL; | |
2004 | bmp = new wxBitmap(cArray); | |
2005 | delete [] cArray; | |
2006 | return bmp; | |
2007 | } | |
2008 | static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ | |
2009 | char* buf; | |
2010 | int length; | |
2011 | PyString_AsStringAndSize(bits, &buf, &length); | |
2012 | return new wxBitmap(buf, width, height, depth); | |
2013 | } | |
2014 | static wxSize wxBitmap_GetSize(wxBitmap *self){ | |
2015 | wxSize size(self->GetWidth(), self->GetHeight()); | |
2016 | return size; | |
2017 | } | |
2018 | static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
2019 | wxMask *mask = new wxMask(*self, colour); | |
2020 | self->SetMask(mask); | |
2021 | } | |
2022 | static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
2023 | self->SetWidth(size.x); | |
2024 | self->SetHeight(size.y); | |
2025 | } | |
2026 | static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } | |
2027 | static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
2028 | static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
2029 | if ( !colour.Ok() ) | |
2030 | return new wxMask(bitmap, *wxBLACK); | |
2031 | else | |
2032 | return new wxMask(bitmap, colour); | |
2033 | } | |
d55e5bfc | 2034 | |
36ed4f51 | 2035 | #include <wx/iconbndl.h> |
d55e5bfc | 2036 | |
36ed4f51 RD |
2037 | static wxIcon *new_wxIcon(wxBitmap const &bmp){ |
2038 | wxIcon* icon = new wxIcon(); | |
2039 | icon->CopyFromBitmap(bmp); | |
2040 | return icon; | |
2041 | } | |
2042 | static wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
2043 | char** cArray = NULL; | |
2044 | wxIcon* icon; | |
d55e5bfc | 2045 | |
36ed4f51 RD |
2046 | cArray = ConvertListOfStrings(listOfStrings); |
2047 | if (! cArray) | |
2048 | return NULL; | |
2049 | icon = new wxIcon(cArray); | |
2050 | delete [] cArray; | |
2051 | return icon; | |
2052 | } | |
2053 | static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc RD |
2054 | |
2055 | ||
d55e5bfc | 2056 | |
36ed4f51 | 2057 | return new wxIconLocation(*filename); |
d55e5bfc | 2058 | |
36ed4f51 RD |
2059 | } |
2060 | static void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
d55e5bfc RD |
2061 | |
2062 | ||
d55e5bfc | 2063 | |
36ed4f51 | 2064 | // do nothing |
d55e5bfc | 2065 | |
36ed4f51 RD |
2066 | } |
2067 | static int wxIconLocation_GetIndex(wxIconLocation *self){ | |
5cbf236d RD |
2068 | |
2069 | ||
d55e5bfc | 2070 | |
36ed4f51 | 2071 | return -1; |
d55e5bfc | 2072 | |
36ed4f51 | 2073 | } |
d55e5bfc | 2074 | |
32fe5131 | 2075 | SWIGINTERNINLINE long |
36ed4f51 RD |
2076 | SWIG_As_long(PyObject* obj) |
2077 | { | |
2078 | long v; | |
2079 | if (!SWIG_AsVal_long(obj, &v)) { | |
2080 | /* | |
2081 | this is needed to make valgrind/purify happier. | |
2082 | */ | |
2083 | memset((void*)&v, 0, sizeof(long)); | |
2084 | } | |
2085 | return v; | |
2086 | } | |
d55e5bfc | 2087 | |
36ed4f51 | 2088 | |
32fe5131 | 2089 | SWIGINTERNINLINE int |
36ed4f51 RD |
2090 | SWIG_Check_long(PyObject* obj) |
2091 | { | |
2092 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
2093 | } |
2094 | ||
fef4c27a | 2095 | static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
36ed4f51 | 2096 | #ifdef __WXGTK__ |
fef4c27a RD |
2097 | wxImage img(cursorName, type); |
2098 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
2099 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
2100 | return new wxCursor(img); | |
36ed4f51 | 2101 | #else |
fef4c27a | 2102 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
36ed4f51 RD |
2103 | #endif |
2104 | } | |
d55e5bfc | 2105 | |
d55e5bfc | 2106 | |
36ed4f51 RD |
2107 | static void wxRegionIterator_Next(wxRegionIterator *self){ |
2108 | (*self) ++; | |
2109 | } | |
2110 | static bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
2111 | return self->operator bool(); | |
2112 | } | |
d55e5bfc | 2113 | |
36ed4f51 RD |
2114 | #include <wx/fontutil.h> |
2115 | #include <wx/fontmap.h> | |
2116 | #include <wx/fontenum.h> | |
d55e5bfc | 2117 | |
36ed4f51 RD |
2118 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
2119 | return self->ToString(); | |
2120 | } | |
d55e5bfc | 2121 | |
36ed4f51 RD |
2122 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { |
2123 | static wxNativeEncodingInfo info; | |
2124 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
2125 | return &info; | |
2126 | else | |
2127 | return NULL; | |
d55e5bfc | 2128 | } |
d55e5bfc | 2129 | |
36ed4f51 RD |
2130 | static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ |
2131 | wxFontEncoding alt_enc; | |
2132 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2133 | return PyInt_FromLong(alt_enc); | |
2134 | else { | |
2135 | Py_INCREF(Py_None); | |
2136 | return Py_None; | |
2137 | } | |
2138 | } | |
2139 | static wxFont *new_wxFont(wxString const &info){ | |
a97cefba RD |
2140 | wxNativeFontInfo nfi; |
2141 | nfi.FromString(info); | |
2142 | return new wxFont(nfi); | |
2143 | } | |
36ed4f51 | 2144 | static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
2145 | return wxFont::New(pointSize, family, flags, face, encoding); |
2146 | } | |
36ed4f51 | 2147 | 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 |
2148 | return wxFontBase::New(pixelSize, family, |
2149 | style, weight, underlined, | |
2150 | face, encoding); | |
2151 | } | |
2152 | static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ | |
2153 | return wxFontBase::New(pixelSize, family, flags, face, encoding); | |
2154 | } | |
36ed4f51 RD |
2155 | static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
2156 | static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2157 | |
36ed4f51 RD |
2158 | class wxPyFontEnumerator : public wxFontEnumerator { |
2159 | public: | |
2160 | wxPyFontEnumerator() {} | |
2161 | ~wxPyFontEnumerator() {} | |
d55e5bfc | 2162 | |
36ed4f51 RD |
2163 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); |
2164 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
d55e5bfc | 2165 | |
36ed4f51 RD |
2166 | PYPRIVATE; |
2167 | }; | |
d55e5bfc | 2168 | |
36ed4f51 RD |
2169 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); |
2170 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
d55e5bfc | 2171 | |
36ed4f51 RD |
2172 | |
2173 | static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
2174 | wxArrayString* arr = self->GetEncodings(); | |
2175 | if (arr) | |
2176 | return wxArrayString2PyList_helper(*arr); | |
2177 | else | |
2178 | return PyList_New(0); | |
2179 | } | |
2180 | static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
2181 | wxArrayString* arr = self->GetFacenames(); | |
2182 | if (arr) | |
2183 | return wxArrayString2PyList_helper(*arr); | |
2184 | else | |
2185 | return PyList_New(0); | |
2186 | } | |
2187 | ||
2188 | #include <locale.h> | |
2189 | ||
2190 | static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
2191 | wxLocale* loc; | |
2192 | if (language == -1) | |
2193 | loc = new wxLocale(); | |
2194 | else | |
2195 | loc = new wxLocale(language, flags); | |
2196 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2197 | // for the floating point conversions and such to work right. | |
2198 | #if PY_VERSION_HEX < 0x02040000 | |
2199 | setlocale(LC_NUMERIC, "C"); | |
2200 | #endif | |
2201 | return loc; | |
2202 | } | |
2203 | static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ | |
2204 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
2205 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2206 | // for the floating point conversions and such to work right. | |
2207 | #if PY_VERSION_HEX < 0x02040000 | |
2208 | setlocale(LC_NUMERIC, "C"); | |
2209 | #endif | |
2210 | return rc; | |
2211 | } | |
2212 | static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
2213 | bool rc = self->Init(language, flags); | |
2214 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2215 | // for the floating point conversions and such to work right. | |
2216 | #if PY_VERSION_HEX < 0x02040000 | |
2217 | setlocale(LC_NUMERIC, "C"); | |
2218 | #endif | |
2219 | return rc; | |
2220 | } | |
2221 | ||
2222 | #include "wx/wxPython/pydrawxxx.h" | |
2223 | ||
2224 | static wxColour wxDC_GetPixel(wxDC *self,int x,int y){ | |
2225 | wxColour col; | |
2226 | self->GetPixel(x, y, &col); | |
2227 | return col; | |
2228 | } | |
2229 | static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ | |
2230 | wxColour col; | |
2231 | self->GetPixel(pt, &col); | |
2232 | return col; | |
2233 | } | |
2234 | ||
2235 | SWIGINTERN int | |
2236 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2237 | { | |
2238 | if (PyNumber_Check(obj)) { | |
2239 | if (val) *val = PyFloat_AsDouble(obj); | |
2240 | return 1; | |
d55e5bfc | 2241 | } |
36ed4f51 RD |
2242 | else { |
2243 | SWIG_type_error("number", obj); | |
d55e5bfc | 2244 | } |
36ed4f51 | 2245 | return 0; |
d55e5bfc RD |
2246 | } |
2247 | ||
2248 | ||
32fe5131 | 2249 | SWIGINTERNINLINE double |
36ed4f51 RD |
2250 | SWIG_As_double(PyObject* obj) |
2251 | { | |
2252 | double v; | |
2253 | if (!SWIG_AsVal_double(obj, &v)) { | |
2254 | /* | |
2255 | this is needed to make valgrind/purify happier. | |
2256 | */ | |
2257 | memset((void*)&v, 0, sizeof(double)); | |
2258 | } | |
2259 | return v; | |
2260 | } | |
2261 | ||
2262 | ||
32fe5131 | 2263 | SWIGINTERNINLINE int |
36ed4f51 RD |
2264 | SWIG_Check_double(PyObject* obj) |
2265 | { | |
2266 | return SWIG_AsVal_double(obj, (double*)0); | |
2267 | } | |
2268 | ||
2269 | static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ | |
2270 | wxRect rv; | |
2271 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
2272 | return rv; | |
2273 | } | |
2274 | ||
2275 | static wxRect wxDC_GetClippingRect(wxDC *self){ | |
2276 | wxRect rect; | |
2277 | self->GetClippingBox(rect); | |
2278 | return rect; | |
2279 | } | |
2280 | static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
2281 | wxArrayInt widths; | |
2282 | self->GetPartialTextExtents(text, widths); | |
2283 | return widths; | |
2284 | } | |
2285 | ||
32fe5131 | 2286 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
36ed4f51 RD |
2287 | #define SWIG_From_double PyFloat_FromDouble |
2288 | /*@@*/ | |
2289 | ||
2290 | ||
2291 | static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ | |
2292 | self->SetLogicalOrigin(point.x, point.y); | |
2293 | } | |
2294 | static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
2295 | self->SetDeviceOrigin(point.x, point.y); | |
2296 | } | |
2297 | static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
2298 | self->CalcBoundingBox(point.x, point.y); | |
2299 | } | |
2300 | static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2301 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
2302 | } | |
2303 | static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2304 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
2305 | } | |
2306 | static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2307 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
2308 | } | |
2309 | static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2310 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
2311 | } | |
2312 | static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2313 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
2314 | } | |
2315 | static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
2316 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
2317 | } | |
2318 | ||
2319 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
2320 | *x1 = dc->MinX(); | |
2321 | *y1 = dc->MinY(); | |
2322 | *x2 = dc->MaxX(); | |
2323 | *y2 = dc->MaxY(); | |
2324 | } | |
2325 | ||
2326 | ||
2327 | #include <wx/dcbuffer.h> | |
2328 | ||
2329 | ||
2330 | #include <wx/dcps.h> | |
2331 | ||
2332 | ||
2333 | #include <wx/metafile.h> | |
2334 | ||
2335 | ||
2336 | ||
2337 | static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
2338 | self->AddColour(name, wxColour(red, green, blue)); | |
2339 | } | |
2340 | ||
2341 | #include <wx/effects.h> | |
2342 | ||
be9b1dca RD |
2343 | |
2344 | #include "wx/renderer.h" | |
2345 | ||
2346 | ||
32fe5131 | 2347 | SWIGINTERNINLINE PyObject* |
be9b1dca RD |
2348 | SWIG_From_bool(bool value) |
2349 | { | |
2350 | PyObject *obj = value ? Py_True : Py_False; | |
2351 | Py_INCREF(obj); | |
2352 | return obj; | |
2353 | } | |
2354 | ||
36ed4f51 RD |
2355 | #ifdef __cplusplus |
2356 | extern "C" { | |
2357 | #endif | |
2358 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2359 | PyObject *resultobj = NULL; |
36ed4f51 | 2360 | wxGDIObject *result; |
d55e5bfc | 2361 | char *kwnames[] = { |
36ed4f51 | 2362 | NULL |
d55e5bfc RD |
2363 | }; |
2364 | ||
36ed4f51 | 2365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; |
d55e5bfc | 2366 | { |
36ed4f51 | 2367 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 2369 | result = (wxGDIObject *)new wxGDIObject(); |
d55e5bfc RD |
2370 | |
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
36ed4f51 | 2374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d55e5bfc RD |
2375 | return resultobj; |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
36ed4f51 | 2381 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2382 | PyObject *resultobj = NULL; |
36ed4f51 | 2383 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
d55e5bfc | 2384 | PyObject * obj0 = 0 ; |
d55e5bfc | 2385 | char *kwnames[] = { |
36ed4f51 | 2386 | (char *) "self", NULL |
d55e5bfc RD |
2387 | }; |
2388 | ||
36ed4f51 RD |
2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; |
2390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2392 | { |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2394 | delete arg1; |
d55e5bfc RD |
2395 | |
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | Py_INCREF(Py_None); resultobj = Py_None; | |
2400 | return resultobj; | |
2401 | fail: | |
2402 | return NULL; | |
2403 | } | |
2404 | ||
2405 | ||
36ed4f51 | 2406 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2407 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2408 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2409 | bool result; | |
d55e5bfc | 2410 | PyObject * obj0 = 0 ; |
d55e5bfc | 2411 | char *kwnames[] = { |
36ed4f51 | 2412 | (char *) "self", NULL |
d55e5bfc RD |
2413 | }; |
2414 | ||
36ed4f51 RD |
2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; |
2416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2418 | { |
2419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2420 | result = (bool)(arg1)->GetVisible(); |
d55e5bfc RD |
2421 | |
2422 | wxPyEndAllowThreads(__tstate); | |
2423 | if (PyErr_Occurred()) SWIG_fail; | |
2424 | } | |
36ed4f51 RD |
2425 | { |
2426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2427 | } | |
d55e5bfc RD |
2428 | return resultobj; |
2429 | fail: | |
2430 | return NULL; | |
2431 | } | |
2432 | ||
2433 | ||
36ed4f51 | 2434 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2435 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2436 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2437 | bool arg2 ; | |
d55e5bfc RD |
2438 | PyObject * obj0 = 0 ; |
2439 | PyObject * obj1 = 0 ; | |
2440 | char *kwnames[] = { | |
36ed4f51 | 2441 | (char *) "self",(char *) "visible", NULL |
d55e5bfc RD |
2442 | }; |
2443 | ||
36ed4f51 RD |
2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; |
2445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2447 | { | |
32fe5131 | 2448 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 RD |
2449 | if (SWIG_arg_fail(2)) SWIG_fail; |
2450 | } | |
d55e5bfc RD |
2451 | { |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2453 | (arg1)->SetVisible(arg2); |
d55e5bfc RD |
2454 | |
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
2457 | } | |
2458 | Py_INCREF(Py_None); resultobj = Py_None; | |
2459 | return resultobj; | |
2460 | fail: | |
2461 | return NULL; | |
2462 | } | |
2463 | ||
2464 | ||
36ed4f51 | 2465 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2466 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2467 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2468 | bool result; | |
d55e5bfc | 2469 | PyObject * obj0 = 0 ; |
d55e5bfc | 2470 | char *kwnames[] = { |
36ed4f51 | 2471 | (char *) "self", NULL |
d55e5bfc RD |
2472 | }; |
2473 | ||
36ed4f51 RD |
2474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; |
2475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2477 | { |
2478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2479 | result = (bool)(arg1)->IsNull(); |
d55e5bfc RD |
2480 | |
2481 | wxPyEndAllowThreads(__tstate); | |
2482 | if (PyErr_Occurred()) SWIG_fail; | |
2483 | } | |
36ed4f51 RD |
2484 | { |
2485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2486 | } | |
d55e5bfc RD |
2487 | return resultobj; |
2488 | fail: | |
2489 | return NULL; | |
2490 | } | |
2491 | ||
2492 | ||
36ed4f51 RD |
2493 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
2494 | PyObject *obj; | |
2495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2496 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
2497 | Py_INCREF(obj); | |
2498 | return Py_BuildValue((char *)""); | |
2499 | } | |
2500 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2501 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2502 | byte arg1 = (byte) 0 ; |
2503 | byte arg2 = (byte) 0 ; | |
2504 | byte arg3 = (byte) 0 ; | |
2505 | wxColour *result; | |
d55e5bfc RD |
2506 | PyObject * obj0 = 0 ; |
2507 | PyObject * obj1 = 0 ; | |
36ed4f51 | 2508 | PyObject * obj2 = 0 ; |
d55e5bfc | 2509 | char *kwnames[] = { |
36ed4f51 | 2510 | (char *) "red",(char *) "green",(char *) "blue", NULL |
d55e5bfc RD |
2511 | }; |
2512 | ||
36ed4f51 RD |
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2514 | if (obj0) { | |
2515 | { | |
32fe5131 | 2516 | arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0)); |
36ed4f51 RD |
2517 | if (SWIG_arg_fail(1)) SWIG_fail; |
2518 | } | |
2519 | } | |
2520 | if (obj1) { | |
2521 | { | |
32fe5131 | 2522 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
36ed4f51 RD |
2523 | if (SWIG_arg_fail(2)) SWIG_fail; |
2524 | } | |
2525 | } | |
2526 | if (obj2) { | |
2527 | { | |
32fe5131 | 2528 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
36ed4f51 RD |
2529 | if (SWIG_arg_fail(3)) SWIG_fail; |
2530 | } | |
2531 | } | |
d55e5bfc | 2532 | { |
36ed4f51 RD |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2534 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
2546 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2547 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2548 | wxString *arg1 = 0 ; |
2549 | wxColour *result; | |
2550 | bool temp1 = false ; | |
2551 | PyObject * obj0 = 0 ; | |
2552 | char *kwnames[] = { | |
2553 | (char *) "colorName", NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
2557 | { | |
2558 | arg1 = wxString_in_helper(obj0); | |
2559 | if (arg1 == NULL) SWIG_fail; | |
2560 | temp1 = true; | |
d55e5bfc RD |
2561 | } |
2562 | { | |
36ed4f51 | 2563 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 2565 | result = (wxColour *)new wxColour((wxString const &)*arg1); |
d55e5bfc RD |
2566 | |
2567 | wxPyEndAllowThreads(__tstate); | |
2568 | if (PyErr_Occurred()) SWIG_fail; | |
2569 | } | |
36ed4f51 | 2570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d55e5bfc | 2571 | { |
36ed4f51 RD |
2572 | if (temp1) |
2573 | delete arg1; | |
d55e5bfc RD |
2574 | } |
2575 | return resultobj; | |
2576 | fail: | |
2577 | { | |
36ed4f51 RD |
2578 | if (temp1) |
2579 | delete arg1; | |
d55e5bfc RD |
2580 | } |
2581 | return NULL; | |
2582 | } | |
2583 | ||
2584 | ||
36ed4f51 | 2585 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2586 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2587 | unsigned long arg1 ; |
2588 | wxColour *result; | |
d55e5bfc RD |
2589 | PyObject * obj0 = 0 ; |
2590 | char *kwnames[] = { | |
36ed4f51 | 2591 | (char *) "colRGB", NULL |
d55e5bfc RD |
2592 | }; |
2593 | ||
36ed4f51 RD |
2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; |
2595 | { | |
32fe5131 | 2596 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
36ed4f51 RD |
2597 | if (SWIG_arg_fail(1)) SWIG_fail; |
2598 | } | |
d55e5bfc RD |
2599 | { |
2600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2601 | result = (wxColour *)new wxColour(arg1); |
d55e5bfc RD |
2602 | |
2603 | wxPyEndAllowThreads(__tstate); | |
2604 | if (PyErr_Occurred()) SWIG_fail; | |
2605 | } | |
36ed4f51 | 2606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d55e5bfc RD |
2607 | return resultobj; |
2608 | fail: | |
2609 | return NULL; | |
2610 | } | |
2611 | ||
2612 | ||
36ed4f51 | 2613 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2614 | PyObject *resultobj = NULL; |
36ed4f51 | 2615 | wxColour *arg1 = (wxColour *) 0 ; |
d55e5bfc | 2616 | PyObject * obj0 = 0 ; |
d55e5bfc | 2617 | char *kwnames[] = { |
36ed4f51 | 2618 | (char *) "self", NULL |
d55e5bfc RD |
2619 | }; |
2620 | ||
36ed4f51 RD |
2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; |
2622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2624 | { |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2626 | delete arg1; |
d55e5bfc RD |
2627 | |
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
d6c14a4c | 2631 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2632 | return resultobj; |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
36ed4f51 | 2638 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2639 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2640 | wxColour *arg1 = (wxColour *) 0 ; |
2641 | byte result; | |
d55e5bfc | 2642 | PyObject * obj0 = 0 ; |
d55e5bfc | 2643 | char *kwnames[] = { |
36ed4f51 | 2644 | (char *) "self", NULL |
d55e5bfc RD |
2645 | }; |
2646 | ||
36ed4f51 RD |
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; |
2648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2650 | { |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2652 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
2653 | |
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
2657 | { | |
32fe5131 | 2658 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
d55e5bfc RD |
2659 | } |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
36ed4f51 | 2666 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2667 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2668 | wxColour *arg1 = (wxColour *) 0 ; |
2669 | byte result; | |
d55e5bfc | 2670 | PyObject * obj0 = 0 ; |
d55e5bfc | 2671 | char *kwnames[] = { |
36ed4f51 | 2672 | (char *) "self", NULL |
d55e5bfc RD |
2673 | }; |
2674 | ||
36ed4f51 RD |
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; |
2676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2678 | { |
2679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2680 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
2681 | |
2682 | wxPyEndAllowThreads(__tstate); | |
2683 | if (PyErr_Occurred()) SWIG_fail; | |
2684 | } | |
d55e5bfc | 2685 | { |
32fe5131 | 2686 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
d55e5bfc RD |
2687 | } |
2688 | return resultobj; | |
2689 | fail: | |
d55e5bfc RD |
2690 | return NULL; |
2691 | } | |
2692 | ||
2693 | ||
36ed4f51 | 2694 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2695 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2696 | wxColour *arg1 = (wxColour *) 0 ; |
2697 | byte result; | |
d55e5bfc | 2698 | PyObject * obj0 = 0 ; |
d55e5bfc | 2699 | char *kwnames[] = { |
36ed4f51 | 2700 | (char *) "self", NULL |
d55e5bfc RD |
2701 | }; |
2702 | ||
36ed4f51 RD |
2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; |
2704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2706 | { |
2707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2708 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
2709 | |
2710 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2711 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2712 | } |
36ed4f51 | 2713 | { |
32fe5131 | 2714 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
36ed4f51 | 2715 | } |
d55e5bfc RD |
2716 | return resultobj; |
2717 | fail: | |
2718 | return NULL; | |
2719 | } | |
2720 | ||
2721 | ||
36ed4f51 | 2722 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2723 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2724 | wxColour *arg1 = (wxColour *) 0 ; |
2725 | bool result; | |
d55e5bfc RD |
2726 | PyObject * obj0 = 0 ; |
2727 | char *kwnames[] = { | |
2728 | (char *) "self", NULL | |
2729 | }; | |
2730 | ||
36ed4f51 RD |
2731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; |
2732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2734 | { |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2736 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
2737 | |
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
36ed4f51 RD |
2741 | { |
2742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2743 | } | |
d55e5bfc RD |
2744 | return resultobj; |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
36ed4f51 | 2750 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2751 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2752 | wxColour *arg1 = (wxColour *) 0 ; |
2753 | byte arg2 ; | |
2754 | byte arg3 ; | |
2755 | byte arg4 ; | |
d55e5bfc RD |
2756 | PyObject * obj0 = 0 ; |
2757 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
2758 | PyObject * obj2 = 0 ; |
2759 | PyObject * obj3 = 0 ; | |
d55e5bfc | 2760 | char *kwnames[] = { |
36ed4f51 | 2761 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d55e5bfc RD |
2762 | }; |
2763 | ||
36ed4f51 RD |
2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 2767 | { |
32fe5131 | 2768 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
36ed4f51 RD |
2769 | if (SWIG_arg_fail(2)) SWIG_fail; |
2770 | } | |
2771 | { | |
32fe5131 | 2772 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
36ed4f51 RD |
2773 | if (SWIG_arg_fail(3)) SWIG_fail; |
2774 | } | |
2775 | { | |
32fe5131 | 2776 | arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3)); |
36ed4f51 | 2777 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc RD |
2778 | } |
2779 | { | |
2780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2781 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
2782 | |
2783 | wxPyEndAllowThreads(__tstate); | |
2784 | if (PyErr_Occurred()) SWIG_fail; | |
2785 | } | |
2786 | Py_INCREF(Py_None); resultobj = Py_None; | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | return NULL; | |
2790 | } | |
2791 | ||
2792 | ||
36ed4f51 | 2793 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2794 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2795 | wxColour *arg1 = (wxColour *) 0 ; |
2796 | unsigned long arg2 ; | |
d55e5bfc RD |
2797 | PyObject * obj0 = 0 ; |
2798 | PyObject * obj1 = 0 ; | |
2799 | char *kwnames[] = { | |
36ed4f51 | 2800 | (char *) "self",(char *) "colRGB", NULL |
d55e5bfc RD |
2801 | }; |
2802 | ||
36ed4f51 RD |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
2804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2806 | { | |
32fe5131 | 2807 | arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1)); |
36ed4f51 RD |
2808 | if (SWIG_arg_fail(2)) SWIG_fail; |
2809 | } | |
d55e5bfc RD |
2810 | { |
2811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2812 | (arg1)->Set(arg2); |
d55e5bfc RD |
2813 | |
2814 | wxPyEndAllowThreads(__tstate); | |
2815 | if (PyErr_Occurred()) SWIG_fail; | |
2816 | } | |
2817 | Py_INCREF(Py_None); resultobj = Py_None; | |
2818 | return resultobj; | |
2819 | fail: | |
2820 | return NULL; | |
2821 | } | |
2822 | ||
2823 | ||
36ed4f51 | 2824 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2825 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2826 | wxColour *arg1 = (wxColour *) 0 ; |
2827 | wxString *arg2 = 0 ; | |
2828 | bool temp2 = false ; | |
d55e5bfc RD |
2829 | PyObject * obj0 = 0 ; |
2830 | PyObject * obj1 = 0 ; | |
2831 | char *kwnames[] = { | |
36ed4f51 | 2832 | (char *) "self",(char *) "colourName", NULL |
d55e5bfc RD |
2833 | }; |
2834 | ||
36ed4f51 RD |
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; |
2836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2838 | { | |
2839 | arg2 = wxString_in_helper(obj1); | |
2840 | if (arg2 == NULL) SWIG_fail; | |
2841 | temp2 = true; | |
d55e5bfc RD |
2842 | } |
2843 | { | |
2844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2845 | (arg1)->InitFromName((wxString const &)*arg2); |
d55e5bfc RD |
2846 | |
2847 | wxPyEndAllowThreads(__tstate); | |
2848 | if (PyErr_Occurred()) SWIG_fail; | |
2849 | } | |
2850 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
2851 | { |
2852 | if (temp2) | |
2853 | delete arg2; | |
2854 | } | |
d55e5bfc RD |
2855 | return resultobj; |
2856 | fail: | |
36ed4f51 RD |
2857 | { |
2858 | if (temp2) | |
2859 | delete arg2; | |
2860 | } | |
d55e5bfc RD |
2861 | return NULL; |
2862 | } | |
2863 | ||
2864 | ||
36ed4f51 | 2865 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2866 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2867 | wxColour *arg1 = (wxColour *) 0 ; |
2868 | long result; | |
d55e5bfc RD |
2869 | PyObject * obj0 = 0 ; |
2870 | char *kwnames[] = { | |
2871 | (char *) "self", NULL | |
2872 | }; | |
2873 | ||
36ed4f51 RD |
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; |
2875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2877 | { |
2878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2879 | result = (long)((wxColour const *)arg1)->GetPixel(); |
d55e5bfc RD |
2880 | |
2881 | wxPyEndAllowThreads(__tstate); | |
2882 | if (PyErr_Occurred()) SWIG_fail; | |
2883 | } | |
2884 | { | |
32fe5131 | 2885 | resultobj = SWIG_From_long(static_cast<long >(result)); |
d55e5bfc RD |
2886 | } |
2887 | return resultobj; | |
2888 | fail: | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
36ed4f51 | 2893 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2894 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2895 | wxColour *arg1 = (wxColour *) 0 ; |
2896 | wxColour *arg2 = 0 ; | |
2897 | bool result; | |
2898 | wxColour temp2 ; | |
d55e5bfc | 2899 | PyObject * obj0 = 0 ; |
36ed4f51 | 2900 | PyObject * obj1 = 0 ; |
d55e5bfc | 2901 | char *kwnames[] = { |
36ed4f51 | 2902 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
2903 | }; |
2904 | ||
36ed4f51 RD |
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; |
2906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2908 | { | |
2909 | arg2 = &temp2; | |
2910 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2911 | } | |
d55e5bfc RD |
2912 | { |
2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2914 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); |
d55e5bfc RD |
2915 | |
2916 | wxPyEndAllowThreads(__tstate); | |
2917 | if (PyErr_Occurred()) SWIG_fail; | |
2918 | } | |
36ed4f51 RD |
2919 | { |
2920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2921 | } | |
d55e5bfc RD |
2922 | return resultobj; |
2923 | fail: | |
2924 | return NULL; | |
2925 | } | |
2926 | ||
2927 | ||
36ed4f51 | 2928 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2929 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2930 | wxColour *arg1 = (wxColour *) 0 ; |
2931 | wxColour *arg2 = 0 ; | |
2932 | bool result; | |
2933 | wxColour temp2 ; | |
d55e5bfc | 2934 | PyObject * obj0 = 0 ; |
36ed4f51 | 2935 | PyObject * obj1 = 0 ; |
d55e5bfc | 2936 | char *kwnames[] = { |
36ed4f51 | 2937 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
2938 | }; |
2939 | ||
36ed4f51 RD |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; |
2941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2943 | { | |
2944 | arg2 = &temp2; | |
2945 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2946 | } | |
d55e5bfc RD |
2947 | { |
2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2949 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); |
d55e5bfc RD |
2950 | |
2951 | wxPyEndAllowThreads(__tstate); | |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | } | |
36ed4f51 RD |
2954 | { |
2955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2956 | } | |
d55e5bfc RD |
2957 | return resultobj; |
2958 | fail: | |
2959 | return NULL; | |
2960 | } | |
2961 | ||
2962 | ||
36ed4f51 | 2963 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2964 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2965 | wxColour *arg1 = (wxColour *) 0 ; |
2966 | PyObject *result; | |
f78cc896 RD |
2967 | PyObject * obj0 = 0 ; |
2968 | char *kwnames[] = { | |
2969 | (char *) "self", NULL | |
2970 | }; | |
2971 | ||
36ed4f51 RD |
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
2973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f78cc896 RD |
2975 | { |
2976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 2977 | result = (PyObject *)wxColour_Get(arg1); |
f78cc896 RD |
2978 | |
2979 | wxPyEndAllowThreads(__tstate); | |
2980 | if (PyErr_Occurred()) SWIG_fail; | |
2981 | } | |
36ed4f51 | 2982 | resultobj = result; |
f78cc896 RD |
2983 | return resultobj; |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
36ed4f51 | 2989 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2990 | PyObject *resultobj = NULL; |
36ed4f51 RD |
2991 | wxColour *arg1 = (wxColour *) 0 ; |
2992 | unsigned long result; | |
d55e5bfc RD |
2993 | PyObject * obj0 = 0 ; |
2994 | char *kwnames[] = { | |
2995 | (char *) "self", NULL | |
2996 | }; | |
2997 | ||
36ed4f51 RD |
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
2999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
3000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3001 | { |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3003 | result = (unsigned long)wxColour_GetRGB(arg1); |
d55e5bfc RD |
3004 | |
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
3008 | { | |
32fe5131 | 3009 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
d55e5bfc RD |
3010 | } |
3011 | return resultobj; | |
3012 | fail: | |
3013 | return NULL; | |
3014 | } | |
3015 | ||
3016 | ||
36ed4f51 RD |
3017 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
3018 | PyObject *obj; | |
3019 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3020 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
3021 | Py_INCREF(obj); | |
3022 | return Py_BuildValue((char *)""); | |
3023 | } | |
3024 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3025 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3026 | int arg1 ; |
3027 | unsigned char *arg2 = (unsigned char *) 0 ; | |
3028 | unsigned char *arg3 = (unsigned char *) 0 ; | |
3029 | unsigned char *arg4 = (unsigned char *) 0 ; | |
3030 | wxPalette *result; | |
d55e5bfc | 3031 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
3032 | PyObject * obj1 = 0 ; |
3033 | PyObject * obj2 = 0 ; | |
3034 | PyObject * obj3 = 0 ; | |
d55e5bfc | 3035 | char *kwnames[] = { |
36ed4f51 | 3036 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL |
d55e5bfc RD |
3037 | }; |
3038 | ||
36ed4f51 | 3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc | 3040 | { |
32fe5131 | 3041 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
3042 | if (SWIG_arg_fail(1)) SWIG_fail; |
3043 | } | |
3044 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3045 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3046 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3047 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3048 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3049 | if (SWIG_arg_fail(4)) SWIG_fail; | |
3050 | { | |
3051 | if (!wxPyCheckForApp()) SWIG_fail; | |
d55e5bfc | 3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3053 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); |
d55e5bfc RD |
3054 | |
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
36ed4f51 | 3058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d55e5bfc RD |
3059 | return resultobj; |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
36ed4f51 | 3065 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3066 | PyObject *resultobj = NULL; |
36ed4f51 | 3067 | wxPalette *arg1 = (wxPalette *) 0 ; |
d55e5bfc | 3068 | PyObject * obj0 = 0 ; |
d55e5bfc | 3069 | char *kwnames[] = { |
36ed4f51 | 3070 | (char *) "self", NULL |
d55e5bfc RD |
3071 | }; |
3072 | ||
36ed4f51 RD |
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; |
3074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3076 | { |
3077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3078 | delete arg1; |
d55e5bfc RD |
3079 | |
3080 | wxPyEndAllowThreads(__tstate); | |
3081 | if (PyErr_Occurred()) SWIG_fail; | |
3082 | } | |
3083 | Py_INCREF(Py_None); resultobj = Py_None; | |
3084 | return resultobj; | |
3085 | fail: | |
3086 | return NULL; | |
3087 | } | |
3088 | ||
3089 | ||
36ed4f51 | 3090 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3091 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3092 | wxPalette *arg1 = (wxPalette *) 0 ; |
3093 | byte arg2 ; | |
3094 | byte arg3 ; | |
3095 | byte arg4 ; | |
3096 | int result; | |
d55e5bfc RD |
3097 | PyObject * obj0 = 0 ; |
3098 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
3099 | PyObject * obj2 = 0 ; |
3100 | PyObject * obj3 = 0 ; | |
d55e5bfc | 3101 | char *kwnames[] = { |
36ed4f51 | 3102 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d55e5bfc RD |
3103 | }; |
3104 | ||
36ed4f51 RD |
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3108 | { |
32fe5131 | 3109 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
36ed4f51 | 3110 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 3111 | } |
36ed4f51 | 3112 | { |
32fe5131 | 3113 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
36ed4f51 RD |
3114 | if (SWIG_arg_fail(3)) SWIG_fail; |
3115 | } | |
3116 | { | |
32fe5131 | 3117 | arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3)); |
36ed4f51 | 3118 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc RD |
3119 | } |
3120 | { | |
3121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3122 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); |
d55e5bfc RD |
3123 | |
3124 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3125 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3126 | } |
d55e5bfc | 3127 | { |
32fe5131 | 3128 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
3129 | } |
3130 | return resultobj; | |
3131 | fail: | |
d55e5bfc RD |
3132 | return NULL; |
3133 | } | |
3134 | ||
3135 | ||
36ed4f51 | 3136 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3137 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3138 | wxPalette *arg1 = (wxPalette *) 0 ; |
3139 | int arg2 ; | |
3140 | byte *arg3 = (byte *) 0 ; | |
3141 | byte *arg4 = (byte *) 0 ; | |
3142 | byte *arg5 = (byte *) 0 ; | |
3143 | bool result; | |
3144 | byte temp3 ; | |
3145 | int res3 = 0 ; | |
3146 | byte temp4 ; | |
3147 | int res4 = 0 ; | |
3148 | byte temp5 ; | |
3149 | int res5 = 0 ; | |
d55e5bfc | 3150 | PyObject * obj0 = 0 ; |
36ed4f51 | 3151 | PyObject * obj1 = 0 ; |
d55e5bfc | 3152 | char *kwnames[] = { |
36ed4f51 | 3153 | (char *) "self",(char *) "pixel", NULL |
d55e5bfc RD |
3154 | }; |
3155 | ||
36ed4f51 RD |
3156 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
3157 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
3158 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
3160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3162 | { | |
32fe5131 | 3163 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
3164 | if (SWIG_arg_fail(2)) SWIG_fail; |
3165 | } | |
d55e5bfc RD |
3166 | { |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3168 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
3169 | |
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
36ed4f51 RD |
3173 | { |
3174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3175 | } | |
3176 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3177 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
3178 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
3179 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
3180 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
3181 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
3182 | return resultobj; |
3183 | fail: | |
3184 | return NULL; | |
3185 | } | |
3186 | ||
3187 | ||
36ed4f51 | 3188 | static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3189 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3190 | wxPalette *arg1 = (wxPalette *) 0 ; |
3191 | int result; | |
d6c14a4c | 3192 | PyObject * obj0 = 0 ; |
d6c14a4c | 3193 | char *kwnames[] = { |
36ed4f51 | 3194 | (char *) "self", NULL |
d6c14a4c RD |
3195 | }; |
3196 | ||
36ed4f51 RD |
3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail; |
3198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c RD |
3200 | { |
3201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3202 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); |
d6c14a4c RD |
3203 | |
3204 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3205 | if (PyErr_Occurred()) SWIG_fail; |
d6c14a4c | 3206 | } |
36ed4f51 | 3207 | { |
32fe5131 | 3208 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 3209 | } |
d6c14a4c RD |
3210 | return resultobj; |
3211 | fail: | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
36ed4f51 | 3216 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3217 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3218 | wxPalette *arg1 = (wxPalette *) 0 ; |
3219 | bool result; | |
d55e5bfc RD |
3220 | PyObject * obj0 = 0 ; |
3221 | char *kwnames[] = { | |
36ed4f51 | 3222 | (char *) "self", NULL |
d55e5bfc RD |
3223 | }; |
3224 | ||
36ed4f51 RD |
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; |
3226 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3227 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3228 | { |
3229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3230 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
3231 | |
3232 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3233 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3234 | } |
36ed4f51 RD |
3235 | { |
3236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3237 | } | |
d55e5bfc RD |
3238 | return resultobj; |
3239 | fail: | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
36ed4f51 RD |
3244 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
3245 | PyObject *obj; | |
3246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3247 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
3248 | Py_INCREF(obj); | |
3249 | return Py_BuildValue((char *)""); | |
3250 | } | |
3251 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3252 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3253 | wxColour *arg1 = 0 ; |
3254 | int arg2 = (int) 1 ; | |
3255 | int arg3 = (int) wxSOLID ; | |
3256 | wxPen *result; | |
3257 | wxColour temp1 ; | |
d55e5bfc RD |
3258 | PyObject * obj0 = 0 ; |
3259 | PyObject * obj1 = 0 ; | |
36ed4f51 | 3260 | PyObject * obj2 = 0 ; |
d55e5bfc | 3261 | char *kwnames[] = { |
36ed4f51 | 3262 | (char *) "colour",(char *) "width",(char *) "style", NULL |
d55e5bfc RD |
3263 | }; |
3264 | ||
36ed4f51 RD |
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
3266 | { | |
3267 | arg1 = &temp1; | |
3268 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
d55e5bfc RD |
3269 | } |
3270 | if (obj1) { | |
36ed4f51 | 3271 | { |
32fe5131 | 3272 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
3273 | if (SWIG_arg_fail(2)) SWIG_fail; |
3274 | } | |
3275 | } | |
3276 | if (obj2) { | |
3277 | { | |
32fe5131 | 3278 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
3279 | if (SWIG_arg_fail(3)) SWIG_fail; |
3280 | } | |
d55e5bfc RD |
3281 | } |
3282 | { | |
0439c23b | 3283 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3285 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); |
d55e5bfc RD |
3286 | |
3287 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3288 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3289 | } |
36ed4f51 | 3290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d55e5bfc RD |
3291 | return resultobj; |
3292 | fail: | |
3293 | return NULL; | |
3294 | } | |
3295 | ||
3296 | ||
36ed4f51 | 3297 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3298 | PyObject *resultobj = NULL; |
36ed4f51 | 3299 | wxPen *arg1 = (wxPen *) 0 ; |
d55e5bfc RD |
3300 | PyObject * obj0 = 0 ; |
3301 | char *kwnames[] = { | |
36ed4f51 | 3302 | (char *) "self", NULL |
d55e5bfc RD |
3303 | }; |
3304 | ||
36ed4f51 RD |
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; |
3306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3308 | { |
3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3310 | delete arg1; |
d55e5bfc RD |
3311 | |
3312 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3313 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3314 | } |
36ed4f51 | 3315 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3316 | return resultobj; |
3317 | fail: | |
3318 | return NULL; | |
3319 | } | |
3320 | ||
3321 | ||
36ed4f51 | 3322 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3323 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3324 | wxPen *arg1 = (wxPen *) 0 ; |
3325 | int result; | |
d55e5bfc | 3326 | PyObject * obj0 = 0 ; |
d55e5bfc | 3327 | char *kwnames[] = { |
36ed4f51 | 3328 | (char *) "self", NULL |
d55e5bfc RD |
3329 | }; |
3330 | ||
36ed4f51 RD |
3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; |
3332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3334 | { |
3335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3336 | result = (int)(arg1)->GetCap(); |
d55e5bfc RD |
3337 | |
3338 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3339 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3340 | } |
36ed4f51 | 3341 | { |
32fe5131 | 3342 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 3343 | } |
d55e5bfc RD |
3344 | return resultobj; |
3345 | fail: | |
3346 | return NULL; | |
3347 | } | |
3348 | ||
3349 | ||
36ed4f51 | 3350 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3351 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3352 | wxPen *arg1 = (wxPen *) 0 ; |
3353 | wxColour result; | |
d55e5bfc RD |
3354 | PyObject * obj0 = 0 ; |
3355 | char *kwnames[] = { | |
3356 | (char *) "self", NULL | |
3357 | }; | |
3358 | ||
36ed4f51 RD |
3359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; |
3360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3362 | { |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3364 | result = (arg1)->GetColour(); |
d55e5bfc RD |
3365 | |
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
3369 | { | |
36ed4f51 | 3370 | wxColour * resultptr; |
32fe5131 | 3371 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 | 3372 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d55e5bfc RD |
3373 | } |
3374 | return resultobj; | |
3375 | fail: | |
3376 | return NULL; | |
3377 | } | |
3378 | ||
3379 | ||
36ed4f51 | 3380 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3381 | PyObject *resultobj = NULL; |
36ed4f51 | 3382 | wxPen *arg1 = (wxPen *) 0 ; |
d55e5bfc RD |
3383 | int result; |
3384 | PyObject * obj0 = 0 ; | |
3385 | char *kwnames[] = { | |
3386 | (char *) "self", NULL | |
3387 | }; | |
3388 | ||
36ed4f51 RD |
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; |
3390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3392 | { |
3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3394 | result = (int)(arg1)->GetJoin(); |
d55e5bfc RD |
3395 | |
3396 | wxPyEndAllowThreads(__tstate); | |
3397 | if (PyErr_Occurred()) SWIG_fail; | |
3398 | } | |
d55e5bfc | 3399 | { |
32fe5131 | 3400 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc | 3401 | } |
d55e5bfc RD |
3402 | return resultobj; |
3403 | fail: | |
3404 | return NULL; | |
3405 | } | |
3406 | ||
3407 | ||
36ed4f51 | 3408 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3409 | PyObject *resultobj = NULL; |
36ed4f51 | 3410 | wxPen *arg1 = (wxPen *) 0 ; |
d55e5bfc RD |
3411 | int result; |
3412 | PyObject * obj0 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self", NULL | |
3415 | }; | |
3416 | ||
36ed4f51 RD |
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; |
3418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3420 | { |
3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3422 | result = (int)(arg1)->GetStyle(); |
d55e5bfc RD |
3423 | |
3424 | wxPyEndAllowThreads(__tstate); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
36ed4f51 | 3427 | { |
32fe5131 | 3428 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 3429 | } |
d55e5bfc RD |
3430 | return resultobj; |
3431 | fail: | |
3432 | return NULL; | |
3433 | } | |
3434 | ||
3435 | ||
36ed4f51 | 3436 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3437 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3438 | wxPen *arg1 = (wxPen *) 0 ; |
3439 | int result; | |
d55e5bfc RD |
3440 | PyObject * obj0 = 0 ; |
3441 | char *kwnames[] = { | |
3442 | (char *) "self", NULL | |
3443 | }; | |
3444 | ||
36ed4f51 RD |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; |
3446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3448 | { |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3450 | result = (int)(arg1)->GetWidth(); |
d55e5bfc RD |
3451 | |
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | { | |
32fe5131 | 3456 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
3457 | } |
3458 | return resultobj; | |
3459 | fail: | |
3460 | return NULL; | |
3461 | } | |
3462 | ||
3463 | ||
36ed4f51 | 3464 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3465 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3466 | wxPen *arg1 = (wxPen *) 0 ; |
3467 | bool result; | |
d55e5bfc RD |
3468 | PyObject * obj0 = 0 ; |
3469 | char *kwnames[] = { | |
3470 | (char *) "self", NULL | |
3471 | }; | |
3472 | ||
36ed4f51 RD |
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; |
3474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3476 | { |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3478 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
3479 | |
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | { | |
36ed4f51 | 3484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
3485 | } |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
36ed4f51 | 3492 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3493 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3494 | wxPen *arg1 = (wxPen *) 0 ; |
3495 | int arg2 ; | |
d55e5bfc | 3496 | PyObject * obj0 = 0 ; |
36ed4f51 | 3497 | PyObject * obj1 = 0 ; |
d55e5bfc | 3498 | char *kwnames[] = { |
36ed4f51 | 3499 | (char *) "self",(char *) "cap_style", NULL |
d55e5bfc RD |
3500 | }; |
3501 | ||
36ed4f51 RD |
3502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
3503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3505 | { | |
32fe5131 | 3506 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
3507 | if (SWIG_arg_fail(2)) SWIG_fail; |
3508 | } | |
d55e5bfc RD |
3509 | { |
3510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3511 | (arg1)->SetCap(arg2); |
d55e5bfc RD |
3512 | |
3513 | wxPyEndAllowThreads(__tstate); | |
3514 | if (PyErr_Occurred()) SWIG_fail; | |
3515 | } | |
36ed4f51 | 3516 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3517 | return resultobj; |
3518 | fail: | |
3519 | return NULL; | |
3520 | } | |
3521 | ||
3522 | ||
36ed4f51 | 3523 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3524 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3525 | wxPen *arg1 = (wxPen *) 0 ; |
3526 | wxColour *arg2 = 0 ; | |
3527 | wxColour temp2 ; | |
d55e5bfc RD |
3528 | PyObject * obj0 = 0 ; |
3529 | PyObject * obj1 = 0 ; | |
3530 | char *kwnames[] = { | |
36ed4f51 | 3531 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
3532 | }; |
3533 | ||
36ed4f51 RD |
3534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3537 | { | |
3538 | arg2 = &temp2; | |
3539 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3540 | } | |
d55e5bfc RD |
3541 | { |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3543 | (arg1)->SetColour(*arg2); |
d55e5bfc RD |
3544 | |
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | Py_INCREF(Py_None); resultobj = Py_None; | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
36ed4f51 | 3555 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3556 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3557 | wxPen *arg1 = (wxPen *) 0 ; |
3558 | int arg2 ; | |
d55e5bfc RD |
3559 | PyObject * obj0 = 0 ; |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
36ed4f51 | 3562 | (char *) "self",(char *) "join_style", NULL |
d55e5bfc RD |
3563 | }; |
3564 | ||
36ed4f51 RD |
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
3566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3568 | { |
32fe5131 | 3569 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 3570 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
3571 | } |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3574 | (arg1)->SetJoin(arg2); |
d55e5bfc RD |
3575 | |
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | return resultobj; | |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
36ed4f51 | 3586 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3587 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3588 | wxPen *arg1 = (wxPen *) 0 ; |
3589 | int arg2 ; | |
d55e5bfc RD |
3590 | PyObject * obj0 = 0 ; |
3591 | PyObject * obj1 = 0 ; | |
3592 | char *kwnames[] = { | |
36ed4f51 | 3593 | (char *) "self",(char *) "style", NULL |
d55e5bfc RD |
3594 | }; |
3595 | ||
36ed4f51 RD |
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3599 | { |
32fe5131 | 3600 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 3601 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
3602 | } |
3603 | { | |
3604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3605 | (arg1)->SetStyle(arg2); |
d55e5bfc RD |
3606 | |
3607 | wxPyEndAllowThreads(__tstate); | |
3608 | if (PyErr_Occurred()) SWIG_fail; | |
3609 | } | |
36ed4f51 | 3610 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3611 | return resultobj; |
3612 | fail: | |
3613 | return NULL; | |
3614 | } | |
3615 | ||
3616 | ||
36ed4f51 | 3617 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3618 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3619 | wxPen *arg1 = (wxPen *) 0 ; |
3620 | int arg2 ; | |
d55e5bfc RD |
3621 | PyObject * obj0 = 0 ; |
3622 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3623 | char *kwnames[] = { |
36ed4f51 | 3624 | (char *) "self",(char *) "width", NULL |
d55e5bfc RD |
3625 | }; |
3626 | ||
36ed4f51 RD |
3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
3628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3630 | { |
32fe5131 | 3631 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 3632 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
3633 | } |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3636 | (arg1)->SetWidth(arg2); |
d55e5bfc RD |
3637 | |
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
36ed4f51 | 3641 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3642 | return resultobj; |
3643 | fail: | |
d55e5bfc RD |
3644 | return NULL; |
3645 | } | |
3646 | ||
3647 | ||
36ed4f51 | 3648 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3649 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3650 | wxPen *arg1 = (wxPen *) 0 ; |
3651 | int arg2 ; | |
3652 | wxDash *arg3 = (wxDash *) 0 ; | |
d55e5bfc RD |
3653 | PyObject * obj0 = 0 ; |
3654 | PyObject * obj1 = 0 ; | |
d55e5bfc | 3655 | char *kwnames[] = { |
36ed4f51 | 3656 | (char *) "self",(char *) "dashes", NULL |
d55e5bfc RD |
3657 | }; |
3658 | ||
36ed4f51 RD |
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; |
3660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3662 | { |
36ed4f51 RD |
3663 | arg2 = PyList_Size(obj1); |
3664 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
3665 | if (arg3 == NULL) SWIG_fail; | |
d55e5bfc | 3666 | } |
d55e5bfc RD |
3667 | { |
3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3669 | (arg1)->SetDashes(arg2,arg3); |
d55e5bfc RD |
3670 | |
3671 | wxPyEndAllowThreads(__tstate); | |
3672 | if (PyErr_Occurred()) SWIG_fail; | |
3673 | } | |
36ed4f51 | 3674 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 3675 | { |
36ed4f51 | 3676 | if (arg3) delete [] arg3; |
d55e5bfc RD |
3677 | } |
3678 | return resultobj; | |
3679 | fail: | |
3680 | { | |
36ed4f51 | 3681 | if (arg3) delete [] arg3; |
d55e5bfc RD |
3682 | } |
3683 | return NULL; | |
3684 | } | |
3685 | ||
3686 | ||
36ed4f51 | 3687 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3688 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3689 | wxPen *arg1 = (wxPen *) 0 ; |
3690 | PyObject *result; | |
070c48b4 RD |
3691 | PyObject * obj0 = 0 ; |
3692 | char *kwnames[] = { | |
3693 | (char *) "self", NULL | |
3694 | }; | |
3695 | ||
36ed4f51 RD |
3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; |
3697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
070c48b4 RD |
3699 | { |
3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3701 | result = (PyObject *)wxPen_GetDashes(arg1); |
070c48b4 RD |
3702 | |
3703 | wxPyEndAllowThreads(__tstate); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
36ed4f51 | 3706 | resultobj = result; |
070c48b4 RD |
3707 | return resultobj; |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
36ed4f51 | 3713 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3714 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3715 | wxPen *arg1 = (wxPen *) 0 ; |
3716 | PyObject *arg2 = (PyObject *) 0 ; | |
3717 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
3718 | PyObject * obj0 = 0 ; |
3719 | PyObject * obj1 = 0 ; | |
36ed4f51 | 3720 | PyObject * obj2 = 0 ; |
d55e5bfc | 3721 | char *kwnames[] = { |
36ed4f51 | 3722 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
3723 | }; |
3724 | ||
36ed4f51 RD |
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
3726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3728 | arg2 = obj1; | |
3729 | arg3 = obj2; | |
d55e5bfc RD |
3730 | { |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3732 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
3733 | |
3734 | wxPyEndAllowThreads(__tstate); | |
3735 | if (PyErr_Occurred()) SWIG_fail; | |
3736 | } | |
36ed4f51 | 3737 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3738 | return resultobj; |
3739 | fail: | |
3740 | return NULL; | |
3741 | } | |
3742 | ||
3743 | ||
36ed4f51 | 3744 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3745 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3746 | wxPen *arg1 = (wxPen *) 0 ; |
3747 | wxPen *arg2 = (wxPen *) 0 ; | |
3748 | bool result; | |
d55e5bfc RD |
3749 | PyObject * obj0 = 0 ; |
3750 | PyObject * obj1 = 0 ; | |
3751 | char *kwnames[] = { | |
36ed4f51 | 3752 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
3753 | }; |
3754 | ||
36ed4f51 RD |
3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
3756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3758 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3760 | { |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3762 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
3763 | |
3764 | wxPyEndAllowThreads(__tstate); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
36ed4f51 RD |
3767 | { |
3768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3769 | } | |
d55e5bfc RD |
3770 | return resultobj; |
3771 | fail: | |
3772 | return NULL; | |
3773 | } | |
3774 | ||
3775 | ||
36ed4f51 | 3776 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3777 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3778 | wxPen *arg1 = (wxPen *) 0 ; |
3779 | wxPen *arg2 = (wxPen *) 0 ; | |
3780 | bool result; | |
d55e5bfc RD |
3781 | PyObject * obj0 = 0 ; |
3782 | PyObject * obj1 = 0 ; | |
3783 | char *kwnames[] = { | |
36ed4f51 | 3784 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
3785 | }; |
3786 | ||
36ed4f51 RD |
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
3788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3790 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3792 | { |
3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3794 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
3795 | |
3796 | wxPyEndAllowThreads(__tstate); | |
3797 | if (PyErr_Occurred()) SWIG_fail; | |
3798 | } | |
36ed4f51 RD |
3799 | { |
3800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3801 | } | |
d55e5bfc RD |
3802 | return resultobj; |
3803 | fail: | |
3804 | return NULL; | |
3805 | } | |
3806 | ||
3807 | ||
36ed4f51 RD |
3808 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
3809 | PyObject *obj; | |
3810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3811 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
3812 | Py_INCREF(obj); | |
3813 | return Py_BuildValue((char *)""); | |
3814 | } | |
3815 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3816 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3817 | wxColour *arg1 = 0 ; |
3818 | int arg2 = (int) wxSOLID ; | |
3819 | wxBrush *result; | |
3820 | wxColour temp1 ; | |
d55e5bfc RD |
3821 | PyObject * obj0 = 0 ; |
3822 | PyObject * obj1 = 0 ; | |
3823 | char *kwnames[] = { | |
36ed4f51 | 3824 | (char *) "colour",(char *) "style", NULL |
d55e5bfc RD |
3825 | }; |
3826 | ||
36ed4f51 RD |
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
3828 | { | |
3829 | arg1 = &temp1; | |
3830 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3831 | } | |
3832 | if (obj1) { | |
3833 | { | |
32fe5131 | 3834 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
3835 | if (SWIG_arg_fail(2)) SWIG_fail; |
3836 | } | |
3837 | } | |
d55e5bfc | 3838 | { |
36ed4f51 | 3839 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 3841 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); |
d55e5bfc RD |
3842 | |
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
36ed4f51 | 3846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d55e5bfc RD |
3847 | return resultobj; |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
d04418a7 | 3853 | static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3854 | PyObject *resultobj = NULL; |
d04418a7 RD |
3855 | wxBitmap *arg1 = 0 ; |
3856 | wxBrush *result; | |
3857 | PyObject * obj0 = 0 ; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "stippleBitmap", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail; | |
3863 | { | |
3864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3866 | if (arg1 == NULL) { | |
3867 | SWIG_null_ref("wxBitmap"); | |
3868 | } | |
3869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3870 | } | |
3871 | { | |
3872 | if (!wxPyCheckForApp()) SWIG_fail; | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
3875 | ||
3876 | wxPyEndAllowThreads(__tstate); | |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
3878 | } | |
3879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | return NULL; | |
3883 | } | |
3884 | ||
3885 | ||
36ed4f51 | 3886 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3887 | PyObject *resultobj = NULL; |
36ed4f51 | 3888 | wxBrush *arg1 = (wxBrush *) 0 ; |
d55e5bfc | 3889 | PyObject * obj0 = 0 ; |
d55e5bfc | 3890 | char *kwnames[] = { |
36ed4f51 | 3891 | (char *) "self", NULL |
d55e5bfc RD |
3892 | }; |
3893 | ||
36ed4f51 RD |
3894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; |
3895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3897 | { |
3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3899 | delete arg1; |
d55e5bfc RD |
3900 | |
3901 | wxPyEndAllowThreads(__tstate); | |
3902 | if (PyErr_Occurred()) SWIG_fail; | |
3903 | } | |
3904 | Py_INCREF(Py_None); resultobj = Py_None; | |
3905 | return resultobj; | |
3906 | fail: | |
3907 | return NULL; | |
3908 | } | |
3909 | ||
3910 | ||
36ed4f51 | 3911 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3912 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3913 | wxBrush *arg1 = (wxBrush *) 0 ; |
3914 | wxColour *arg2 = 0 ; | |
3915 | wxColour temp2 ; | |
d55e5bfc RD |
3916 | PyObject * obj0 = 0 ; |
3917 | PyObject * obj1 = 0 ; | |
3918 | char *kwnames[] = { | |
36ed4f51 | 3919 | (char *) "self",(char *) "col", NULL |
d55e5bfc RD |
3920 | }; |
3921 | ||
36ed4f51 RD |
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3925 | { | |
3926 | arg2 = &temp2; | |
3927 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3928 | } | |
d55e5bfc RD |
3929 | { |
3930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3931 | (arg1)->SetColour((wxColour const &)*arg2); |
d55e5bfc RD |
3932 | |
3933 | wxPyEndAllowThreads(__tstate); | |
3934 | if (PyErr_Occurred()) SWIG_fail; | |
3935 | } | |
36ed4f51 | 3936 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3937 | return resultobj; |
3938 | fail: | |
3939 | return NULL; | |
3940 | } | |
3941 | ||
3942 | ||
36ed4f51 | 3943 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3944 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3945 | wxBrush *arg1 = (wxBrush *) 0 ; |
3946 | int arg2 ; | |
d55e5bfc RD |
3947 | PyObject * obj0 = 0 ; |
3948 | PyObject * obj1 = 0 ; | |
3949 | char *kwnames[] = { | |
36ed4f51 | 3950 | (char *) "self",(char *) "style", NULL |
d55e5bfc RD |
3951 | }; |
3952 | ||
36ed4f51 RD |
3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3956 | { | |
32fe5131 | 3957 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
3958 | if (SWIG_arg_fail(2)) SWIG_fail; |
3959 | } | |
d55e5bfc RD |
3960 | { |
3961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3962 | (arg1)->SetStyle(arg2); |
d55e5bfc RD |
3963 | |
3964 | wxPyEndAllowThreads(__tstate); | |
3965 | if (PyErr_Occurred()) SWIG_fail; | |
3966 | } | |
36ed4f51 | 3967 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
3968 | return resultobj; |
3969 | fail: | |
3970 | return NULL; | |
3971 | } | |
3972 | ||
3973 | ||
36ed4f51 | 3974 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3975 | PyObject *resultobj = NULL; |
36ed4f51 RD |
3976 | wxBrush *arg1 = (wxBrush *) 0 ; |
3977 | wxBitmap *arg2 = 0 ; | |
d55e5bfc RD |
3978 | PyObject * obj0 = 0 ; |
3979 | PyObject * obj1 = 0 ; | |
3980 | char *kwnames[] = { | |
36ed4f51 | 3981 | (char *) "self",(char *) "stipple", NULL |
d55e5bfc RD |
3982 | }; |
3983 | ||
36ed4f51 RD |
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; |
3985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3987 | { | |
3988 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3989 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3990 | if (arg2 == NULL) { | |
3991 | SWIG_null_ref("wxBitmap"); | |
d55e5bfc | 3992 | } |
36ed4f51 | 3993 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
3994 | } |
3995 | { | |
3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3997 | (arg1)->SetStipple((wxBitmap const &)*arg2); |
d55e5bfc RD |
3998 | |
3999 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4000 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4001 | } |
36ed4f51 | 4002 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4003 | return resultobj; |
4004 | fail: | |
4005 | return NULL; | |
4006 | } | |
4007 | ||
4008 | ||
36ed4f51 | 4009 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4010 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4011 | wxBrush *arg1 = (wxBrush *) 0 ; |
4012 | wxColour result; | |
d55e5bfc | 4013 | PyObject * obj0 = 0 ; |
d55e5bfc | 4014 | char *kwnames[] = { |
36ed4f51 | 4015 | (char *) "self", NULL |
d55e5bfc RD |
4016 | }; |
4017 | ||
36ed4f51 RD |
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; |
4019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4021 | { |
4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4023 | result = ((wxBrush const *)arg1)->GetColour(); |
d55e5bfc RD |
4024 | |
4025 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4026 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4027 | } |
d55e5bfc | 4028 | { |
36ed4f51 | 4029 | wxColour * resultptr; |
32fe5131 | 4030 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 | 4031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d55e5bfc RD |
4032 | } |
4033 | return resultobj; | |
4034 | fail: | |
d55e5bfc RD |
4035 | return NULL; |
4036 | } | |
4037 | ||
4038 | ||
36ed4f51 | 4039 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4040 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4041 | wxBrush *arg1 = (wxBrush *) 0 ; |
4042 | int result; | |
d55e5bfc RD |
4043 | PyObject * obj0 = 0 ; |
4044 | char *kwnames[] = { | |
4045 | (char *) "self", NULL | |
4046 | }; | |
4047 | ||
36ed4f51 RD |
4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; |
4049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4051 | { |
4052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4053 | result = (int)((wxBrush const *)arg1)->GetStyle(); |
d55e5bfc RD |
4054 | |
4055 | wxPyEndAllowThreads(__tstate); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
4057 | } | |
36ed4f51 | 4058 | { |
32fe5131 | 4059 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 4060 | } |
d55e5bfc RD |
4061 | return resultobj; |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
36ed4f51 | 4067 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4068 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4069 | wxBrush *arg1 = (wxBrush *) 0 ; |
4070 | wxBitmap *result; | |
4071 | PyObject * obj0 = 0 ; | |
d55e5bfc | 4072 | char *kwnames[] = { |
36ed4f51 | 4073 | (char *) "self", NULL |
d55e5bfc RD |
4074 | }; |
4075 | ||
36ed4f51 RD |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; |
4077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4079 | { |
4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4081 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); |
d55e5bfc RD |
4082 | |
4083 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4084 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4085 | } |
36ed4f51 | 4086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d55e5bfc RD |
4087 | return resultobj; |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
36ed4f51 | 4093 | static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4094 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4095 | wxBrush *arg1 = (wxBrush *) 0 ; |
4096 | bool result; | |
d55e5bfc RD |
4097 | PyObject * obj0 = 0 ; |
4098 | char *kwnames[] = { | |
36ed4f51 | 4099 | (char *) "self", NULL |
d55e5bfc RD |
4100 | }; |
4101 | ||
36ed4f51 RD |
4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail; |
4103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4105 | { |
4106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4107 | result = (bool)((wxBrush const *)arg1)->IsHatch(); |
d55e5bfc RD |
4108 | |
4109 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4110 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4111 | } |
36ed4f51 RD |
4112 | { |
4113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4114 | } | |
d55e5bfc RD |
4115 | return resultobj; |
4116 | fail: | |
4117 | return NULL; | |
4118 | } | |
4119 | ||
4120 | ||
36ed4f51 | 4121 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4122 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4123 | wxBrush *arg1 = (wxBrush *) 0 ; |
4124 | bool result; | |
d55e5bfc RD |
4125 | PyObject * obj0 = 0 ; |
4126 | char *kwnames[] = { | |
36ed4f51 | 4127 | (char *) "self", NULL |
d55e5bfc RD |
4128 | }; |
4129 | ||
36ed4f51 RD |
4130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; |
4131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4133 | { |
4134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4135 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
4136 | |
4137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4138 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4139 | } |
36ed4f51 RD |
4140 | { |
4141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4142 | } | |
d55e5bfc RD |
4143 | return resultobj; |
4144 | fail: | |
4145 | return NULL; | |
4146 | } | |
4147 | ||
4148 | ||
36ed4f51 | 4149 | static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4150 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4151 | wxBrush *arg1 = (wxBrush *) 0 ; |
4152 | short result; | |
d55e5bfc RD |
4153 | PyObject * obj0 = 0 ; |
4154 | char *kwnames[] = { | |
36ed4f51 | 4155 | (char *) "self", NULL |
d55e5bfc RD |
4156 | }; |
4157 | ||
36ed4f51 RD |
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail; |
4159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4161 | { |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4163 | result = (short)(arg1)->MacGetTheme(); |
d55e5bfc RD |
4164 | |
4165 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4166 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4167 | } |
36ed4f51 | 4168 | { |
32fe5131 | 4169 | resultobj = SWIG_From_short(static_cast<short >(result)); |
36ed4f51 | 4170 | } |
d55e5bfc RD |
4171 | return resultobj; |
4172 | fail: | |
4173 | return NULL; | |
4174 | } | |
4175 | ||
4176 | ||
36ed4f51 | 4177 | static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4178 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4179 | wxBrush *arg1 = (wxBrush *) 0 ; |
4180 | short arg2 ; | |
d55e5bfc | 4181 | PyObject * obj0 = 0 ; |
36ed4f51 | 4182 | PyObject * obj1 = 0 ; |
d55e5bfc | 4183 | char *kwnames[] = { |
36ed4f51 | 4184 | (char *) "self",(char *) "macThemeBrush", NULL |
d55e5bfc RD |
4185 | }; |
4186 | ||
36ed4f51 RD |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail; |
4188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4190 | { | |
32fe5131 | 4191 | arg2 = static_cast<short >(SWIG_As_short(obj1)); |
36ed4f51 RD |
4192 | if (SWIG_arg_fail(2)) SWIG_fail; |
4193 | } | |
d55e5bfc RD |
4194 | { |
4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4196 | (arg1)->MacSetTheme(arg2); |
d55e5bfc RD |
4197 | |
4198 | wxPyEndAllowThreads(__tstate); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | } | |
36ed4f51 | 4201 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4202 | return resultobj; |
4203 | fail: | |
4204 | return NULL; | |
4205 | } | |
4206 | ||
4207 | ||
36ed4f51 RD |
4208 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
4209 | PyObject *obj; | |
4210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4211 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
4212 | Py_INCREF(obj); | |
4213 | return Py_BuildValue((char *)""); | |
4214 | } | |
4215 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4216 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4217 | wxString *arg1 = 0 ; |
4218 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
4219 | wxBitmap *result; | |
4220 | bool temp1 = false ; | |
d55e5bfc | 4221 | PyObject * obj0 = 0 ; |
36ed4f51 | 4222 | PyObject * obj1 = 0 ; |
d55e5bfc | 4223 | char *kwnames[] = { |
36ed4f51 | 4224 | (char *) "name",(char *) "type", NULL |
d55e5bfc RD |
4225 | }; |
4226 | ||
36ed4f51 RD |
4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
4228 | { | |
4229 | arg1 = wxString_in_helper(obj0); | |
4230 | if (arg1 == NULL) SWIG_fail; | |
4231 | temp1 = true; | |
4232 | } | |
4233 | if (obj1) { | |
4234 | { | |
32fe5131 | 4235 | arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4236 | if (SWIG_arg_fail(2)) SWIG_fail; |
4237 | } | |
4238 | } | |
d55e5bfc | 4239 | { |
36ed4f51 | 4240 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 4242 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); |
d55e5bfc RD |
4243 | |
4244 | wxPyEndAllowThreads(__tstate); | |
4245 | if (PyErr_Occurred()) SWIG_fail; | |
4246 | } | |
36ed4f51 RD |
4247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
4248 | { | |
4249 | if (temp1) | |
4250 | delete arg1; | |
4251 | } | |
d55e5bfc RD |
4252 | return resultobj; |
4253 | fail: | |
36ed4f51 RD |
4254 | { |
4255 | if (temp1) | |
4256 | delete arg1; | |
4257 | } | |
d55e5bfc RD |
4258 | return NULL; |
4259 | } | |
4260 | ||
4261 | ||
36ed4f51 | 4262 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4263 | PyObject *resultobj = NULL; |
36ed4f51 | 4264 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d55e5bfc RD |
4265 | PyObject * obj0 = 0 ; |
4266 | char *kwnames[] = { | |
4267 | (char *) "self", NULL | |
4268 | }; | |
4269 | ||
36ed4f51 RD |
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; |
4271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4273 | { |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4275 | delete arg1; |
d55e5bfc RD |
4276 | |
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
36ed4f51 | 4280 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4281 | return resultobj; |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
36ed4f51 | 4287 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4288 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4289 | int arg1 ; |
4290 | int arg2 ; | |
4291 | int arg3 = (int) -1 ; | |
4292 | wxBitmap *result; | |
d55e5bfc | 4293 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
4294 | PyObject * obj1 = 0 ; |
4295 | PyObject * obj2 = 0 ; | |
d55e5bfc | 4296 | char *kwnames[] = { |
36ed4f51 | 4297 | (char *) "width",(char *) "height",(char *) "depth", NULL |
d55e5bfc RD |
4298 | }; |
4299 | ||
36ed4f51 RD |
4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4301 | { | |
32fe5131 | 4302 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
4303 | if (SWIG_arg_fail(1)) SWIG_fail; |
4304 | } | |
4305 | { | |
32fe5131 | 4306 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4307 | if (SWIG_arg_fail(2)) SWIG_fail; |
4308 | } | |
4309 | if (obj2) { | |
4310 | { | |
32fe5131 | 4311 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
4312 | if (SWIG_arg_fail(3)) SWIG_fail; |
4313 | } | |
4314 | } | |
d55e5bfc | 4315 | { |
36ed4f51 | 4316 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4318 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); |
d55e5bfc RD |
4319 | |
4320 | wxPyEndAllowThreads(__tstate); | |
4321 | if (PyErr_Occurred()) SWIG_fail; | |
4322 | } | |
36ed4f51 | 4323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
4324 | return resultobj; |
4325 | fail: | |
4326 | return NULL; | |
4327 | } | |
4328 | ||
4329 | ||
36ed4f51 | 4330 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4331 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4332 | wxIcon *arg1 = 0 ; |
4333 | wxBitmap *result; | |
d55e5bfc | 4334 | PyObject * obj0 = 0 ; |
d55e5bfc | 4335 | char *kwnames[] = { |
36ed4f51 | 4336 | (char *) "icon", NULL |
d55e5bfc RD |
4337 | }; |
4338 | ||
36ed4f51 RD |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; |
4340 | { | |
4341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
4342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4343 | if (arg1 == NULL) { | |
4344 | SWIG_null_ref("wxIcon"); | |
4345 | } | |
4346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4347 | } | |
d55e5bfc | 4348 | { |
36ed4f51 | 4349 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4351 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); |
d55e5bfc RD |
4352 | |
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
36ed4f51 | 4356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
4357 | return resultobj; |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
36ed4f51 | 4363 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4364 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4365 | wxImage *arg1 = 0 ; |
4366 | int arg2 = (int) -1 ; | |
4367 | wxBitmap *result; | |
d55e5bfc RD |
4368 | PyObject * obj0 = 0 ; |
4369 | PyObject * obj1 = 0 ; | |
4370 | char *kwnames[] = { | |
36ed4f51 | 4371 | (char *) "image",(char *) "depth", NULL |
d55e5bfc RD |
4372 | }; |
4373 | ||
36ed4f51 RD |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
4375 | { | |
4376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
4377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4378 | if (arg1 == NULL) { | |
4379 | SWIG_null_ref("wxImage"); | |
4380 | } | |
4381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4382 | } | |
4383 | if (obj1) { | |
4384 | { | |
32fe5131 | 4385 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4386 | if (SWIG_arg_fail(2)) SWIG_fail; |
4387 | } | |
4388 | } | |
d55e5bfc | 4389 | { |
36ed4f51 | 4390 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4392 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); |
d55e5bfc RD |
4393 | |
4394 | wxPyEndAllowThreads(__tstate); | |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
36ed4f51 | 4397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
4398 | return resultobj; |
4399 | fail: | |
4400 | return NULL; | |
4401 | } | |
4402 | ||
4403 | ||
36ed4f51 | 4404 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4405 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4406 | PyObject *arg1 = (PyObject *) 0 ; |
4407 | wxBitmap *result; | |
d55e5bfc | 4408 | PyObject * obj0 = 0 ; |
d55e5bfc | 4409 | char *kwnames[] = { |
36ed4f51 | 4410 | (char *) "listOfStrings", NULL |
d55e5bfc RD |
4411 | }; |
4412 | ||
36ed4f51 RD |
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; |
4414 | arg1 = obj0; | |
d55e5bfc | 4415 | { |
36ed4f51 | 4416 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4418 | result = (wxBitmap *)new_wxBitmap(arg1); |
d55e5bfc RD |
4419 | |
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
36ed4f51 | 4423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
4424 | return resultobj; |
4425 | fail: | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
36ed4f51 | 4430 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4431 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4432 | PyObject *arg1 = (PyObject *) 0 ; |
4433 | int arg2 ; | |
4434 | int arg3 ; | |
4435 | int arg4 = (int) 1 ; | |
4436 | wxBitmap *result; | |
d55e5bfc RD |
4437 | PyObject * obj0 = 0 ; |
4438 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
4439 | PyObject * obj2 = 0 ; |
4440 | PyObject * obj3 = 0 ; | |
d55e5bfc | 4441 | char *kwnames[] = { |
36ed4f51 | 4442 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL |
d55e5bfc RD |
4443 | }; |
4444 | ||
36ed4f51 RD |
4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4446 | arg1 = obj0; | |
4447 | { | |
32fe5131 | 4448 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4449 | if (SWIG_arg_fail(2)) SWIG_fail; |
4450 | } | |
4451 | { | |
32fe5131 | 4452 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
4453 | if (SWIG_arg_fail(3)) SWIG_fail; |
4454 | } | |
4455 | if (obj3) { | |
4456 | { | |
32fe5131 | 4457 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
4458 | if (SWIG_arg_fail(4)) SWIG_fail; |
4459 | } | |
d55e5bfc RD |
4460 | } |
4461 | { | |
36ed4f51 | 4462 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 4463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 4464 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
4465 | |
4466 | wxPyEndAllowThreads(__tstate); | |
4467 | if (PyErr_Occurred()) SWIG_fail; | |
4468 | } | |
36ed4f51 | 4469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
4470 | return resultobj; |
4471 | fail: | |
4472 | return NULL; | |
4473 | } | |
4474 | ||
4475 | ||
36ed4f51 | 4476 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4477 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4478 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4479 | bool result; | |
d55e5bfc | 4480 | PyObject * obj0 = 0 ; |
d55e5bfc | 4481 | char *kwnames[] = { |
36ed4f51 | 4482 | (char *) "self", NULL |
d55e5bfc RD |
4483 | }; |
4484 | ||
36ed4f51 RD |
4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; |
4486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4488 | { |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4490 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
4491 | |
4492 | wxPyEndAllowThreads(__tstate); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
d55e5bfc | 4495 | { |
36ed4f51 | 4496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
4497 | } |
4498 | return resultobj; | |
4499 | fail: | |
d55e5bfc RD |
4500 | return NULL; |
4501 | } | |
4502 | ||
4503 | ||
36ed4f51 | 4504 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4505 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4506 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4507 | int result; | |
d55e5bfc RD |
4508 | PyObject * obj0 = 0 ; |
4509 | char *kwnames[] = { | |
4510 | (char *) "self", NULL | |
4511 | }; | |
4512 | ||
36ed4f51 RD |
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; |
4514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4516 | { |
4517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4518 | result = (int)(arg1)->GetWidth(); |
d55e5bfc RD |
4519 | |
4520 | wxPyEndAllowThreads(__tstate); | |
4521 | if (PyErr_Occurred()) SWIG_fail; | |
4522 | } | |
36ed4f51 | 4523 | { |
32fe5131 | 4524 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 4525 | } |
d55e5bfc RD |
4526 | return resultobj; |
4527 | fail: | |
4528 | return NULL; | |
4529 | } | |
4530 | ||
4531 | ||
36ed4f51 | 4532 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4533 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4534 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4535 | int result; | |
d55e5bfc RD |
4536 | PyObject * obj0 = 0 ; |
4537 | char *kwnames[] = { | |
4538 | (char *) "self", NULL | |
4539 | }; | |
4540 | ||
36ed4f51 RD |
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; |
4542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4544 | { |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4546 | result = (int)(arg1)->GetHeight(); |
d55e5bfc RD |
4547 | |
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
4551 | { | |
32fe5131 | 4552 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
4553 | } |
4554 | return resultobj; | |
4555 | fail: | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
36ed4f51 | 4560 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4561 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4562 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4563 | int result; | |
d55e5bfc | 4564 | PyObject * obj0 = 0 ; |
d55e5bfc | 4565 | char *kwnames[] = { |
36ed4f51 | 4566 | (char *) "self", NULL |
d55e5bfc RD |
4567 | }; |
4568 | ||
36ed4f51 RD |
4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; |
4570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4572 | { |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4574 | result = (int)(arg1)->GetDepth(); |
d55e5bfc RD |
4575 | |
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
d55e5bfc | 4579 | { |
32fe5131 | 4580 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
4581 | } |
4582 | return resultobj; | |
4583 | fail: | |
d55e5bfc RD |
4584 | return NULL; |
4585 | } | |
4586 | ||
4587 | ||
36ed4f51 | 4588 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4589 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4590 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4591 | wxSize result; | |
d55e5bfc RD |
4592 | PyObject * obj0 = 0 ; |
4593 | char *kwnames[] = { | |
4594 | (char *) "self", NULL | |
4595 | }; | |
4596 | ||
36ed4f51 RD |
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; |
4598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4600 | { |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4602 | result = wxBitmap_GetSize(arg1); |
d55e5bfc RD |
4603 | |
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
4607 | { | |
36ed4f51 | 4608 | wxSize * resultptr; |
32fe5131 | 4609 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 | 4610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d55e5bfc RD |
4611 | } |
4612 | return resultobj; | |
4613 | fail: | |
4614 | return NULL; | |
4615 | } | |
4616 | ||
4617 | ||
36ed4f51 | 4618 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4619 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4620 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4621 | SwigValueWrapper<wxImage > result; | |
d55e5bfc | 4622 | PyObject * obj0 = 0 ; |
d55e5bfc | 4623 | char *kwnames[] = { |
36ed4f51 | 4624 | (char *) "self", NULL |
d55e5bfc RD |
4625 | }; |
4626 | ||
36ed4f51 RD |
4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; |
4628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4630 | { |
4631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4632 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
d55e5bfc RD |
4633 | |
4634 | wxPyEndAllowThreads(__tstate); | |
4635 | if (PyErr_Occurred()) SWIG_fail; | |
4636 | } | |
36ed4f51 RD |
4637 | { |
4638 | wxImage * resultptr; | |
32fe5131 | 4639 | resultptr = new wxImage(static_cast<wxImage & >(result)); |
36ed4f51 RD |
4640 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
4641 | } | |
d55e5bfc RD |
4642 | return resultobj; |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
36ed4f51 | 4648 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4649 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4650 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4651 | wxMask *result; | |
d55e5bfc RD |
4652 | PyObject * obj0 = 0 ; |
4653 | char *kwnames[] = { | |
4654 | (char *) "self", NULL | |
4655 | }; | |
4656 | ||
36ed4f51 RD |
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; |
4658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4660 | { |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4662 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
d55e5bfc RD |
4663 | |
4664 | wxPyEndAllowThreads(__tstate); | |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
4666 | } | |
36ed4f51 | 4667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d55e5bfc RD |
4668 | return resultobj; |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
36ed4f51 | 4674 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4675 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4676 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4677 | wxMask *arg2 = (wxMask *) 0 ; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | PyObject * obj1 = 0 ; | |
d55e5bfc | 4680 | char *kwnames[] = { |
36ed4f51 | 4681 | (char *) "self",(char *) "mask", NULL |
d55e5bfc RD |
4682 | }; |
4683 | ||
36ed4f51 RD |
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; |
4685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4687 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0); | |
4688 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
4689 | { |
4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4691 | (arg1)->SetMask(arg2); |
d55e5bfc RD |
4692 | |
4693 | wxPyEndAllowThreads(__tstate); | |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
4695 | } | |
36ed4f51 | 4696 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4697 | return resultobj; |
4698 | fail: | |
4699 | return NULL; | |
4700 | } | |
4701 | ||
4702 | ||
36ed4f51 | 4703 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4704 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4705 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4706 | wxColour *arg2 = 0 ; | |
4707 | wxColour temp2 ; | |
d55e5bfc RD |
4708 | PyObject * obj0 = 0 ; |
4709 | PyObject * obj1 = 0 ; | |
4710 | char *kwnames[] = { | |
36ed4f51 | 4711 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
4712 | }; |
4713 | ||
36ed4f51 RD |
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; |
4715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 4717 | { |
36ed4f51 RD |
4718 | arg2 = &temp2; |
4719 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 4720 | } |
d55e5bfc RD |
4721 | { |
4722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4723 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
d55e5bfc RD |
4724 | |
4725 | wxPyEndAllowThreads(__tstate); | |
4726 | if (PyErr_Occurred()) SWIG_fail; | |
4727 | } | |
36ed4f51 | 4728 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4729 | return resultobj; |
4730 | fail: | |
d55e5bfc RD |
4731 | return NULL; |
4732 | } | |
4733 | ||
4734 | ||
36ed4f51 | 4735 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4736 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4737 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4738 | wxRect *arg2 = 0 ; | |
4739 | SwigValueWrapper<wxBitmap > result; | |
4740 | wxRect temp2 ; | |
d55e5bfc | 4741 | PyObject * obj0 = 0 ; |
36ed4f51 | 4742 | PyObject * obj1 = 0 ; |
d55e5bfc | 4743 | char *kwnames[] = { |
36ed4f51 | 4744 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
4745 | }; |
4746 | ||
36ed4f51 RD |
4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; |
4748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4750 | { | |
4751 | arg2 = &temp2; | |
4752 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
4753 | } |
4754 | { | |
4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4756 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
d55e5bfc RD |
4757 | |
4758 | wxPyEndAllowThreads(__tstate); | |
4759 | if (PyErr_Occurred()) SWIG_fail; | |
4760 | } | |
d55e5bfc | 4761 | { |
36ed4f51 | 4762 | wxBitmap * resultptr; |
32fe5131 | 4763 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
36ed4f51 | 4764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc | 4765 | } |
d55e5bfc RD |
4766 | return resultobj; |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
36ed4f51 | 4772 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4773 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4774 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4775 | wxString *arg2 = 0 ; | |
4776 | wxBitmapType arg3 ; | |
4777 | wxPalette *arg4 = (wxPalette *) NULL ; | |
4778 | bool result; | |
4779 | bool temp2 = false ; | |
d55e5bfc RD |
4780 | PyObject * obj0 = 0 ; |
4781 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
4782 | PyObject * obj2 = 0 ; |
4783 | PyObject * obj3 = 0 ; | |
d55e5bfc | 4784 | char *kwnames[] = { |
36ed4f51 | 4785 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL |
d55e5bfc RD |
4786 | }; |
4787 | ||
36ed4f51 RD |
4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4791 | { | |
4792 | arg2 = wxString_in_helper(obj1); | |
4793 | if (arg2 == NULL) SWIG_fail; | |
4794 | temp2 = true; | |
4795 | } | |
4796 | { | |
32fe5131 | 4797 | arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2)); |
36ed4f51 RD |
4798 | if (SWIG_arg_fail(3)) SWIG_fail; |
4799 | } | |
4800 | if (obj3) { | |
4801 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
4802 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
4803 | } |
4804 | { | |
4805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 4806 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
d55e5bfc RD |
4807 | |
4808 | wxPyEndAllowThreads(__tstate); | |
4809 | if (PyErr_Occurred()) SWIG_fail; | |
4810 | } | |
36ed4f51 RD |
4811 | { |
4812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4813 | } | |
4814 | { | |
4815 | if (temp2) | |
4816 | delete arg2; | |
4817 | } | |
d55e5bfc RD |
4818 | return resultobj; |
4819 | fail: | |
36ed4f51 RD |
4820 | { |
4821 | if (temp2) | |
4822 | delete arg2; | |
4823 | } | |
d55e5bfc RD |
4824 | return NULL; |
4825 | } | |
4826 | ||
4827 | ||
36ed4f51 | 4828 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4829 | PyObject *resultobj = NULL; |
36ed4f51 | 4830 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d55e5bfc | 4831 | wxString *arg2 = 0 ; |
36ed4f51 RD |
4832 | wxBitmapType arg3 ; |
4833 | bool result; | |
b411df4a | 4834 | bool temp2 = false ; |
d55e5bfc RD |
4835 | PyObject * obj0 = 0 ; |
4836 | PyObject * obj1 = 0 ; | |
4837 | PyObject * obj2 = 0 ; | |
4838 | char *kwnames[] = { | |
36ed4f51 | 4839 | (char *) "self",(char *) "name",(char *) "type", NULL |
d55e5bfc RD |
4840 | }; |
4841 | ||
36ed4f51 RD |
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4845 | { |
4846 | arg2 = wxString_in_helper(obj1); | |
4847 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4848 | temp2 = true; |
d55e5bfc | 4849 | } |
36ed4f51 | 4850 | { |
32fe5131 | 4851 | arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2)); |
36ed4f51 RD |
4852 | if (SWIG_arg_fail(3)) SWIG_fail; |
4853 | } | |
d55e5bfc RD |
4854 | { |
4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 4856 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
d55e5bfc RD |
4857 | |
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
36ed4f51 RD |
4861 | { |
4862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4863 | } | |
d55e5bfc RD |
4864 | { |
4865 | if (temp2) | |
4866 | delete arg2; | |
4867 | } | |
4868 | return resultobj; | |
4869 | fail: | |
4870 | { | |
4871 | if (temp2) | |
4872 | delete arg2; | |
4873 | } | |
4874 | return NULL; | |
4875 | } | |
4876 | ||
4877 | ||
36ed4f51 | 4878 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4879 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4880 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4881 | wxPalette *result; | |
d55e5bfc | 4882 | PyObject * obj0 = 0 ; |
d55e5bfc | 4883 | char *kwnames[] = { |
36ed4f51 | 4884 | (char *) "self", NULL |
d55e5bfc RD |
4885 | }; |
4886 | ||
36ed4f51 RD |
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; |
4888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4890 | { |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4892 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
d55e5bfc RD |
4893 | |
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
36ed4f51 | 4897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); |
d55e5bfc RD |
4898 | return resultobj; |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
36ed4f51 | 4904 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4905 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4906 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4907 | wxIcon *arg2 = 0 ; | |
4908 | bool result; | |
d55e5bfc RD |
4909 | PyObject * obj0 = 0 ; |
4910 | PyObject * obj1 = 0 ; | |
d55e5bfc | 4911 | char *kwnames[] = { |
36ed4f51 | 4912 | (char *) "self",(char *) "icon", NULL |
d55e5bfc RD |
4913 | }; |
4914 | ||
36ed4f51 RD |
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; |
4916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 4918 | { |
36ed4f51 RD |
4919 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); |
4920 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4921 | if (arg2 == NULL) { | |
4922 | SWIG_null_ref("wxIcon"); | |
4923 | } | |
4924 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
4925 | } |
4926 | { | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4928 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
d55e5bfc RD |
4929 | |
4930 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4931 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4932 | } |
d55e5bfc | 4933 | { |
36ed4f51 | 4934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
4935 | } |
4936 | return resultobj; | |
4937 | fail: | |
d55e5bfc RD |
4938 | return NULL; |
4939 | } | |
4940 | ||
4941 | ||
36ed4f51 | 4942 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4943 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4944 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4945 | int arg2 ; | |
d55e5bfc | 4946 | PyObject * obj0 = 0 ; |
36ed4f51 | 4947 | PyObject * obj1 = 0 ; |
d55e5bfc | 4948 | char *kwnames[] = { |
36ed4f51 | 4949 | (char *) "self",(char *) "height", NULL |
d55e5bfc RD |
4950 | }; |
4951 | ||
36ed4f51 RD |
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
4953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4955 | { | |
32fe5131 | 4956 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4957 | if (SWIG_arg_fail(2)) SWIG_fail; |
4958 | } | |
d55e5bfc RD |
4959 | { |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4961 | (arg1)->SetHeight(arg2); |
d55e5bfc RD |
4962 | |
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
36ed4f51 | 4973 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4974 | PyObject *resultobj = NULL; |
36ed4f51 RD |
4975 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4976 | int arg2 ; | |
d55e5bfc | 4977 | PyObject * obj0 = 0 ; |
36ed4f51 | 4978 | PyObject * obj1 = 0 ; |
d55e5bfc | 4979 | char *kwnames[] = { |
36ed4f51 | 4980 | (char *) "self",(char *) "width", NULL |
d55e5bfc RD |
4981 | }; |
4982 | ||
36ed4f51 RD |
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
4984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4986 | { | |
32fe5131 | 4987 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
4988 | if (SWIG_arg_fail(2)) SWIG_fail; |
4989 | } | |
d55e5bfc RD |
4990 | { |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 4992 | (arg1)->SetWidth(arg2); |
d55e5bfc RD |
4993 | |
4994 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4995 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4996 | } |
36ed4f51 | 4997 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
4998 | return resultobj; |
4999 | fail: | |
5000 | return NULL; | |
5001 | } | |
5002 | ||
5003 | ||
36ed4f51 | 5004 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5005 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5006 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5007 | int arg2 ; | |
d55e5bfc | 5008 | PyObject * obj0 = 0 ; |
36ed4f51 | 5009 | PyObject * obj1 = 0 ; |
d55e5bfc | 5010 | char *kwnames[] = { |
36ed4f51 | 5011 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
5012 | }; |
5013 | ||
36ed4f51 RD |
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
5015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5017 | { | |
32fe5131 | 5018 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 5019 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
5020 | } |
5021 | { | |
5022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5023 | (arg1)->SetDepth(arg2); |
d55e5bfc RD |
5024 | |
5025 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5026 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5027 | } |
36ed4f51 | 5028 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5029 | return resultobj; |
5030 | fail: | |
5031 | return NULL; | |
5032 | } | |
5033 | ||
5034 | ||
36ed4f51 | 5035 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5036 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5037 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5038 | wxSize *arg2 = 0 ; | |
5039 | wxSize temp2 ; | |
d55e5bfc | 5040 | PyObject * obj0 = 0 ; |
36ed4f51 | 5041 | PyObject * obj1 = 0 ; |
d55e5bfc | 5042 | char *kwnames[] = { |
36ed4f51 | 5043 | (char *) "self",(char *) "size", NULL |
d55e5bfc RD |
5044 | }; |
5045 | ||
36ed4f51 RD |
5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; |
5047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5049 | { | |
5050 | arg2 = &temp2; | |
5051 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5052 | } | |
d55e5bfc RD |
5053 | { |
5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5055 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
d55e5bfc RD |
5056 | |
5057 | wxPyEndAllowThreads(__tstate); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
36ed4f51 | 5060 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5061 | return resultobj; |
5062 | fail: | |
5063 | return NULL; | |
5064 | } | |
5065 | ||
5066 | ||
36ed4f51 | 5067 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5068 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5069 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5070 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
5071 | bool result; | |
d55e5bfc RD |
5072 | PyObject * obj0 = 0 ; |
5073 | PyObject * obj1 = 0 ; | |
d55e5bfc | 5074 | char *kwnames[] = { |
36ed4f51 | 5075 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
5076 | }; |
5077 | ||
36ed4f51 RD |
5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; |
5079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5081 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5082 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
5083 | { |
5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5085 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
d55e5bfc RD |
5086 | |
5087 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5088 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5089 | } |
36ed4f51 RD |
5090 | { |
5091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5092 | } | |
d55e5bfc RD |
5093 | return resultobj; |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
36ed4f51 | 5099 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5100 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5101 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5102 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
5103 | bool result; | |
d07096ad | 5104 | PyObject * obj0 = 0 ; |
36ed4f51 | 5105 | PyObject * obj1 = 0 ; |
d07096ad | 5106 | char *kwnames[] = { |
36ed4f51 | 5107 | (char *) "self",(char *) "other", NULL |
d07096ad RD |
5108 | }; |
5109 | ||
36ed4f51 RD |
5110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; |
5111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5113 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d07096ad | 5115 | { |
d07096ad | 5116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5117 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); |
d07096ad RD |
5118 | |
5119 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5120 | if (PyErr_Occurred()) SWIG_fail; |
d07096ad | 5121 | } |
36ed4f51 RD |
5122 | { |
5123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5124 | } | |
d07096ad RD |
5125 | return resultobj; |
5126 | fail: | |
5127 | return NULL; | |
5128 | } | |
5129 | ||
5130 | ||
36ed4f51 RD |
5131 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
5132 | PyObject *obj; | |
5133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5134 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
5135 | Py_INCREF(obj); | |
5136 | return Py_BuildValue((char *)""); | |
5137 | } | |
5138 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5139 | PyObject *resultobj = NULL; |
d07096ad | 5140 | wxBitmap *arg1 = 0 ; |
36ed4f51 RD |
5141 | wxColour const &arg2_defvalue = wxNullColour ; |
5142 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5143 | wxMask *result; | |
d55e5bfc RD |
5144 | wxColour temp2 ; |
5145 | PyObject * obj0 = 0 ; | |
5146 | PyObject * obj1 = 0 ; | |
d55e5bfc | 5147 | char *kwnames[] = { |
36ed4f51 | 5148 | (char *) "bitmap",(char *) "colour", NULL |
d55e5bfc RD |
5149 | }; |
5150 | ||
36ed4f51 | 5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
d07096ad | 5152 | { |
36ed4f51 RD |
5153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); |
5154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5155 | if (arg1 == NULL) { | |
5156 | SWIG_null_ref("wxBitmap"); | |
5157 | } | |
5158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 5159 | } |
36ed4f51 RD |
5160 | if (obj1) { |
5161 | { | |
5162 | arg2 = &temp2; | |
5163 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5164 | } | |
d55e5bfc RD |
5165 | } |
5166 | { | |
0439c23b | 5167 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5169 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d55e5bfc RD |
5170 | |
5171 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5172 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5173 | } |
36ed4f51 | 5174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d55e5bfc RD |
5175 | return resultobj; |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
36ed4f51 RD |
5181 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
5182 | PyObject *obj; | |
5183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5184 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
5185 | Py_INCREF(obj); | |
5186 | return Py_BuildValue((char *)""); | |
5187 | } | |
5188 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5189 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5190 | wxString *arg1 = 0 ; |
5191 | wxBitmapType arg2 ; | |
5192 | int arg3 = (int) -1 ; | |
5193 | int arg4 = (int) -1 ; | |
5194 | wxIcon *result; | |
5195 | bool temp1 = false ; | |
d55e5bfc RD |
5196 | PyObject * obj0 = 0 ; |
5197 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
5198 | PyObject * obj2 = 0 ; |
5199 | PyObject * obj3 = 0 ; | |
d55e5bfc | 5200 | char *kwnames[] = { |
36ed4f51 | 5201 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d55e5bfc RD |
5202 | }; |
5203 | ||
36ed4f51 | 5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc | 5205 | { |
36ed4f51 RD |
5206 | arg1 = wxString_in_helper(obj0); |
5207 | if (arg1 == NULL) SWIG_fail; | |
5208 | temp1 = true; | |
d55e5bfc | 5209 | } |
36ed4f51 | 5210 | { |
32fe5131 | 5211 | arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1)); |
36ed4f51 RD |
5212 | if (SWIG_arg_fail(2)) SWIG_fail; |
5213 | } | |
5214 | if (obj2) { | |
5215 | { | |
32fe5131 | 5216 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
5217 | if (SWIG_arg_fail(3)) SWIG_fail; |
5218 | } | |
5219 | } | |
5220 | if (obj3) { | |
5221 | { | |
32fe5131 | 5222 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
5223 | if (SWIG_arg_fail(4)) SWIG_fail; |
5224 | } | |
d55e5bfc RD |
5225 | } |
5226 | { | |
0439c23b | 5227 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 5229 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); |
d55e5bfc RD |
5230 | |
5231 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5232 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5233 | } |
36ed4f51 | 5234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d55e5bfc | 5235 | { |
36ed4f51 RD |
5236 | if (temp1) |
5237 | delete arg1; | |
d55e5bfc RD |
5238 | } |
5239 | return resultobj; | |
5240 | fail: | |
5241 | { | |
36ed4f51 RD |
5242 | if (temp1) |
5243 | delete arg1; | |
d55e5bfc RD |
5244 | } |
5245 | return NULL; | |
5246 | } | |
5247 | ||
5248 | ||
36ed4f51 | 5249 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5250 | PyObject *resultobj = NULL; |
36ed4f51 | 5251 | wxIcon *arg1 = (wxIcon *) 0 ; |
d55e5bfc RD |
5252 | PyObject * obj0 = 0 ; |
5253 | char *kwnames[] = { | |
5254 | (char *) "self", NULL | |
5255 | }; | |
5256 | ||
36ed4f51 RD |
5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; |
5258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5260 | { |
5261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5262 | delete arg1; | |
5263 | ||
5264 | wxPyEndAllowThreads(__tstate); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | } | |
5267 | Py_INCREF(Py_None); resultobj = Py_None; | |
5268 | return resultobj; | |
5269 | fail: | |
5270 | return NULL; | |
5271 | } | |
5272 | ||
5273 | ||
36ed4f51 | 5274 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5275 | PyObject *resultobj = NULL; |
36ed4f51 | 5276 | wxIcon *result; |
d55e5bfc | 5277 | char *kwnames[] = { |
36ed4f51 | 5278 | NULL |
d55e5bfc RD |
5279 | }; |
5280 | ||
36ed4f51 | 5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; |
d55e5bfc | 5282 | { |
36ed4f51 | 5283 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5285 | result = (wxIcon *)new wxIcon(); |
d55e5bfc RD |
5286 | |
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
36ed4f51 | 5290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d55e5bfc RD |
5291 | return resultobj; |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
36ed4f51 | 5297 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5298 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5299 | wxIconLocation *arg1 = 0 ; |
5300 | wxIcon *result; | |
070c48b4 | 5301 | PyObject * obj0 = 0 ; |
070c48b4 | 5302 | char *kwnames[] = { |
36ed4f51 | 5303 | (char *) "loc", NULL |
070c48b4 RD |
5304 | }; |
5305 | ||
36ed4f51 RD |
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; |
5307 | { | |
5308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5310 | if (arg1 == NULL) { | |
5311 | SWIG_null_ref("wxIconLocation"); | |
5312 | } | |
5313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5314 | } | |
070c48b4 | 5315 | { |
36ed4f51 | 5316 | if (!wxPyCheckForApp()) SWIG_fail; |
070c48b4 | 5317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5318 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); |
070c48b4 RD |
5319 | |
5320 | wxPyEndAllowThreads(__tstate); | |
5321 | if (PyErr_Occurred()) SWIG_fail; | |
5322 | } | |
36ed4f51 | 5323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
070c48b4 RD |
5324 | return resultobj; |
5325 | fail: | |
5326 | return NULL; | |
5327 | } | |
5328 | ||
5329 | ||
36ed4f51 | 5330 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5331 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5332 | wxBitmap *arg1 = 0 ; |
5333 | wxIcon *result; | |
d55e5bfc | 5334 | PyObject * obj0 = 0 ; |
d55e5bfc | 5335 | char *kwnames[] = { |
36ed4f51 | 5336 | (char *) "bmp", NULL |
d55e5bfc RD |
5337 | }; |
5338 | ||
36ed4f51 RD |
5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; |
5340 | { | |
5341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5343 | if (arg1 == NULL) { | |
5344 | SWIG_null_ref("wxBitmap"); | |
5345 | } | |
5346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5347 | } | |
d55e5bfc | 5348 | { |
36ed4f51 | 5349 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5351 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); |
d55e5bfc RD |
5352 | |
5353 | wxPyEndAllowThreads(__tstate); | |
5354 | if (PyErr_Occurred()) SWIG_fail; | |
5355 | } | |
36ed4f51 | 5356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d55e5bfc RD |
5357 | return resultobj; |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
36ed4f51 | 5363 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5364 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5365 | PyObject *arg1 = (PyObject *) 0 ; |
5366 | wxIcon *result; | |
d55e5bfc | 5367 | PyObject * obj0 = 0 ; |
d55e5bfc | 5368 | char *kwnames[] = { |
36ed4f51 | 5369 | (char *) "listOfStrings", NULL |
d55e5bfc RD |
5370 | }; |
5371 | ||
36ed4f51 RD |
5372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; |
5373 | arg1 = obj0; | |
d55e5bfc | 5374 | { |
36ed4f51 | 5375 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 5377 | result = (wxIcon *)new_wxIcon(arg1); |
d55e5bfc RD |
5378 | |
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
36ed4f51 | 5382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d55e5bfc RD |
5383 | return resultobj; |
5384 | fail: | |
5385 | return NULL; | |
5386 | } | |
5387 | ||
5388 | ||
36ed4f51 | 5389 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5390 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5391 | wxIcon *arg1 = (wxIcon *) 0 ; |
5392 | bool result; | |
d55e5bfc | 5393 | PyObject * obj0 = 0 ; |
d55e5bfc | 5394 | char *kwnames[] = { |
36ed4f51 | 5395 | (char *) "self", NULL |
d55e5bfc RD |
5396 | }; |
5397 | ||
36ed4f51 RD |
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; |
5399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5401 | { |
5402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5403 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
5404 | |
5405 | wxPyEndAllowThreads(__tstate); | |
5406 | if (PyErr_Occurred()) SWIG_fail; | |
5407 | } | |
36ed4f51 RD |
5408 | { |
5409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5410 | } | |
d55e5bfc RD |
5411 | return resultobj; |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
36ed4f51 | 5417 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5418 | PyObject *resultobj = NULL; |
36ed4f51 | 5419 | wxIcon *arg1 = (wxIcon *) 0 ; |
d55e5bfc RD |
5420 | int result; |
5421 | PyObject * obj0 = 0 ; | |
d55e5bfc | 5422 | char *kwnames[] = { |
36ed4f51 | 5423 | (char *) "self", NULL |
d55e5bfc RD |
5424 | }; |
5425 | ||
36ed4f51 RD |
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; |
5427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5429 | { |
5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5431 | result = (int)(arg1)->GetWidth(); |
d55e5bfc RD |
5432 | |
5433 | wxPyEndAllowThreads(__tstate); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
36ed4f51 | 5436 | { |
32fe5131 | 5437 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 5438 | } |
d55e5bfc RD |
5439 | return resultobj; |
5440 | fail: | |
5441 | return NULL; | |
5442 | } | |
5443 | ||
5444 | ||
36ed4f51 | 5445 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5446 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5447 | wxIcon *arg1 = (wxIcon *) 0 ; |
5448 | int result; | |
d55e5bfc RD |
5449 | PyObject * obj0 = 0 ; |
5450 | char *kwnames[] = { | |
5451 | (char *) "self", NULL | |
5452 | }; | |
5453 | ||
36ed4f51 RD |
5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; |
5455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5457 | { |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5459 | result = (int)(arg1)->GetHeight(); |
d55e5bfc RD |
5460 | |
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | { | |
32fe5131 | 5465 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
5466 | } |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
36ed4f51 | 5473 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5474 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5475 | wxIcon *arg1 = (wxIcon *) 0 ; |
5476 | int result; | |
d55e5bfc | 5477 | PyObject * obj0 = 0 ; |
d55e5bfc | 5478 | char *kwnames[] = { |
36ed4f51 | 5479 | (char *) "self", NULL |
d55e5bfc RD |
5480 | }; |
5481 | ||
36ed4f51 RD |
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; |
5483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5485 | { |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5487 | result = (int)(arg1)->GetDepth(); |
d55e5bfc RD |
5488 | |
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | { | |
32fe5131 | 5493 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
5494 | } |
5495 | return resultobj; | |
5496 | fail: | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
36ed4f51 | 5501 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5502 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5503 | wxIcon *arg1 = (wxIcon *) 0 ; |
5504 | int arg2 ; | |
d55e5bfc RD |
5505 | PyObject * obj0 = 0 ; |
5506 | PyObject * obj1 = 0 ; | |
5507 | char *kwnames[] = { | |
36ed4f51 | 5508 | (char *) "self",(char *) "w", NULL |
d55e5bfc RD |
5509 | }; |
5510 | ||
36ed4f51 RD |
5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
5512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 5514 | { |
32fe5131 | 5515 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 5516 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
5517 | } |
5518 | { | |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5520 | (arg1)->SetWidth(arg2); |
d55e5bfc RD |
5521 | |
5522 | wxPyEndAllowThreads(__tstate); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | } | |
36ed4f51 | 5525 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5526 | return resultobj; |
5527 | fail: | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
36ed4f51 | 5532 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5533 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5534 | wxIcon *arg1 = (wxIcon *) 0 ; |
5535 | int arg2 ; | |
d55e5bfc RD |
5536 | PyObject * obj0 = 0 ; |
5537 | PyObject * obj1 = 0 ; | |
5538 | char *kwnames[] = { | |
36ed4f51 | 5539 | (char *) "self",(char *) "h", NULL |
d55e5bfc RD |
5540 | }; |
5541 | ||
36ed4f51 RD |
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
5543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5545 | { | |
32fe5131 | 5546 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 5547 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
5548 | } |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5551 | (arg1)->SetHeight(arg2); |
d55e5bfc RD |
5552 | |
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
36ed4f51 | 5556 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5557 | return resultobj; |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
36ed4f51 | 5563 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5564 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5565 | wxIcon *arg1 = (wxIcon *) 0 ; |
5566 | int arg2 ; | |
d55e5bfc | 5567 | PyObject * obj0 = 0 ; |
36ed4f51 | 5568 | PyObject * obj1 = 0 ; |
d55e5bfc | 5569 | char *kwnames[] = { |
36ed4f51 | 5570 | (char *) "self",(char *) "d", NULL |
d55e5bfc RD |
5571 | }; |
5572 | ||
36ed4f51 RD |
5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
5574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5576 | { | |
32fe5131 | 5577 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
5578 | if (SWIG_arg_fail(2)) SWIG_fail; |
5579 | } | |
d55e5bfc RD |
5580 | { |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5582 | (arg1)->SetDepth(arg2); |
d55e5bfc RD |
5583 | |
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
36ed4f51 | 5587 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5588 | return resultobj; |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
36ed4f51 | 5594 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5595 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5596 | wxIcon *arg1 = (wxIcon *) 0 ; |
5597 | wxBitmap *arg2 = 0 ; | |
d55e5bfc RD |
5598 | PyObject * obj0 = 0 ; |
5599 | PyObject * obj1 = 0 ; | |
d55e5bfc | 5600 | char *kwnames[] = { |
36ed4f51 | 5601 | (char *) "self",(char *) "bmp", NULL |
d55e5bfc RD |
5602 | }; |
5603 | ||
36ed4f51 RD |
5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; |
5605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5607 | { | |
5608 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5609 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5610 | if (arg2 == NULL) { | |
5611 | SWIG_null_ref("wxBitmap"); | |
5612 | } | |
5613 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5614 | } | |
d55e5bfc RD |
5615 | { |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5617 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); |
d55e5bfc RD |
5618 | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
36ed4f51 | 5622 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5623 | return resultobj; |
5624 | fail: | |
5625 | return NULL; | |
5626 | } | |
5627 | ||
5628 | ||
36ed4f51 RD |
5629 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
5630 | PyObject *obj; | |
5631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5632 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
5633 | Py_INCREF(obj); | |
5634 | return Py_BuildValue((char *)""); | |
5635 | } | |
5636 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5637 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5638 | wxString *arg1 = (wxString *) &wxPyEmptyString ; |
5639 | int arg2 = (int) 0 ; | |
5640 | wxIconLocation *result; | |
5641 | bool temp1 = false ; | |
d55e5bfc RD |
5642 | PyObject * obj0 = 0 ; |
5643 | PyObject * obj1 = 0 ; | |
5644 | char *kwnames[] = { | |
36ed4f51 | 5645 | (char *) "filename",(char *) "num", NULL |
d55e5bfc RD |
5646 | }; |
5647 | ||
36ed4f51 RD |
5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
5649 | if (obj0) { | |
5650 | { | |
5651 | arg1 = wxString_in_helper(obj0); | |
5652 | if (arg1 == NULL) SWIG_fail; | |
5653 | temp1 = true; | |
5654 | } | |
5655 | } | |
5656 | if (obj1) { | |
5657 | { | |
32fe5131 | 5658 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
5659 | if (SWIG_arg_fail(2)) SWIG_fail; |
5660 | } | |
d55e5bfc RD |
5661 | } |
5662 | { | |
5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5664 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); |
d55e5bfc RD |
5665 | |
5666 | wxPyEndAllowThreads(__tstate); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | } | |
36ed4f51 | 5669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
d55e5bfc | 5670 | { |
36ed4f51 RD |
5671 | if (temp1) |
5672 | delete arg1; | |
d55e5bfc RD |
5673 | } |
5674 | return resultobj; | |
5675 | fail: | |
36ed4f51 RD |
5676 | { |
5677 | if (temp1) | |
5678 | delete arg1; | |
5679 | } | |
d55e5bfc RD |
5680 | return NULL; |
5681 | } | |
5682 | ||
5683 | ||
36ed4f51 | 5684 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5685 | PyObject *resultobj = NULL; |
36ed4f51 | 5686 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
d55e5bfc | 5687 | PyObject * obj0 = 0 ; |
d55e5bfc | 5688 | char *kwnames[] = { |
36ed4f51 | 5689 | (char *) "self", NULL |
d55e5bfc RD |
5690 | }; |
5691 | ||
36ed4f51 RD |
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; |
5693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5695 | { |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5697 | delete arg1; |
d55e5bfc RD |
5698 | |
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
36ed4f51 | 5702 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5703 | return resultobj; |
5704 | fail: | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
36ed4f51 | 5709 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5710 | PyObject *resultobj = NULL; |
36ed4f51 | 5711 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
d55e5bfc RD |
5712 | bool result; |
5713 | PyObject * obj0 = 0 ; | |
d55e5bfc | 5714 | char *kwnames[] = { |
36ed4f51 | 5715 | (char *) "self", NULL |
d55e5bfc RD |
5716 | }; |
5717 | ||
36ed4f51 RD |
5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; |
5719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5721 | { |
5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5723 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); |
d55e5bfc RD |
5724 | |
5725 | wxPyEndAllowThreads(__tstate); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | } | |
5728 | { | |
5729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5730 | } | |
5731 | return resultobj; | |
5732 | fail: | |
5733 | return NULL; | |
5734 | } | |
5735 | ||
5736 | ||
36ed4f51 | 5737 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5738 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5739 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5740 | wxString *arg2 = 0 ; | |
5741 | bool temp2 = false ; | |
d55e5bfc RD |
5742 | PyObject * obj0 = 0 ; |
5743 | PyObject * obj1 = 0 ; | |
5744 | char *kwnames[] = { | |
36ed4f51 | 5745 | (char *) "self",(char *) "filename", NULL |
d55e5bfc RD |
5746 | }; |
5747 | ||
36ed4f51 RD |
5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; |
5749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 5751 | { |
36ed4f51 RD |
5752 | arg2 = wxString_in_helper(obj1); |
5753 | if (arg2 == NULL) SWIG_fail; | |
5754 | temp2 = true; | |
d55e5bfc RD |
5755 | } |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5758 | (arg1)->SetFileName((wxString const &)*arg2); |
d55e5bfc RD |
5759 | |
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
36ed4f51 | 5763 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 5764 | { |
36ed4f51 RD |
5765 | if (temp2) |
5766 | delete arg2; | |
d55e5bfc RD |
5767 | } |
5768 | return resultobj; | |
5769 | fail: | |
36ed4f51 RD |
5770 | { |
5771 | if (temp2) | |
5772 | delete arg2; | |
5773 | } | |
d55e5bfc RD |
5774 | return NULL; |
5775 | } | |
5776 | ||
5777 | ||
36ed4f51 | 5778 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5779 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5780 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5781 | wxString *result; | |
d55e5bfc | 5782 | PyObject * obj0 = 0 ; |
d55e5bfc | 5783 | char *kwnames[] = { |
36ed4f51 | 5784 | (char *) "self", NULL |
d55e5bfc RD |
5785 | }; |
5786 | ||
36ed4f51 RD |
5787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; |
5788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5790 | { |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
5792 | { |
5793 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
5794 | result = (wxString *) &_result_ref; | |
5795 | } | |
d55e5bfc RD |
5796 | |
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
5800 | { | |
36ed4f51 RD |
5801 | #if wxUSE_UNICODE |
5802 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5803 | #else | |
5804 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5805 | #endif | |
d55e5bfc RD |
5806 | } |
5807 | return resultobj; | |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
36ed4f51 | 5813 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5814 | PyObject *resultobj = NULL; |
36ed4f51 | 5815 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
d55e5bfc | 5816 | int arg2 ; |
d55e5bfc RD |
5817 | PyObject * obj0 = 0 ; |
5818 | PyObject * obj1 = 0 ; | |
d55e5bfc | 5819 | char *kwnames[] = { |
36ed4f51 | 5820 | (char *) "self",(char *) "num", NULL |
d55e5bfc RD |
5821 | }; |
5822 | ||
36ed4f51 RD |
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
5824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5826 | { | |
32fe5131 | 5827 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
5828 | if (SWIG_arg_fail(2)) SWIG_fail; |
5829 | } | |
d55e5bfc RD |
5830 | { |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5832 | wxIconLocation_SetIndex(arg1,arg2); |
d55e5bfc RD |
5833 | |
5834 | wxPyEndAllowThreads(__tstate); | |
5835 | if (PyErr_Occurred()) SWIG_fail; | |
5836 | } | |
36ed4f51 | 5837 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5838 | return resultobj; |
5839 | fail: | |
5840 | return NULL; | |
5841 | } | |
5842 | ||
5843 | ||
36ed4f51 | 5844 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5845 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5846 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5847 | int result; | |
d55e5bfc | 5848 | PyObject * obj0 = 0 ; |
d55e5bfc | 5849 | char *kwnames[] = { |
36ed4f51 | 5850 | (char *) "self", NULL |
d55e5bfc RD |
5851 | }; |
5852 | ||
36ed4f51 RD |
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; |
5854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5856 | { |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5858 | result = (int)wxIconLocation_GetIndex(arg1); |
d55e5bfc RD |
5859 | |
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | { | |
32fe5131 | 5864 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
5865 | } |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
36ed4f51 RD |
5872 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
5873 | PyObject *obj; | |
5874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5875 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
5876 | Py_INCREF(obj); | |
5877 | return Py_BuildValue((char *)""); | |
5878 | } | |
5879 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5880 | PyObject *resultobj = NULL; |
36ed4f51 | 5881 | wxIconBundle *result; |
d55e5bfc | 5882 | char *kwnames[] = { |
36ed4f51 | 5883 | NULL |
d55e5bfc RD |
5884 | }; |
5885 | ||
36ed4f51 | 5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; |
d55e5bfc RD |
5887 | { |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5889 | result = (wxIconBundle *)new wxIconBundle(); |
d55e5bfc RD |
5890 | |
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
36ed4f51 | 5894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d55e5bfc RD |
5895 | return resultobj; |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
36ed4f51 | 5901 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5902 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5903 | wxString *arg1 = 0 ; |
5904 | long arg2 ; | |
5905 | wxIconBundle *result; | |
5906 | bool temp1 = false ; | |
d55e5bfc | 5907 | PyObject * obj0 = 0 ; |
36ed4f51 | 5908 | PyObject * obj1 = 0 ; |
d55e5bfc | 5909 | char *kwnames[] = { |
36ed4f51 | 5910 | (char *) "file",(char *) "type", NULL |
d55e5bfc RD |
5911 | }; |
5912 | ||
36ed4f51 RD |
5913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
5914 | { | |
5915 | arg1 = wxString_in_helper(obj0); | |
5916 | if (arg1 == NULL) SWIG_fail; | |
5917 | temp1 = true; | |
5918 | } | |
5919 | { | |
32fe5131 | 5920 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
36ed4f51 RD |
5921 | if (SWIG_arg_fail(2)) SWIG_fail; |
5922 | } | |
d55e5bfc RD |
5923 | { |
5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5925 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); |
d55e5bfc RD |
5926 | |
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
36ed4f51 | 5930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d55e5bfc | 5931 | { |
36ed4f51 RD |
5932 | if (temp1) |
5933 | delete arg1; | |
d55e5bfc RD |
5934 | } |
5935 | return resultobj; | |
5936 | fail: | |
36ed4f51 RD |
5937 | { |
5938 | if (temp1) | |
5939 | delete arg1; | |
5940 | } | |
d55e5bfc RD |
5941 | return NULL; |
5942 | } | |
5943 | ||
5944 | ||
36ed4f51 | 5945 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5946 | PyObject *resultobj = NULL; |
36ed4f51 RD |
5947 | wxIcon *arg1 = 0 ; |
5948 | wxIconBundle *result; | |
d07096ad | 5949 | PyObject * obj0 = 0 ; |
d07096ad | 5950 | char *kwnames[] = { |
36ed4f51 | 5951 | (char *) "icon", NULL |
d07096ad RD |
5952 | }; |
5953 | ||
36ed4f51 RD |
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; |
5955 | { | |
5956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5958 | if (arg1 == NULL) { | |
5959 | SWIG_null_ref("wxIcon"); | |
5960 | } | |
5961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d07096ad RD |
5962 | } |
5963 | { | |
5964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5965 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); |
d07096ad RD |
5966 | |
5967 | wxPyEndAllowThreads(__tstate); | |
5968 | if (PyErr_Occurred()) SWIG_fail; | |
5969 | } | |
36ed4f51 | 5970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d07096ad RD |
5971 | return resultobj; |
5972 | fail: | |
5973 | return NULL; | |
5974 | } | |
5975 | ||
5976 | ||
36ed4f51 | 5977 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5978 | PyObject *resultobj = NULL; |
36ed4f51 | 5979 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
d55e5bfc | 5980 | PyObject * obj0 = 0 ; |
d55e5bfc | 5981 | char *kwnames[] = { |
36ed4f51 | 5982 | (char *) "self", NULL |
d55e5bfc RD |
5983 | }; |
5984 | ||
36ed4f51 RD |
5985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; |
5986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5988 | { |
5989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 5990 | delete arg1; |
d55e5bfc RD |
5991 | |
5992 | wxPyEndAllowThreads(__tstate); | |
5993 | if (PyErr_Occurred()) SWIG_fail; | |
5994 | } | |
36ed4f51 | 5995 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
5996 | return resultobj; |
5997 | fail: | |
5998 | return NULL; | |
5999 | } | |
6000 | ||
6001 | ||
36ed4f51 | 6002 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6003 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6004 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
6005 | wxIcon *arg2 = 0 ; | |
d55e5bfc | 6006 | PyObject * obj0 = 0 ; |
36ed4f51 | 6007 | PyObject * obj1 = 0 ; |
d55e5bfc | 6008 | char *kwnames[] = { |
36ed4f51 | 6009 | (char *) "self",(char *) "icon", NULL |
d55e5bfc RD |
6010 | }; |
6011 | ||
36ed4f51 RD |
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
6013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6015 | { | |
6016 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
6017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6018 | if (arg2 == NULL) { | |
6019 | SWIG_null_ref("wxIcon"); | |
6020 | } | |
6021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
6022 | } |
6023 | { | |
6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6025 | (arg1)->AddIcon((wxIcon const &)*arg2); |
d55e5bfc RD |
6026 | |
6027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6028 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6029 | } |
36ed4f51 | 6030 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6031 | return resultobj; |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
36ed4f51 | 6037 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6038 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6039 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
6040 | wxString *arg2 = 0 ; | |
6041 | long arg3 ; | |
6042 | bool temp2 = false ; | |
d55e5bfc | 6043 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6044 | PyObject * obj1 = 0 ; |
6045 | PyObject * obj2 = 0 ; | |
d55e5bfc | 6046 | char *kwnames[] = { |
36ed4f51 | 6047 | (char *) "self",(char *) "file",(char *) "type", NULL |
d55e5bfc RD |
6048 | }; |
6049 | ||
36ed4f51 RD |
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6053 | { | |
6054 | arg2 = wxString_in_helper(obj1); | |
6055 | if (arg2 == NULL) SWIG_fail; | |
6056 | temp2 = true; | |
6057 | } | |
6058 | { | |
32fe5131 | 6059 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
36ed4f51 RD |
6060 | if (SWIG_arg_fail(3)) SWIG_fail; |
6061 | } | |
d55e5bfc RD |
6062 | { |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6064 | (arg1)->AddIcon((wxString const &)*arg2,arg3); |
d55e5bfc RD |
6065 | |
6066 | wxPyEndAllowThreads(__tstate); | |
6067 | if (PyErr_Occurred()) SWIG_fail; | |
6068 | } | |
6069 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
6070 | { |
6071 | if (temp2) | |
6072 | delete arg2; | |
6073 | } | |
d55e5bfc RD |
6074 | return resultobj; |
6075 | fail: | |
36ed4f51 RD |
6076 | { |
6077 | if (temp2) | |
6078 | delete arg2; | |
6079 | } | |
d55e5bfc RD |
6080 | return NULL; |
6081 | } | |
6082 | ||
6083 | ||
36ed4f51 | 6084 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6085 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6086 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
6087 | wxSize *arg2 = 0 ; | |
6088 | wxIcon *result; | |
6089 | wxSize temp2 ; | |
d55e5bfc | 6090 | PyObject * obj0 = 0 ; |
36ed4f51 | 6091 | PyObject * obj1 = 0 ; |
d55e5bfc | 6092 | char *kwnames[] = { |
36ed4f51 | 6093 | (char *) "self",(char *) "size", NULL |
d55e5bfc RD |
6094 | }; |
6095 | ||
36ed4f51 RD |
6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; |
6097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6099 | { | |
6100 | arg2 = &temp2; | |
6101 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6102 | } | |
d55e5bfc RD |
6103 | { |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
6105 | { |
6106 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
6107 | result = (wxIcon *) &_result_ref; | |
6108 | } | |
d55e5bfc RD |
6109 | |
6110 | wxPyEndAllowThreads(__tstate); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | } | |
36ed4f51 RD |
6113 | { |
6114 | wxIcon* resultptr = new wxIcon(*result); | |
6115 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
6116 | } | |
d55e5bfc RD |
6117 | return resultobj; |
6118 | fail: | |
6119 | return NULL; | |
6120 | } | |
6121 | ||
6122 | ||
36ed4f51 RD |
6123 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
6124 | PyObject *obj; | |
6125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6126 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
6127 | Py_INCREF(obj); | |
6128 | return Py_BuildValue((char *)""); | |
6129 | } | |
6130 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 6131 | PyObject *resultobj = NULL; |
fef4c27a | 6132 | wxString *arg1 = 0 ; |
36ed4f51 RD |
6133 | long arg2 ; |
6134 | int arg3 = (int) 0 ; | |
6135 | int arg4 = (int) 0 ; | |
6136 | wxCursor *result; | |
6137 | bool temp1 = false ; | |
d55e5bfc | 6138 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6139 | PyObject * obj1 = 0 ; |
6140 | PyObject * obj2 = 0 ; | |
6141 | PyObject * obj3 = 0 ; | |
d55e5bfc | 6142 | char *kwnames[] = { |
36ed4f51 | 6143 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d55e5bfc RD |
6144 | }; |
6145 | ||
36ed4f51 RD |
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
6147 | { | |
6148 | arg1 = wxString_in_helper(obj0); | |
6149 | if (arg1 == NULL) SWIG_fail; | |
6150 | temp1 = true; | |
6151 | } | |
6152 | { | |
32fe5131 | 6153 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
36ed4f51 RD |
6154 | if (SWIG_arg_fail(2)) SWIG_fail; |
6155 | } | |
6156 | if (obj2) { | |
6157 | { | |
32fe5131 | 6158 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6159 | if (SWIG_arg_fail(3)) SWIG_fail; |
6160 | } | |
6161 | } | |
6162 | if (obj3) { | |
6163 | { | |
32fe5131 | 6164 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
6165 | if (SWIG_arg_fail(4)) SWIG_fail; |
6166 | } | |
6167 | } | |
d55e5bfc | 6168 | { |
36ed4f51 | 6169 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
fef4c27a | 6171 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); |
d55e5bfc RD |
6172 | |
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
36ed4f51 RD |
6176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
6177 | { | |
6178 | if (temp1) | |
6179 | delete arg1; | |
6180 | } | |
d55e5bfc RD |
6181 | return resultobj; |
6182 | fail: | |
36ed4f51 RD |
6183 | { |
6184 | if (temp1) | |
6185 | delete arg1; | |
6186 | } | |
d55e5bfc RD |
6187 | return NULL; |
6188 | } | |
6189 | ||
6190 | ||
36ed4f51 | 6191 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6192 | PyObject *resultobj = NULL; |
36ed4f51 | 6193 | wxCursor *arg1 = (wxCursor *) 0 ; |
d55e5bfc RD |
6194 | PyObject * obj0 = 0 ; |
6195 | char *kwnames[] = { | |
6196 | (char *) "self", NULL | |
6197 | }; | |
6198 | ||
36ed4f51 RD |
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; |
6200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6202 | { |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6204 | delete arg1; |
d55e5bfc RD |
6205 | |
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
36ed4f51 | 6209 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6210 | return resultobj; |
6211 | fail: | |
6212 | return NULL; | |
6213 | } | |
6214 | ||
6215 | ||
36ed4f51 | 6216 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6217 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6218 | int arg1 ; |
6219 | wxCursor *result; | |
d55e5bfc RD |
6220 | PyObject * obj0 = 0 ; |
6221 | char *kwnames[] = { | |
36ed4f51 | 6222 | (char *) "id", NULL |
d55e5bfc RD |
6223 | }; |
6224 | ||
36ed4f51 RD |
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
6226 | { | |
32fe5131 | 6227 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
6228 | if (SWIG_arg_fail(1)) SWIG_fail; |
6229 | } | |
d55e5bfc | 6230 | { |
36ed4f51 | 6231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6233 | result = (wxCursor *)new wxCursor(arg1); |
d55e5bfc RD |
6234 | |
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
36ed4f51 | 6238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d55e5bfc RD |
6239 | return resultobj; |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
36ed4f51 | 6245 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6246 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6247 | wxImage *arg1 = 0 ; |
6248 | wxCursor *result; | |
d55e5bfc RD |
6249 | PyObject * obj0 = 0 ; |
6250 | char *kwnames[] = { | |
36ed4f51 | 6251 | (char *) "image", NULL |
d55e5bfc RD |
6252 | }; |
6253 | ||
36ed4f51 RD |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; |
6255 | { | |
6256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
6257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6258 | if (arg1 == NULL) { | |
6259 | SWIG_null_ref("wxImage"); | |
6260 | } | |
6261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6262 | } | |
d55e5bfc | 6263 | { |
36ed4f51 | 6264 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6266 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); |
d55e5bfc RD |
6267 | |
6268 | wxPyEndAllowThreads(__tstate); | |
6269 | if (PyErr_Occurred()) SWIG_fail; | |
6270 | } | |
36ed4f51 | 6271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d55e5bfc RD |
6272 | return resultobj; |
6273 | fail: | |
6274 | return NULL; | |
6275 | } | |
6276 | ||
6277 | ||
36ed4f51 | 6278 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6279 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6280 | wxCursor *arg1 = (wxCursor *) 0 ; |
6281 | bool result; | |
d55e5bfc RD |
6282 | PyObject * obj0 = 0 ; |
6283 | char *kwnames[] = { | |
6284 | (char *) "self", NULL | |
6285 | }; | |
6286 | ||
36ed4f51 RD |
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; |
6288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6290 | { |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6292 | result = (bool)(arg1)->Ok(); |
d55e5bfc RD |
6293 | |
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
36ed4f51 RD |
6297 | { |
6298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6299 | } | |
d55e5bfc RD |
6300 | return resultobj; |
6301 | fail: | |
6302 | return NULL; | |
6303 | } | |
6304 | ||
6305 | ||
36ed4f51 RD |
6306 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
6307 | PyObject *obj; | |
6308 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6309 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
6310 | Py_INCREF(obj); | |
6311 | return Py_BuildValue((char *)""); | |
6312 | } | |
6313 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 6314 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6315 | int arg1 = (int) 0 ; |
6316 | int arg2 = (int) 0 ; | |
6317 | int arg3 = (int) 0 ; | |
6318 | int arg4 = (int) 0 ; | |
6319 | wxRegion *result; | |
d55e5bfc | 6320 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6321 | PyObject * obj1 = 0 ; |
6322 | PyObject * obj2 = 0 ; | |
6323 | PyObject * obj3 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
d55e5bfc RD |
6326 | }; |
6327 | ||
36ed4f51 RD |
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
6329 | if (obj0) { | |
6330 | { | |
32fe5131 | 6331 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
6332 | if (SWIG_arg_fail(1)) SWIG_fail; |
6333 | } | |
6334 | } | |
6335 | if (obj1) { | |
6336 | { | |
32fe5131 | 6337 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6338 | if (SWIG_arg_fail(2)) SWIG_fail; |
6339 | } | |
6340 | } | |
6341 | if (obj2) { | |
6342 | { | |
32fe5131 | 6343 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6344 | if (SWIG_arg_fail(3)) SWIG_fail; |
6345 | } | |
6346 | } | |
6347 | if (obj3) { | |
6348 | { | |
32fe5131 | 6349 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
6350 | if (SWIG_arg_fail(4)) SWIG_fail; |
6351 | } | |
6352 | } | |
d55e5bfc | 6353 | { |
36ed4f51 | 6354 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6356 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
6357 | |
6358 | wxPyEndAllowThreads(__tstate); | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
36ed4f51 | 6361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d55e5bfc RD |
6362 | return resultobj; |
6363 | fail: | |
6364 | return NULL; | |
6365 | } | |
6366 | ||
6367 | ||
36ed4f51 | 6368 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6369 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6370 | wxBitmap *arg1 = 0 ; |
6371 | wxRegion *result; | |
d55e5bfc RD |
6372 | PyObject * obj0 = 0 ; |
6373 | char *kwnames[] = { | |
36ed4f51 | 6374 | (char *) "bmp", NULL |
d55e5bfc RD |
6375 | }; |
6376 | ||
36ed4f51 RD |
6377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; |
6378 | { | |
6379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6381 | if (arg1 == NULL) { | |
6382 | SWIG_null_ref("wxBitmap"); | |
6383 | } | |
6384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6385 | } | |
d55e5bfc | 6386 | { |
36ed4f51 | 6387 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6389 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); |
d55e5bfc RD |
6390 | |
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
36ed4f51 | 6394 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d55e5bfc RD |
6395 | return resultobj; |
6396 | fail: | |
6397 | return NULL; | |
6398 | } | |
6399 | ||
6400 | ||
36ed4f51 | 6401 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6402 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6403 | wxBitmap *arg1 = 0 ; |
6404 | wxColour *arg2 = 0 ; | |
6405 | int arg3 = (int) 0 ; | |
6406 | wxRegion *result; | |
6407 | wxColour temp2 ; | |
d55e5bfc | 6408 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6409 | PyObject * obj1 = 0 ; |
6410 | PyObject * obj2 = 0 ; | |
d55e5bfc | 6411 | char *kwnames[] = { |
36ed4f51 | 6412 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d55e5bfc RD |
6413 | }; |
6414 | ||
36ed4f51 RD |
6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6416 | { | |
6417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6419 | if (arg1 == NULL) { | |
6420 | SWIG_null_ref("wxBitmap"); | |
6421 | } | |
6422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6423 | } | |
6424 | { | |
6425 | arg2 = &temp2; | |
6426 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6427 | } | |
6428 | if (obj2) { | |
6429 | { | |
32fe5131 | 6430 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6431 | if (SWIG_arg_fail(3)) SWIG_fail; |
6432 | } | |
6433 | } | |
d55e5bfc | 6434 | { |
36ed4f51 | 6435 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6437 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); |
d55e5bfc RD |
6438 | |
6439 | wxPyEndAllowThreads(__tstate); | |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
6441 | } | |
36ed4f51 | 6442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d55e5bfc RD |
6443 | return resultobj; |
6444 | fail: | |
6445 | return NULL; | |
6446 | } | |
6447 | ||
6448 | ||
36ed4f51 | 6449 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6450 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6451 | int arg1 ; |
6452 | wxPoint *arg2 = (wxPoint *) 0 ; | |
6453 | int arg3 = (int) wxWINDING_RULE ; | |
6454 | wxRegion *result; | |
d55e5bfc | 6455 | PyObject * obj0 = 0 ; |
36ed4f51 | 6456 | PyObject * obj1 = 0 ; |
d55e5bfc | 6457 | char *kwnames[] = { |
36ed4f51 | 6458 | (char *) "points",(char *) "fillStyle", NULL |
d55e5bfc RD |
6459 | }; |
6460 | ||
36ed4f51 RD |
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
6462 | { | |
6463 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
6464 | if (arg2 == NULL) SWIG_fail; | |
6465 | } | |
6466 | if (obj1) { | |
6467 | { | |
32fe5131 | 6468 | arg3 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6469 | if (SWIG_arg_fail(3)) SWIG_fail; |
6470 | } | |
6471 | } | |
d55e5bfc | 6472 | { |
36ed4f51 | 6473 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 6475 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); |
d55e5bfc RD |
6476 | |
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
36ed4f51 RD |
6480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
6481 | { | |
6482 | if (arg2) delete [] arg2; | |
6483 | } | |
d55e5bfc RD |
6484 | return resultobj; |
6485 | fail: | |
36ed4f51 RD |
6486 | { |
6487 | if (arg2) delete [] arg2; | |
6488 | } | |
d55e5bfc RD |
6489 | return NULL; |
6490 | } | |
6491 | ||
6492 | ||
36ed4f51 | 6493 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6494 | PyObject *resultobj = NULL; |
36ed4f51 | 6495 | wxRegion *arg1 = (wxRegion *) 0 ; |
d55e5bfc RD |
6496 | PyObject * obj0 = 0 ; |
6497 | char *kwnames[] = { | |
6498 | (char *) "self", NULL | |
6499 | }; | |
6500 | ||
36ed4f51 RD |
6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; |
6502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6504 | { |
6505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6506 | delete arg1; |
d55e5bfc RD |
6507 | |
6508 | wxPyEndAllowThreads(__tstate); | |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
6510 | } | |
36ed4f51 | 6511 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6512 | return resultobj; |
6513 | fail: | |
6514 | return NULL; | |
6515 | } | |
6516 | ||
6517 | ||
36ed4f51 | 6518 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6519 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6520 | wxRegion *arg1 = (wxRegion *) 0 ; |
6521 | PyObject * obj0 = 0 ; | |
d55e5bfc | 6522 | char *kwnames[] = { |
36ed4f51 | 6523 | (char *) "self", NULL |
d55e5bfc RD |
6524 | }; |
6525 | ||
36ed4f51 RD |
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; |
6527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6529 | { |
6530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6531 | (arg1)->Clear(); |
d55e5bfc RD |
6532 | |
6533 | wxPyEndAllowThreads(__tstate); | |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
36ed4f51 | 6536 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
6537 | return resultobj; |
6538 | fail: | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
36ed4f51 | 6543 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6544 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6545 | wxRegion *arg1 = (wxRegion *) 0 ; |
6546 | int arg2 ; | |
6547 | int arg3 ; | |
6548 | bool result; | |
d55e5bfc | 6549 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6550 | PyObject * obj1 = 0 ; |
6551 | PyObject * obj2 = 0 ; | |
d55e5bfc | 6552 | char *kwnames[] = { |
36ed4f51 | 6553 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
6554 | }; |
6555 | ||
36ed4f51 RD |
6556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6559 | { | |
32fe5131 | 6560 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6561 | if (SWIG_arg_fail(2)) SWIG_fail; |
6562 | } | |
6563 | { | |
32fe5131 | 6564 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6565 | if (SWIG_arg_fail(3)) SWIG_fail; |
6566 | } | |
d55e5bfc RD |
6567 | { |
6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6569 | result = (bool)(arg1)->Offset(arg2,arg3); |
d55e5bfc RD |
6570 | |
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
36ed4f51 RD |
6574 | { |
6575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6576 | } | |
d55e5bfc RD |
6577 | return resultobj; |
6578 | fail: | |
6579 | return NULL; | |
6580 | } | |
6581 | ||
6582 | ||
36ed4f51 | 6583 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6584 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6585 | wxRegion *arg1 = (wxRegion *) 0 ; |
6586 | int arg2 ; | |
6587 | int arg3 ; | |
6588 | wxRegionContain result; | |
d55e5bfc | 6589 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6590 | PyObject * obj1 = 0 ; |
6591 | PyObject * obj2 = 0 ; | |
d55e5bfc | 6592 | char *kwnames[] = { |
36ed4f51 | 6593 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
6594 | }; |
6595 | ||
36ed4f51 RD |
6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6599 | { | |
32fe5131 | 6600 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6601 | if (SWIG_arg_fail(2)) SWIG_fail; |
6602 | } | |
6603 | { | |
32fe5131 | 6604 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6605 | if (SWIG_arg_fail(3)) SWIG_fail; |
6606 | } | |
d55e5bfc RD |
6607 | { |
6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6609 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); |
d55e5bfc RD |
6610 | |
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
36ed4f51 | 6614 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
6615 | return resultobj; |
6616 | fail: | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
36ed4f51 | 6621 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6622 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6623 | wxRegion *arg1 = (wxRegion *) 0 ; |
6624 | wxPoint *arg2 = 0 ; | |
6625 | wxRegionContain result; | |
6626 | wxPoint temp2 ; | |
d55e5bfc RD |
6627 | PyObject * obj0 = 0 ; |
6628 | PyObject * obj1 = 0 ; | |
6629 | char *kwnames[] = { | |
36ed4f51 | 6630 | (char *) "self",(char *) "pt", NULL |
d55e5bfc RD |
6631 | }; |
6632 | ||
36ed4f51 RD |
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; |
6634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6636 | { | |
6637 | arg2 = &temp2; | |
6638 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
6639 | } |
6640 | { | |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6642 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); |
d55e5bfc RD |
6643 | |
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
36ed4f51 | 6647 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
6648 | return resultobj; |
6649 | fail: | |
6650 | return NULL; | |
6651 | } | |
6652 | ||
6653 | ||
36ed4f51 | 6654 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6655 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6656 | wxRegion *arg1 = (wxRegion *) 0 ; |
6657 | wxRect *arg2 = 0 ; | |
6658 | wxRegionContain result; | |
6659 | wxRect temp2 ; | |
d55e5bfc | 6660 | PyObject * obj0 = 0 ; |
36ed4f51 | 6661 | PyObject * obj1 = 0 ; |
d55e5bfc | 6662 | char *kwnames[] = { |
36ed4f51 | 6663 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
6664 | }; |
6665 | ||
36ed4f51 RD |
6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; |
6667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6669 | { | |
6670 | arg2 = &temp2; | |
6671 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6672 | } | |
d55e5bfc RD |
6673 | { |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6675 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); |
d55e5bfc RD |
6676 | |
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
36ed4f51 | 6680 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
6681 | return resultobj; |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
36ed4f51 | 6687 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6688 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6689 | wxRegion *arg1 = (wxRegion *) 0 ; |
6690 | int arg2 ; | |
6691 | int arg3 ; | |
6692 | int arg4 ; | |
6693 | int arg5 ; | |
6694 | wxRegionContain result; | |
d55e5bfc | 6695 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
6696 | PyObject * obj1 = 0 ; |
6697 | PyObject * obj2 = 0 ; | |
6698 | PyObject * obj3 = 0 ; | |
6699 | PyObject * obj4 = 0 ; | |
d55e5bfc | 6700 | char *kwnames[] = { |
36ed4f51 | 6701 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
d55e5bfc RD |
6702 | }; |
6703 | ||
36ed4f51 RD |
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6707 | { | |
32fe5131 | 6708 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6709 | if (SWIG_arg_fail(2)) SWIG_fail; |
6710 | } | |
6711 | { | |
32fe5131 | 6712 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6713 | if (SWIG_arg_fail(3)) SWIG_fail; |
6714 | } | |
6715 | { | |
32fe5131 | 6716 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
6717 | if (SWIG_arg_fail(4)) SWIG_fail; |
6718 | } | |
6719 | { | |
32fe5131 | 6720 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
6721 | if (SWIG_arg_fail(5)) SWIG_fail; |
6722 | } | |
d55e5bfc RD |
6723 | { |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6725 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
6726 | |
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
36ed4f51 | 6730 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
6731 | return resultobj; |
6732 | fail: | |
6733 | return NULL; | |
6734 | } | |
6735 | ||
6736 | ||
36ed4f51 | 6737 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6738 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6739 | wxRegion *arg1 = (wxRegion *) 0 ; |
6740 | wxRect result; | |
d55e5bfc RD |
6741 | PyObject * obj0 = 0 ; |
6742 | char *kwnames[] = { | |
6743 | (char *) "self", NULL | |
6744 | }; | |
6745 | ||
36ed4f51 RD |
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; |
6747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6749 | { |
6750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6751 | result = (arg1)->GetBox(); |
d55e5bfc RD |
6752 | |
6753 | wxPyEndAllowThreads(__tstate); | |
6754 | if (PyErr_Occurred()) SWIG_fail; | |
6755 | } | |
36ed4f51 RD |
6756 | { |
6757 | wxRect * resultptr; | |
32fe5131 | 6758 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
36ed4f51 RD |
6759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
6760 | } | |
6761 | return resultobj; | |
6762 | fail: | |
d55e5bfc RD |
6763 | return NULL; |
6764 | } | |
6765 | ||
6766 | ||
36ed4f51 | 6767 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6768 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6769 | wxRegion *arg1 = (wxRegion *) 0 ; |
6770 | int arg2 ; | |
6771 | int arg3 ; | |
6772 | int arg4 ; | |
6773 | int arg5 ; | |
d55e5bfc RD |
6774 | bool result; |
6775 | PyObject * obj0 = 0 ; | |
36ed4f51 RD |
6776 | PyObject * obj1 = 0 ; |
6777 | PyObject * obj2 = 0 ; | |
6778 | PyObject * obj3 = 0 ; | |
6779 | PyObject * obj4 = 0 ; | |
d55e5bfc | 6780 | char *kwnames[] = { |
36ed4f51 | 6781 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
6782 | }; |
6783 | ||
36ed4f51 RD |
6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6787 | { | |
32fe5131 | 6788 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6789 | if (SWIG_arg_fail(2)) SWIG_fail; |
6790 | } | |
6791 | { | |
32fe5131 | 6792 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6793 | if (SWIG_arg_fail(3)) SWIG_fail; |
6794 | } | |
6795 | { | |
32fe5131 | 6796 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
6797 | if (SWIG_arg_fail(4)) SWIG_fail; |
6798 | } | |
6799 | { | |
32fe5131 | 6800 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
6801 | if (SWIG_arg_fail(5)) SWIG_fail; |
6802 | } | |
d55e5bfc RD |
6803 | { |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6805 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
6806 | |
6807 | wxPyEndAllowThreads(__tstate); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
6810 | { | |
6811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6812 | } | |
6813 | return resultobj; | |
6814 | fail: | |
6815 | return NULL; | |
6816 | } | |
6817 | ||
6818 | ||
36ed4f51 | 6819 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6820 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6821 | wxRegion *arg1 = (wxRegion *) 0 ; |
6822 | wxRect *arg2 = 0 ; | |
6823 | bool result; | |
6824 | wxRect temp2 ; | |
d55e5bfc | 6825 | PyObject * obj0 = 0 ; |
36ed4f51 | 6826 | PyObject * obj1 = 0 ; |
d55e5bfc | 6827 | char *kwnames[] = { |
36ed4f51 | 6828 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
6829 | }; |
6830 | ||
36ed4f51 RD |
6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; |
6832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6834 | { | |
6835 | arg2 = &temp2; | |
6836 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6837 | } | |
d55e5bfc RD |
6838 | { |
6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6840 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); |
d55e5bfc RD |
6841 | |
6842 | wxPyEndAllowThreads(__tstate); | |
6843 | if (PyErr_Occurred()) SWIG_fail; | |
6844 | } | |
6845 | { | |
36ed4f51 | 6846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
6847 | } |
6848 | return resultobj; | |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
36ed4f51 | 6854 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6855 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6856 | wxRegion *arg1 = (wxRegion *) 0 ; |
6857 | wxRegion *arg2 = 0 ; | |
6858 | bool result; | |
d55e5bfc | 6859 | PyObject * obj0 = 0 ; |
36ed4f51 | 6860 | PyObject * obj1 = 0 ; |
d55e5bfc | 6861 | char *kwnames[] = { |
36ed4f51 | 6862 | (char *) "self",(char *) "region", NULL |
d55e5bfc RD |
6863 | }; |
6864 | ||
36ed4f51 RD |
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; |
6866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6868 | { | |
6869 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6870 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6871 | if (arg2 == NULL) { | |
6872 | SWIG_null_ref("wxRegion"); | |
6873 | } | |
6874 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6875 | } | |
d55e5bfc RD |
6876 | { |
6877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6878 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); |
d55e5bfc RD |
6879 | |
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
36ed4f51 RD |
6883 | { |
6884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6885 | } | |
d55e5bfc RD |
6886 | return resultobj; |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
36ed4f51 | 6892 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6893 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6894 | wxRegion *arg1 = (wxRegion *) 0 ; |
6895 | bool result; | |
d55e5bfc RD |
6896 | PyObject * obj0 = 0 ; |
6897 | char *kwnames[] = { | |
6898 | (char *) "self", NULL | |
6899 | }; | |
6900 | ||
36ed4f51 RD |
6901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; |
6902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6904 | { |
6905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6906 | result = (bool)(arg1)->IsEmpty(); |
d55e5bfc RD |
6907 | |
6908 | wxPyEndAllowThreads(__tstate); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
36ed4f51 RD |
6911 | { |
6912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6913 | } | |
d55e5bfc RD |
6914 | return resultobj; |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
36ed4f51 | 6920 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6921 | PyObject *resultobj = NULL; |
36ed4f51 | 6922 | wxRegion *arg1 = (wxRegion *) 0 ; |
d55e5bfc | 6923 | int arg2 ; |
36ed4f51 RD |
6924 | int arg3 ; |
6925 | int arg4 ; | |
6926 | int arg5 ; | |
6927 | bool result; | |
d55e5bfc RD |
6928 | PyObject * obj0 = 0 ; |
6929 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
6930 | PyObject * obj2 = 0 ; |
6931 | PyObject * obj3 = 0 ; | |
6932 | PyObject * obj4 = 0 ; | |
d55e5bfc | 6933 | char *kwnames[] = { |
36ed4f51 | 6934 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
6935 | }; |
6936 | ||
36ed4f51 RD |
6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6940 | { | |
32fe5131 | 6941 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
6942 | if (SWIG_arg_fail(2)) SWIG_fail; |
6943 | } | |
6944 | { | |
32fe5131 | 6945 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
6946 | if (SWIG_arg_fail(3)) SWIG_fail; |
6947 | } | |
6948 | { | |
32fe5131 | 6949 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
6950 | if (SWIG_arg_fail(4)) SWIG_fail; |
6951 | } | |
6952 | { | |
32fe5131 | 6953 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
6954 | if (SWIG_arg_fail(5)) SWIG_fail; |
6955 | } | |
d55e5bfc RD |
6956 | { |
6957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6958 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
6959 | |
6960 | wxPyEndAllowThreads(__tstate); | |
6961 | if (PyErr_Occurred()) SWIG_fail; | |
6962 | } | |
36ed4f51 RD |
6963 | { |
6964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6965 | } | |
d55e5bfc RD |
6966 | return resultobj; |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
36ed4f51 | 6972 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6973 | PyObject *resultobj = NULL; |
36ed4f51 RD |
6974 | wxRegion *arg1 = (wxRegion *) 0 ; |
6975 | wxRect *arg2 = 0 ; | |
6976 | bool result; | |
6977 | wxRect temp2 ; | |
d55e5bfc RD |
6978 | PyObject * obj0 = 0 ; |
6979 | PyObject * obj1 = 0 ; | |
6980 | char *kwnames[] = { | |
36ed4f51 | 6981 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
6982 | }; |
6983 | ||
36ed4f51 RD |
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; |
6985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6987 | { | |
6988 | arg2 = &temp2; | |
6989 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6990 | } | |
d55e5bfc RD |
6991 | { |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 6993 | result = (bool)(arg1)->Union((wxRect const &)*arg2); |
d55e5bfc RD |
6994 | |
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
36ed4f51 RD |
6998 | { |
6999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7000 | } | |
d55e5bfc RD |
7001 | return resultobj; |
7002 | fail: | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
36ed4f51 | 7007 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7008 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7009 | wxRegion *arg1 = (wxRegion *) 0 ; |
7010 | wxRegion *arg2 = 0 ; | |
7011 | bool result; | |
d55e5bfc RD |
7012 | PyObject * obj0 = 0 ; |
7013 | PyObject * obj1 = 0 ; | |
7014 | char *kwnames[] = { | |
36ed4f51 | 7015 | (char *) "self",(char *) "region", NULL |
d55e5bfc RD |
7016 | }; |
7017 | ||
36ed4f51 RD |
7018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; |
7019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7021 | { | |
7022 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7024 | if (arg2 == NULL) { | |
7025 | SWIG_null_ref("wxRegion"); | |
7026 | } | |
7027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7028 | } | |
d55e5bfc RD |
7029 | { |
7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7031 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); |
d55e5bfc RD |
7032 | |
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
36ed4f51 RD |
7036 | { |
7037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7038 | } | |
d55e5bfc RD |
7039 | return resultobj; |
7040 | fail: | |
7041 | return NULL; | |
7042 | } | |
7043 | ||
7044 | ||
36ed4f51 | 7045 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7046 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7047 | wxRegion *arg1 = (wxRegion *) 0 ; |
7048 | int arg2 ; | |
7049 | int arg3 ; | |
7050 | int arg4 ; | |
7051 | int arg5 ; | |
7052 | bool result; | |
d55e5bfc RD |
7053 | PyObject * obj0 = 0 ; |
7054 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
7055 | PyObject * obj2 = 0 ; |
7056 | PyObject * obj3 = 0 ; | |
7057 | PyObject * obj4 = 0 ; | |
d55e5bfc | 7058 | char *kwnames[] = { |
36ed4f51 | 7059 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
7060 | }; |
7061 | ||
36ed4f51 RD |
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7065 | { | |
32fe5131 | 7066 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
7067 | if (SWIG_arg_fail(2)) SWIG_fail; |
7068 | } | |
7069 | { | |
32fe5131 | 7070 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
7071 | if (SWIG_arg_fail(3)) SWIG_fail; |
7072 | } | |
7073 | { | |
32fe5131 | 7074 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
7075 | if (SWIG_arg_fail(4)) SWIG_fail; |
7076 | } | |
7077 | { | |
32fe5131 | 7078 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
7079 | if (SWIG_arg_fail(5)) SWIG_fail; |
7080 | } | |
d55e5bfc RD |
7081 | { |
7082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7083 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
7084 | |
7085 | wxPyEndAllowThreads(__tstate); | |
7086 | if (PyErr_Occurred()) SWIG_fail; | |
7087 | } | |
36ed4f51 RD |
7088 | { |
7089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7090 | } | |
d55e5bfc RD |
7091 | return resultobj; |
7092 | fail: | |
7093 | return NULL; | |
7094 | } | |
7095 | ||
7096 | ||
36ed4f51 | 7097 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7098 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7099 | wxRegion *arg1 = (wxRegion *) 0 ; |
7100 | wxRect *arg2 = 0 ; | |
7101 | bool result; | |
7102 | wxRect temp2 ; | |
d55e5bfc RD |
7103 | PyObject * obj0 = 0 ; |
7104 | PyObject * obj1 = 0 ; | |
7105 | char *kwnames[] = { | |
36ed4f51 | 7106 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
7107 | }; |
7108 | ||
36ed4f51 RD |
7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; |
7110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7112 | { |
36ed4f51 RD |
7113 | arg2 = &temp2; |
7114 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
7115 | } |
7116 | { | |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7118 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); |
d55e5bfc RD |
7119 | |
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
36ed4f51 RD |
7123 | { |
7124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7125 | } | |
d55e5bfc RD |
7126 | return resultobj; |
7127 | fail: | |
7128 | return NULL; | |
7129 | } | |
7130 | ||
7131 | ||
36ed4f51 | 7132 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7133 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7134 | wxRegion *arg1 = (wxRegion *) 0 ; |
7135 | wxRegion *arg2 = 0 ; | |
7136 | bool result; | |
d55e5bfc RD |
7137 | PyObject * obj0 = 0 ; |
7138 | PyObject * obj1 = 0 ; | |
7139 | char *kwnames[] = { | |
36ed4f51 | 7140 | (char *) "self",(char *) "region", NULL |
d55e5bfc RD |
7141 | }; |
7142 | ||
36ed4f51 RD |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; |
7144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7146 | { | |
7147 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7148 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7149 | if (arg2 == NULL) { | |
7150 | SWIG_null_ref("wxRegion"); | |
7151 | } | |
7152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7153 | } | |
d55e5bfc RD |
7154 | { |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7156 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); |
d55e5bfc RD |
7157 | |
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
36ed4f51 RD |
7161 | { |
7162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7163 | } | |
d55e5bfc RD |
7164 | return resultobj; |
7165 | fail: | |
7166 | return NULL; | |
7167 | } | |
7168 | ||
7169 | ||
36ed4f51 | 7170 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7171 | PyObject *resultobj = NULL; |
36ed4f51 | 7172 | wxRegion *arg1 = (wxRegion *) 0 ; |
d55e5bfc | 7173 | int arg2 ; |
36ed4f51 RD |
7174 | int arg3 ; |
7175 | int arg4 ; | |
7176 | int arg5 ; | |
7177 | bool result; | |
d55e5bfc RD |
7178 | PyObject * obj0 = 0 ; |
7179 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
7180 | PyObject * obj2 = 0 ; |
7181 | PyObject * obj3 = 0 ; | |
7182 | PyObject * obj4 = 0 ; | |
d55e5bfc | 7183 | char *kwnames[] = { |
36ed4f51 | 7184 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
7185 | }; |
7186 | ||
36ed4f51 RD |
7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7190 | { |
32fe5131 | 7191 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
7192 | if (SWIG_arg_fail(2)) SWIG_fail; |
7193 | } | |
7194 | { | |
32fe5131 | 7195 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
7196 | if (SWIG_arg_fail(3)) SWIG_fail; |
7197 | } | |
7198 | { | |
32fe5131 | 7199 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
7200 | if (SWIG_arg_fail(4)) SWIG_fail; |
7201 | } | |
7202 | { | |
32fe5131 | 7203 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
7204 | if (SWIG_arg_fail(5)) SWIG_fail; |
7205 | } | |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
7209 | ||
7210 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
7211 | if (PyErr_Occurred()) SWIG_fail; |
7212 | } | |
36ed4f51 RD |
7213 | { |
7214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7215 | } | |
d55e5bfc RD |
7216 | return resultobj; |
7217 | fail: | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
36ed4f51 | 7222 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7223 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7224 | wxRegion *arg1 = (wxRegion *) 0 ; |
7225 | wxRect *arg2 = 0 ; | |
d55e5bfc | 7226 | bool result; |
36ed4f51 | 7227 | wxRect temp2 ; |
d55e5bfc RD |
7228 | PyObject * obj0 = 0 ; |
7229 | PyObject * obj1 = 0 ; | |
7230 | char *kwnames[] = { | |
36ed4f51 | 7231 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
7232 | }; |
7233 | ||
36ed4f51 RD |
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; |
7235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7237 | { |
36ed4f51 RD |
7238 | arg2 = &temp2; |
7239 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
7240 | } |
7241 | { | |
7242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7243 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); |
d55e5bfc RD |
7244 | |
7245 | wxPyEndAllowThreads(__tstate); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | { | |
7249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7250 | } | |
d55e5bfc RD |
7251 | return resultobj; |
7252 | fail: | |
d55e5bfc RD |
7253 | return NULL; |
7254 | } | |
7255 | ||
7256 | ||
36ed4f51 | 7257 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7258 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7259 | wxRegion *arg1 = (wxRegion *) 0 ; |
7260 | wxRegion *arg2 = 0 ; | |
7261 | bool result; | |
d55e5bfc | 7262 | PyObject * obj0 = 0 ; |
36ed4f51 | 7263 | PyObject * obj1 = 0 ; |
d55e5bfc | 7264 | char *kwnames[] = { |
36ed4f51 | 7265 | (char *) "self",(char *) "region", NULL |
d55e5bfc RD |
7266 | }; |
7267 | ||
36ed4f51 RD |
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; |
7269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7271 | { | |
7272 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7274 | if (arg2 == NULL) { | |
7275 | SWIG_null_ref("wxRegion"); | |
7276 | } | |
7277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7278 | } | |
d55e5bfc RD |
7279 | { |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7281 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); |
d55e5bfc RD |
7282 | |
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | { | |
36ed4f51 | 7287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
7288 | } |
7289 | return resultobj; | |
7290 | fail: | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
36ed4f51 | 7295 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7296 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7297 | wxRegion *arg1 = (wxRegion *) 0 ; |
7298 | SwigValueWrapper<wxBitmap > result; | |
d55e5bfc RD |
7299 | PyObject * obj0 = 0 ; |
7300 | char *kwnames[] = { | |
7301 | (char *) "self", NULL | |
7302 | }; | |
7303 | ||
36ed4f51 RD |
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; |
7305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7307 | { |
7308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7309 | result = (arg1)->ConvertToBitmap(); |
d55e5bfc RD |
7310 | |
7311 | wxPyEndAllowThreads(__tstate); | |
7312 | if (PyErr_Occurred()) SWIG_fail; | |
7313 | } | |
7314 | { | |
36ed4f51 | 7315 | wxBitmap * resultptr; |
32fe5131 | 7316 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
36ed4f51 | 7317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d55e5bfc RD |
7318 | } |
7319 | return resultobj; | |
7320 | fail: | |
7321 | return NULL; | |
7322 | } | |
7323 | ||
7324 | ||
36ed4f51 | 7325 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7326 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7327 | wxRegion *arg1 = (wxRegion *) 0 ; |
7328 | wxBitmap *arg2 = 0 ; | |
d55e5bfc | 7329 | bool result; |
d55e5bfc RD |
7330 | PyObject * obj0 = 0 ; |
7331 | PyObject * obj1 = 0 ; | |
7332 | char *kwnames[] = { | |
36ed4f51 | 7333 | (char *) "self",(char *) "bmp", NULL |
d55e5bfc RD |
7334 | }; |
7335 | ||
36ed4f51 RD |
7336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; |
7337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7339 | { |
36ed4f51 RD |
7340 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); |
7341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7342 | if (arg2 == NULL) { | |
7343 | SWIG_null_ref("wxBitmap"); | |
7344 | } | |
7345 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7346 | } |
7347 | { | |
7348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7349 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); |
d55e5bfc RD |
7350 | |
7351 | wxPyEndAllowThreads(__tstate); | |
7352 | if (PyErr_Occurred()) SWIG_fail; | |
7353 | } | |
7354 | { | |
7355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7356 | } | |
d55e5bfc RD |
7357 | return resultobj; |
7358 | fail: | |
d55e5bfc RD |
7359 | return NULL; |
7360 | } | |
7361 | ||
7362 | ||
36ed4f51 | 7363 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7364 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7365 | wxRegion *arg1 = (wxRegion *) 0 ; |
7366 | wxBitmap *arg2 = 0 ; | |
7367 | wxColour *arg3 = 0 ; | |
7368 | int arg4 = (int) 0 ; | |
7369 | bool result; | |
7370 | wxColour temp3 ; | |
d55e5bfc | 7371 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
7372 | PyObject * obj1 = 0 ; |
7373 | PyObject * obj2 = 0 ; | |
7374 | PyObject * obj3 = 0 ; | |
d55e5bfc | 7375 | char *kwnames[] = { |
36ed4f51 | 7376 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d55e5bfc RD |
7377 | }; |
7378 | ||
36ed4f51 RD |
7379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7382 | { | |
7383 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7385 | if (arg2 == NULL) { | |
7386 | SWIG_null_ref("wxBitmap"); | |
7387 | } | |
7388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7389 | } | |
7390 | { | |
7391 | arg3 = &temp3; | |
7392 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
7393 | } | |
7394 | if (obj3) { | |
7395 | { | |
32fe5131 | 7396 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
7397 | if (SWIG_arg_fail(4)) SWIG_fail; |
7398 | } | |
7399 | } | |
d55e5bfc RD |
7400 | { |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7402 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); |
d55e5bfc RD |
7403 | |
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
7407 | { | |
36ed4f51 | 7408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
7409 | } |
7410 | return resultobj; | |
7411 | fail: | |
7412 | return NULL; | |
7413 | } | |
7414 | ||
7415 | ||
36ed4f51 | 7416 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7417 | PyObject *obj; |
7418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36ed4f51 | 7419 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); |
d55e5bfc RD |
7420 | Py_INCREF(obj); |
7421 | return Py_BuildValue((char *)""); | |
7422 | } | |
36ed4f51 | 7423 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7424 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7425 | wxRegion *arg1 = 0 ; |
7426 | wxRegionIterator *result; | |
d55e5bfc | 7427 | PyObject * obj0 = 0 ; |
d55e5bfc | 7428 | char *kwnames[] = { |
36ed4f51 | 7429 | (char *) "region", NULL |
d55e5bfc RD |
7430 | }; |
7431 | ||
36ed4f51 | 7432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; |
d55e5bfc | 7433 | { |
36ed4f51 RD |
7434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); |
7435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7436 | if (arg1 == NULL) { | |
7437 | SWIG_null_ref("wxRegion"); | |
7438 | } | |
7439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7440 | } |
d55e5bfc | 7441 | { |
36ed4f51 RD |
7442 | if (!wxPyCheckForApp()) SWIG_fail; |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 7448 | } |
36ed4f51 | 7449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d55e5bfc RD |
7450 | return resultobj; |
7451 | fail: | |
d55e5bfc RD |
7452 | return NULL; |
7453 | } | |
7454 | ||
7455 | ||
36ed4f51 | 7456 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7457 | PyObject *resultobj = NULL; |
36ed4f51 | 7458 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d55e5bfc RD |
7459 | PyObject * obj0 = 0 ; |
7460 | char *kwnames[] = { | |
7461 | (char *) "self", NULL | |
7462 | }; | |
7463 | ||
36ed4f51 RD |
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; |
7465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7467 | { |
36ed4f51 RD |
7468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7469 | delete arg1; | |
7470 | ||
7471 | wxPyEndAllowThreads(__tstate); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 7473 | } |
36ed4f51 | 7474 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
7475 | return resultobj; |
7476 | fail: | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
36ed4f51 | 7481 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7482 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7483 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7484 | int result; | |
d55e5bfc | 7485 | PyObject * obj0 = 0 ; |
d55e5bfc | 7486 | char *kwnames[] = { |
36ed4f51 | 7487 | (char *) "self", NULL |
d55e5bfc RD |
7488 | }; |
7489 | ||
36ed4f51 RD |
7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; |
7491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7493 | { | |
7494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7495 | result = (int)(arg1)->GetX(); | |
7496 | ||
7497 | wxPyEndAllowThreads(__tstate); | |
7498 | if (PyErr_Occurred()) SWIG_fail; | |
7499 | } | |
7500 | { | |
32fe5131 | 7501 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 7502 | } |
d55e5bfc RD |
7503 | return resultobj; |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
36ed4f51 | 7509 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7510 | PyObject *resultobj = NULL; |
36ed4f51 | 7511 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d55e5bfc RD |
7512 | int result; |
7513 | PyObject * obj0 = 0 ; | |
7514 | char *kwnames[] = { | |
7515 | (char *) "self", NULL | |
7516 | }; | |
7517 | ||
36ed4f51 RD |
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; |
7519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7521 | { | |
7522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7523 | result = (int)(arg1)->GetY(); | |
7524 | ||
7525 | wxPyEndAllowThreads(__tstate); | |
7526 | if (PyErr_Occurred()) SWIG_fail; | |
7527 | } | |
7528 | { | |
32fe5131 | 7529 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 7530 | } |
d55e5bfc RD |
7531 | return resultobj; |
7532 | fail: | |
7533 | return NULL; | |
7534 | } | |
7535 | ||
7536 | ||
36ed4f51 | 7537 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7538 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7539 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7540 | int result; | |
7541 | PyObject * obj0 = 0 ; | |
d55e5bfc | 7542 | char *kwnames[] = { |
36ed4f51 | 7543 | (char *) "self", NULL |
d55e5bfc RD |
7544 | }; |
7545 | ||
36ed4f51 RD |
7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; |
7547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7549 | { |
7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7551 | result = (int)(arg1)->GetW(); |
d55e5bfc RD |
7552 | |
7553 | wxPyEndAllowThreads(__tstate); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
36ed4f51 | 7556 | { |
32fe5131 | 7557 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 7558 | } |
d55e5bfc RD |
7559 | return resultobj; |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
36ed4f51 | 7565 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7566 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7567 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7568 | int result; | |
d55e5bfc RD |
7569 | PyObject * obj0 = 0 ; |
7570 | char *kwnames[] = { | |
7571 | (char *) "self", NULL | |
7572 | }; | |
7573 | ||
36ed4f51 RD |
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; |
7575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7577 | { |
7578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7579 | result = (int)(arg1)->GetWidth(); |
d55e5bfc RD |
7580 | |
7581 | wxPyEndAllowThreads(__tstate); | |
7582 | if (PyErr_Occurred()) SWIG_fail; | |
7583 | } | |
36ed4f51 | 7584 | { |
32fe5131 | 7585 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 7586 | } |
d55e5bfc RD |
7587 | return resultobj; |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
36ed4f51 | 7593 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7594 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7595 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7596 | int result; | |
d55e5bfc | 7597 | PyObject * obj0 = 0 ; |
d55e5bfc | 7598 | char *kwnames[] = { |
36ed4f51 | 7599 | (char *) "self", NULL |
d55e5bfc RD |
7600 | }; |
7601 | ||
36ed4f51 RD |
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; |
7603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7605 | { |
7606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7607 | result = (int)(arg1)->GetH(); |
d55e5bfc RD |
7608 | |
7609 | wxPyEndAllowThreads(__tstate); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
7612 | { | |
32fe5131 | 7613 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
7614 | } |
7615 | return resultobj; | |
7616 | fail: | |
d55e5bfc RD |
7617 | return NULL; |
7618 | } | |
7619 | ||
7620 | ||
36ed4f51 | 7621 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7622 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7623 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7624 | int result; | |
d55e5bfc RD |
7625 | PyObject * obj0 = 0 ; |
7626 | char *kwnames[] = { | |
7627 | (char *) "self", NULL | |
7628 | }; | |
7629 | ||
36ed4f51 RD |
7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; |
7631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7633 | { |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7635 | result = (int)(arg1)->GetHeight(); |
d55e5bfc RD |
7636 | |
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | { | |
32fe5131 | 7641 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
7642 | } |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
36ed4f51 | 7649 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7650 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7651 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7652 | wxRect result; | |
d55e5bfc RD |
7653 | PyObject * obj0 = 0 ; |
7654 | char *kwnames[] = { | |
36ed4f51 | 7655 | (char *) "self", NULL |
d55e5bfc RD |
7656 | }; |
7657 | ||
36ed4f51 RD |
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; |
7659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7661 | { |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7663 | result = (arg1)->GetRect(); |
d55e5bfc RD |
7664 | |
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
36ed4f51 RD |
7668 | { |
7669 | wxRect * resultptr; | |
32fe5131 | 7670 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
36ed4f51 RD |
7671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
7672 | } | |
d55e5bfc RD |
7673 | return resultobj; |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
36ed4f51 | 7679 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7680 | PyObject *resultobj = NULL; |
36ed4f51 | 7681 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d55e5bfc RD |
7682 | bool result; |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
36ed4f51 | 7685 | (char *) "self", NULL |
d55e5bfc RD |
7686 | }; |
7687 | ||
36ed4f51 RD |
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; |
7689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7691 | { |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7693 | result = (bool)(arg1)->HaveRects(); |
d55e5bfc RD |
7694 | |
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | { | |
7699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7700 | } | |
7701 | return resultobj; | |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
36ed4f51 | 7707 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7708 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7709 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7710 | PyObject * obj0 = 0 ; | |
d55e5bfc | 7711 | char *kwnames[] = { |
36ed4f51 | 7712 | (char *) "self", NULL |
d55e5bfc RD |
7713 | }; |
7714 | ||
36ed4f51 RD |
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; |
7716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7718 | { |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7720 | (arg1)->Reset(); |
d55e5bfc RD |
7721 | |
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
36ed4f51 | 7725 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
7726 | return resultobj; |
7727 | fail: | |
7728 | return NULL; | |
7729 | } | |
7730 | ||
7731 | ||
36ed4f51 | 7732 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7733 | PyObject *resultobj = NULL; |
36ed4f51 | 7734 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d55e5bfc RD |
7735 | PyObject * obj0 = 0 ; |
7736 | char *kwnames[] = { | |
7737 | (char *) "self", NULL | |
7738 | }; | |
7739 | ||
36ed4f51 RD |
7740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; |
7741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7743 | { |
7744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7745 | wxRegionIterator_Next(arg1); |
d55e5bfc RD |
7746 | |
7747 | wxPyEndAllowThreads(__tstate); | |
7748 | if (PyErr_Occurred()) SWIG_fail; | |
7749 | } | |
7750 | Py_INCREF(Py_None); resultobj = Py_None; | |
7751 | return resultobj; | |
7752 | fail: | |
7753 | return NULL; | |
7754 | } | |
7755 | ||
7756 | ||
36ed4f51 | 7757 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7758 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7759 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7760 | bool result; | |
7761 | PyObject * obj0 = 0 ; | |
d55e5bfc | 7762 | char *kwnames[] = { |
36ed4f51 | 7763 | (char *) "self", NULL |
d55e5bfc RD |
7764 | }; |
7765 | ||
36ed4f51 RD |
7766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; |
7767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7769 | { |
7770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7771 | result = (bool)wxRegionIterator___nonzero__(arg1); |
d55e5bfc RD |
7772 | |
7773 | wxPyEndAllowThreads(__tstate); | |
7774 | if (PyErr_Occurred()) SWIG_fail; | |
7775 | } | |
36ed4f51 RD |
7776 | { |
7777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7778 | } | |
d55e5bfc RD |
7779 | return resultobj; |
7780 | fail: | |
7781 | return NULL; | |
7782 | } | |
7783 | ||
7784 | ||
36ed4f51 RD |
7785 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
7786 | PyObject *obj; | |
7787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7788 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
7789 | Py_INCREF(obj); | |
7790 | return Py_BuildValue((char *)""); | |
7791 | } | |
7792 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 7793 | PyObject *resultobj = NULL; |
36ed4f51 | 7794 | wxNativeFontInfo *result; |
d55e5bfc | 7795 | char *kwnames[] = { |
36ed4f51 | 7796 | NULL |
d55e5bfc RD |
7797 | }; |
7798 | ||
36ed4f51 | 7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; |
d55e5bfc RD |
7800 | { |
7801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7802 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); |
d55e5bfc RD |
7803 | |
7804 | wxPyEndAllowThreads(__tstate); | |
7805 | if (PyErr_Occurred()) SWIG_fail; | |
7806 | } | |
36ed4f51 | 7807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d55e5bfc RD |
7808 | return resultobj; |
7809 | fail: | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
36ed4f51 | 7814 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7815 | PyObject *resultobj = NULL; |
36ed4f51 | 7816 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d55e5bfc | 7817 | PyObject * obj0 = 0 ; |
d55e5bfc | 7818 | char *kwnames[] = { |
36ed4f51 | 7819 | (char *) "self", NULL |
d55e5bfc RD |
7820 | }; |
7821 | ||
36ed4f51 RD |
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; |
7823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7825 | { |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7827 | delete arg1; |
d55e5bfc RD |
7828 | |
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
36ed4f51 | 7832 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
7833 | return resultobj; |
7834 | fail: | |
d55e5bfc RD |
7835 | return NULL; |
7836 | } | |
7837 | ||
7838 | ||
36ed4f51 | 7839 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7840 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7841 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7842 | PyObject * obj0 = 0 ; | |
d55e5bfc | 7843 | char *kwnames[] = { |
36ed4f51 | 7844 | (char *) "self", NULL |
d55e5bfc RD |
7845 | }; |
7846 | ||
36ed4f51 RD |
7847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; |
7848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7850 | { |
7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7852 | (arg1)->Init(); |
d55e5bfc RD |
7853 | |
7854 | wxPyEndAllowThreads(__tstate); | |
7855 | if (PyErr_Occurred()) SWIG_fail; | |
7856 | } | |
36ed4f51 | 7857 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
7858 | return resultobj; |
7859 | fail: | |
7860 | return NULL; | |
7861 | } | |
7862 | ||
7863 | ||
36ed4f51 | 7864 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7865 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7866 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7867 | wxFont *arg2 = 0 ; | |
d55e5bfc | 7868 | PyObject * obj0 = 0 ; |
36ed4f51 | 7869 | PyObject * obj1 = 0 ; |
d55e5bfc | 7870 | char *kwnames[] = { |
36ed4f51 | 7871 | (char *) "self",(char *) "font", NULL |
d55e5bfc RD |
7872 | }; |
7873 | ||
36ed4f51 RD |
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; |
7875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7877 | { | |
7878 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
7879 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7880 | if (arg2 == NULL) { | |
7881 | SWIG_null_ref("wxFont"); | |
7882 | } | |
7883 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7884 | } | |
d55e5bfc RD |
7885 | { |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7887 | (arg1)->InitFromFont((wxFont const &)*arg2); |
d55e5bfc RD |
7888 | |
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
36ed4f51 | 7892 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
7893 | return resultobj; |
7894 | fail: | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
36ed4f51 | 7899 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7900 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7901 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7902 | int result; | |
d55e5bfc RD |
7903 | PyObject * obj0 = 0 ; |
7904 | char *kwnames[] = { | |
36ed4f51 | 7905 | (char *) "self", NULL |
d55e5bfc RD |
7906 | }; |
7907 | ||
36ed4f51 RD |
7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; |
7909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7911 | { |
7912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7913 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); |
d55e5bfc RD |
7914 | |
7915 | wxPyEndAllowThreads(__tstate); | |
7916 | if (PyErr_Occurred()) SWIG_fail; | |
7917 | } | |
7918 | { | |
32fe5131 | 7919 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
7920 | } |
7921 | return resultobj; | |
7922 | fail: | |
7923 | return NULL; | |
7924 | } | |
7925 | ||
7926 | ||
36ed4f51 | 7927 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7928 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7929 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7930 | wxFontStyle result; | |
d55e5bfc RD |
7931 | PyObject * obj0 = 0 ; |
7932 | char *kwnames[] = { | |
36ed4f51 | 7933 | (char *) "self", NULL |
d55e5bfc RD |
7934 | }; |
7935 | ||
36ed4f51 RD |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; |
7937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7939 | { |
7940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7941 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); |
d55e5bfc RD |
7942 | |
7943 | wxPyEndAllowThreads(__tstate); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
36ed4f51 | 7946 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
7947 | return resultobj; |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
36ed4f51 | 7953 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7954 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7955 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7956 | wxFontWeight result; | |
d55e5bfc RD |
7957 | PyObject * obj0 = 0 ; |
7958 | char *kwnames[] = { | |
36ed4f51 | 7959 | (char *) "self", NULL |
d55e5bfc RD |
7960 | }; |
7961 | ||
36ed4f51 RD |
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; |
7963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7965 | { |
7966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7967 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); |
d55e5bfc RD |
7968 | |
7969 | wxPyEndAllowThreads(__tstate); | |
7970 | if (PyErr_Occurred()) SWIG_fail; | |
7971 | } | |
36ed4f51 | 7972 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
7973 | return resultobj; |
7974 | fail: | |
d55e5bfc RD |
7975 | return NULL; |
7976 | } | |
7977 | ||
7978 | ||
36ed4f51 | 7979 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7980 | PyObject *resultobj = NULL; |
36ed4f51 RD |
7981 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
7982 | bool result; | |
d55e5bfc | 7983 | PyObject * obj0 = 0 ; |
d55e5bfc | 7984 | char *kwnames[] = { |
36ed4f51 | 7985 | (char *) "self", NULL |
d55e5bfc RD |
7986 | }; |
7987 | ||
36ed4f51 RD |
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; |
7989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7991 | { |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 7993 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); |
d55e5bfc RD |
7994 | |
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) SWIG_fail; | |
7997 | } | |
36ed4f51 RD |
7998 | { |
7999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8000 | } | |
d55e5bfc RD |
8001 | return resultobj; |
8002 | fail: | |
8003 | return NULL; | |
8004 | } | |
8005 | ||
8006 | ||
36ed4f51 | 8007 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8008 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8009 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8010 | wxString result; | |
d55e5bfc | 8011 | PyObject * obj0 = 0 ; |
d55e5bfc | 8012 | char *kwnames[] = { |
36ed4f51 | 8013 | (char *) "self", NULL |
d55e5bfc RD |
8014 | }; |
8015 | ||
36ed4f51 RD |
8016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; |
8017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8019 | { |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8021 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); |
d55e5bfc RD |
8022 | |
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
d55e5bfc | 8026 | { |
36ed4f51 RD |
8027 | #if wxUSE_UNICODE |
8028 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8029 | #else | |
8030 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8031 | #endif | |
d55e5bfc RD |
8032 | } |
8033 | return resultobj; | |
8034 | fail: | |
d55e5bfc RD |
8035 | return NULL; |
8036 | } | |
8037 | ||
8038 | ||
36ed4f51 | 8039 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8040 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8041 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8042 | wxFontFamily result; | |
8043 | PyObject * obj0 = 0 ; | |
d55e5bfc | 8044 | char *kwnames[] = { |
36ed4f51 | 8045 | (char *) "self", NULL |
d55e5bfc RD |
8046 | }; |
8047 | ||
36ed4f51 RD |
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; |
8049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8051 | { |
8052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8053 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); |
d55e5bfc RD |
8054 | |
8055 | wxPyEndAllowThreads(__tstate); | |
8056 | if (PyErr_Occurred()) SWIG_fail; | |
8057 | } | |
36ed4f51 | 8058 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
8059 | return resultobj; |
8060 | fail: | |
8061 | return NULL; | |
8062 | } | |
8063 | ||
8064 | ||
36ed4f51 | 8065 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8066 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8067 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8068 | wxFontEncoding result; | |
d55e5bfc | 8069 | PyObject * obj0 = 0 ; |
d55e5bfc | 8070 | char *kwnames[] = { |
36ed4f51 | 8071 | (char *) "self", NULL |
d55e5bfc RD |
8072 | }; |
8073 | ||
36ed4f51 RD |
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; |
8075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8077 | { |
8078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8079 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); |
d55e5bfc RD |
8080 | |
8081 | wxPyEndAllowThreads(__tstate); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | } | |
36ed4f51 | 8084 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
8085 | return resultobj; |
8086 | fail: | |
d55e5bfc RD |
8087 | return NULL; |
8088 | } | |
8089 | ||
8090 | ||
36ed4f51 | 8091 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8092 | PyObject *resultobj = NULL; |
36ed4f51 | 8093 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d55e5bfc | 8094 | int arg2 ; |
d55e5bfc RD |
8095 | PyObject * obj0 = 0 ; |
8096 | PyObject * obj1 = 0 ; | |
d55e5bfc | 8097 | char *kwnames[] = { |
36ed4f51 | 8098 | (char *) "self",(char *) "pointsize", NULL |
d55e5bfc RD |
8099 | }; |
8100 | ||
36ed4f51 RD |
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
8102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8104 | { | |
32fe5131 | 8105 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 8106 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
8107 | } |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8110 | (arg1)->SetPointSize(arg2); |
d55e5bfc RD |
8111 | |
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
36ed4f51 | 8115 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8116 | return resultobj; |
8117 | fail: | |
d55e5bfc RD |
8118 | return NULL; |
8119 | } | |
8120 | ||
8121 | ||
36ed4f51 | 8122 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8123 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8124 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8125 | wxFontStyle arg2 ; | |
d55e5bfc RD |
8126 | PyObject * obj0 = 0 ; |
8127 | PyObject * obj1 = 0 ; | |
8128 | char *kwnames[] = { | |
36ed4f51 | 8129 | (char *) "self",(char *) "style", NULL |
d55e5bfc RD |
8130 | }; |
8131 | ||
36ed4f51 RD |
8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
8133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8135 | { | |
32fe5131 | 8136 | arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1)); |
36ed4f51 RD |
8137 | if (SWIG_arg_fail(2)) SWIG_fail; |
8138 | } | |
d55e5bfc RD |
8139 | { |
8140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8141 | (arg1)->SetStyle(arg2); |
d55e5bfc RD |
8142 | |
8143 | wxPyEndAllowThreads(__tstate); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
8145 | } | |
8146 | Py_INCREF(Py_None); resultobj = Py_None; | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
36ed4f51 | 8153 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8154 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8155 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8156 | wxFontWeight arg2 ; | |
d55e5bfc RD |
8157 | PyObject * obj0 = 0 ; |
8158 | PyObject * obj1 = 0 ; | |
8159 | char *kwnames[] = { | |
36ed4f51 | 8160 | (char *) "self",(char *) "weight", NULL |
d55e5bfc RD |
8161 | }; |
8162 | ||
36ed4f51 RD |
8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
8164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 8166 | { |
32fe5131 | 8167 | arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1)); |
36ed4f51 | 8168 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
8169 | } |
8170 | { | |
8171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8172 | (arg1)->SetWeight(arg2); |
d55e5bfc RD |
8173 | |
8174 | wxPyEndAllowThreads(__tstate); | |
8175 | if (PyErr_Occurred()) SWIG_fail; | |
8176 | } | |
8177 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
8178 | return resultobj; |
8179 | fail: | |
d55e5bfc RD |
8180 | return NULL; |
8181 | } | |
8182 | ||
8183 | ||
36ed4f51 | 8184 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8185 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8186 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8187 | bool arg2 ; | |
d55e5bfc RD |
8188 | PyObject * obj0 = 0 ; |
8189 | PyObject * obj1 = 0 ; | |
d55e5bfc | 8190 | char *kwnames[] = { |
36ed4f51 | 8191 | (char *) "self",(char *) "underlined", NULL |
d55e5bfc RD |
8192 | }; |
8193 | ||
36ed4f51 RD |
8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
8195 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8196 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8197 | { | |
32fe5131 | 8198 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 | 8199 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
8200 | } |
8201 | { | |
8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8203 | (arg1)->SetUnderlined(arg2); |
d55e5bfc RD |
8204 | |
8205 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8206 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8207 | } |
36ed4f51 | 8208 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8209 | return resultobj; |
8210 | fail: | |
d55e5bfc RD |
8211 | return NULL; |
8212 | } | |
8213 | ||
8214 | ||
36ed4f51 | 8215 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8216 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8217 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8218 | wxString arg2 ; | |
d55e5bfc | 8219 | PyObject * obj0 = 0 ; |
36ed4f51 | 8220 | PyObject * obj1 = 0 ; |
d55e5bfc | 8221 | char *kwnames[] = { |
36ed4f51 | 8222 | (char *) "self",(char *) "facename", NULL |
d55e5bfc RD |
8223 | }; |
8224 | ||
36ed4f51 RD |
8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
8226 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8227 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8228 | { | |
8229 | wxString* sptr = wxString_in_helper(obj1); | |
8230 | if (sptr == NULL) SWIG_fail; | |
8231 | arg2 = *sptr; | |
8232 | delete sptr; | |
8233 | } | |
d55e5bfc RD |
8234 | { |
8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8236 | (arg1)->SetFaceName(arg2); |
d55e5bfc RD |
8237 | |
8238 | wxPyEndAllowThreads(__tstate); | |
8239 | if (PyErr_Occurred()) SWIG_fail; | |
8240 | } | |
8241 | Py_INCREF(Py_None); resultobj = Py_None; | |
8242 | return resultobj; | |
8243 | fail: | |
8244 | return NULL; | |
8245 | } | |
8246 | ||
8247 | ||
36ed4f51 | 8248 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8249 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8250 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8251 | wxFontFamily arg2 ; | |
d55e5bfc | 8252 | PyObject * obj0 = 0 ; |
36ed4f51 | 8253 | PyObject * obj1 = 0 ; |
d55e5bfc | 8254 | char *kwnames[] = { |
36ed4f51 | 8255 | (char *) "self",(char *) "family", NULL |
d55e5bfc RD |
8256 | }; |
8257 | ||
36ed4f51 RD |
8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
8259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8261 | { | |
32fe5131 | 8262 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
36ed4f51 | 8263 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
8264 | } |
8265 | { | |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8267 | (arg1)->SetFamily(arg2); |
d55e5bfc RD |
8268 | |
8269 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8270 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8271 | } |
36ed4f51 | 8272 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8273 | return resultobj; |
8274 | fail: | |
8275 | return NULL; | |
8276 | } | |
8277 | ||
8278 | ||
36ed4f51 | 8279 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8280 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8281 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8282 | wxFontEncoding arg2 ; | |
d55e5bfc | 8283 | PyObject * obj0 = 0 ; |
36ed4f51 | 8284 | PyObject * obj1 = 0 ; |
d55e5bfc | 8285 | char *kwnames[] = { |
36ed4f51 | 8286 | (char *) "self",(char *) "encoding", NULL |
d55e5bfc RD |
8287 | }; |
8288 | ||
36ed4f51 RD |
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
8290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 8292 | { |
32fe5131 | 8293 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 | 8294 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
8295 | } |
8296 | { | |
8297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8298 | (arg1)->SetEncoding(arg2); |
d55e5bfc RD |
8299 | |
8300 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8301 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8302 | } |
36ed4f51 | 8303 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8304 | return resultobj; |
8305 | fail: | |
d55e5bfc RD |
8306 | return NULL; |
8307 | } | |
8308 | ||
8309 | ||
36ed4f51 | 8310 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8311 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8312 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8313 | wxString *arg2 = 0 ; | |
8314 | bool result; | |
8315 | bool temp2 = false ; | |
d55e5bfc RD |
8316 | PyObject * obj0 = 0 ; |
8317 | PyObject * obj1 = 0 ; | |
d55e5bfc | 8318 | char *kwnames[] = { |
36ed4f51 | 8319 | (char *) "self",(char *) "s", NULL |
d55e5bfc RD |
8320 | }; |
8321 | ||
36ed4f51 RD |
8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8325 | { | |
8326 | arg2 = wxString_in_helper(obj1); | |
8327 | if (arg2 == NULL) SWIG_fail; | |
8328 | temp2 = true; | |
d55e5bfc RD |
8329 | } |
8330 | { | |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8332 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d55e5bfc RD |
8333 | |
8334 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8335 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8336 | } |
d55e5bfc | 8337 | { |
36ed4f51 RD |
8338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
8339 | } | |
8340 | { | |
8341 | if (temp2) | |
8342 | delete arg2; | |
d55e5bfc RD |
8343 | } |
8344 | return resultobj; | |
8345 | fail: | |
8346 | { | |
36ed4f51 RD |
8347 | if (temp2) |
8348 | delete arg2; | |
d55e5bfc RD |
8349 | } |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
36ed4f51 | 8354 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8355 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8356 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8357 | wxString result; | |
5e483524 | 8358 | PyObject * obj0 = 0 ; |
5e483524 | 8359 | char *kwnames[] = { |
36ed4f51 | 8360 | (char *) "self", NULL |
5e483524 RD |
8361 | }; |
8362 | ||
36ed4f51 RD |
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; |
8364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e483524 | 8366 | { |
5e483524 | 8367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 8368 | result = ((wxNativeFontInfo const *)arg1)->ToString(); |
5e483524 RD |
8369 | |
8370 | wxPyEndAllowThreads(__tstate); | |
8371 | if (PyErr_Occurred()) SWIG_fail; | |
8372 | } | |
5e483524 | 8373 | { |
36ed4f51 RD |
8374 | #if wxUSE_UNICODE |
8375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8376 | #else | |
8377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8378 | #endif | |
5e483524 RD |
8379 | } |
8380 | return resultobj; | |
8381 | fail: | |
5e483524 RD |
8382 | return NULL; |
8383 | } | |
8384 | ||
8385 | ||
36ed4f51 | 8386 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8387 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8388 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8389 | wxString result; | |
d55e5bfc RD |
8390 | PyObject * obj0 = 0 ; |
8391 | char *kwnames[] = { | |
8392 | (char *) "self", NULL | |
8393 | }; | |
8394 | ||
36ed4f51 RD |
8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; |
8396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8398 | { |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8400 | result = wxNativeFontInfo___str__(arg1); |
d55e5bfc RD |
8401 | |
8402 | wxPyEndAllowThreads(__tstate); | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
8405 | { | |
36ed4f51 RD |
8406 | #if wxUSE_UNICODE |
8407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8408 | #else | |
8409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8410 | #endif | |
d55e5bfc RD |
8411 | } |
8412 | return resultobj; | |
8413 | fail: | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
36ed4f51 | 8418 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8419 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8420 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8421 | wxString *arg2 = 0 ; | |
d55e5bfc | 8422 | bool result; |
36ed4f51 | 8423 | bool temp2 = false ; |
d55e5bfc RD |
8424 | PyObject * obj0 = 0 ; |
8425 | PyObject * obj1 = 0 ; | |
8426 | char *kwnames[] = { | |
36ed4f51 | 8427 | (char *) "self",(char *) "s", NULL |
d55e5bfc RD |
8428 | }; |
8429 | ||
36ed4f51 RD |
8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; |
8431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8433 | { | |
8434 | arg2 = wxString_in_helper(obj1); | |
8435 | if (arg2 == NULL) SWIG_fail; | |
8436 | temp2 = true; | |
8437 | } | |
d55e5bfc RD |
8438 | { |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8440 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); |
d55e5bfc RD |
8441 | |
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
8445 | { | |
8446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8447 | } | |
36ed4f51 RD |
8448 | { |
8449 | if (temp2) | |
8450 | delete arg2; | |
8451 | } | |
d55e5bfc RD |
8452 | return resultobj; |
8453 | fail: | |
36ed4f51 RD |
8454 | { |
8455 | if (temp2) | |
8456 | delete arg2; | |
8457 | } | |
d55e5bfc RD |
8458 | return NULL; |
8459 | } | |
8460 | ||
8461 | ||
36ed4f51 | 8462 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8463 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8464 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8465 | wxString result; | |
d55e5bfc | 8466 | PyObject * obj0 = 0 ; |
d55e5bfc | 8467 | char *kwnames[] = { |
36ed4f51 | 8468 | (char *) "self", NULL |
d55e5bfc RD |
8469 | }; |
8470 | ||
36ed4f51 RD |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; |
8472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8474 | { |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8476 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); |
d55e5bfc RD |
8477 | |
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | { | |
36ed4f51 RD |
8482 | #if wxUSE_UNICODE |
8483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8484 | #else | |
8485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8486 | #endif | |
d55e5bfc RD |
8487 | } |
8488 | return resultobj; | |
8489 | fail: | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
36ed4f51 RD |
8494 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
8495 | PyObject *obj; | |
8496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8497 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
8498 | Py_INCREF(obj); | |
8499 | return Py_BuildValue((char *)""); | |
8500 | } | |
8501 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 8502 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8503 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8504 | wxString *arg2 = (wxString *) 0 ; | |
8505 | bool temp2 = false ; | |
d55e5bfc | 8506 | PyObject * obj0 = 0 ; |
36ed4f51 | 8507 | PyObject * obj1 = 0 ; |
d55e5bfc | 8508 | char *kwnames[] = { |
36ed4f51 | 8509 | (char *) "self",(char *) "facename", NULL |
d55e5bfc RD |
8510 | }; |
8511 | ||
36ed4f51 RD |
8512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; |
8513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 8515 | { |
36ed4f51 RD |
8516 | arg2 = wxString_in_helper(obj1); |
8517 | if (arg2 == NULL) SWIG_fail; | |
8518 | temp2 = true; | |
8519 | } | |
8520 | if (arg1) (arg1)->facename = *arg2; | |
8521 | ||
8522 | Py_INCREF(Py_None); resultobj = Py_None; | |
8523 | { | |
8524 | if (temp2) | |
8525 | delete arg2; | |
d55e5bfc | 8526 | } |
d55e5bfc RD |
8527 | return resultobj; |
8528 | fail: | |
36ed4f51 RD |
8529 | { |
8530 | if (temp2) | |
8531 | delete arg2; | |
8532 | } | |
d55e5bfc RD |
8533 | return NULL; |
8534 | } | |
8535 | ||
8536 | ||
36ed4f51 | 8537 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8538 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8539 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8540 | wxString *result; | |
5e483524 RD |
8541 | PyObject * obj0 = 0 ; |
8542 | char *kwnames[] = { | |
8543 | (char *) "self", NULL | |
8544 | }; | |
8545 | ||
36ed4f51 RD |
8546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; |
8547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8549 | result = (wxString *)& ((arg1)->facename); | |
8550 | ||
5e483524 | 8551 | { |
36ed4f51 RD |
8552 | #if wxUSE_UNICODE |
8553 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8554 | #else | |
8555 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8556 | #endif | |
5e483524 RD |
8557 | } |
8558 | return resultobj; | |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
36ed4f51 | 8564 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8565 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8566 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8567 | wxFontEncoding arg2 ; | |
5e483524 | 8568 | PyObject * obj0 = 0 ; |
36ed4f51 | 8569 | PyObject * obj1 = 0 ; |
5e483524 | 8570 | char *kwnames[] = { |
36ed4f51 | 8571 | (char *) "self",(char *) "encoding", NULL |
5e483524 RD |
8572 | }; |
8573 | ||
36ed4f51 RD |
8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
8575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e483524 | 8577 | { |
32fe5131 | 8578 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 | 8579 | if (SWIG_arg_fail(2)) SWIG_fail; |
5e483524 | 8580 | } |
32fe5131 | 8581 | if (arg1) (arg1)->encoding = arg2; |
36ed4f51 RD |
8582 | |
8583 | Py_INCREF(Py_None); resultobj = Py_None; | |
5e483524 RD |
8584 | return resultobj; |
8585 | fail: | |
8586 | return NULL; | |
8587 | } | |
8588 | ||
8589 | ||
36ed4f51 | 8590 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8591 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8592 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8593 | wxFontEncoding result; | |
d55e5bfc RD |
8594 | PyObject * obj0 = 0 ; |
8595 | char *kwnames[] = { | |
8596 | (char *) "self", NULL | |
8597 | }; | |
8598 | ||
36ed4f51 RD |
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; |
8600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8602 | result = (wxFontEncoding) ((arg1)->encoding); | |
8603 | ||
8604 | resultobj = SWIG_From_int((result)); | |
d55e5bfc RD |
8605 | return resultobj; |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
36ed4f51 | 8611 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8612 | PyObject *resultobj = NULL; |
36ed4f51 | 8613 | wxNativeEncodingInfo *result; |
d55e5bfc | 8614 | char *kwnames[] = { |
36ed4f51 | 8615 | NULL |
d55e5bfc RD |
8616 | }; |
8617 | ||
36ed4f51 | 8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; |
d55e5bfc RD |
8619 | { |
8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8621 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); |
d55e5bfc RD |
8622 | |
8623 | wxPyEndAllowThreads(__tstate); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | } | |
36ed4f51 | 8626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d55e5bfc RD |
8627 | return resultobj; |
8628 | fail: | |
8629 | return NULL; | |
8630 | } | |
8631 | ||
8632 | ||
36ed4f51 | 8633 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8634 | PyObject *resultobj = NULL; |
36ed4f51 | 8635 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d55e5bfc RD |
8636 | PyObject * obj0 = 0 ; |
8637 | char *kwnames[] = { | |
8638 | (char *) "self", NULL | |
8639 | }; | |
8640 | ||
36ed4f51 RD |
8641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; |
8642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8644 | { |
8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8646 | delete arg1; |
d55e5bfc RD |
8647 | |
8648 | wxPyEndAllowThreads(__tstate); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
36ed4f51 | 8651 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8652 | return resultobj; |
8653 | fail: | |
8654 | return NULL; | |
8655 | } | |
8656 | ||
8657 | ||
36ed4f51 | 8658 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8659 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8660 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8661 | wxString *arg2 = 0 ; | |
d55e5bfc | 8662 | bool result; |
36ed4f51 | 8663 | bool temp2 = false ; |
d55e5bfc | 8664 | PyObject * obj0 = 0 ; |
36ed4f51 | 8665 | PyObject * obj1 = 0 ; |
d55e5bfc | 8666 | char *kwnames[] = { |
36ed4f51 | 8667 | (char *) "self",(char *) "s", NULL |
d55e5bfc RD |
8668 | }; |
8669 | ||
36ed4f51 RD |
8670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8673 | { | |
8674 | arg2 = wxString_in_helper(obj1); | |
8675 | if (arg2 == NULL) SWIG_fail; | |
8676 | temp2 = true; | |
8677 | } | |
d55e5bfc RD |
8678 | { |
8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8680 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d55e5bfc RD |
8681 | |
8682 | wxPyEndAllowThreads(__tstate); | |
8683 | if (PyErr_Occurred()) SWIG_fail; | |
8684 | } | |
8685 | { | |
8686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8687 | } | |
36ed4f51 RD |
8688 | { |
8689 | if (temp2) | |
8690 | delete arg2; | |
8691 | } | |
d55e5bfc RD |
8692 | return resultobj; |
8693 | fail: | |
36ed4f51 RD |
8694 | { |
8695 | if (temp2) | |
8696 | delete arg2; | |
8697 | } | |
d55e5bfc RD |
8698 | return NULL; |
8699 | } | |
8700 | ||
8701 | ||
36ed4f51 | 8702 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8703 | PyObject *resultobj = NULL; |
36ed4f51 | 8704 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d55e5bfc RD |
8705 | wxString result; |
8706 | PyObject * obj0 = 0 ; | |
8707 | char *kwnames[] = { | |
8708 | (char *) "self", NULL | |
8709 | }; | |
8710 | ||
36ed4f51 RD |
8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; |
8712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8714 | { |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8716 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); |
d55e5bfc RD |
8717 | |
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | { | |
8722 | #if wxUSE_UNICODE | |
8723 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8724 | #else | |
8725 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8726 | #endif | |
8727 | } | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
36ed4f51 RD |
8734 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
8735 | PyObject *obj; | |
8736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8737 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
8738 | Py_INCREF(obj); | |
8739 | return Py_BuildValue((char *)""); | |
8740 | } | |
8741 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 8742 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8743 | wxFontEncoding arg1 ; |
8744 | wxNativeEncodingInfo *result; | |
d55e5bfc RD |
8745 | PyObject * obj0 = 0 ; |
8746 | char *kwnames[] = { | |
36ed4f51 | 8747 | (char *) "encoding", NULL |
d55e5bfc RD |
8748 | }; |
8749 | ||
36ed4f51 RD |
8750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
8751 | { | |
32fe5131 | 8752 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 RD |
8753 | if (SWIG_arg_fail(1)) SWIG_fail; |
8754 | } | |
d55e5bfc RD |
8755 | { |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8757 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); |
d55e5bfc RD |
8758 | |
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
36ed4f51 | 8762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d55e5bfc RD |
8763 | return resultobj; |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
36ed4f51 | 8769 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8770 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8771 | wxNativeEncodingInfo *arg1 = 0 ; |
8772 | bool result; | |
d55e5bfc RD |
8773 | PyObject * obj0 = 0 ; |
8774 | char *kwnames[] = { | |
36ed4f51 | 8775 | (char *) "info", NULL |
d55e5bfc RD |
8776 | }; |
8777 | ||
36ed4f51 RD |
8778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; |
8779 | { | |
8780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8782 | if (arg1 == NULL) { | |
8783 | SWIG_null_ref("wxNativeEncodingInfo"); | |
8784 | } | |
8785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8786 | } | |
d55e5bfc RD |
8787 | { |
8788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8789 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); |
d55e5bfc RD |
8790 | |
8791 | wxPyEndAllowThreads(__tstate); | |
8792 | if (PyErr_Occurred()) SWIG_fail; | |
8793 | } | |
36ed4f51 RD |
8794 | { |
8795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8796 | } | |
d55e5bfc RD |
8797 | return resultobj; |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
36ed4f51 | 8803 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8804 | PyObject *resultobj = NULL; |
36ed4f51 | 8805 | wxFontMapper *result; |
d55e5bfc | 8806 | char *kwnames[] = { |
36ed4f51 | 8807 | NULL |
d55e5bfc RD |
8808 | }; |
8809 | ||
36ed4f51 | 8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; |
d55e5bfc RD |
8811 | { |
8812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8813 | result = (wxFontMapper *)new wxFontMapper(); |
d55e5bfc RD |
8814 | |
8815 | wxPyEndAllowThreads(__tstate); | |
8816 | if (PyErr_Occurred()) SWIG_fail; | |
8817 | } | |
36ed4f51 | 8818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d55e5bfc RD |
8819 | return resultobj; |
8820 | fail: | |
8821 | return NULL; | |
8822 | } | |
8823 | ||
8824 | ||
36ed4f51 | 8825 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8826 | PyObject *resultobj = NULL; |
36ed4f51 | 8827 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
d55e5bfc RD |
8828 | PyObject * obj0 = 0 ; |
8829 | char *kwnames[] = { | |
8830 | (char *) "self", NULL | |
8831 | }; | |
8832 | ||
36ed4f51 RD |
8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; |
8834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8836 | { |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8838 | delete arg1; |
d55e5bfc RD |
8839 | |
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
36ed4f51 | 8843 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
8844 | return resultobj; |
8845 | fail: | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
36ed4f51 | 8850 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8851 | PyObject *resultobj = NULL; |
36ed4f51 | 8852 | wxFontMapper *result; |
d55e5bfc | 8853 | char *kwnames[] = { |
36ed4f51 | 8854 | NULL |
d55e5bfc RD |
8855 | }; |
8856 | ||
36ed4f51 | 8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; |
d55e5bfc RD |
8858 | { |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8860 | result = (wxFontMapper *)wxFontMapper::Get(); |
d55e5bfc RD |
8861 | |
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
36ed4f51 | 8865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d55e5bfc RD |
8866 | return resultobj; |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
36ed4f51 | 8872 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8873 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8874 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8875 | wxFontMapper *result; | |
d55e5bfc | 8876 | PyObject * obj0 = 0 ; |
d55e5bfc | 8877 | char *kwnames[] = { |
36ed4f51 | 8878 | (char *) "mapper", NULL |
d55e5bfc RD |
8879 | }; |
8880 | ||
36ed4f51 RD |
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; |
8882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8884 | { |
8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8886 | result = (wxFontMapper *)wxFontMapper::Set(arg1); |
d55e5bfc RD |
8887 | |
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
36ed4f51 | 8891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d55e5bfc RD |
8892 | return resultobj; |
8893 | fail: | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
36ed4f51 | 8898 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8899 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8900 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8901 | wxString *arg2 = 0 ; | |
8902 | bool arg3 = (bool) true ; | |
8903 | wxFontEncoding result; | |
8904 | bool temp2 = false ; | |
5e483524 RD |
8905 | PyObject * obj0 = 0 ; |
8906 | PyObject * obj1 = 0 ; | |
36ed4f51 | 8907 | PyObject * obj2 = 0 ; |
5e483524 | 8908 | char *kwnames[] = { |
36ed4f51 | 8909 | (char *) "self",(char *) "charset",(char *) "interactive", NULL |
5e483524 RD |
8910 | }; |
8911 | ||
36ed4f51 RD |
8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e483524 | 8915 | { |
36ed4f51 RD |
8916 | arg2 = wxString_in_helper(obj1); |
8917 | if (arg2 == NULL) SWIG_fail; | |
8918 | temp2 = true; | |
8919 | } | |
8920 | if (obj2) { | |
8921 | { | |
32fe5131 | 8922 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
36ed4f51 RD |
8923 | if (SWIG_arg_fail(3)) SWIG_fail; |
8924 | } | |
5e483524 RD |
8925 | } |
8926 | { | |
8927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8928 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); |
5e483524 RD |
8929 | |
8930 | wxPyEndAllowThreads(__tstate); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
36ed4f51 RD |
8933 | resultobj = SWIG_From_int((result)); |
8934 | { | |
8935 | if (temp2) | |
8936 | delete arg2; | |
8937 | } | |
5e483524 RD |
8938 | return resultobj; |
8939 | fail: | |
36ed4f51 RD |
8940 | { |
8941 | if (temp2) | |
8942 | delete arg2; | |
8943 | } | |
5e483524 RD |
8944 | return NULL; |
8945 | } | |
8946 | ||
8947 | ||
36ed4f51 | 8948 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8949 | PyObject *resultobj = NULL; |
36ed4f51 | 8950 | size_t result; |
d55e5bfc | 8951 | char *kwnames[] = { |
36ed4f51 | 8952 | NULL |
d55e5bfc RD |
8953 | }; |
8954 | ||
36ed4f51 | 8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; |
d55e5bfc RD |
8956 | { |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8958 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); |
d55e5bfc RD |
8959 | |
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
d55e5bfc | 8963 | { |
32fe5131 | 8964 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
d55e5bfc | 8965 | } |
d55e5bfc RD |
8966 | return resultobj; |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
36ed4f51 | 8972 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8973 | PyObject *resultobj = NULL; |
36ed4f51 RD |
8974 | size_t arg1 ; |
8975 | wxFontEncoding result; | |
d55e5bfc | 8976 | PyObject * obj0 = 0 ; |
d55e5bfc | 8977 | char *kwnames[] = { |
36ed4f51 | 8978 | (char *) "n", NULL |
d55e5bfc RD |
8979 | }; |
8980 | ||
36ed4f51 RD |
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; |
8982 | { | |
32fe5131 | 8983 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
36ed4f51 RD |
8984 | if (SWIG_arg_fail(1)) SWIG_fail; |
8985 | } | |
d55e5bfc RD |
8986 | { |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 8988 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); |
d55e5bfc RD |
8989 | |
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
36ed4f51 | 8993 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
8994 | return resultobj; |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
36ed4f51 | 9000 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9001 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9002 | wxFontEncoding arg1 ; |
9003 | wxString result; | |
d55e5bfc | 9004 | PyObject * obj0 = 0 ; |
d55e5bfc | 9005 | char *kwnames[] = { |
36ed4f51 | 9006 | (char *) "encoding", NULL |
d55e5bfc RD |
9007 | }; |
9008 | ||
36ed4f51 | 9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
d55e5bfc | 9010 | { |
32fe5131 | 9011 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 | 9012 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
9013 | } |
9014 | { | |
9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9016 | result = wxFontMapper::GetEncodingName(arg1); |
d55e5bfc RD |
9017 | |
9018 | wxPyEndAllowThreads(__tstate); | |
9019 | if (PyErr_Occurred()) SWIG_fail; | |
9020 | } | |
d55e5bfc | 9021 | { |
36ed4f51 RD |
9022 | #if wxUSE_UNICODE |
9023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9024 | #else | |
9025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9026 | #endif | |
d55e5bfc RD |
9027 | } |
9028 | return resultobj; | |
9029 | fail: | |
d55e5bfc RD |
9030 | return NULL; |
9031 | } | |
9032 | ||
9033 | ||
36ed4f51 | 9034 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9035 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9036 | wxFontEncoding arg1 ; |
9037 | wxString result; | |
d55e5bfc | 9038 | PyObject * obj0 = 0 ; |
d55e5bfc | 9039 | char *kwnames[] = { |
36ed4f51 | 9040 | (char *) "encoding", NULL |
d55e5bfc RD |
9041 | }; |
9042 | ||
36ed4f51 | 9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
d55e5bfc | 9044 | { |
32fe5131 | 9045 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 | 9046 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc | 9047 | } |
d55e5bfc RD |
9048 | { |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9050 | result = wxFontMapper::GetEncodingDescription(arg1); |
d55e5bfc RD |
9051 | |
9052 | wxPyEndAllowThreads(__tstate); | |
9053 | if (PyErr_Occurred()) SWIG_fail; | |
9054 | } | |
36ed4f51 RD |
9055 | { |
9056 | #if wxUSE_UNICODE | |
9057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9058 | #else | |
9059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9060 | #endif | |
9061 | } | |
d55e5bfc RD |
9062 | return resultobj; |
9063 | fail: | |
9064 | return NULL; | |
9065 | } | |
9066 | ||
9067 | ||
36ed4f51 | 9068 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9069 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9070 | wxString *arg1 = 0 ; |
9071 | wxFontEncoding result; | |
9072 | bool temp1 = false ; | |
d55e5bfc | 9073 | PyObject * obj0 = 0 ; |
d55e5bfc | 9074 | char *kwnames[] = { |
36ed4f51 | 9075 | (char *) "name", NULL |
d55e5bfc RD |
9076 | }; |
9077 | ||
36ed4f51 RD |
9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; |
9079 | { | |
9080 | arg1 = wxString_in_helper(obj0); | |
9081 | if (arg1 == NULL) SWIG_fail; | |
9082 | temp1 = true; | |
d55e5bfc RD |
9083 | } |
9084 | { | |
9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9086 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); |
d55e5bfc RD |
9087 | |
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
36ed4f51 RD |
9091 | resultobj = SWIG_From_int((result)); |
9092 | { | |
9093 | if (temp1) | |
9094 | delete arg1; | |
9095 | } | |
d55e5bfc RD |
9096 | return resultobj; |
9097 | fail: | |
36ed4f51 RD |
9098 | { |
9099 | if (temp1) | |
9100 | delete arg1; | |
9101 | } | |
d55e5bfc RD |
9102 | return NULL; |
9103 | } | |
9104 | ||
9105 | ||
36ed4f51 | 9106 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9107 | PyObject *resultobj = NULL; |
36ed4f51 | 9108 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
d55e5bfc | 9109 | wxString *arg2 = 0 ; |
b411df4a | 9110 | bool temp2 = false ; |
d55e5bfc RD |
9111 | PyObject * obj0 = 0 ; |
9112 | PyObject * obj1 = 0 ; | |
9113 | char *kwnames[] = { | |
36ed4f51 | 9114 | (char *) "self",(char *) "prefix", NULL |
d55e5bfc RD |
9115 | }; |
9116 | ||
36ed4f51 RD |
9117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; |
9118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9120 | { |
9121 | arg2 = wxString_in_helper(obj1); | |
9122 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9123 | temp2 = true; |
d55e5bfc RD |
9124 | } |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9127 | (arg1)->SetConfigPath((wxString const &)*arg2); |
d55e5bfc RD |
9128 | |
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | Py_INCREF(Py_None); resultobj = Py_None; | |
9133 | { | |
9134 | if (temp2) | |
9135 | delete arg2; | |
9136 | } | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | { | |
9140 | if (temp2) | |
9141 | delete arg2; | |
9142 | } | |
9143 | return NULL; | |
9144 | } | |
9145 | ||
9146 | ||
36ed4f51 | 9147 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9148 | PyObject *resultobj = NULL; |
d55e5bfc | 9149 | wxString result; |
d55e5bfc | 9150 | char *kwnames[] = { |
36ed4f51 | 9151 | NULL |
d55e5bfc RD |
9152 | }; |
9153 | ||
36ed4f51 | 9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; |
d55e5bfc RD |
9155 | { |
9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9157 | result = wxFontMapper::GetDefaultConfigPath(); |
d55e5bfc RD |
9158 | |
9159 | wxPyEndAllowThreads(__tstate); | |
9160 | if (PyErr_Occurred()) SWIG_fail; | |
9161 | } | |
9162 | { | |
9163 | #if wxUSE_UNICODE | |
9164 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9165 | #else | |
9166 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9167 | #endif | |
9168 | } | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
36ed4f51 | 9175 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9176 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9177 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9178 | wxFontEncoding arg2 ; | |
9179 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9180 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9181 | bool arg4 = (bool) true ; | |
9182 | PyObject *result; | |
9183 | bool temp3 = false ; | |
d55e5bfc | 9184 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
9185 | PyObject * obj1 = 0 ; |
9186 | PyObject * obj2 = 0 ; | |
9187 | PyObject * obj3 = 0 ; | |
d55e5bfc | 9188 | char *kwnames[] = { |
36ed4f51 | 9189 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL |
d55e5bfc RD |
9190 | }; |
9191 | ||
36ed4f51 RD |
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9195 | { | |
32fe5131 | 9196 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 RD |
9197 | if (SWIG_arg_fail(2)) SWIG_fail; |
9198 | } | |
9199 | if (obj2) { | |
9200 | { | |
9201 | arg3 = wxString_in_helper(obj2); | |
9202 | if (arg3 == NULL) SWIG_fail; | |
9203 | temp3 = true; | |
9204 | } | |
9205 | } | |
9206 | if (obj3) { | |
9207 | { | |
32fe5131 | 9208 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
36ed4f51 RD |
9209 | if (SWIG_arg_fail(4)) SWIG_fail; |
9210 | } | |
9211 | } | |
d55e5bfc RD |
9212 | { |
9213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9214 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); |
d55e5bfc RD |
9215 | |
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
36ed4f51 | 9219 | resultobj = result; |
d55e5bfc | 9220 | { |
36ed4f51 RD |
9221 | if (temp3) |
9222 | delete arg3; | |
d55e5bfc RD |
9223 | } |
9224 | return resultobj; | |
9225 | fail: | |
36ed4f51 RD |
9226 | { |
9227 | if (temp3) | |
9228 | delete arg3; | |
9229 | } | |
d55e5bfc RD |
9230 | return NULL; |
9231 | } | |
9232 | ||
9233 | ||
36ed4f51 | 9234 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9235 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9236 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9237 | wxFontEncoding arg2 ; | |
9238 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9239 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9240 | bool result; | |
9241 | bool temp3 = false ; | |
d55e5bfc | 9242 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
9243 | PyObject * obj1 = 0 ; |
9244 | PyObject * obj2 = 0 ; | |
d55e5bfc | 9245 | char *kwnames[] = { |
36ed4f51 | 9246 | (char *) "self",(char *) "encoding",(char *) "facename", NULL |
d55e5bfc RD |
9247 | }; |
9248 | ||
36ed4f51 RD |
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9252 | { |
32fe5131 | 9253 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 | 9254 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 9255 | } |
36ed4f51 RD |
9256 | if (obj2) { |
9257 | { | |
9258 | arg3 = wxString_in_helper(obj2); | |
9259 | if (arg3 == NULL) SWIG_fail; | |
9260 | temp3 = true; | |
9261 | } | |
d55e5bfc RD |
9262 | } |
9263 | { | |
9264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9265 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); |
d55e5bfc RD |
9266 | |
9267 | wxPyEndAllowThreads(__tstate); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | } | |
d55e5bfc | 9270 | { |
36ed4f51 | 9271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
9272 | } |
9273 | { | |
36ed4f51 RD |
9274 | if (temp3) |
9275 | delete arg3; | |
d55e5bfc RD |
9276 | } |
9277 | return resultobj; | |
9278 | fail: | |
36ed4f51 RD |
9279 | { |
9280 | if (temp3) | |
9281 | delete arg3; | |
9282 | } | |
d55e5bfc RD |
9283 | return NULL; |
9284 | } | |
9285 | ||
9286 | ||
36ed4f51 | 9287 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9288 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9289 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9290 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9291 | PyObject * obj0 = 0 ; | |
9292 | PyObject * obj1 = 0 ; | |
d55e5bfc | 9293 | char *kwnames[] = { |
36ed4f51 | 9294 | (char *) "self",(char *) "parent", NULL |
d55e5bfc RD |
9295 | }; |
9296 | ||
36ed4f51 RD |
9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; |
9298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9300 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9302 | { |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9304 | (arg1)->SetDialogParent(arg2); |
d55e5bfc RD |
9305 | |
9306 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9307 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9308 | } |
36ed4f51 | 9309 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
9310 | return resultobj; |
9311 | fail: | |
9312 | return NULL; | |
9313 | } | |
9314 | ||
9315 | ||
36ed4f51 | 9316 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9317 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9318 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9319 | wxString *arg2 = 0 ; | |
9320 | bool temp2 = false ; | |
d55e5bfc | 9321 | PyObject * obj0 = 0 ; |
36ed4f51 | 9322 | PyObject * obj1 = 0 ; |
d55e5bfc | 9323 | char *kwnames[] = { |
36ed4f51 | 9324 | (char *) "self",(char *) "title", NULL |
d55e5bfc RD |
9325 | }; |
9326 | ||
36ed4f51 RD |
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; |
9328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9330 | { | |
9331 | arg2 = wxString_in_helper(obj1); | |
9332 | if (arg2 == NULL) SWIG_fail; | |
9333 | temp2 = true; | |
9334 | } | |
d55e5bfc RD |
9335 | { |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9337 | (arg1)->SetDialogTitle((wxString const &)*arg2); |
d55e5bfc RD |
9338 | |
9339 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9340 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9341 | } |
9342 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
9343 | { |
9344 | if (temp2) | |
9345 | delete arg2; | |
9346 | } | |
d55e5bfc RD |
9347 | return resultobj; |
9348 | fail: | |
36ed4f51 RD |
9349 | { |
9350 | if (temp2) | |
9351 | delete arg2; | |
9352 | } | |
d55e5bfc RD |
9353 | return NULL; |
9354 | } | |
9355 | ||
9356 | ||
36ed4f51 | 9357 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9358 | PyObject *obj; |
9359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36ed4f51 | 9360 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); |
d55e5bfc RD |
9361 | Py_INCREF(obj); |
9362 | return Py_BuildValue((char *)""); | |
9363 | } | |
36ed4f51 | 9364 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9365 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9366 | int arg1 ; |
9367 | int arg2 ; | |
9368 | int arg3 ; | |
9369 | int arg4 ; | |
9370 | bool arg5 = (bool) false ; | |
9371 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
9372 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9373 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9374 | wxFont *result; | |
9375 | bool temp6 = false ; | |
9376 | PyObject * obj0 = 0 ; | |
9377 | PyObject * obj1 = 0 ; | |
9378 | PyObject * obj2 = 0 ; | |
9379 | PyObject * obj3 = 0 ; | |
9380 | PyObject * obj4 = 0 ; | |
9381 | PyObject * obj5 = 0 ; | |
9382 | PyObject * obj6 = 0 ; | |
d55e5bfc | 9383 | char *kwnames[] = { |
36ed4f51 | 9384 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL |
d55e5bfc RD |
9385 | }; |
9386 | ||
36ed4f51 RD |
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9388 | { | |
32fe5131 | 9389 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
9390 | if (SWIG_arg_fail(1)) SWIG_fail; |
9391 | } | |
9392 | { | |
32fe5131 | 9393 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
9394 | if (SWIG_arg_fail(2)) SWIG_fail; |
9395 | } | |
9396 | { | |
32fe5131 | 9397 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
9398 | if (SWIG_arg_fail(3)) SWIG_fail; |
9399 | } | |
9400 | { | |
32fe5131 | 9401 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
9402 | if (SWIG_arg_fail(4)) SWIG_fail; |
9403 | } | |
9404 | if (obj4) { | |
9405 | { | |
32fe5131 | 9406 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
36ed4f51 RD |
9407 | if (SWIG_arg_fail(5)) SWIG_fail; |
9408 | } | |
9409 | } | |
9410 | if (obj5) { | |
9411 | { | |
9412 | arg6 = wxString_in_helper(obj5); | |
9413 | if (arg6 == NULL) SWIG_fail; | |
9414 | temp6 = true; | |
9415 | } | |
9416 | } | |
9417 | if (obj6) { | |
9418 | { | |
32fe5131 | 9419 | arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6)); |
36ed4f51 RD |
9420 | if (SWIG_arg_fail(7)) SWIG_fail; |
9421 | } | |
9422 | } | |
d55e5bfc | 9423 | { |
0439c23b | 9424 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 9425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9426 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); |
d55e5bfc RD |
9427 | |
9428 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9429 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9430 | } |
36ed4f51 RD |
9431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
9432 | { | |
9433 | if (temp6) | |
9434 | delete arg6; | |
9435 | } | |
d55e5bfc RD |
9436 | return resultobj; |
9437 | fail: | |
36ed4f51 RD |
9438 | { |
9439 | if (temp6) | |
9440 | delete arg6; | |
9441 | } | |
d55e5bfc RD |
9442 | return NULL; |
9443 | } | |
9444 | ||
9445 | ||
36ed4f51 | 9446 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9447 | PyObject *resultobj = NULL; |
36ed4f51 | 9448 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc RD |
9449 | PyObject * obj0 = 0 ; |
9450 | char *kwnames[] = { | |
9451 | (char *) "self", NULL | |
9452 | }; | |
9453 | ||
36ed4f51 RD |
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; |
9455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9457 | { |
9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9459 | delete arg1; | |
9460 | ||
9461 | wxPyEndAllowThreads(__tstate); | |
9462 | if (PyErr_Occurred()) SWIG_fail; | |
9463 | } | |
9464 | Py_INCREF(Py_None); resultobj = Py_None; | |
9465 | return resultobj; | |
9466 | fail: | |
9467 | return NULL; | |
9468 | } | |
9469 | ||
9470 | ||
36ed4f51 | 9471 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9472 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9473 | wxNativeFontInfo *arg1 = 0 ; |
9474 | wxFont *result; | |
d55e5bfc | 9475 | PyObject * obj0 = 0 ; |
d55e5bfc | 9476 | char *kwnames[] = { |
36ed4f51 | 9477 | (char *) "info", NULL |
d55e5bfc RD |
9478 | }; |
9479 | ||
36ed4f51 RD |
9480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; |
9481 | { | |
9482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
9483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9484 | if (arg1 == NULL) { | |
9485 | SWIG_null_ref("wxNativeFontInfo"); | |
9486 | } | |
9487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9488 | } | |
d55e5bfc | 9489 | { |
36ed4f51 | 9490 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 9492 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); |
d55e5bfc RD |
9493 | |
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | } | |
36ed4f51 | 9497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d55e5bfc RD |
9498 | return resultobj; |
9499 | fail: | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
36ed4f51 | 9504 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9505 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9506 | wxString *arg1 = 0 ; |
9507 | wxFont *result; | |
9508 | bool temp1 = false ; | |
d55e5bfc | 9509 | PyObject * obj0 = 0 ; |
d55e5bfc | 9510 | char *kwnames[] = { |
36ed4f51 | 9511 | (char *) "info", NULL |
d55e5bfc RD |
9512 | }; |
9513 | ||
36ed4f51 RD |
9514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; |
9515 | { | |
9516 | arg1 = wxString_in_helper(obj0); | |
9517 | if (arg1 == NULL) SWIG_fail; | |
9518 | temp1 = true; | |
d55e5bfc RD |
9519 | } |
9520 | { | |
36ed4f51 | 9521 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 9523 | result = (wxFont *)new_wxFont((wxString const &)*arg1); |
d55e5bfc RD |
9524 | |
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
36ed4f51 | 9528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d55e5bfc | 9529 | { |
36ed4f51 RD |
9530 | if (temp1) |
9531 | delete arg1; | |
d55e5bfc RD |
9532 | } |
9533 | return resultobj; | |
9534 | fail: | |
36ed4f51 RD |
9535 | { |
9536 | if (temp1) | |
9537 | delete arg1; | |
9538 | } | |
d55e5bfc RD |
9539 | return NULL; |
9540 | } | |
9541 | ||
9542 | ||
a97cefba | 9543 | static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9544 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9545 | int arg1 ; |
9546 | wxFontFamily arg2 ; | |
9547 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9548 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9549 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9550 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9551 | wxFont *result; | |
9552 | bool temp4 = false ; | |
d55e5bfc RD |
9553 | PyObject * obj0 = 0 ; |
9554 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
9555 | PyObject * obj2 = 0 ; |
9556 | PyObject * obj3 = 0 ; | |
9557 | PyObject * obj4 = 0 ; | |
d55e5bfc | 9558 | char *kwnames[] = { |
36ed4f51 | 9559 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL |
d55e5bfc RD |
9560 | }; |
9561 | ||
a97cefba | 9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
36ed4f51 | 9563 | { |
32fe5131 | 9564 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 | 9565 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc RD |
9566 | } |
9567 | { | |
32fe5131 | 9568 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
36ed4f51 RD |
9569 | if (SWIG_arg_fail(2)) SWIG_fail; |
9570 | } | |
9571 | if (obj2) { | |
9572 | { | |
32fe5131 | 9573 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
9574 | if (SWIG_arg_fail(3)) SWIG_fail; |
9575 | } | |
9576 | } | |
9577 | if (obj3) { | |
9578 | { | |
9579 | arg4 = wxString_in_helper(obj3); | |
9580 | if (arg4 == NULL) SWIG_fail; | |
9581 | temp4 = true; | |
9582 | } | |
9583 | } | |
9584 | if (obj4) { | |
9585 | { | |
32fe5131 | 9586 | arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4)); |
36ed4f51 RD |
9587 | if (SWIG_arg_fail(5)) SWIG_fail; |
9588 | } | |
9589 | } | |
9590 | { | |
9591 | if (!wxPyCheckForApp()) SWIG_fail; | |
9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9593 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); |
d55e5bfc RD |
9594 | |
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
36ed4f51 | 9598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d55e5bfc | 9599 | { |
36ed4f51 RD |
9600 | if (temp4) |
9601 | delete arg4; | |
d55e5bfc RD |
9602 | } |
9603 | return resultobj; | |
9604 | fail: | |
9605 | { | |
36ed4f51 RD |
9606 | if (temp4) |
9607 | delete arg4; | |
d55e5bfc RD |
9608 | } |
9609 | return NULL; | |
9610 | } | |
9611 | ||
9612 | ||
36ed4f51 | 9613 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9614 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9615 | wxSize *arg1 = 0 ; |
9616 | int arg2 ; | |
9617 | int arg3 ; | |
9618 | int arg4 ; | |
9619 | bool arg5 = (bool) false ; | |
9620 | wxString const &arg6_defvalue = wxEmptyString ; | |
9621 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9622 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9623 | wxFont *result; | |
9624 | wxSize temp1 ; | |
9625 | bool temp6 = false ; | |
d55e5bfc | 9626 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
9627 | PyObject * obj1 = 0 ; |
9628 | PyObject * obj2 = 0 ; | |
9629 | PyObject * obj3 = 0 ; | |
9630 | PyObject * obj4 = 0 ; | |
9631 | PyObject * obj5 = 0 ; | |
9632 | PyObject * obj6 = 0 ; | |
d55e5bfc | 9633 | char *kwnames[] = { |
36ed4f51 | 9634 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL |
d55e5bfc RD |
9635 | }; |
9636 | ||
36ed4f51 RD |
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9638 | { | |
9639 | arg1 = &temp1; | |
9640 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9641 | } | |
9642 | { | |
32fe5131 | 9643 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
9644 | if (SWIG_arg_fail(2)) SWIG_fail; |
9645 | } | |
9646 | { | |
32fe5131 | 9647 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
9648 | if (SWIG_arg_fail(3)) SWIG_fail; |
9649 | } | |
9650 | { | |
32fe5131 | 9651 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
9652 | if (SWIG_arg_fail(4)) SWIG_fail; |
9653 | } | |
9654 | if (obj4) { | |
9655 | { | |
32fe5131 | 9656 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
36ed4f51 RD |
9657 | if (SWIG_arg_fail(5)) SWIG_fail; |
9658 | } | |
9659 | } | |
9660 | if (obj5) { | |
9661 | { | |
9662 | arg6 = wxString_in_helper(obj5); | |
9663 | if (arg6 == NULL) SWIG_fail; | |
9664 | temp6 = true; | |
9665 | } | |
9666 | } | |
9667 | if (obj6) { | |
9668 | { | |
32fe5131 | 9669 | arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6)); |
36ed4f51 RD |
9670 | if (SWIG_arg_fail(7)) SWIG_fail; |
9671 | } | |
9672 | } | |
d55e5bfc | 9673 | { |
36ed4f51 | 9674 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 9675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9676 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); |
d55e5bfc RD |
9677 | |
9678 | wxPyEndAllowThreads(__tstate); | |
9679 | if (PyErr_Occurred()) SWIG_fail; | |
9680 | } | |
36ed4f51 RD |
9681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
9682 | { | |
9683 | if (temp6) | |
9684 | delete arg6; | |
9685 | } | |
d55e5bfc RD |
9686 | return resultobj; |
9687 | fail: | |
36ed4f51 RD |
9688 | { |
9689 | if (temp6) | |
9690 | delete arg6; | |
9691 | } | |
d55e5bfc RD |
9692 | return NULL; |
9693 | } | |
9694 | ||
9695 | ||
a97cefba | 9696 | static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9697 | PyObject *resultobj = NULL; |
a97cefba RD |
9698 | wxSize *arg1 = 0 ; |
9699 | wxFontFamily arg2 ; | |
9700 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9701 | wxString const &arg4_defvalue = wxEmptyString ; | |
9702 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9703 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9704 | wxFont *result; | |
9705 | wxSize temp1 ; | |
9706 | bool temp4 = false ; | |
9707 | PyObject * obj0 = 0 ; | |
9708 | PyObject * obj1 = 0 ; | |
9709 | PyObject * obj2 = 0 ; | |
9710 | PyObject * obj3 = 0 ; | |
9711 | PyObject * obj4 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9717 | { | |
9718 | arg1 = &temp1; | |
9719 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9720 | } | |
9721 | { | |
32fe5131 | 9722 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
a97cefba RD |
9723 | if (SWIG_arg_fail(2)) SWIG_fail; |
9724 | } | |
9725 | if (obj2) { | |
9726 | { | |
32fe5131 | 9727 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
a97cefba RD |
9728 | if (SWIG_arg_fail(3)) SWIG_fail; |
9729 | } | |
9730 | } | |
9731 | if (obj3) { | |
9732 | { | |
9733 | arg4 = wxString_in_helper(obj3); | |
9734 | if (arg4 == NULL) SWIG_fail; | |
9735 | temp4 = true; | |
9736 | } | |
9737 | } | |
9738 | if (obj4) { | |
9739 | { | |
32fe5131 | 9740 | arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4)); |
a97cefba RD |
9741 | if (SWIG_arg_fail(5)) SWIG_fail; |
9742 | } | |
9743 | } | |
9744 | { | |
9745 | if (!wxPyCheckForApp()) SWIG_fail; | |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9747 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); |
a97cefba RD |
9748 | |
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
9752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
9753 | { | |
9754 | if (temp4) | |
9755 | delete arg4; | |
9756 | } | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | { | |
9760 | if (temp4) | |
9761 | delete arg4; | |
9762 | } | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
36ed4f51 | 9767 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9768 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9769 | wxFont *arg1 = (wxFont *) 0 ; |
9770 | bool result; | |
d55e5bfc RD |
9771 | PyObject * obj0 = 0 ; |
9772 | char *kwnames[] = { | |
9773 | (char *) "self", NULL | |
9774 | }; | |
9775 | ||
36ed4f51 RD |
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; |
9777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9779 | { |
9780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9781 | result = (bool)((wxFont const *)arg1)->Ok(); |
d55e5bfc RD |
9782 | |
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
36ed4f51 RD |
9786 | { |
9787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9788 | } | |
d55e5bfc RD |
9789 | return resultobj; |
9790 | fail: | |
9791 | return NULL; | |
9792 | } | |
9793 | ||
9794 | ||
36ed4f51 | 9795 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9796 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9797 | wxFont *arg1 = (wxFont *) 0 ; |
9798 | wxFont *arg2 = (wxFont *) 0 ; | |
9799 | bool result; | |
d55e5bfc RD |
9800 | PyObject * obj0 = 0 ; |
9801 | PyObject * obj1 = 0 ; | |
9802 | char *kwnames[] = { | |
36ed4f51 | 9803 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
9804 | }; |
9805 | ||
36ed4f51 RD |
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; |
9807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9809 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9810 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9820 | } | |
d55e5bfc RD |
9821 | return resultobj; |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
36ed4f51 | 9827 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9828 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9829 | wxFont *arg1 = (wxFont *) 0 ; |
9830 | wxFont *arg2 = (wxFont *) 0 ; | |
9831 | bool result; | |
d55e5bfc | 9832 | PyObject * obj0 = 0 ; |
36ed4f51 | 9833 | PyObject * obj1 = 0 ; |
d55e5bfc | 9834 | char *kwnames[] = { |
36ed4f51 | 9835 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
9836 | }; |
9837 | ||
36ed4f51 RD |
9838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; |
9839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9841 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9843 | { | |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | } | |
9850 | { | |
9851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9852 | } | |
d55e5bfc RD |
9853 | return resultobj; |
9854 | fail: | |
9855 | return NULL; | |
9856 | } | |
9857 | ||
9858 | ||
36ed4f51 | 9859 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9860 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9861 | wxFont *arg1 = (wxFont *) 0 ; |
9862 | int result; | |
d55e5bfc | 9863 | PyObject * obj0 = 0 ; |
d55e5bfc | 9864 | char *kwnames[] = { |
36ed4f51 | 9865 | (char *) "self", NULL |
d55e5bfc RD |
9866 | }; |
9867 | ||
36ed4f51 RD |
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; |
9869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9871 | { |
36ed4f51 RD |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9873 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
9874 | ||
9875 | wxPyEndAllowThreads(__tstate); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 9877 | } |
d55e5bfc | 9878 | { |
32fe5131 | 9879 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
9880 | } |
9881 | return resultobj; | |
9882 | fail: | |
d55e5bfc RD |
9883 | return NULL; |
9884 | } | |
9885 | ||
9886 | ||
36ed4f51 | 9887 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9888 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9889 | wxFont *arg1 = (wxFont *) 0 ; |
9890 | wxSize result; | |
d55e5bfc RD |
9891 | PyObject * obj0 = 0 ; |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
36ed4f51 RD |
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; |
9897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9899 | { |
36ed4f51 RD |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9901 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | { | |
9907 | wxSize * resultptr; | |
32fe5131 | 9908 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 | 9909 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d55e5bfc RD |
9910 | } |
9911 | return resultobj; | |
9912 | fail: | |
9913 | return NULL; | |
9914 | } | |
9915 | ||
9916 | ||
36ed4f51 | 9917 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9918 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9919 | wxFont *arg1 = (wxFont *) 0 ; |
9920 | bool result; | |
d55e5bfc | 9921 | PyObject * obj0 = 0 ; |
d55e5bfc | 9922 | char *kwnames[] = { |
36ed4f51 | 9923 | (char *) "self", NULL |
d55e5bfc RD |
9924 | }; |
9925 | ||
36ed4f51 RD |
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; |
9927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9929 | { |
36ed4f51 RD |
9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9931 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
9932 | ||
9933 | wxPyEndAllowThreads(__tstate); | |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 9935 | } |
d55e5bfc | 9936 | { |
36ed4f51 | 9937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
9938 | } |
9939 | return resultobj; | |
9940 | fail: | |
d55e5bfc RD |
9941 | return NULL; |
9942 | } | |
9943 | ||
9944 | ||
36ed4f51 | 9945 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9946 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9947 | wxFont *arg1 = (wxFont *) 0 ; |
9948 | int result; | |
d55e5bfc RD |
9949 | PyObject * obj0 = 0 ; |
9950 | char *kwnames[] = { | |
9951 | (char *) "self", NULL | |
9952 | }; | |
9953 | ||
36ed4f51 RD |
9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; |
9955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9957 | { |
36ed4f51 RD |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9959 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | { | |
32fe5131 | 9965 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
9966 | } |
9967 | return resultobj; | |
9968 | fail: | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
36ed4f51 | 9973 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9974 | PyObject *resultobj = NULL; |
36ed4f51 RD |
9975 | wxFont *arg1 = (wxFont *) 0 ; |
9976 | int result; | |
d55e5bfc | 9977 | PyObject * obj0 = 0 ; |
d55e5bfc | 9978 | char *kwnames[] = { |
36ed4f51 | 9979 | (char *) "self", NULL |
d55e5bfc RD |
9980 | }; |
9981 | ||
36ed4f51 RD |
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; |
9983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9985 | { |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9987 | result = (int)((wxFont const *)arg1)->GetStyle(); |
d55e5bfc RD |
9988 | |
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
36ed4f51 | 9992 | { |
32fe5131 | 9993 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 9994 | } |
d55e5bfc RD |
9995 | return resultobj; |
9996 | fail: | |
9997 | return NULL; | |
9998 | } | |
9999 | ||
10000 | ||
36ed4f51 | 10001 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10002 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10003 | wxFont *arg1 = (wxFont *) 0 ; |
10004 | int result; | |
d55e5bfc RD |
10005 | PyObject * obj0 = 0 ; |
10006 | char *kwnames[] = { | |
10007 | (char *) "self", NULL | |
10008 | }; | |
10009 | ||
36ed4f51 RD |
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; |
10011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10013 | { |
10014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10015 | result = (int)((wxFont const *)arg1)->GetWeight(); |
d55e5bfc RD |
10016 | |
10017 | wxPyEndAllowThreads(__tstate); | |
10018 | if (PyErr_Occurred()) SWIG_fail; | |
10019 | } | |
36ed4f51 | 10020 | { |
32fe5131 | 10021 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 10022 | } |
d55e5bfc RD |
10023 | return resultobj; |
10024 | fail: | |
10025 | return NULL; | |
10026 | } | |
10027 | ||
10028 | ||
36ed4f51 | 10029 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10030 | PyObject *resultobj = NULL; |
36ed4f51 | 10031 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc | 10032 | bool result; |
d55e5bfc | 10033 | PyObject * obj0 = 0 ; |
d55e5bfc | 10034 | char *kwnames[] = { |
36ed4f51 | 10035 | (char *) "self", NULL |
d55e5bfc RD |
10036 | }; |
10037 | ||
36ed4f51 RD |
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; |
10039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10041 | { |
10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10043 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); |
d55e5bfc RD |
10044 | |
10045 | wxPyEndAllowThreads(__tstate); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
10048 | { | |
10049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10050 | } | |
d55e5bfc RD |
10051 | return resultobj; |
10052 | fail: | |
d55e5bfc RD |
10053 | return NULL; |
10054 | } | |
10055 | ||
10056 | ||
36ed4f51 | 10057 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10058 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10059 | wxFont *arg1 = (wxFont *) 0 ; |
10060 | wxString result; | |
d55e5bfc | 10061 | PyObject * obj0 = 0 ; |
d55e5bfc | 10062 | char *kwnames[] = { |
36ed4f51 | 10063 | (char *) "self", NULL |
d55e5bfc RD |
10064 | }; |
10065 | ||
36ed4f51 RD |
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; |
10067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10069 | { |
10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10071 | result = ((wxFont const *)arg1)->GetFaceName(); |
d55e5bfc RD |
10072 | |
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
10076 | { | |
36ed4f51 RD |
10077 | #if wxUSE_UNICODE |
10078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10079 | #else | |
10080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10081 | #endif | |
d55e5bfc RD |
10082 | } |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
36ed4f51 | 10089 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10090 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10091 | wxFont *arg1 = (wxFont *) 0 ; |
10092 | wxFontEncoding result; | |
10093 | PyObject * obj0 = 0 ; | |
d55e5bfc | 10094 | char *kwnames[] = { |
36ed4f51 | 10095 | (char *) "self", NULL |
d55e5bfc RD |
10096 | }; |
10097 | ||
36ed4f51 RD |
10098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; |
10099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10101 | { |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10103 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); |
d55e5bfc RD |
10104 | |
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
36ed4f51 | 10108 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
10109 | return resultobj; |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
36ed4f51 | 10115 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10116 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10117 | wxFont *arg1 = (wxFont *) 0 ; |
10118 | wxNativeFontInfo *result; | |
10119 | PyObject * obj0 = 0 ; | |
d55e5bfc | 10120 | char *kwnames[] = { |
36ed4f51 | 10121 | (char *) "self", NULL |
d55e5bfc RD |
10122 | }; |
10123 | ||
36ed4f51 RD |
10124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; |
10125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10127 | { |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10129 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); |
d55e5bfc RD |
10130 | |
10131 | wxPyEndAllowThreads(__tstate); | |
10132 | if (PyErr_Occurred()) SWIG_fail; | |
10133 | } | |
36ed4f51 | 10134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d55e5bfc RD |
10135 | return resultobj; |
10136 | fail: | |
10137 | return NULL; | |
10138 | } | |
10139 | ||
10140 | ||
36ed4f51 | 10141 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10142 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10143 | wxFont *arg1 = (wxFont *) 0 ; |
10144 | bool result; | |
10145 | PyObject * obj0 = 0 ; | |
d55e5bfc | 10146 | char *kwnames[] = { |
36ed4f51 | 10147 | (char *) "self", NULL |
d55e5bfc RD |
10148 | }; |
10149 | ||
36ed4f51 RD |
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; |
10151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10153 | { |
10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10155 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); |
d55e5bfc RD |
10156 | |
10157 | wxPyEndAllowThreads(__tstate); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | } | |
10160 | { | |
36ed4f51 | 10161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
10162 | } |
10163 | return resultobj; | |
10164 | fail: | |
10165 | return NULL; | |
10166 | } | |
10167 | ||
10168 | ||
36ed4f51 | 10169 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10170 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10171 | wxFont *arg1 = (wxFont *) 0 ; |
10172 | wxString result; | |
d55e5bfc RD |
10173 | PyObject * obj0 = 0 ; |
10174 | char *kwnames[] = { | |
10175 | (char *) "self", NULL | |
10176 | }; | |
10177 | ||
36ed4f51 RD |
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; |
10179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10181 | { |
10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10183 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); |
d55e5bfc RD |
10184 | |
10185 | wxPyEndAllowThreads(__tstate); | |
10186 | if (PyErr_Occurred()) SWIG_fail; | |
10187 | } | |
10188 | { | |
36ed4f51 RD |
10189 | #if wxUSE_UNICODE |
10190 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10191 | #else | |
10192 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10193 | #endif | |
d55e5bfc RD |
10194 | } |
10195 | return resultobj; | |
10196 | fail: | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
36ed4f51 | 10201 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10202 | PyObject *resultobj = NULL; |
36ed4f51 | 10203 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc RD |
10204 | wxString result; |
10205 | PyObject * obj0 = 0 ; | |
10206 | char *kwnames[] = { | |
10207 | (char *) "self", NULL | |
10208 | }; | |
10209 | ||
36ed4f51 RD |
10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; |
10211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10213 | { |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10215 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); |
d55e5bfc RD |
10216 | |
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | { | |
10221 | #if wxUSE_UNICODE | |
10222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10223 | #else | |
10224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10225 | #endif | |
10226 | } | |
10227 | return resultobj; | |
10228 | fail: | |
10229 | return NULL; | |
10230 | } | |
10231 | ||
10232 | ||
36ed4f51 | 10233 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10234 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10235 | wxFont *arg1 = (wxFont *) 0 ; |
10236 | int arg2 ; | |
d55e5bfc | 10237 | PyObject * obj0 = 0 ; |
36ed4f51 | 10238 | PyObject * obj1 = 0 ; |
d55e5bfc | 10239 | char *kwnames[] = { |
36ed4f51 | 10240 | (char *) "self",(char *) "pointSize", NULL |
d55e5bfc RD |
10241 | }; |
10242 | ||
36ed4f51 RD |
10243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
10244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10246 | { | |
32fe5131 | 10247 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
10248 | if (SWIG_arg_fail(2)) SWIG_fail; |
10249 | } | |
d55e5bfc RD |
10250 | { |
10251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10252 | (arg1)->SetPointSize(arg2); |
d55e5bfc RD |
10253 | |
10254 | wxPyEndAllowThreads(__tstate); | |
10255 | if (PyErr_Occurred()) SWIG_fail; | |
10256 | } | |
36ed4f51 | 10257 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10258 | return resultobj; |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
36ed4f51 | 10264 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10265 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10266 | wxFont *arg1 = (wxFont *) 0 ; |
10267 | wxSize *arg2 = 0 ; | |
10268 | wxSize temp2 ; | |
d55e5bfc | 10269 | PyObject * obj0 = 0 ; |
36ed4f51 | 10270 | PyObject * obj1 = 0 ; |
d55e5bfc | 10271 | char *kwnames[] = { |
36ed4f51 | 10272 | (char *) "self",(char *) "pixelSize", NULL |
d55e5bfc RD |
10273 | }; |
10274 | ||
36ed4f51 RD |
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; |
10276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10278 | { | |
10279 | arg2 = &temp2; | |
10280 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10281 | } | |
d55e5bfc RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10284 | (arg1)->SetPixelSize((wxSize const &)*arg2); |
d55e5bfc RD |
10285 | |
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
36ed4f51 | 10289 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10290 | return resultobj; |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
36ed4f51 | 10296 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10297 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10298 | wxFont *arg1 = (wxFont *) 0 ; |
10299 | int arg2 ; | |
d55e5bfc | 10300 | PyObject * obj0 = 0 ; |
36ed4f51 | 10301 | PyObject * obj1 = 0 ; |
d55e5bfc | 10302 | char *kwnames[] = { |
36ed4f51 | 10303 | (char *) "self",(char *) "family", NULL |
d55e5bfc RD |
10304 | }; |
10305 | ||
36ed4f51 RD |
10306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
10307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10309 | { | |
32fe5131 | 10310 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
10311 | if (SWIG_arg_fail(2)) SWIG_fail; |
10312 | } | |
d55e5bfc RD |
10313 | { |
10314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10315 | (arg1)->SetFamily(arg2); |
d55e5bfc RD |
10316 | |
10317 | wxPyEndAllowThreads(__tstate); | |
10318 | if (PyErr_Occurred()) SWIG_fail; | |
10319 | } | |
36ed4f51 | 10320 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10321 | return resultobj; |
10322 | fail: | |
10323 | return NULL; | |
10324 | } | |
10325 | ||
10326 | ||
36ed4f51 | 10327 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10328 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10329 | wxFont *arg1 = (wxFont *) 0 ; |
10330 | int arg2 ; | |
d55e5bfc | 10331 | PyObject * obj0 = 0 ; |
36ed4f51 | 10332 | PyObject * obj1 = 0 ; |
d55e5bfc | 10333 | char *kwnames[] = { |
36ed4f51 | 10334 | (char *) "self",(char *) "style", NULL |
d55e5bfc RD |
10335 | }; |
10336 | ||
36ed4f51 RD |
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
10338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10340 | { |
32fe5131 | 10341 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 10342 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
10343 | } |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10346 | (arg1)->SetStyle(arg2); |
d55e5bfc RD |
10347 | |
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
10352 | return resultobj; |
10353 | fail: | |
d55e5bfc RD |
10354 | return NULL; |
10355 | } | |
10356 | ||
10357 | ||
36ed4f51 | 10358 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10359 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10360 | wxFont *arg1 = (wxFont *) 0 ; |
10361 | int arg2 ; | |
d55e5bfc RD |
10362 | PyObject * obj0 = 0 ; |
10363 | PyObject * obj1 = 0 ; | |
10364 | char *kwnames[] = { | |
36ed4f51 | 10365 | (char *) "self",(char *) "weight", NULL |
d55e5bfc RD |
10366 | }; |
10367 | ||
36ed4f51 RD |
10368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
10369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10371 | { |
32fe5131 | 10372 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 10373 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
10374 | } |
10375 | { | |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10377 | (arg1)->SetWeight(arg2); |
d55e5bfc RD |
10378 | |
10379 | wxPyEndAllowThreads(__tstate); | |
10380 | if (PyErr_Occurred()) SWIG_fail; | |
10381 | } | |
36ed4f51 | 10382 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10383 | return resultobj; |
10384 | fail: | |
d55e5bfc RD |
10385 | return NULL; |
10386 | } | |
10387 | ||
10388 | ||
36ed4f51 | 10389 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10390 | PyObject *resultobj = NULL; |
36ed4f51 | 10391 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc | 10392 | wxString *arg2 = 0 ; |
b411df4a | 10393 | bool temp2 = false ; |
d55e5bfc RD |
10394 | PyObject * obj0 = 0 ; |
10395 | PyObject * obj1 = 0 ; | |
10396 | char *kwnames[] = { | |
36ed4f51 | 10397 | (char *) "self",(char *) "faceName", NULL |
d55e5bfc RD |
10398 | }; |
10399 | ||
36ed4f51 RD |
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
10401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10403 | { |
10404 | arg2 = wxString_in_helper(obj1); | |
10405 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10406 | temp2 = true; |
d55e5bfc RD |
10407 | } |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10410 | (arg1)->SetFaceName((wxString const &)*arg2); |
d55e5bfc RD |
10411 | |
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
36ed4f51 | 10415 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10416 | { |
10417 | if (temp2) | |
10418 | delete arg2; | |
10419 | } | |
10420 | return resultobj; | |
10421 | fail: | |
10422 | { | |
10423 | if (temp2) | |
10424 | delete arg2; | |
10425 | } | |
10426 | return NULL; | |
10427 | } | |
10428 | ||
10429 | ||
36ed4f51 | 10430 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10431 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10432 | wxFont *arg1 = (wxFont *) 0 ; |
10433 | bool arg2 ; | |
d55e5bfc | 10434 | PyObject * obj0 = 0 ; |
36ed4f51 | 10435 | PyObject * obj1 = 0 ; |
d55e5bfc | 10436 | char *kwnames[] = { |
36ed4f51 | 10437 | (char *) "self",(char *) "underlined", NULL |
d55e5bfc RD |
10438 | }; |
10439 | ||
36ed4f51 RD |
10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
10441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10443 | { | |
32fe5131 | 10444 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 RD |
10445 | if (SWIG_arg_fail(2)) SWIG_fail; |
10446 | } | |
d55e5bfc RD |
10447 | { |
10448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10449 | (arg1)->SetUnderlined(arg2); |
d55e5bfc RD |
10450 | |
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
36ed4f51 | 10454 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10455 | return resultobj; |
10456 | fail: | |
10457 | return NULL; | |
10458 | } | |
10459 | ||
10460 | ||
36ed4f51 | 10461 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10462 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10463 | wxFont *arg1 = (wxFont *) 0 ; |
10464 | wxFontEncoding arg2 ; | |
d55e5bfc | 10465 | PyObject * obj0 = 0 ; |
36ed4f51 | 10466 | PyObject * obj1 = 0 ; |
d55e5bfc | 10467 | char *kwnames[] = { |
36ed4f51 | 10468 | (char *) "self",(char *) "encoding", NULL |
d55e5bfc RD |
10469 | }; |
10470 | ||
36ed4f51 RD |
10471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
10472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10474 | { | |
32fe5131 | 10475 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 RD |
10476 | if (SWIG_arg_fail(2)) SWIG_fail; |
10477 | } | |
d55e5bfc RD |
10478 | { |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 10480 | (arg1)->SetEncoding(arg2); |
d55e5bfc RD |
10481 | |
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
36ed4f51 | 10485 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10486 | return resultobj; |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
36ed4f51 | 10492 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10493 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10494 | wxFont *arg1 = (wxFont *) 0 ; |
10495 | wxNativeFontInfo *arg2 = 0 ; | |
d55e5bfc | 10496 | PyObject * obj0 = 0 ; |
36ed4f51 | 10497 | PyObject * obj1 = 0 ; |
d55e5bfc | 10498 | char *kwnames[] = { |
36ed4f51 | 10499 | (char *) "self",(char *) "info", NULL |
d55e5bfc RD |
10500 | }; |
10501 | ||
36ed4f51 RD |
10502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; |
10503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10505 | { |
36ed4f51 RD |
10506 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); |
10507 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10508 | if (arg2 == NULL) { | |
10509 | SWIG_null_ref("wxNativeFontInfo"); | |
10510 | } | |
10511 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10512 | } |
10513 | { | |
10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10515 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); |
d55e5bfc RD |
10516 | |
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
36ed4f51 | 10520 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10521 | return resultobj; |
10522 | fail: | |
d55e5bfc RD |
10523 | return NULL; |
10524 | } | |
10525 | ||
10526 | ||
36ed4f51 | 10527 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10528 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10529 | wxFont *arg1 = (wxFont *) 0 ; |
10530 | wxString *arg2 = 0 ; | |
10531 | bool temp2 = false ; | |
d55e5bfc | 10532 | PyObject * obj0 = 0 ; |
36ed4f51 | 10533 | PyObject * obj1 = 0 ; |
d55e5bfc | 10534 | char *kwnames[] = { |
36ed4f51 | 10535 | (char *) "self",(char *) "info", NULL |
d55e5bfc RD |
10536 | }; |
10537 | ||
36ed4f51 RD |
10538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; |
10539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10541 | { | |
10542 | arg2 = wxString_in_helper(obj1); | |
10543 | if (arg2 == NULL) SWIG_fail; | |
10544 | temp2 = true; | |
d55e5bfc RD |
10545 | } |
10546 | { | |
10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10548 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); |
d55e5bfc RD |
10549 | |
10550 | wxPyEndAllowThreads(__tstate); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
10554 | { |
10555 | if (temp2) | |
10556 | delete arg2; | |
10557 | } | |
d55e5bfc RD |
10558 | return resultobj; |
10559 | fail: | |
36ed4f51 RD |
10560 | { |
10561 | if (temp2) | |
10562 | delete arg2; | |
10563 | } | |
d55e5bfc RD |
10564 | return NULL; |
10565 | } | |
10566 | ||
10567 | ||
36ed4f51 | 10568 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10569 | PyObject *resultobj = NULL; |
36ed4f51 | 10570 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc | 10571 | wxString *arg2 = 0 ; |
b411df4a | 10572 | bool temp2 = false ; |
d55e5bfc RD |
10573 | PyObject * obj0 = 0 ; |
10574 | PyObject * obj1 = 0 ; | |
d55e5bfc | 10575 | char *kwnames[] = { |
36ed4f51 | 10576 | (char *) "self",(char *) "info", NULL |
d55e5bfc RD |
10577 | }; |
10578 | ||
36ed4f51 RD |
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; |
10580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10582 | { |
10583 | arg2 = wxString_in_helper(obj1); | |
10584 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10585 | temp2 = true; |
d55e5bfc | 10586 | } |
d55e5bfc RD |
10587 | { |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10589 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
d55e5bfc RD |
10590 | |
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
36ed4f51 | 10594 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10595 | { |
10596 | if (temp2) | |
10597 | delete arg2; | |
10598 | } | |
d55e5bfc RD |
10599 | return resultobj; |
10600 | fail: | |
10601 | { | |
10602 | if (temp2) | |
10603 | delete arg2; | |
10604 | } | |
d55e5bfc RD |
10605 | return NULL; |
10606 | } | |
10607 | ||
10608 | ||
36ed4f51 | 10609 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10610 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10611 | wxFont *arg1 = (wxFont *) 0 ; |
10612 | wxString result; | |
d55e5bfc RD |
10613 | PyObject * obj0 = 0 ; |
10614 | char *kwnames[] = { | |
10615 | (char *) "self", NULL | |
10616 | }; | |
10617 | ||
36ed4f51 RD |
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; |
10619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10621 | { |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10623 | result = ((wxFont const *)arg1)->GetFamilyString(); |
d55e5bfc RD |
10624 | |
10625 | wxPyEndAllowThreads(__tstate); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
10628 | { | |
10629 | #if wxUSE_UNICODE | |
36ed4f51 | 10630 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 10631 | #else |
36ed4f51 | 10632 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc RD |
10633 | #endif |
10634 | } | |
10635 | return resultobj; | |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
36ed4f51 | 10641 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10642 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10643 | wxFont *arg1 = (wxFont *) 0 ; |
10644 | wxString result; | |
10645 | PyObject * obj0 = 0 ; | |
d55e5bfc | 10646 | char *kwnames[] = { |
36ed4f51 | 10647 | (char *) "self", NULL |
d55e5bfc RD |
10648 | }; |
10649 | ||
36ed4f51 RD |
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; |
10651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10653 | { |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10655 | result = ((wxFont const *)arg1)->GetStyleString(); |
d55e5bfc RD |
10656 | |
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
36ed4f51 RD |
10660 | { |
10661 | #if wxUSE_UNICODE | |
10662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10663 | #else | |
10664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10665 | #endif | |
10666 | } | |
d55e5bfc RD |
10667 | return resultobj; |
10668 | fail: | |
10669 | return NULL; | |
10670 | } | |
10671 | ||
10672 | ||
36ed4f51 | 10673 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10674 | PyObject *resultobj = NULL; |
36ed4f51 | 10675 | wxFont *arg1 = (wxFont *) 0 ; |
d55e5bfc | 10676 | wxString result; |
d55e5bfc | 10677 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
10678 | char *kwnames[] = { |
10679 | (char *) "self", NULL | |
10680 | }; | |
d55e5bfc | 10681 | |
36ed4f51 RD |
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; |
10683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10685 | { |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10687 | result = ((wxFont const *)arg1)->GetWeightString(); |
d55e5bfc RD |
10688 | |
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
10692 | { | |
10693 | #if wxUSE_UNICODE | |
10694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10695 | #else | |
10696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10697 | #endif | |
10698 | } | |
d55e5bfc RD |
10699 | return resultobj; |
10700 | fail: | |
d55e5bfc RD |
10701 | return NULL; |
10702 | } | |
10703 | ||
10704 | ||
36ed4f51 | 10705 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10706 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10707 | wxFont *arg1 = (wxFont *) 0 ; |
10708 | bool arg2 = (bool) true ; | |
d55e5bfc RD |
10709 | PyObject * obj0 = 0 ; |
10710 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
10711 | char *kwnames[] = { |
10712 | (char *) "self",(char *) "no", NULL | |
10713 | }; | |
d55e5bfc | 10714 | |
36ed4f51 RD |
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; |
10716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10718 | if (obj1) { | |
10719 | { | |
32fe5131 | 10720 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 RD |
10721 | if (SWIG_arg_fail(2)) SWIG_fail; |
10722 | } | |
d55e5bfc | 10723 | } |
d55e5bfc RD |
10724 | { |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10726 | (arg1)->SetNoAntiAliasing(arg2); |
d55e5bfc RD |
10727 | |
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) SWIG_fail; | |
10730 | } | |
36ed4f51 | 10731 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10732 | return resultobj; |
10733 | fail: | |
d55e5bfc RD |
10734 | return NULL; |
10735 | } | |
10736 | ||
10737 | ||
36ed4f51 | 10738 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10739 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10740 | wxFont *arg1 = (wxFont *) 0 ; |
10741 | bool result; | |
10742 | PyObject * obj0 = 0 ; | |
10743 | char *kwnames[] = { | |
10744 | (char *) "self", NULL | |
10745 | }; | |
d55e5bfc | 10746 | |
36ed4f51 RD |
10747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; |
10748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10750 | { | |
10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10752 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
10753 | ||
10754 | wxPyEndAllowThreads(__tstate); | |
10755 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 10756 | } |
36ed4f51 RD |
10757 | { |
10758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
d55e5bfc | 10759 | } |
36ed4f51 RD |
10760 | return resultobj; |
10761 | fail: | |
d55e5bfc RD |
10762 | return NULL; |
10763 | } | |
10764 | ||
10765 | ||
36ed4f51 | 10766 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10767 | PyObject *resultobj = NULL; |
36ed4f51 | 10768 | wxFontEncoding result; |
d55e5bfc RD |
10769 | char *kwnames[] = { |
10770 | NULL | |
10771 | }; | |
10772 | ||
36ed4f51 | 10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; |
d55e5bfc | 10774 | { |
36ed4f51 | 10775 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 10777 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); |
d55e5bfc RD |
10778 | |
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
36ed4f51 | 10782 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
10783 | return resultobj; |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
36ed4f51 | 10789 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10790 | PyObject *resultobj = NULL; |
36ed4f51 | 10791 | wxFontEncoding arg1 ; |
d55e5bfc RD |
10792 | PyObject * obj0 = 0 ; |
10793 | char *kwnames[] = { | |
36ed4f51 | 10794 | (char *) "encoding", NULL |
d55e5bfc RD |
10795 | }; |
10796 | ||
36ed4f51 RD |
10797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
10798 | { | |
32fe5131 | 10799 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 RD |
10800 | if (SWIG_arg_fail(1)) SWIG_fail; |
10801 | } | |
d55e5bfc | 10802 | { |
36ed4f51 | 10803 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 10805 | wxFont::SetDefaultEncoding(arg1); |
d55e5bfc RD |
10806 | |
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
10810 | Py_INCREF(Py_None); resultobj = Py_None; | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
36ed4f51 RD |
10817 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
10818 | PyObject *obj; | |
10819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10820 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
10821 | Py_INCREF(obj); | |
10822 | return Py_BuildValue((char *)""); | |
10823 | } | |
10824 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 10825 | PyObject *resultobj = NULL; |
36ed4f51 | 10826 | wxPyFontEnumerator *result; |
d55e5bfc | 10827 | char *kwnames[] = { |
36ed4f51 | 10828 | NULL |
d55e5bfc RD |
10829 | }; |
10830 | ||
36ed4f51 | 10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; |
d55e5bfc | 10832 | { |
36ed4f51 | 10833 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 10835 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); |
d55e5bfc RD |
10836 | |
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
36ed4f51 | 10840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d55e5bfc RD |
10841 | return resultobj; |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
36ed4f51 | 10847 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10848 | PyObject *resultobj = NULL; |
36ed4f51 | 10849 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
d55e5bfc | 10850 | PyObject * obj0 = 0 ; |
d55e5bfc | 10851 | char *kwnames[] = { |
36ed4f51 | 10852 | (char *) "self", NULL |
d55e5bfc RD |
10853 | }; |
10854 | ||
36ed4f51 RD |
10855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; |
10856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10858 | { |
10859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10860 | delete arg1; |
d55e5bfc RD |
10861 | |
10862 | wxPyEndAllowThreads(__tstate); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
10864 | } | |
36ed4f51 | 10865 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10866 | return resultobj; |
10867 | fail: | |
d55e5bfc RD |
10868 | return NULL; |
10869 | } | |
10870 | ||
10871 | ||
36ed4f51 | 10872 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10873 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10874 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10875 | PyObject *arg2 = (PyObject *) 0 ; | |
10876 | PyObject *arg3 = (PyObject *) 0 ; | |
10877 | bool arg4 ; | |
d55e5bfc RD |
10878 | PyObject * obj0 = 0 ; |
10879 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
10880 | PyObject * obj2 = 0 ; |
10881 | PyObject * obj3 = 0 ; | |
d55e5bfc | 10882 | char *kwnames[] = { |
36ed4f51 | 10883 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
d55e5bfc RD |
10884 | }; |
10885 | ||
36ed4f51 RD |
10886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10889 | arg2 = obj1; | |
10890 | arg3 = obj2; | |
10891 | { | |
32fe5131 | 10892 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
36ed4f51 | 10893 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc RD |
10894 | } |
10895 | { | |
10896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10897 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
d55e5bfc RD |
10898 | |
10899 | wxPyEndAllowThreads(__tstate); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
10901 | } | |
36ed4f51 | 10902 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
10903 | return resultobj; |
10904 | fail: | |
10905 | return NULL; | |
10906 | } | |
10907 | ||
10908 | ||
36ed4f51 | 10909 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10910 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10911 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10912 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
10913 | bool arg3 = (bool) false ; | |
10914 | bool result; | |
d55e5bfc | 10915 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
10916 | PyObject * obj1 = 0 ; |
10917 | PyObject * obj2 = 0 ; | |
d55e5bfc | 10918 | char *kwnames[] = { |
36ed4f51 | 10919 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL |
d55e5bfc RD |
10920 | }; |
10921 | ||
36ed4f51 RD |
10922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
10923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10925 | if (obj1) { | |
10926 | { | |
32fe5131 | 10927 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 RD |
10928 | if (SWIG_arg_fail(2)) SWIG_fail; |
10929 | } | |
10930 | } | |
10931 | if (obj2) { | |
10932 | { | |
32fe5131 | 10933 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
36ed4f51 RD |
10934 | if (SWIG_arg_fail(3)) SWIG_fail; |
10935 | } | |
10936 | } | |
d55e5bfc RD |
10937 | { |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 10939 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); |
d55e5bfc RD |
10940 | |
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
10944 | { | |
36ed4f51 | 10945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
10946 | } |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
36ed4f51 | 10953 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10954 | PyObject *resultobj = NULL; |
36ed4f51 RD |
10955 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10956 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10957 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
d55e5bfc | 10958 | bool result; |
36ed4f51 | 10959 | bool temp2 = false ; |
d55e5bfc RD |
10960 | PyObject * obj0 = 0 ; |
10961 | PyObject * obj1 = 0 ; | |
10962 | char *kwnames[] = { | |
36ed4f51 | 10963 | (char *) "self",(char *) "facename", NULL |
d55e5bfc RD |
10964 | }; |
10965 | ||
36ed4f51 RD |
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; |
10967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10969 | if (obj1) { | |
10970 | { | |
10971 | arg2 = wxString_in_helper(obj1); | |
10972 | if (arg2 == NULL) SWIG_fail; | |
10973 | temp2 = true; | |
10974 | } | |
10975 | } | |
d55e5bfc RD |
10976 | { |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10978 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); |
d55e5bfc RD |
10979 | |
10980 | wxPyEndAllowThreads(__tstate); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
10983 | { | |
10984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10985 | } | |
36ed4f51 RD |
10986 | { |
10987 | if (temp2) | |
10988 | delete arg2; | |
10989 | } | |
d55e5bfc RD |
10990 | return resultobj; |
10991 | fail: | |
36ed4f51 RD |
10992 | { |
10993 | if (temp2) | |
10994 | delete arg2; | |
10995 | } | |
d55e5bfc RD |
10996 | return NULL; |
10997 | } | |
10998 | ||
10999 | ||
36ed4f51 | 11000 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11001 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11002 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
11003 | PyObject *result; | |
d55e5bfc RD |
11004 | PyObject * obj0 = 0 ; |
11005 | char *kwnames[] = { | |
11006 | (char *) "self", NULL | |
11007 | }; | |
11008 | ||
36ed4f51 RD |
11009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; |
11010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
11011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11012 | { |
11013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11014 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); |
d55e5bfc RD |
11015 | |
11016 | wxPyEndAllowThreads(__tstate); | |
11017 | if (PyErr_Occurred()) SWIG_fail; | |
11018 | } | |
36ed4f51 | 11019 | resultobj = result; |
d55e5bfc RD |
11020 | return resultobj; |
11021 | fail: | |
11022 | return NULL; | |
11023 | } | |
11024 | ||
11025 | ||
36ed4f51 | 11026 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11027 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11028 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
11029 | PyObject *result; | |
d55e5bfc RD |
11030 | PyObject * obj0 = 0 ; |
11031 | char *kwnames[] = { | |
11032 | (char *) "self", NULL | |
11033 | }; | |
11034 | ||
36ed4f51 RD |
11035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; |
11036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
11037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11038 | { |
11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11040 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); |
d55e5bfc RD |
11041 | |
11042 | wxPyEndAllowThreads(__tstate); | |
11043 | if (PyErr_Occurred()) SWIG_fail; | |
11044 | } | |
36ed4f51 | 11045 | resultobj = result; |
d55e5bfc RD |
11046 | return resultobj; |
11047 | fail: | |
11048 | return NULL; | |
11049 | } | |
11050 | ||
11051 | ||
36ed4f51 RD |
11052 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
11053 | PyObject *obj; | |
11054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11055 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
11056 | Py_INCREF(obj); | |
11057 | return Py_BuildValue((char *)""); | |
11058 | } | |
11059 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11060 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11061 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11062 | int arg2 ; | |
d55e5bfc | 11063 | PyObject * obj0 = 0 ; |
36ed4f51 | 11064 | PyObject * obj1 = 0 ; |
d55e5bfc | 11065 | char *kwnames[] = { |
36ed4f51 | 11066 | (char *) "self",(char *) "Language", NULL |
d55e5bfc RD |
11067 | }; |
11068 | ||
36ed4f51 RD |
11069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
11070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11072 | { |
32fe5131 | 11073 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 11074 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 11075 | } |
36ed4f51 RD |
11076 | if (arg1) (arg1)->Language = arg2; |
11077 | ||
d55e5bfc RD |
11078 | Py_INCREF(Py_None); resultobj = Py_None; |
11079 | return resultobj; | |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
36ed4f51 | 11085 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11086 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11087 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11088 | int result; | |
d55e5bfc | 11089 | PyObject * obj0 = 0 ; |
d55e5bfc | 11090 | char *kwnames[] = { |
36ed4f51 | 11091 | (char *) "self", NULL |
d55e5bfc RD |
11092 | }; |
11093 | ||
36ed4f51 RD |
11094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; |
11095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11097 | result = (int) ((arg1)->Language); | |
11098 | ||
d55e5bfc | 11099 | { |
32fe5131 | 11100 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
11101 | } |
11102 | return resultobj; | |
11103 | fail: | |
11104 | return NULL; | |
11105 | } | |
11106 | ||
11107 | ||
36ed4f51 | 11108 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11109 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11110 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11111 | wxString *arg2 = (wxString *) 0 ; | |
11112 | bool temp2 = false ; | |
d55e5bfc RD |
11113 | PyObject * obj0 = 0 ; |
11114 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11115 | char *kwnames[] = { |
36ed4f51 | 11116 | (char *) "self",(char *) "CanonicalName", NULL |
d55e5bfc RD |
11117 | }; |
11118 | ||
36ed4f51 RD |
11119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; |
11120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11122 | { |
36ed4f51 RD |
11123 | arg2 = wxString_in_helper(obj1); |
11124 | if (arg2 == NULL) SWIG_fail; | |
11125 | temp2 = true; | |
d55e5bfc | 11126 | } |
36ed4f51 RD |
11127 | if (arg1) (arg1)->CanonicalName = *arg2; |
11128 | ||
11129 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc | 11130 | { |
36ed4f51 RD |
11131 | if (temp2) |
11132 | delete arg2; | |
d55e5bfc RD |
11133 | } |
11134 | return resultobj; | |
11135 | fail: | |
36ed4f51 RD |
11136 | { |
11137 | if (temp2) | |
11138 | delete arg2; | |
11139 | } | |
d55e5bfc RD |
11140 | return NULL; |
11141 | } | |
11142 | ||
11143 | ||
36ed4f51 | 11144 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11145 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11146 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11147 | wxString *result; | |
d55e5bfc | 11148 | PyObject * obj0 = 0 ; |
d55e5bfc | 11149 | char *kwnames[] = { |
36ed4f51 | 11150 | (char *) "self", NULL |
d55e5bfc RD |
11151 | }; |
11152 | ||
36ed4f51 RD |
11153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; |
11154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11156 | result = (wxString *)& ((arg1)->CanonicalName); | |
11157 | ||
d55e5bfc | 11158 | { |
36ed4f51 RD |
11159 | #if wxUSE_UNICODE |
11160 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11161 | #else | |
11162 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11163 | #endif | |
d55e5bfc RD |
11164 | } |
11165 | return resultobj; | |
11166 | fail: | |
11167 | return NULL; | |
11168 | } | |
11169 | ||
11170 | ||
36ed4f51 | 11171 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11172 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11173 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11174 | wxString *arg2 = (wxString *) 0 ; | |
11175 | bool temp2 = false ; | |
d55e5bfc RD |
11176 | PyObject * obj0 = 0 ; |
11177 | PyObject * obj1 = 0 ; | |
11178 | char *kwnames[] = { | |
36ed4f51 | 11179 | (char *) "self",(char *) "Description", NULL |
d55e5bfc RD |
11180 | }; |
11181 | ||
36ed4f51 RD |
11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; |
11183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11185 | { |
36ed4f51 RD |
11186 | arg2 = wxString_in_helper(obj1); |
11187 | if (arg2 == NULL) SWIG_fail; | |
11188 | temp2 = true; | |
d55e5bfc | 11189 | } |
36ed4f51 RD |
11190 | if (arg1) (arg1)->Description = *arg2; |
11191 | ||
11192 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc | 11193 | { |
36ed4f51 RD |
11194 | if (temp2) |
11195 | delete arg2; | |
d55e5bfc RD |
11196 | } |
11197 | return resultobj; | |
11198 | fail: | |
36ed4f51 RD |
11199 | { |
11200 | if (temp2) | |
11201 | delete arg2; | |
11202 | } | |
d55e5bfc RD |
11203 | return NULL; |
11204 | } | |
11205 | ||
11206 | ||
36ed4f51 | 11207 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11208 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11209 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11210 | wxString *result; | |
d55e5bfc | 11211 | PyObject * obj0 = 0 ; |
d55e5bfc | 11212 | char *kwnames[] = { |
36ed4f51 | 11213 | (char *) "self", NULL |
d55e5bfc RD |
11214 | }; |
11215 | ||
36ed4f51 RD |
11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; |
11217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11219 | result = (wxString *)& ((arg1)->Description); | |
11220 | ||
d55e5bfc | 11221 | { |
36ed4f51 RD |
11222 | #if wxUSE_UNICODE |
11223 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11224 | #else | |
11225 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11226 | #endif | |
d55e5bfc | 11227 | } |
d55e5bfc RD |
11228 | return resultobj; |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
36ed4f51 RD |
11234 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
11235 | PyObject *obj; | |
11236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11237 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
11238 | Py_INCREF(obj); | |
11239 | return Py_BuildValue((char *)""); | |
11240 | } | |
11241 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11242 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11243 | int arg1 = (int) -1 ; |
11244 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11245 | wxLocale *result; | |
d55e5bfc RD |
11246 | PyObject * obj0 = 0 ; |
11247 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11248 | char *kwnames[] = { |
36ed4f51 | 11249 | (char *) "language",(char *) "flags", NULL |
d55e5bfc RD |
11250 | }; |
11251 | ||
36ed4f51 RD |
11252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
11253 | if (obj0) { | |
11254 | { | |
32fe5131 | 11255 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
11256 | if (SWIG_arg_fail(1)) SWIG_fail; |
11257 | } | |
d55e5bfc | 11258 | } |
36ed4f51 RD |
11259 | if (obj1) { |
11260 | { | |
32fe5131 | 11261 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
11262 | if (SWIG_arg_fail(2)) SWIG_fail; |
11263 | } | |
d55e5bfc RD |
11264 | } |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11267 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
11268 | |
11269 | wxPyEndAllowThreads(__tstate); | |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
11271 | } | |
36ed4f51 | 11272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d55e5bfc RD |
11273 | return resultobj; |
11274 | fail: | |
11275 | return NULL; | |
11276 | } | |
11277 | ||
11278 | ||
36ed4f51 | 11279 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11280 | PyObject *resultobj = NULL; |
36ed4f51 | 11281 | wxLocale *arg1 = (wxLocale *) 0 ; |
d55e5bfc | 11282 | PyObject * obj0 = 0 ; |
d55e5bfc | 11283 | char *kwnames[] = { |
36ed4f51 | 11284 | (char *) "self", NULL |
d55e5bfc RD |
11285 | }; |
11286 | ||
36ed4f51 RD |
11287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; |
11288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11290 | { |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11292 | delete arg1; |
d55e5bfc RD |
11293 | |
11294 | wxPyEndAllowThreads(__tstate); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
11297 | Py_INCREF(Py_None); resultobj = Py_None; | |
11298 | return resultobj; | |
11299 | fail: | |
11300 | return NULL; | |
11301 | } | |
11302 | ||
11303 | ||
36ed4f51 | 11304 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11305 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11306 | wxLocale *arg1 = (wxLocale *) 0 ; |
11307 | wxString *arg2 = 0 ; | |
11308 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11309 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11310 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11311 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11312 | bool arg5 = (bool) true ; | |
11313 | bool arg6 = (bool) false ; | |
11314 | bool result; | |
11315 | bool temp2 = false ; | |
11316 | bool temp3 = false ; | |
11317 | bool temp4 = false ; | |
d55e5bfc RD |
11318 | PyObject * obj0 = 0 ; |
11319 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
11320 | PyObject * obj2 = 0 ; |
11321 | PyObject * obj3 = 0 ; | |
11322 | PyObject * obj4 = 0 ; | |
11323 | PyObject * obj5 = 0 ; | |
d55e5bfc | 11324 | char *kwnames[] = { |
36ed4f51 | 11325 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL |
d55e5bfc RD |
11326 | }; |
11327 | ||
36ed4f51 RD |
11328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
11329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11331 | { |
36ed4f51 RD |
11332 | arg2 = wxString_in_helper(obj1); |
11333 | if (arg2 == NULL) SWIG_fail; | |
11334 | temp2 = true; | |
11335 | } | |
11336 | if (obj2) { | |
11337 | { | |
11338 | arg3 = wxString_in_helper(obj2); | |
11339 | if (arg3 == NULL) SWIG_fail; | |
11340 | temp3 = true; | |
11341 | } | |
11342 | } | |
11343 | if (obj3) { | |
11344 | { | |
11345 | arg4 = wxString_in_helper(obj3); | |
11346 | if (arg4 == NULL) SWIG_fail; | |
11347 | temp4 = true; | |
11348 | } | |
11349 | } | |
11350 | if (obj4) { | |
11351 | { | |
32fe5131 | 11352 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
36ed4f51 RD |
11353 | if (SWIG_arg_fail(5)) SWIG_fail; |
11354 | } | |
11355 | } | |
11356 | if (obj5) { | |
11357 | { | |
32fe5131 | 11358 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
36ed4f51 RD |
11359 | if (SWIG_arg_fail(6)) SWIG_fail; |
11360 | } | |
d55e5bfc RD |
11361 | } |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11364 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d55e5bfc RD |
11365 | |
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
36ed4f51 RD |
11369 | { |
11370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11371 | } | |
11372 | { | |
11373 | if (temp2) | |
11374 | delete arg2; | |
11375 | } | |
11376 | { | |
11377 | if (temp3) | |
11378 | delete arg3; | |
11379 | } | |
11380 | { | |
11381 | if (temp4) | |
11382 | delete arg4; | |
11383 | } | |
d55e5bfc RD |
11384 | return resultobj; |
11385 | fail: | |
36ed4f51 RD |
11386 | { |
11387 | if (temp2) | |
11388 | delete arg2; | |
11389 | } | |
11390 | { | |
11391 | if (temp3) | |
11392 | delete arg3; | |
11393 | } | |
11394 | { | |
11395 | if (temp4) | |
11396 | delete arg4; | |
11397 | } | |
d55e5bfc RD |
11398 | return NULL; |
11399 | } | |
11400 | ||
11401 | ||
36ed4f51 | 11402 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11403 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11404 | wxLocale *arg1 = (wxLocale *) 0 ; |
11405 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
11406 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11407 | bool result; | |
d55e5bfc RD |
11408 | PyObject * obj0 = 0 ; |
11409 | PyObject * obj1 = 0 ; | |
11410 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11411 | char *kwnames[] = { |
36ed4f51 | 11412 | (char *) "self",(char *) "language",(char *) "flags", NULL |
d55e5bfc RD |
11413 | }; |
11414 | ||
36ed4f51 RD |
11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11418 | if (obj1) { | |
11419 | { | |
32fe5131 | 11420 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
11421 | if (SWIG_arg_fail(2)) SWIG_fail; |
11422 | } | |
11423 | } | |
11424 | if (obj2) { | |
11425 | { | |
32fe5131 | 11426 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
11427 | if (SWIG_arg_fail(3)) SWIG_fail; |
11428 | } | |
11429 | } | |
d55e5bfc RD |
11430 | { |
11431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11432 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); |
d55e5bfc RD |
11433 | |
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
36ed4f51 RD |
11437 | { |
11438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11439 | } | |
d55e5bfc RD |
11440 | return resultobj; |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
36ed4f51 | 11446 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11447 | PyObject *resultobj = NULL; |
36ed4f51 | 11448 | int result; |
d55e5bfc | 11449 | char *kwnames[] = { |
36ed4f51 | 11450 | NULL |
d55e5bfc RD |
11451 | }; |
11452 | ||
36ed4f51 | 11453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; |
d55e5bfc RD |
11454 | { |
11455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11456 | result = (int)wxLocale::GetSystemLanguage(); |
d55e5bfc RD |
11457 | |
11458 | wxPyEndAllowThreads(__tstate); | |
11459 | if (PyErr_Occurred()) SWIG_fail; | |
11460 | } | |
36ed4f51 | 11461 | { |
32fe5131 | 11462 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 11463 | } |
d55e5bfc RD |
11464 | return resultobj; |
11465 | fail: | |
11466 | return NULL; | |
11467 | } | |
11468 | ||
11469 | ||
36ed4f51 | 11470 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11471 | PyObject *resultobj = NULL; |
36ed4f51 | 11472 | wxFontEncoding result; |
d55e5bfc | 11473 | char *kwnames[] = { |
36ed4f51 | 11474 | NULL |
d55e5bfc RD |
11475 | }; |
11476 | ||
36ed4f51 | 11477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; |
d55e5bfc RD |
11478 | { |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11480 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); |
d55e5bfc RD |
11481 | |
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
36ed4f51 | 11485 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
11486 | return resultobj; |
11487 | fail: | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
36ed4f51 | 11492 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11493 | PyObject *resultobj = NULL; |
36ed4f51 | 11494 | wxString result; |
d55e5bfc | 11495 | char *kwnames[] = { |
36ed4f51 | 11496 | NULL |
d55e5bfc RD |
11497 | }; |
11498 | ||
36ed4f51 | 11499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; |
d55e5bfc RD |
11500 | { |
11501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11502 | result = wxLocale::GetSystemEncodingName(); |
d55e5bfc RD |
11503 | |
11504 | wxPyEndAllowThreads(__tstate); | |
11505 | if (PyErr_Occurred()) SWIG_fail; | |
11506 | } | |
36ed4f51 RD |
11507 | { |
11508 | #if wxUSE_UNICODE | |
11509 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11510 | #else | |
11511 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11512 | #endif | |
11513 | } | |
d55e5bfc RD |
11514 | return resultobj; |
11515 | fail: | |
11516 | return NULL; | |
11517 | } | |
11518 | ||
11519 | ||
36ed4f51 | 11520 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11521 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11522 | wxLocale *arg1 = (wxLocale *) 0 ; |
11523 | bool result; | |
d55e5bfc | 11524 | PyObject * obj0 = 0 ; |
d55e5bfc | 11525 | char *kwnames[] = { |
36ed4f51 | 11526 | (char *) "self", NULL |
d55e5bfc RD |
11527 | }; |
11528 | ||
36ed4f51 RD |
11529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; |
11530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11532 | { |
11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11534 | result = (bool)((wxLocale const *)arg1)->IsOk(); |
d55e5bfc RD |
11535 | |
11536 | wxPyEndAllowThreads(__tstate); | |
11537 | if (PyErr_Occurred()) SWIG_fail; | |
11538 | } | |
36ed4f51 RD |
11539 | { |
11540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11541 | } | |
d55e5bfc RD |
11542 | return resultobj; |
11543 | fail: | |
11544 | return NULL; | |
11545 | } | |
11546 | ||
11547 | ||
36ed4f51 | 11548 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11549 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11550 | wxLocale *arg1 = (wxLocale *) 0 ; |
11551 | wxString result; | |
d55e5bfc | 11552 | PyObject * obj0 = 0 ; |
d55e5bfc | 11553 | char *kwnames[] = { |
36ed4f51 | 11554 | (char *) "self", NULL |
d55e5bfc RD |
11555 | }; |
11556 | ||
36ed4f51 RD |
11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; |
11558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11560 | { |
11561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11562 | result = ((wxLocale const *)arg1)->GetLocale(); |
d55e5bfc RD |
11563 | |
11564 | wxPyEndAllowThreads(__tstate); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
36ed4f51 RD |
11567 | { |
11568 | #if wxUSE_UNICODE | |
11569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11570 | #else | |
11571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11572 | #endif | |
11573 | } | |
d55e5bfc RD |
11574 | return resultobj; |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
36ed4f51 | 11580 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11581 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11582 | wxLocale *arg1 = (wxLocale *) 0 ; |
11583 | int result; | |
d55e5bfc | 11584 | PyObject * obj0 = 0 ; |
d55e5bfc | 11585 | char *kwnames[] = { |
36ed4f51 | 11586 | (char *) "self", NULL |
d55e5bfc RD |
11587 | }; |
11588 | ||
36ed4f51 RD |
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; |
11590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11592 | { |
11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11594 | result = (int)((wxLocale const *)arg1)->GetLanguage(); |
d55e5bfc RD |
11595 | |
11596 | wxPyEndAllowThreads(__tstate); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
36ed4f51 | 11599 | { |
32fe5131 | 11600 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 11601 | } |
d55e5bfc RD |
11602 | return resultobj; |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
36ed4f51 | 11608 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11609 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11610 | wxLocale *arg1 = (wxLocale *) 0 ; |
11611 | wxString result; | |
d55e5bfc | 11612 | PyObject * obj0 = 0 ; |
d55e5bfc | 11613 | char *kwnames[] = { |
36ed4f51 | 11614 | (char *) "self", NULL |
d55e5bfc RD |
11615 | }; |
11616 | ||
36ed4f51 RD |
11617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; |
11618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11620 | { |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11622 | result = ((wxLocale const *)arg1)->GetSysName(); |
d55e5bfc RD |
11623 | |
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
36ed4f51 RD |
11627 | { |
11628 | #if wxUSE_UNICODE | |
11629 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11630 | #else | |
11631 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11632 | #endif | |
11633 | } | |
d55e5bfc RD |
11634 | return resultobj; |
11635 | fail: | |
11636 | return NULL; | |
11637 | } | |
11638 | ||
11639 | ||
36ed4f51 | 11640 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11641 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11642 | wxLocale *arg1 = (wxLocale *) 0 ; |
11643 | wxString result; | |
d55e5bfc | 11644 | PyObject * obj0 = 0 ; |
d55e5bfc | 11645 | char *kwnames[] = { |
36ed4f51 | 11646 | (char *) "self", NULL |
d55e5bfc RD |
11647 | }; |
11648 | ||
36ed4f51 RD |
11649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; |
11650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11652 | { |
11653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11654 | result = ((wxLocale const *)arg1)->GetCanonicalName(); |
d55e5bfc RD |
11655 | |
11656 | wxPyEndAllowThreads(__tstate); | |
11657 | if (PyErr_Occurred()) SWIG_fail; | |
11658 | } | |
36ed4f51 RD |
11659 | { |
11660 | #if wxUSE_UNICODE | |
11661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11662 | #else | |
11663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11664 | #endif | |
11665 | } | |
d55e5bfc RD |
11666 | return resultobj; |
11667 | fail: | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
36ed4f51 | 11672 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11673 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11674 | wxString *arg1 = 0 ; |
11675 | bool temp1 = false ; | |
d55e5bfc | 11676 | PyObject * obj0 = 0 ; |
d55e5bfc | 11677 | char *kwnames[] = { |
36ed4f51 | 11678 | (char *) "prefix", NULL |
d55e5bfc RD |
11679 | }; |
11680 | ||
36ed4f51 | 11681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; |
d55e5bfc | 11682 | { |
36ed4f51 RD |
11683 | arg1 = wxString_in_helper(obj0); |
11684 | if (arg1 == NULL) SWIG_fail; | |
11685 | temp1 = true; | |
d55e5bfc RD |
11686 | } |
11687 | { | |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11689 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); |
d55e5bfc RD |
11690 | |
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
11695 | { |
11696 | if (temp1) | |
11697 | delete arg1; | |
11698 | } | |
d55e5bfc RD |
11699 | return resultobj; |
11700 | fail: | |
36ed4f51 RD |
11701 | { |
11702 | if (temp1) | |
11703 | delete arg1; | |
11704 | } | |
d55e5bfc RD |
11705 | return NULL; |
11706 | } | |
11707 | ||
11708 | ||
36ed4f51 | 11709 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11710 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11711 | wxLocale *arg1 = (wxLocale *) 0 ; |
11712 | wxString *arg2 = 0 ; | |
11713 | bool result; | |
11714 | bool temp2 = false ; | |
d55e5bfc RD |
11715 | PyObject * obj0 = 0 ; |
11716 | PyObject * obj1 = 0 ; | |
11717 | char *kwnames[] = { | |
36ed4f51 | 11718 | (char *) "self",(char *) "szDomain", NULL |
d55e5bfc RD |
11719 | }; |
11720 | ||
36ed4f51 RD |
11721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; |
11722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c | 11724 | { |
36ed4f51 RD |
11725 | arg2 = wxString_in_helper(obj1); |
11726 | if (arg2 == NULL) SWIG_fail; | |
11727 | temp2 = true; | |
d55e5bfc RD |
11728 | } |
11729 | { | |
11730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11731 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); |
d55e5bfc RD |
11732 | |
11733 | wxPyEndAllowThreads(__tstate); | |
11734 | if (PyErr_Occurred()) SWIG_fail; | |
11735 | } | |
36ed4f51 RD |
11736 | { |
11737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11738 | } | |
11739 | { | |
11740 | if (temp2) | |
11741 | delete arg2; | |
11742 | } | |
d55e5bfc RD |
11743 | return resultobj; |
11744 | fail: | |
36ed4f51 RD |
11745 | { |
11746 | if (temp2) | |
11747 | delete arg2; | |
11748 | } | |
d55e5bfc RD |
11749 | return NULL; |
11750 | } | |
11751 | ||
11752 | ||
36ed4f51 | 11753 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11754 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11755 | wxLocale *arg1 = (wxLocale *) 0 ; |
11756 | wxString *arg2 = 0 ; | |
11757 | bool result; | |
11758 | bool temp2 = false ; | |
d55e5bfc RD |
11759 | PyObject * obj0 = 0 ; |
11760 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11761 | char *kwnames[] = { |
36ed4f51 | 11762 | (char *) "self",(char *) "szDomain", NULL |
d55e5bfc RD |
11763 | }; |
11764 | ||
36ed4f51 RD |
11765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; |
11766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11768 | { | |
11769 | arg2 = wxString_in_helper(obj1); | |
11770 | if (arg2 == NULL) SWIG_fail; | |
11771 | temp2 = true; | |
11772 | } | |
d55e5bfc RD |
11773 | { |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11775 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); |
d55e5bfc RD |
11776 | |
11777 | wxPyEndAllowThreads(__tstate); | |
11778 | if (PyErr_Occurred()) SWIG_fail; | |
11779 | } | |
36ed4f51 RD |
11780 | { |
11781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11782 | } | |
11783 | { | |
11784 | if (temp2) | |
11785 | delete arg2; | |
11786 | } | |
d55e5bfc RD |
11787 | return resultobj; |
11788 | fail: | |
36ed4f51 RD |
11789 | { |
11790 | if (temp2) | |
11791 | delete arg2; | |
11792 | } | |
d55e5bfc RD |
11793 | return NULL; |
11794 | } | |
11795 | ||
11796 | ||
36ed4f51 | 11797 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11798 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11799 | int arg1 ; |
11800 | wxLanguageInfo *result; | |
d55e5bfc | 11801 | PyObject * obj0 = 0 ; |
d55e5bfc | 11802 | char *kwnames[] = { |
36ed4f51 | 11803 | (char *) "lang", NULL |
d55e5bfc RD |
11804 | }; |
11805 | ||
36ed4f51 | 11806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
d55e5bfc | 11807 | { |
32fe5131 | 11808 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 | 11809 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc | 11810 | } |
d55e5bfc RD |
11811 | { |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11813 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); |
d55e5bfc RD |
11814 | |
11815 | wxPyEndAllowThreads(__tstate); | |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
11817 | } | |
36ed4f51 | 11818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d55e5bfc RD |
11819 | return resultobj; |
11820 | fail: | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
36ed4f51 | 11825 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11826 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11827 | int arg1 ; |
11828 | wxString result; | |
d55e5bfc | 11829 | PyObject * obj0 = 0 ; |
d55e5bfc | 11830 | char *kwnames[] = { |
36ed4f51 | 11831 | (char *) "lang", NULL |
d55e5bfc RD |
11832 | }; |
11833 | ||
36ed4f51 | 11834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
d6c14a4c | 11835 | { |
32fe5131 | 11836 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 | 11837 | if (SWIG_arg_fail(1)) SWIG_fail; |
d6c14a4c | 11838 | } |
d55e5bfc RD |
11839 | { |
11840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11841 | result = wxLocale::GetLanguageName(arg1); |
d55e5bfc RD |
11842 | |
11843 | wxPyEndAllowThreads(__tstate); | |
11844 | if (PyErr_Occurred()) SWIG_fail; | |
11845 | } | |
36ed4f51 RD |
11846 | { |
11847 | #if wxUSE_UNICODE | |
11848 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11849 | #else | |
11850 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11851 | #endif | |
11852 | } | |
d55e5bfc RD |
11853 | return resultobj; |
11854 | fail: | |
11855 | return NULL; | |
11856 | } | |
11857 | ||
11858 | ||
36ed4f51 | 11859 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11860 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11861 | wxString *arg1 = 0 ; |
11862 | wxLanguageInfo *result; | |
11863 | bool temp1 = false ; | |
d55e5bfc | 11864 | PyObject * obj0 = 0 ; |
d55e5bfc | 11865 | char *kwnames[] = { |
36ed4f51 | 11866 | (char *) "locale", NULL |
d55e5bfc RD |
11867 | }; |
11868 | ||
36ed4f51 RD |
11869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; |
11870 | { | |
11871 | arg1 = wxString_in_helper(obj0); | |
11872 | if (arg1 == NULL) SWIG_fail; | |
11873 | temp1 = true; | |
11874 | } | |
d55e5bfc RD |
11875 | { |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11877 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
d55e5bfc RD |
11878 | |
11879 | wxPyEndAllowThreads(__tstate); | |
11880 | if (PyErr_Occurred()) SWIG_fail; | |
11881 | } | |
36ed4f51 RD |
11882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
11883 | { | |
11884 | if (temp1) | |
11885 | delete arg1; | |
11886 | } | |
d55e5bfc RD |
11887 | return resultobj; |
11888 | fail: | |
36ed4f51 RD |
11889 | { |
11890 | if (temp1) | |
11891 | delete arg1; | |
11892 | } | |
d55e5bfc RD |
11893 | return NULL; |
11894 | } | |
11895 | ||
11896 | ||
36ed4f51 | 11897 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11898 | PyObject *resultobj = NULL; |
36ed4f51 | 11899 | wxLanguageInfo *arg1 = 0 ; |
d55e5bfc | 11900 | PyObject * obj0 = 0 ; |
d55e5bfc | 11901 | char *kwnames[] = { |
36ed4f51 | 11902 | (char *) "info", NULL |
d55e5bfc RD |
11903 | }; |
11904 | ||
36ed4f51 | 11905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; |
d55e5bfc | 11906 | { |
36ed4f51 RD |
11907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); |
11908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11909 | if (arg1 == NULL) { | |
11910 | SWIG_null_ref("wxLanguageInfo"); | |
11911 | } | |
11912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11913 | } |
d55e5bfc RD |
11914 | { |
11915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11916 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); |
d55e5bfc RD |
11917 | |
11918 | wxPyEndAllowThreads(__tstate); | |
11919 | if (PyErr_Occurred()) SWIG_fail; | |
11920 | } | |
11921 | Py_INCREF(Py_None); resultobj = Py_None; | |
11922 | return resultobj; | |
11923 | fail: | |
11924 | return NULL; | |
11925 | } | |
11926 | ||
11927 | ||
36ed4f51 | 11928 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11929 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11930 | wxLocale *arg1 = (wxLocale *) 0 ; |
11931 | wxString *arg2 = 0 ; | |
11932 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11933 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11934 | wxString result; | |
11935 | bool temp2 = false ; | |
11936 | bool temp3 = false ; | |
d55e5bfc RD |
11937 | PyObject * obj0 = 0 ; |
11938 | PyObject * obj1 = 0 ; | |
11939 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11940 | char *kwnames[] = { |
36ed4f51 | 11941 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL |
d55e5bfc RD |
11942 | }; |
11943 | ||
36ed4f51 RD |
11944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11947 | { | |
11948 | arg2 = wxString_in_helper(obj1); | |
11949 | if (arg2 == NULL) SWIG_fail; | |
11950 | temp2 = true; | |
11951 | } | |
11952 | if (obj2) { | |
11953 | { | |
11954 | arg3 = wxString_in_helper(obj2); | |
11955 | if (arg3 == NULL) SWIG_fail; | |
11956 | temp3 = true; | |
11957 | } | |
11958 | } | |
d55e5bfc RD |
11959 | { |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11961 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); |
d55e5bfc RD |
11962 | |
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
36ed4f51 RD |
11966 | { |
11967 | #if wxUSE_UNICODE | |
11968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11969 | #else | |
11970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11971 | #endif | |
11972 | } | |
11973 | { | |
11974 | if (temp2) | |
11975 | delete arg2; | |
11976 | } | |
11977 | { | |
11978 | if (temp3) | |
11979 | delete arg3; | |
11980 | } | |
d55e5bfc RD |
11981 | return resultobj; |
11982 | fail: | |
36ed4f51 RD |
11983 | { |
11984 | if (temp2) | |
11985 | delete arg2; | |
11986 | } | |
11987 | { | |
11988 | if (temp3) | |
11989 | delete arg3; | |
11990 | } | |
d55e5bfc RD |
11991 | return NULL; |
11992 | } | |
11993 | ||
11994 | ||
36ed4f51 | 11995 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11996 | PyObject *resultobj = NULL; |
36ed4f51 RD |
11997 | wxLocale *arg1 = (wxLocale *) 0 ; |
11998 | wxString *result; | |
d55e5bfc | 11999 | PyObject * obj0 = 0 ; |
d55e5bfc | 12000 | char *kwnames[] = { |
36ed4f51 | 12001 | (char *) "self", NULL |
d55e5bfc RD |
12002 | }; |
12003 | ||
36ed4f51 RD |
12004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; |
12005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
12006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12007 | { |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
12009 | { |
12010 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
12011 | result = (wxString *) &_result_ref; | |
12012 | } | |
d55e5bfc RD |
12013 | |
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
36ed4f51 RD |
12017 | { |
12018 | #if wxUSE_UNICODE | |
12019 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12020 | #else | |
12021 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12022 | #endif | |
12023 | } | |
d55e5bfc RD |
12024 | return resultobj; |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
36ed4f51 RD |
12030 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
12031 | PyObject *obj; | |
12032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12033 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
12034 | Py_INCREF(obj); | |
12035 | return Py_BuildValue((char *)""); | |
12036 | } | |
12037 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12038 | PyObject *resultobj = NULL; |
36ed4f51 | 12039 | wxLocale *result; |
d55e5bfc | 12040 | char *kwnames[] = { |
36ed4f51 | 12041 | NULL |
d55e5bfc RD |
12042 | }; |
12043 | ||
36ed4f51 | 12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; |
d55e5bfc RD |
12045 | { |
12046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12047 | result = (wxLocale *)wxGetLocale(); |
d55e5bfc RD |
12048 | |
12049 | wxPyEndAllowThreads(__tstate); | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
36ed4f51 | 12052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d55e5bfc RD |
12053 | return resultobj; |
12054 | fail: | |
12055 | return NULL; | |
12056 | } | |
12057 | ||
12058 | ||
36ed4f51 | 12059 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 12060 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12061 | wxString *arg1 = 0 ; |
12062 | wxString result; | |
12063 | bool temp1 = false ; | |
d55e5bfc | 12064 | PyObject * obj0 = 0 ; |
d55e5bfc | 12065 | |
36ed4f51 RD |
12066 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; |
12067 | { | |
12068 | arg1 = wxString_in_helper(obj0); | |
12069 | if (arg1 == NULL) SWIG_fail; | |
12070 | temp1 = true; | |
d55e5bfc | 12071 | } |
d55e5bfc RD |
12072 | { |
12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12074 | result = wxGetTranslation((wxString const &)*arg1); |
d55e5bfc RD |
12075 | |
12076 | wxPyEndAllowThreads(__tstate); | |
12077 | if (PyErr_Occurred()) SWIG_fail; | |
12078 | } | |
36ed4f51 RD |
12079 | { |
12080 | #if wxUSE_UNICODE | |
12081 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12082 | #else | |
12083 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12084 | #endif | |
12085 | } | |
12086 | { | |
12087 | if (temp1) | |
12088 | delete arg1; | |
12089 | } | |
d55e5bfc RD |
12090 | return resultobj; |
12091 | fail: | |
36ed4f51 RD |
12092 | { |
12093 | if (temp1) | |
12094 | delete arg1; | |
12095 | } | |
d55e5bfc RD |
12096 | return NULL; |
12097 | } | |
12098 | ||
12099 | ||
36ed4f51 | 12100 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 12101 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12102 | wxString *arg1 = 0 ; |
12103 | wxString *arg2 = 0 ; | |
12104 | size_t arg3 ; | |
12105 | wxString result; | |
12106 | bool temp1 = false ; | |
12107 | bool temp2 = false ; | |
d55e5bfc RD |
12108 | PyObject * obj0 = 0 ; |
12109 | PyObject * obj1 = 0 ; | |
12110 | PyObject * obj2 = 0 ; | |
d55e5bfc | 12111 | |
36ed4f51 RD |
12112 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; |
12113 | { | |
12114 | arg1 = wxString_in_helper(obj0); | |
12115 | if (arg1 == NULL) SWIG_fail; | |
12116 | temp1 = true; | |
d55e5bfc RD |
12117 | } |
12118 | { | |
36ed4f51 RD |
12119 | arg2 = wxString_in_helper(obj1); |
12120 | if (arg2 == NULL) SWIG_fail; | |
12121 | temp2 = true; | |
12122 | } | |
12123 | { | |
32fe5131 | 12124 | arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2)); |
36ed4f51 | 12125 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
12126 | } |
12127 | { | |
12128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12129 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); |
d55e5bfc RD |
12130 | |
12131 | wxPyEndAllowThreads(__tstate); | |
12132 | if (PyErr_Occurred()) SWIG_fail; | |
12133 | } | |
36ed4f51 RD |
12134 | { |
12135 | #if wxUSE_UNICODE | |
12136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12137 | #else | |
12138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12139 | #endif | |
12140 | } | |
12141 | { | |
12142 | if (temp1) | |
12143 | delete arg1; | |
12144 | } | |
12145 | { | |
12146 | if (temp2) | |
12147 | delete arg2; | |
12148 | } | |
d55e5bfc RD |
12149 | return resultobj; |
12150 | fail: | |
36ed4f51 RD |
12151 | { |
12152 | if (temp1) | |
12153 | delete arg1; | |
12154 | } | |
12155 | { | |
12156 | if (temp2) | |
12157 | delete arg2; | |
12158 | } | |
d55e5bfc RD |
12159 | return NULL; |
12160 | } | |
12161 | ||
12162 | ||
36ed4f51 RD |
12163 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
12164 | int argc; | |
12165 | PyObject *argv[4]; | |
12166 | int ii; | |
12167 | ||
12168 | argc = PyObject_Length(args); | |
12169 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
12170 | argv[ii] = PyTuple_GetItem(args,ii); | |
12171 | } | |
12172 | if (argc == 1) { | |
12173 | int _v; | |
12174 | { | |
12175 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12176 | } | |
12177 | if (_v) { | |
12178 | return _wrap_GetTranslation__SWIG_0(self,args); | |
12179 | } | |
12180 | } | |
12181 | if (argc == 3) { | |
12182 | int _v; | |
12183 | { | |
12184 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12185 | } | |
12186 | if (_v) { | |
12187 | { | |
12188 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
12189 | } | |
12190 | if (_v) { | |
12191 | _v = SWIG_Check_unsigned_SS_long(argv[2]); | |
12192 | if (_v) { | |
12193 | return _wrap_GetTranslation__SWIG_1(self,args); | |
12194 | } | |
12195 | } | |
12196 | } | |
12197 | } | |
12198 | ||
12199 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12205 | PyObject *resultobj = NULL; |
36ed4f51 | 12206 | wxEncodingConverter *result; |
d55e5bfc | 12207 | char *kwnames[] = { |
36ed4f51 | 12208 | NULL |
d55e5bfc RD |
12209 | }; |
12210 | ||
36ed4f51 | 12211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; |
d55e5bfc RD |
12212 | { |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12214 | result = (wxEncodingConverter *)new wxEncodingConverter(); |
d55e5bfc RD |
12215 | |
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
36ed4f51 | 12219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d55e5bfc RD |
12220 | return resultobj; |
12221 | fail: | |
12222 | return NULL; | |
12223 | } | |
12224 | ||
12225 | ||
36ed4f51 | 12226 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12227 | PyObject *resultobj = NULL; |
36ed4f51 | 12228 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
d55e5bfc | 12229 | PyObject * obj0 = 0 ; |
d55e5bfc | 12230 | char *kwnames[] = { |
36ed4f51 | 12231 | (char *) "self", NULL |
d55e5bfc RD |
12232 | }; |
12233 | ||
36ed4f51 RD |
12234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; |
12235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12237 | { |
12238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12239 | delete arg1; |
d55e5bfc RD |
12240 | |
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
12244 | Py_INCREF(Py_None); resultobj = Py_None; | |
12245 | return resultobj; | |
12246 | fail: | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
36ed4f51 | 12251 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12252 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12253 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
12254 | wxFontEncoding arg2 ; | |
12255 | wxFontEncoding arg3 ; | |
12256 | int arg4 = (int) wxCONVERT_STRICT ; | |
12257 | bool result; | |
d55e5bfc RD |
12258 | PyObject * obj0 = 0 ; |
12259 | PyObject * obj1 = 0 ; | |
12260 | PyObject * obj2 = 0 ; | |
12261 | PyObject * obj3 = 0 ; | |
12262 | char *kwnames[] = { | |
36ed4f51 | 12263 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL |
d55e5bfc RD |
12264 | }; |
12265 | ||
36ed4f51 RD |
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12269 | { |
32fe5131 | 12270 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 RD |
12271 | if (SWIG_arg_fail(2)) SWIG_fail; |
12272 | } | |
12273 | { | |
32fe5131 | 12274 | arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2)); |
36ed4f51 RD |
12275 | if (SWIG_arg_fail(3)) SWIG_fail; |
12276 | } | |
12277 | if (obj3) { | |
12278 | { | |
32fe5131 | 12279 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
12280 | if (SWIG_arg_fail(4)) SWIG_fail; |
12281 | } | |
d55e5bfc | 12282 | } |
d55e5bfc RD |
12283 | { |
12284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12285 | result = (bool)(arg1)->Init(arg2,arg3,arg4); |
d55e5bfc RD |
12286 | |
12287 | wxPyEndAllowThreads(__tstate); | |
12288 | if (PyErr_Occurred()) SWIG_fail; | |
12289 | } | |
d55e5bfc | 12290 | { |
36ed4f51 | 12291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
12292 | } |
12293 | return resultobj; | |
12294 | fail: | |
d55e5bfc RD |
12295 | return NULL; |
12296 | } | |
12297 | ||
12298 | ||
36ed4f51 | 12299 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12300 | PyObject *resultobj = NULL; |
36ed4f51 | 12301 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
d55e5bfc | 12302 | wxString *arg2 = 0 ; |
36ed4f51 | 12303 | wxString result; |
b411df4a | 12304 | bool temp2 = false ; |
d55e5bfc RD |
12305 | PyObject * obj0 = 0 ; |
12306 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12307 | char *kwnames[] = { |
36ed4f51 | 12308 | (char *) "self",(char *) "input", NULL |
d55e5bfc RD |
12309 | }; |
12310 | ||
36ed4f51 RD |
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; |
12312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12314 | { |
12315 | arg2 = wxString_in_helper(obj1); | |
12316 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12317 | temp2 = true; |
d55e5bfc | 12318 | } |
d55e5bfc RD |
12319 | { |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12321 | result = (arg1)->Convert((wxString const &)*arg2); |
d55e5bfc RD |
12322 | |
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
36ed4f51 RD |
12326 | { |
12327 | #if wxUSE_UNICODE | |
12328 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12329 | #else | |
12330 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12331 | #endif | |
12332 | } | |
d55e5bfc RD |
12333 | { |
12334 | if (temp2) | |
12335 | delete arg2; | |
12336 | } | |
12337 | return resultobj; | |
12338 | fail: | |
12339 | { | |
12340 | if (temp2) | |
12341 | delete arg2; | |
12342 | } | |
12343 | return NULL; | |
12344 | } | |
12345 | ||
12346 | ||
36ed4f51 | 12347 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12348 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12349 | wxFontEncoding arg1 ; |
12350 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
12351 | wxFontEncodingArray result; | |
d55e5bfc RD |
12352 | PyObject * obj0 = 0 ; |
12353 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12354 | char *kwnames[] = { |
36ed4f51 | 12355 | (char *) "enc",(char *) "platform", NULL |
d55e5bfc RD |
12356 | }; |
12357 | ||
36ed4f51 | 12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 12359 | { |
32fe5131 | 12360 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 RD |
12361 | if (SWIG_arg_fail(1)) SWIG_fail; |
12362 | } | |
12363 | if (obj1) { | |
12364 | { | |
32fe5131 | 12365 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
12366 | if (SWIG_arg_fail(2)) SWIG_fail; |
12367 | } | |
d55e5bfc | 12368 | } |
d55e5bfc RD |
12369 | { |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12371 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); |
d55e5bfc RD |
12372 | |
12373 | wxPyEndAllowThreads(__tstate); | |
12374 | if (PyErr_Occurred()) SWIG_fail; | |
12375 | } | |
d55e5bfc | 12376 | { |
36ed4f51 RD |
12377 | resultobj = PyList_New(0); |
12378 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12379 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12380 | PyList_Append(resultobj, number); | |
12381 | Py_DECREF(number); | |
12382 | } | |
d55e5bfc RD |
12383 | } |
12384 | return resultobj; | |
12385 | fail: | |
d55e5bfc RD |
12386 | return NULL; |
12387 | } | |
12388 | ||
12389 | ||
36ed4f51 | 12390 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12391 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12392 | wxFontEncoding arg1 ; |
12393 | wxFontEncodingArray result; | |
d55e5bfc | 12394 | PyObject * obj0 = 0 ; |
d55e5bfc | 12395 | char *kwnames[] = { |
36ed4f51 | 12396 | (char *) "enc", NULL |
d55e5bfc RD |
12397 | }; |
12398 | ||
36ed4f51 | 12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
d55e5bfc | 12400 | { |
32fe5131 | 12401 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 | 12402 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc | 12403 | } |
d55e5bfc RD |
12404 | { |
12405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12406 | result = wxEncodingConverter::GetAllEquivalents(arg1); |
d55e5bfc RD |
12407 | |
12408 | wxPyEndAllowThreads(__tstate); | |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
12410 | } | |
d55e5bfc | 12411 | { |
36ed4f51 RD |
12412 | resultobj = PyList_New(0); |
12413 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12414 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12415 | PyList_Append(resultobj, number); | |
12416 | Py_DECREF(number); | |
12417 | } | |
d55e5bfc RD |
12418 | } |
12419 | return resultobj; | |
12420 | fail: | |
d55e5bfc RD |
12421 | return NULL; |
12422 | } | |
12423 | ||
12424 | ||
36ed4f51 | 12425 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12426 | PyObject *resultobj = NULL; |
36ed4f51 RD |
12427 | wxFontEncoding arg1 ; |
12428 | wxFontEncoding arg2 ; | |
d55e5bfc RD |
12429 | bool result; |
12430 | PyObject * obj0 = 0 ; | |
12431 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12432 | char *kwnames[] = { |
36ed4f51 | 12433 | (char *) "encIn",(char *) "encOut", NULL |
d55e5bfc RD |
12434 | }; |
12435 | ||
36ed4f51 RD |
12436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
12437 | { | |
32fe5131 | 12438 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
36ed4f51 | 12439 | if (SWIG_arg_fail(1)) SWIG_fail; |
d55e5bfc | 12440 | } |
36ed4f51 | 12441 | { |
32fe5131 | 12442 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
36ed4f51 | 12443 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
12444 | } |
12445 | { | |
12446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12447 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); |
d55e5bfc RD |
12448 | |
12449 | wxPyEndAllowThreads(__tstate); | |
12450 | if (PyErr_Occurred()) SWIG_fail; | |
12451 | } | |
12452 | { | |
12453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12454 | } | |
12455 | return resultobj; | |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
36ed4f51 RD |
12461 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
12462 | PyObject *obj; | |
12463 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12464 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
12465 | Py_INCREF(obj); | |
12466 | return Py_BuildValue((char *)""); | |
12467 | } | |
12468 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12469 | PyObject *resultobj = NULL; |
d55e5bfc | 12470 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc | 12471 | PyObject * obj0 = 0 ; |
d55e5bfc | 12472 | char *kwnames[] = { |
36ed4f51 | 12473 | (char *) "self", NULL |
d55e5bfc RD |
12474 | }; |
12475 | ||
36ed4f51 RD |
12476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; |
12477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12479 | { |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12481 | delete arg1; |
d6c14a4c RD |
12482 | |
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
36ed4f51 | 12486 | Py_INCREF(Py_None); resultobj = Py_None; |
d6c14a4c RD |
12487 | return resultobj; |
12488 | fail: | |
12489 | return NULL; | |
12490 | } | |
12491 | ||
12492 | ||
36ed4f51 | 12493 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12494 | PyObject *resultobj = NULL; |
d6c14a4c | 12495 | wxDC *arg1 = (wxDC *) 0 ; |
d6c14a4c | 12496 | PyObject * obj0 = 0 ; |
d6c14a4c | 12497 | char *kwnames[] = { |
36ed4f51 | 12498 | (char *) "self", NULL |
d6c14a4c RD |
12499 | }; |
12500 | ||
36ed4f51 RD |
12501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; |
12502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c RD |
12504 | { |
12505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12506 | (arg1)->BeginDrawing(); |
d6c14a4c RD |
12507 | |
12508 | wxPyEndAllowThreads(__tstate); | |
12509 | if (PyErr_Occurred()) SWIG_fail; | |
12510 | } | |
12511 | Py_INCREF(Py_None); resultobj = Py_None; | |
12512 | return resultobj; | |
12513 | fail: | |
12514 | return NULL; | |
12515 | } | |
12516 | ||
12517 | ||
36ed4f51 | 12518 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12519 | PyObject *resultobj = NULL; |
d6c14a4c | 12520 | wxDC *arg1 = (wxDC *) 0 ; |
d6c14a4c | 12521 | PyObject * obj0 = 0 ; |
d6c14a4c | 12522 | char *kwnames[] = { |
36ed4f51 | 12523 | (char *) "self", NULL |
d6c14a4c RD |
12524 | }; |
12525 | ||
36ed4f51 RD |
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; |
12527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c RD |
12529 | { |
12530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12531 | (arg1)->EndDrawing(); |
d6c14a4c RD |
12532 | |
12533 | wxPyEndAllowThreads(__tstate); | |
12534 | if (PyErr_Occurred()) SWIG_fail; | |
12535 | } | |
12536 | Py_INCREF(Py_None); resultobj = Py_None; | |
12537 | return resultobj; | |
12538 | fail: | |
12539 | return NULL; | |
12540 | } | |
12541 | ||
12542 | ||
36ed4f51 | 12543 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12544 | PyObject *resultobj = NULL; |
d6c14a4c | 12545 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12546 | int arg2 ; |
12547 | int arg3 ; | |
12548 | wxColour *arg4 = 0 ; | |
12549 | int arg5 = (int) wxFLOOD_SURFACE ; | |
12550 | bool result; | |
12551 | wxColour temp4 ; | |
d6c14a4c RD |
12552 | PyObject * obj0 = 0 ; |
12553 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
12554 | PyObject * obj2 = 0 ; |
12555 | PyObject * obj3 = 0 ; | |
12556 | PyObject * obj4 = 0 ; | |
d6c14a4c | 12557 | char *kwnames[] = { |
36ed4f51 | 12558 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL |
d6c14a4c RD |
12559 | }; |
12560 | ||
36ed4f51 RD |
12561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12564 | { | |
32fe5131 | 12565 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
12566 | if (SWIG_arg_fail(2)) SWIG_fail; |
12567 | } | |
12568 | { | |
32fe5131 | 12569 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
12570 | if (SWIG_arg_fail(3)) SWIG_fail; |
12571 | } | |
12572 | { | |
12573 | arg4 = &temp4; | |
12574 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12575 | } | |
12576 | if (obj4) { | |
12577 | { | |
32fe5131 | 12578 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
12579 | if (SWIG_arg_fail(5)) SWIG_fail; |
12580 | } | |
d6c14a4c RD |
12581 | } |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12584 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); |
d6c14a4c RD |
12585 | |
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
36ed4f51 RD |
12589 | { |
12590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12591 | } | |
d6c14a4c RD |
12592 | return resultobj; |
12593 | fail: | |
12594 | return NULL; | |
12595 | } | |
12596 | ||
12597 | ||
36ed4f51 | 12598 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12599 | PyObject *resultobj = NULL; |
d6c14a4c | 12600 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12601 | wxPoint *arg2 = 0 ; |
12602 | wxColour *arg3 = 0 ; | |
12603 | int arg4 = (int) wxFLOOD_SURFACE ; | |
12604 | bool result; | |
12605 | wxPoint temp2 ; | |
12606 | wxColour temp3 ; | |
d6c14a4c RD |
12607 | PyObject * obj0 = 0 ; |
12608 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
12609 | PyObject * obj2 = 0 ; |
12610 | PyObject * obj3 = 0 ; | |
d6c14a4c | 12611 | char *kwnames[] = { |
36ed4f51 | 12612 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL |
d6c14a4c RD |
12613 | }; |
12614 | ||
36ed4f51 RD |
12615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c RD |
12618 | { |
12619 | arg2 = &temp2; | |
36ed4f51 | 12620 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d6c14a4c RD |
12621 | } |
12622 | { | |
36ed4f51 RD |
12623 | arg3 = &temp3; |
12624 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 12625 | } |
36ed4f51 RD |
12626 | if (obj3) { |
12627 | { | |
32fe5131 | 12628 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
12629 | if (SWIG_arg_fail(4)) SWIG_fail; |
12630 | } | |
12631 | } | |
12632 | { | |
12633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12634 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
12635 | ||
12636 | wxPyEndAllowThreads(__tstate); | |
12637 | if (PyErr_Occurred()) SWIG_fail; | |
12638 | } | |
12639 | { | |
12640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12641 | } | |
12642 | return resultobj; | |
d55e5bfc RD |
12643 | fail: |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
36ed4f51 | 12648 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12649 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12650 | wxDC *arg1 = (wxDC *) 0 ; |
12651 | int arg2 ; | |
36ed4f51 RD |
12652 | int arg3 ; |
12653 | wxColour result; | |
d55e5bfc RD |
12654 | PyObject * obj0 = 0 ; |
12655 | PyObject * obj1 = 0 ; | |
12656 | PyObject * obj2 = 0 ; | |
d55e5bfc | 12657 | char *kwnames[] = { |
36ed4f51 | 12658 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
12659 | }; |
12660 | ||
36ed4f51 RD |
12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12664 | { |
32fe5131 | 12665 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 12666 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 12667 | } |
36ed4f51 | 12668 | { |
32fe5131 | 12669 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 12670 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
12671 | } |
12672 | { | |
12673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12674 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
12675 | |
12676 | wxPyEndAllowThreads(__tstate); | |
12677 | if (PyErr_Occurred()) SWIG_fail; | |
12678 | } | |
d55e5bfc | 12679 | { |
36ed4f51 | 12680 | wxColour * resultptr; |
32fe5131 | 12681 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 | 12682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d55e5bfc RD |
12683 | } |
12684 | return resultobj; | |
12685 | fail: | |
d55e5bfc RD |
12686 | return NULL; |
12687 | } | |
12688 | ||
12689 | ||
36ed4f51 | 12690 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12691 | PyObject *resultobj = NULL; |
d55e5bfc | 12692 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12693 | wxPoint *arg2 = 0 ; |
12694 | wxColour result; | |
12695 | wxPoint temp2 ; | |
d55e5bfc RD |
12696 | PyObject * obj0 = 0 ; |
12697 | PyObject * obj1 = 0 ; | |
d55e5bfc | 12698 | char *kwnames[] = { |
36ed4f51 | 12699 | (char *) "self",(char *) "pt", NULL |
d55e5bfc RD |
12700 | }; |
12701 | ||
36ed4f51 RD |
12702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
12703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12705 | { |
36ed4f51 RD |
12706 | arg2 = &temp2; |
12707 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
12708 | } |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12711 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
12712 | |
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
d55e5bfc | 12716 | { |
36ed4f51 | 12717 | wxColour * resultptr; |
32fe5131 | 12718 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 | 12719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d55e5bfc RD |
12720 | } |
12721 | return resultobj; | |
12722 | fail: | |
d55e5bfc RD |
12723 | return NULL; |
12724 | } | |
12725 | ||
12726 | ||
36ed4f51 | 12727 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12728 | PyObject *resultobj = NULL; |
d55e5bfc | 12729 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12730 | int arg2 ; |
12731 | int arg3 ; | |
12732 | int arg4 ; | |
12733 | int arg5 ; | |
d55e5bfc RD |
12734 | PyObject * obj0 = 0 ; |
12735 | PyObject * obj1 = 0 ; | |
12736 | PyObject * obj2 = 0 ; | |
12737 | PyObject * obj3 = 0 ; | |
12738 | PyObject * obj4 = 0 ; | |
12739 | char *kwnames[] = { | |
36ed4f51 | 12740 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL |
d55e5bfc RD |
12741 | }; |
12742 | ||
36ed4f51 RD |
12743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12746 | { |
32fe5131 | 12747 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 12748 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
12749 | } |
12750 | { | |
32fe5131 | 12751 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 12752 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc | 12753 | } |
36ed4f51 | 12754 | { |
32fe5131 | 12755 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 | 12756 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc | 12757 | } |
36ed4f51 | 12758 | { |
32fe5131 | 12759 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 | 12760 | if (SWIG_arg_fail(5)) SWIG_fail; |
d55e5bfc RD |
12761 | } |
12762 | { | |
12763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12764 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
12765 | |
12766 | wxPyEndAllowThreads(__tstate); | |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
12768 | } | |
12769 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
12770 | return resultobj; |
12771 | fail: | |
d55e5bfc RD |
12772 | return NULL; |
12773 | } | |
12774 | ||
12775 | ||
36ed4f51 | 12776 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12777 | PyObject *resultobj = NULL; |
d55e5bfc | 12778 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12779 | wxPoint *arg2 = 0 ; |
12780 | wxPoint *arg3 = 0 ; | |
12781 | wxPoint temp2 ; | |
12782 | wxPoint temp3 ; | |
d55e5bfc RD |
12783 | PyObject * obj0 = 0 ; |
12784 | PyObject * obj1 = 0 ; | |
12785 | PyObject * obj2 = 0 ; | |
d55e5bfc | 12786 | char *kwnames[] = { |
36ed4f51 | 12787 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL |
d55e5bfc RD |
12788 | }; |
12789 | ||
36ed4f51 RD |
12790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12793 | { |
36ed4f51 RD |
12794 | arg2 = &temp2; |
12795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
12796 | } |
12797 | { | |
36ed4f51 RD |
12798 | arg3 = &temp3; |
12799 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12800 | } |
12801 | { | |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12803 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); |
d55e5bfc RD |
12804 | |
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
36ed4f51 | 12808 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12809 | return resultobj; |
12810 | fail: | |
d55e5bfc RD |
12811 | return NULL; |
12812 | } | |
12813 | ||
12814 | ||
36ed4f51 | 12815 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12816 | PyObject *resultobj = NULL; |
d55e5bfc RD |
12817 | wxDC *arg1 = (wxDC *) 0 ; |
12818 | int arg2 ; | |
36ed4f51 | 12819 | int arg3 ; |
d55e5bfc RD |
12820 | PyObject * obj0 = 0 ; |
12821 | PyObject * obj1 = 0 ; | |
36ed4f51 | 12822 | PyObject * obj2 = 0 ; |
d55e5bfc | 12823 | char *kwnames[] = { |
36ed4f51 | 12824 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
12825 | }; |
12826 | ||
36ed4f51 RD |
12827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12830 | { |
32fe5131 | 12831 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
12832 | if (SWIG_arg_fail(2)) SWIG_fail; |
12833 | } | |
12834 | { | |
32fe5131 | 12835 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 12836 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
12837 | } |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12840 | (arg1)->CrossHair(arg2,arg3); |
d55e5bfc RD |
12841 | |
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
12846 | return resultobj; |
12847 | fail: | |
d55e5bfc RD |
12848 | return NULL; |
12849 | } | |
12850 | ||
12851 | ||
36ed4f51 | 12852 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12853 | PyObject *resultobj = NULL; |
d55e5bfc | 12854 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12855 | wxPoint *arg2 = 0 ; |
12856 | wxPoint temp2 ; | |
d55e5bfc | 12857 | PyObject * obj0 = 0 ; |
36ed4f51 | 12858 | PyObject * obj1 = 0 ; |
d55e5bfc | 12859 | char *kwnames[] = { |
36ed4f51 | 12860 | (char *) "self",(char *) "pt", NULL |
d55e5bfc RD |
12861 | }; |
12862 | ||
36ed4f51 RD |
12863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
12864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12866 | { | |
12867 | arg2 = &temp2; | |
12868 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12869 | } | |
d55e5bfc RD |
12870 | { |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12872 | (arg1)->CrossHair((wxPoint const &)*arg2); |
d55e5bfc RD |
12873 | |
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | Py_INCREF(Py_None); resultobj = Py_None; | |
12878 | return resultobj; | |
12879 | fail: | |
12880 | return NULL; | |
12881 | } | |
12882 | ||
12883 | ||
36ed4f51 | 12884 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12885 | PyObject *resultobj = NULL; |
d55e5bfc | 12886 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12887 | int arg2 ; |
12888 | int arg3 ; | |
12889 | int arg4 ; | |
12890 | int arg5 ; | |
12891 | int arg6 ; | |
12892 | int arg7 ; | |
d55e5bfc RD |
12893 | PyObject * obj0 = 0 ; |
12894 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
12895 | PyObject * obj2 = 0 ; |
12896 | PyObject * obj3 = 0 ; | |
12897 | PyObject * obj4 = 0 ; | |
12898 | PyObject * obj5 = 0 ; | |
12899 | PyObject * obj6 = 0 ; | |
d55e5bfc | 12900 | char *kwnames[] = { |
36ed4f51 | 12901 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL |
d55e5bfc RD |
12902 | }; |
12903 | ||
36ed4f51 RD |
12904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
12905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12907 | { |
32fe5131 | 12908 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 12909 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
12910 | } |
12911 | { | |
32fe5131 | 12912 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 12913 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
12914 | } |
12915 | { | |
32fe5131 | 12916 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 | 12917 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc RD |
12918 | } |
12919 | { | |
32fe5131 | 12920 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 | 12921 | if (SWIG_arg_fail(5)) SWIG_fail; |
d55e5bfc | 12922 | } |
d55e5bfc | 12923 | { |
32fe5131 | 12924 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
36ed4f51 RD |
12925 | if (SWIG_arg_fail(6)) SWIG_fail; |
12926 | } | |
12927 | { | |
32fe5131 | 12928 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
36ed4f51 RD |
12929 | if (SWIG_arg_fail(7)) SWIG_fail; |
12930 | } | |
12931 | { | |
12932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12933 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
12934 | ||
12935 | wxPyEndAllowThreads(__tstate); | |
12936 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 12937 | } |
36ed4f51 RD |
12938 | Py_INCREF(Py_None); resultobj = Py_None; |
12939 | return resultobj; | |
12940 | fail: | |
d55e5bfc RD |
12941 | return NULL; |
12942 | } | |
12943 | ||
12944 | ||
36ed4f51 | 12945 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12946 | PyObject *resultobj = NULL; |
d55e5bfc | 12947 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12948 | wxPoint *arg2 = 0 ; |
12949 | wxPoint *arg3 = 0 ; | |
12950 | wxPoint *arg4 = 0 ; | |
12951 | wxPoint temp2 ; | |
12952 | wxPoint temp3 ; | |
12953 | wxPoint temp4 ; | |
d55e5bfc | 12954 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
12955 | PyObject * obj1 = 0 ; |
12956 | PyObject * obj2 = 0 ; | |
12957 | PyObject * obj3 = 0 ; | |
d55e5bfc | 12958 | char *kwnames[] = { |
36ed4f51 | 12959 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d55e5bfc RD |
12960 | }; |
12961 | ||
36ed4f51 RD |
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12965 | { | |
12966 | arg2 = &temp2; | |
12967 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12968 | } | |
12969 | { | |
12970 | arg3 = &temp3; | |
12971 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12972 | } | |
12973 | { | |
12974 | arg4 = &temp4; | |
12975 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12976 | } | |
d55e5bfc RD |
12977 | { |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 12979 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); |
d55e5bfc RD |
12980 | |
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
12984 | Py_INCREF(Py_None); resultobj = Py_None; | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
36ed4f51 | 12991 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12992 | PyObject *resultobj = NULL; |
d55e5bfc | 12993 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
12994 | int arg2 ; |
12995 | int arg3 ; | |
12996 | int arg4 ; | |
12997 | int arg5 ; | |
d55e5bfc | 12998 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
12999 | PyObject * obj1 = 0 ; |
13000 | PyObject * obj2 = 0 ; | |
13001 | PyObject * obj3 = 0 ; | |
13002 | PyObject * obj4 = 0 ; | |
d55e5bfc | 13003 | char *kwnames[] = { |
36ed4f51 | 13004 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
13005 | }; |
13006 | ||
36ed4f51 RD |
13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13010 | { | |
32fe5131 | 13011 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
13012 | if (SWIG_arg_fail(2)) SWIG_fail; |
13013 | } | |
13014 | { | |
32fe5131 | 13015 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13016 | if (SWIG_arg_fail(3)) SWIG_fail; |
13017 | } | |
13018 | { | |
32fe5131 | 13019 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13020 | if (SWIG_arg_fail(4)) SWIG_fail; |
13021 | } | |
13022 | { | |
32fe5131 | 13023 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
13024 | if (SWIG_arg_fail(5)) SWIG_fail; |
13025 | } | |
d55e5bfc RD |
13026 | { |
13027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13028 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
13029 | |
13030 | wxPyEndAllowThreads(__tstate); | |
13031 | if (PyErr_Occurred()) SWIG_fail; | |
13032 | } | |
13033 | Py_INCREF(Py_None); resultobj = Py_None; | |
13034 | return resultobj; | |
13035 | fail: | |
13036 | return NULL; | |
13037 | } | |
13038 | ||
13039 | ||
36ed4f51 | 13040 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13041 | PyObject *resultobj = NULL; |
d55e5bfc | 13042 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13043 | wxRect *arg2 = 0 ; |
13044 | wxRect temp2 ; | |
d55e5bfc | 13045 | PyObject * obj0 = 0 ; |
36ed4f51 | 13046 | PyObject * obj1 = 0 ; |
d55e5bfc | 13047 | char *kwnames[] = { |
36ed4f51 | 13048 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
13049 | }; |
13050 | ||
36ed4f51 RD |
13051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
13052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13054 | { | |
13055 | arg2 = &temp2; | |
13056 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13057 | } | |
d55e5bfc RD |
13058 | { |
13059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13060 | (arg1)->DrawCheckMark((wxRect const &)*arg2); |
d55e5bfc RD |
13061 | |
13062 | wxPyEndAllowThreads(__tstate); | |
13063 | if (PyErr_Occurred()) SWIG_fail; | |
13064 | } | |
13065 | Py_INCREF(Py_None); resultobj = Py_None; | |
13066 | return resultobj; | |
13067 | fail: | |
13068 | return NULL; | |
13069 | } | |
13070 | ||
13071 | ||
36ed4f51 | 13072 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13073 | PyObject *resultobj = NULL; |
d55e5bfc | 13074 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13075 | int arg2 ; |
13076 | int arg3 ; | |
13077 | int arg4 ; | |
13078 | int arg5 ; | |
13079 | double arg6 ; | |
13080 | double arg7 ; | |
d55e5bfc RD |
13081 | PyObject * obj0 = 0 ; |
13082 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
13083 | PyObject * obj2 = 0 ; |
13084 | PyObject * obj3 = 0 ; | |
13085 | PyObject * obj4 = 0 ; | |
13086 | PyObject * obj5 = 0 ; | |
13087 | PyObject * obj6 = 0 ; | |
d55e5bfc | 13088 | char *kwnames[] = { |
36ed4f51 | 13089 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
13090 | }; |
13091 | ||
36ed4f51 RD |
13092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
13093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13095 | { | |
32fe5131 | 13096 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
13097 | if (SWIG_arg_fail(2)) SWIG_fail; |
13098 | } | |
13099 | { | |
32fe5131 | 13100 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13101 | if (SWIG_arg_fail(3)) SWIG_fail; |
13102 | } | |
13103 | { | |
32fe5131 | 13104 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13105 | if (SWIG_arg_fail(4)) SWIG_fail; |
13106 | } | |
13107 | { | |
32fe5131 | 13108 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
13109 | if (SWIG_arg_fail(5)) SWIG_fail; |
13110 | } | |
13111 | { | |
32fe5131 | 13112 | arg6 = static_cast<double >(SWIG_As_double(obj5)); |
36ed4f51 RD |
13113 | if (SWIG_arg_fail(6)) SWIG_fail; |
13114 | } | |
13115 | { | |
32fe5131 | 13116 | arg7 = static_cast<double >(SWIG_As_double(obj6)); |
36ed4f51 | 13117 | if (SWIG_arg_fail(7)) SWIG_fail; |
d55e5bfc RD |
13118 | } |
13119 | { | |
13120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13121 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
13122 | |
13123 | wxPyEndAllowThreads(__tstate); | |
13124 | if (PyErr_Occurred()) SWIG_fail; | |
13125 | } | |
13126 | Py_INCREF(Py_None); resultobj = Py_None; | |
13127 | return resultobj; | |
13128 | fail: | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
36ed4f51 | 13133 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13134 | PyObject *resultobj = NULL; |
d55e5bfc | 13135 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13136 | wxPoint *arg2 = 0 ; |
13137 | wxSize *arg3 = 0 ; | |
13138 | double arg4 ; | |
13139 | double arg5 ; | |
13140 | wxPoint temp2 ; | |
13141 | wxSize temp3 ; | |
d55e5bfc RD |
13142 | PyObject * obj0 = 0 ; |
13143 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
13144 | PyObject * obj2 = 0 ; |
13145 | PyObject * obj3 = 0 ; | |
13146 | PyObject * obj4 = 0 ; | |
d55e5bfc | 13147 | char *kwnames[] = { |
36ed4f51 | 13148 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
13149 | }; |
13150 | ||
36ed4f51 RD |
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13154 | { | |
13155 | arg2 = &temp2; | |
13156 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13157 | } | |
13158 | { | |
13159 | arg3 = &temp3; | |
13160 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13161 | } | |
13162 | { | |
32fe5131 | 13163 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
36ed4f51 RD |
13164 | if (SWIG_arg_fail(4)) SWIG_fail; |
13165 | } | |
13166 | { | |
32fe5131 | 13167 | arg5 = static_cast<double >(SWIG_As_double(obj4)); |
36ed4f51 | 13168 | if (SWIG_arg_fail(5)) SWIG_fail; |
d55e5bfc RD |
13169 | } |
13170 | { | |
13171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13172 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); |
d55e5bfc RD |
13173 | |
13174 | wxPyEndAllowThreads(__tstate); | |
13175 | if (PyErr_Occurred()) SWIG_fail; | |
13176 | } | |
13177 | Py_INCREF(Py_None); resultobj = Py_None; | |
13178 | return resultobj; | |
13179 | fail: | |
13180 | return NULL; | |
13181 | } | |
13182 | ||
13183 | ||
36ed4f51 | 13184 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13185 | PyObject *resultobj = NULL; |
d55e5bfc | 13186 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13187 | int arg2 ; |
13188 | int arg3 ; | |
d55e5bfc RD |
13189 | PyObject * obj0 = 0 ; |
13190 | PyObject * obj1 = 0 ; | |
36ed4f51 | 13191 | PyObject * obj2 = 0 ; |
d55e5bfc | 13192 | char *kwnames[] = { |
36ed4f51 | 13193 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
13194 | }; |
13195 | ||
36ed4f51 RD |
13196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13199 | { | |
32fe5131 | 13200 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
13201 | if (SWIG_arg_fail(2)) SWIG_fail; |
13202 | } | |
13203 | { | |
32fe5131 | 13204 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 13205 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
13206 | } |
13207 | { | |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13209 | (arg1)->DrawPoint(arg2,arg3); |
d55e5bfc RD |
13210 | |
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | Py_INCREF(Py_None); resultobj = Py_None; | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
36ed4f51 | 13221 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13222 | PyObject *resultobj = NULL; |
d55e5bfc | 13223 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13224 | wxPoint *arg2 = 0 ; |
13225 | wxPoint temp2 ; | |
d55e5bfc RD |
13226 | PyObject * obj0 = 0 ; |
13227 | PyObject * obj1 = 0 ; | |
13228 | char *kwnames[] = { | |
36ed4f51 | 13229 | (char *) "self",(char *) "pt", NULL |
d55e5bfc RD |
13230 | }; |
13231 | ||
36ed4f51 RD |
13232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
13233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13235 | { | |
13236 | arg2 = &temp2; | |
13237 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
13238 | } |
13239 | { | |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13241 | (arg1)->DrawPoint((wxPoint const &)*arg2); |
d55e5bfc RD |
13242 | |
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | Py_INCREF(Py_None); resultobj = Py_None; | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
36ed4f51 | 13253 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13254 | PyObject *resultobj = NULL; |
d55e5bfc RD |
13255 | wxDC *arg1 = (wxDC *) 0 ; |
13256 | int arg2 ; | |
36ed4f51 RD |
13257 | int arg3 ; |
13258 | int arg4 ; | |
13259 | int arg5 ; | |
d55e5bfc RD |
13260 | PyObject * obj0 = 0 ; |
13261 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
13262 | PyObject * obj2 = 0 ; |
13263 | PyObject * obj3 = 0 ; | |
13264 | PyObject * obj4 = 0 ; | |
d55e5bfc | 13265 | char *kwnames[] = { |
36ed4f51 | 13266 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
13267 | }; |
13268 | ||
36ed4f51 RD |
13269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13272 | { | |
32fe5131 | 13273 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
13274 | if (SWIG_arg_fail(2)) SWIG_fail; |
13275 | } | |
13276 | { | |
32fe5131 | 13277 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13278 | if (SWIG_arg_fail(3)) SWIG_fail; |
13279 | } | |
13280 | { | |
32fe5131 | 13281 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13282 | if (SWIG_arg_fail(4)) SWIG_fail; |
13283 | } | |
13284 | { | |
32fe5131 | 13285 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
13286 | if (SWIG_arg_fail(5)) SWIG_fail; |
13287 | } | |
d55e5bfc RD |
13288 | { |
13289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13290 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
13291 | |
13292 | wxPyEndAllowThreads(__tstate); | |
13293 | if (PyErr_Occurred()) SWIG_fail; | |
13294 | } | |
13295 | Py_INCREF(Py_None); resultobj = Py_None; | |
13296 | return resultobj; | |
13297 | fail: | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
36ed4f51 | 13302 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13303 | PyObject *resultobj = NULL; |
d55e5bfc | 13304 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13305 | wxRect *arg2 = 0 ; |
13306 | wxRect temp2 ; | |
d55e5bfc RD |
13307 | PyObject * obj0 = 0 ; |
13308 | PyObject * obj1 = 0 ; | |
13309 | char *kwnames[] = { | |
36ed4f51 | 13310 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
13311 | }; |
13312 | ||
36ed4f51 RD |
13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
13314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13316 | { | |
13317 | arg2 = &temp2; | |
13318 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
13319 | } |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13322 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
13323 | |
13324 | wxPyEndAllowThreads(__tstate); | |
13325 | if (PyErr_Occurred()) SWIG_fail; | |
13326 | } | |
13327 | Py_INCREF(Py_None); resultobj = Py_None; | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | return NULL; | |
13331 | } | |
13332 | ||
13333 | ||
36ed4f51 | 13334 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13335 | PyObject *resultobj = NULL; |
d55e5bfc | 13336 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13337 | wxPoint *arg2 = 0 ; |
13338 | wxSize *arg3 = 0 ; | |
13339 | wxPoint temp2 ; | |
13340 | wxSize temp3 ; | |
d55e5bfc | 13341 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13342 | PyObject * obj1 = 0 ; |
13343 | PyObject * obj2 = 0 ; | |
d55e5bfc | 13344 | char *kwnames[] = { |
36ed4f51 | 13345 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
13346 | }; |
13347 | ||
36ed4f51 RD |
13348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13351 | { | |
13352 | arg2 = &temp2; | |
13353 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13354 | } | |
13355 | { | |
13356 | arg3 = &temp3; | |
13357 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13358 | } | |
d55e5bfc RD |
13359 | { |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13361 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
13362 | |
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
36ed4f51 | 13373 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13374 | PyObject *resultobj = NULL; |
d55e5bfc | 13375 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13376 | int arg2 ; |
13377 | int arg3 ; | |
13378 | int arg4 ; | |
13379 | int arg5 ; | |
13380 | double arg6 ; | |
d55e5bfc | 13381 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13382 | PyObject * obj1 = 0 ; |
13383 | PyObject * obj2 = 0 ; | |
13384 | PyObject * obj3 = 0 ; | |
13385 | PyObject * obj4 = 0 ; | |
13386 | PyObject * obj5 = 0 ; | |
d55e5bfc | 13387 | char *kwnames[] = { |
36ed4f51 | 13388 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL |
d55e5bfc RD |
13389 | }; |
13390 | ||
36ed4f51 RD |
13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
13392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13394 | { |
32fe5131 | 13395 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 13396 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 13397 | } |
36ed4f51 | 13398 | { |
32fe5131 | 13399 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13400 | if (SWIG_arg_fail(3)) SWIG_fail; |
13401 | } | |
13402 | { | |
32fe5131 | 13403 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13404 | if (SWIG_arg_fail(4)) SWIG_fail; |
13405 | } | |
13406 | { | |
32fe5131 | 13407 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
13408 | if (SWIG_arg_fail(5)) SWIG_fail; |
13409 | } | |
13410 | { | |
32fe5131 | 13411 | arg6 = static_cast<double >(SWIG_As_double(obj5)); |
36ed4f51 RD |
13412 | if (SWIG_arg_fail(6)) SWIG_fail; |
13413 | } | |
13414 | { | |
13415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13416 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
13417 | ||
13418 | wxPyEndAllowThreads(__tstate); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13422 | return resultobj; |
13423 | fail: | |
13424 | return NULL; | |
13425 | } | |
13426 | ||
13427 | ||
36ed4f51 | 13428 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13429 | PyObject *resultobj = NULL; |
d55e5bfc | 13430 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13431 | wxRect *arg2 = 0 ; |
13432 | double arg3 ; | |
13433 | wxRect temp2 ; | |
d55e5bfc | 13434 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13435 | PyObject * obj1 = 0 ; |
13436 | PyObject * obj2 = 0 ; | |
d55e5bfc | 13437 | char *kwnames[] = { |
36ed4f51 | 13438 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
13439 | }; |
13440 | ||
36ed4f51 RD |
13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13444 | { | |
13445 | arg2 = &temp2; | |
13446 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13447 | } | |
13448 | { | |
32fe5131 | 13449 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
36ed4f51 RD |
13450 | if (SWIG_arg_fail(3)) SWIG_fail; |
13451 | } | |
d55e5bfc RD |
13452 | { |
13453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13454 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
13455 | |
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
36ed4f51 | 13459 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13460 | return resultobj; |
13461 | fail: | |
13462 | return NULL; | |
13463 | } | |
13464 | ||
13465 | ||
36ed4f51 | 13466 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13467 | PyObject *resultobj = NULL; |
d55e5bfc | 13468 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13469 | wxPoint *arg2 = 0 ; |
13470 | wxSize *arg3 = 0 ; | |
13471 | double arg4 ; | |
13472 | wxPoint temp2 ; | |
13473 | wxSize temp3 ; | |
d55e5bfc | 13474 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13475 | PyObject * obj1 = 0 ; |
13476 | PyObject * obj2 = 0 ; | |
13477 | PyObject * obj3 = 0 ; | |
d55e5bfc | 13478 | char *kwnames[] = { |
36ed4f51 | 13479 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
13480 | }; |
13481 | ||
36ed4f51 RD |
13482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13485 | { | |
13486 | arg2 = &temp2; | |
13487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13488 | } | |
13489 | { | |
13490 | arg3 = &temp3; | |
13491 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13492 | } | |
13493 | { | |
32fe5131 | 13494 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
36ed4f51 RD |
13495 | if (SWIG_arg_fail(4)) SWIG_fail; |
13496 | } | |
d55e5bfc RD |
13497 | { |
13498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13499 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
13500 | |
13501 | wxPyEndAllowThreads(__tstate); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
13503 | } | |
36ed4f51 | 13504 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13505 | return resultobj; |
13506 | fail: | |
13507 | return NULL; | |
13508 | } | |
13509 | ||
13510 | ||
36ed4f51 | 13511 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13512 | PyObject *resultobj = NULL; |
d55e5bfc | 13513 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13514 | int arg2 ; |
13515 | int arg3 ; | |
13516 | int arg4 ; | |
d55e5bfc | 13517 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13518 | PyObject * obj1 = 0 ; |
13519 | PyObject * obj2 = 0 ; | |
13520 | PyObject * obj3 = 0 ; | |
d55e5bfc | 13521 | char *kwnames[] = { |
36ed4f51 | 13522 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL |
d55e5bfc RD |
13523 | }; |
13524 | ||
36ed4f51 RD |
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13528 | { | |
32fe5131 | 13529 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
13530 | if (SWIG_arg_fail(2)) SWIG_fail; |
13531 | } | |
13532 | { | |
32fe5131 | 13533 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13534 | if (SWIG_arg_fail(3)) SWIG_fail; |
13535 | } | |
13536 | { | |
32fe5131 | 13537 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13538 | if (SWIG_arg_fail(4)) SWIG_fail; |
13539 | } | |
d55e5bfc RD |
13540 | { |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13542 | (arg1)->DrawCircle(arg2,arg3,arg4); |
d55e5bfc RD |
13543 | |
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
36ed4f51 | 13547 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13548 | return resultobj; |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
36ed4f51 | 13554 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13555 | PyObject *resultobj = NULL; |
d55e5bfc | 13556 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13557 | wxPoint *arg2 = 0 ; |
13558 | int arg3 ; | |
13559 | wxPoint temp2 ; | |
d55e5bfc RD |
13560 | PyObject * obj0 = 0 ; |
13561 | PyObject * obj1 = 0 ; | |
36ed4f51 | 13562 | PyObject * obj2 = 0 ; |
d55e5bfc | 13563 | char *kwnames[] = { |
36ed4f51 | 13564 | (char *) "self",(char *) "pt",(char *) "radius", NULL |
d55e5bfc RD |
13565 | }; |
13566 | ||
36ed4f51 RD |
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13570 | { |
36ed4f51 RD |
13571 | arg2 = &temp2; |
13572 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13573 | } | |
13574 | { | |
32fe5131 | 13575 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 13576 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
13577 | } |
13578 | { | |
13579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13580 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); |
d55e5bfc RD |
13581 | |
13582 | wxPyEndAllowThreads(__tstate); | |
13583 | if (PyErr_Occurred()) SWIG_fail; | |
13584 | } | |
13585 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13586 | return resultobj; |
13587 | fail: | |
d55e5bfc RD |
13588 | return NULL; |
13589 | } | |
13590 | ||
13591 | ||
36ed4f51 | 13592 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13593 | PyObject *resultobj = NULL; |
d55e5bfc | 13594 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13595 | int arg2 ; |
13596 | int arg3 ; | |
13597 | int arg4 ; | |
13598 | int arg5 ; | |
d55e5bfc RD |
13599 | PyObject * obj0 = 0 ; |
13600 | PyObject * obj1 = 0 ; | |
13601 | PyObject * obj2 = 0 ; | |
36ed4f51 RD |
13602 | PyObject * obj3 = 0 ; |
13603 | PyObject * obj4 = 0 ; | |
d55e5bfc | 13604 | char *kwnames[] = { |
36ed4f51 | 13605 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
13606 | }; |
13607 | ||
36ed4f51 RD |
13608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13611 | { |
32fe5131 | 13612 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 13613 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 13614 | } |
36ed4f51 | 13615 | { |
32fe5131 | 13616 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13617 | if (SWIG_arg_fail(3)) SWIG_fail; |
13618 | } | |
13619 | { | |
32fe5131 | 13620 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13621 | if (SWIG_arg_fail(4)) SWIG_fail; |
13622 | } | |
13623 | { | |
32fe5131 | 13624 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 | 13625 | if (SWIG_arg_fail(5)) SWIG_fail; |
d55e5bfc RD |
13626 | } |
13627 | { | |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13629 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
13630 | |
13631 | wxPyEndAllowThreads(__tstate); | |
13632 | if (PyErr_Occurred()) SWIG_fail; | |
13633 | } | |
13634 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13635 | return resultobj; |
13636 | fail: | |
d55e5bfc RD |
13637 | return NULL; |
13638 | } | |
13639 | ||
13640 | ||
36ed4f51 | 13641 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13642 | PyObject *resultobj = NULL; |
d55e5bfc | 13643 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13644 | wxRect *arg2 = 0 ; |
13645 | wxRect temp2 ; | |
d55e5bfc RD |
13646 | PyObject * obj0 = 0 ; |
13647 | PyObject * obj1 = 0 ; | |
d55e5bfc | 13648 | char *kwnames[] = { |
36ed4f51 | 13649 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
13650 | }; |
13651 | ||
36ed4f51 RD |
13652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
13653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13655 | { |
36ed4f51 RD |
13656 | arg2 = &temp2; |
13657 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
13658 | } |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13661 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
13662 | |
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
13666 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13667 | return resultobj; |
13668 | fail: | |
d55e5bfc RD |
13669 | return NULL; |
13670 | } | |
13671 | ||
13672 | ||
36ed4f51 | 13673 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13674 | PyObject *resultobj = NULL; |
d55e5bfc | 13675 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13676 | wxPoint *arg2 = 0 ; |
13677 | wxSize *arg3 = 0 ; | |
13678 | wxPoint temp2 ; | |
13679 | wxSize temp3 ; | |
d55e5bfc RD |
13680 | PyObject * obj0 = 0 ; |
13681 | PyObject * obj1 = 0 ; | |
36ed4f51 | 13682 | PyObject * obj2 = 0 ; |
d55e5bfc | 13683 | char *kwnames[] = { |
36ed4f51 | 13684 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
13685 | }; |
13686 | ||
36ed4f51 RD |
13687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13690 | { |
36ed4f51 RD |
13691 | arg2 = &temp2; |
13692 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13693 | } | |
13694 | { | |
13695 | arg3 = &temp3; | |
13696 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
13697 | } |
13698 | { | |
13699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13700 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
13701 | |
13702 | wxPyEndAllowThreads(__tstate); | |
13703 | if (PyErr_Occurred()) SWIG_fail; | |
13704 | } | |
36ed4f51 | 13705 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13706 | return resultobj; |
13707 | fail: | |
d55e5bfc RD |
13708 | return NULL; |
13709 | } | |
13710 | ||
13711 | ||
36ed4f51 | 13712 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13713 | PyObject *resultobj = NULL; |
d55e5bfc | 13714 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13715 | wxIcon *arg2 = 0 ; |
13716 | int arg3 ; | |
13717 | int arg4 ; | |
d55e5bfc | 13718 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13719 | PyObject * obj1 = 0 ; |
13720 | PyObject * obj2 = 0 ; | |
13721 | PyObject * obj3 = 0 ; | |
d55e5bfc | 13722 | char *kwnames[] = { |
36ed4f51 | 13723 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
13724 | }; |
13725 | ||
36ed4f51 RD |
13726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13729 | { |
36ed4f51 RD |
13730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); |
13731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13732 | if (arg2 == NULL) { | |
13733 | SWIG_null_ref("wxIcon"); | |
13734 | } | |
13735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
13736 | } |
13737 | { | |
32fe5131 | 13738 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13739 | if (SWIG_arg_fail(3)) SWIG_fail; |
13740 | } | |
13741 | { | |
32fe5131 | 13742 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 | 13743 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc | 13744 | } |
d55e5bfc RD |
13745 | { |
13746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13747 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); |
d55e5bfc RD |
13748 | |
13749 | wxPyEndAllowThreads(__tstate); | |
13750 | if (PyErr_Occurred()) SWIG_fail; | |
13751 | } | |
13752 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13753 | return resultobj; |
13754 | fail: | |
13755 | return NULL; | |
13756 | } | |
13757 | ||
13758 | ||
36ed4f51 | 13759 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13760 | PyObject *resultobj = NULL; |
d55e5bfc | 13761 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13762 | wxIcon *arg2 = 0 ; |
13763 | wxPoint *arg3 = 0 ; | |
13764 | wxPoint temp3 ; | |
d55e5bfc | 13765 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13766 | PyObject * obj1 = 0 ; |
13767 | PyObject * obj2 = 0 ; | |
d55e5bfc | 13768 | char *kwnames[] = { |
36ed4f51 | 13769 | (char *) "self",(char *) "icon",(char *) "pt", NULL |
d55e5bfc RD |
13770 | }; |
13771 | ||
36ed4f51 RD |
13772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) 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 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
13777 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13778 | if (arg2 == NULL) { | |
13779 | SWIG_null_ref("wxIcon"); | |
13780 | } | |
13781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13782 | } | |
13783 | { | |
13784 | arg3 = &temp3; | |
13785 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13786 | } | |
d55e5bfc RD |
13787 | { |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13789 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); |
d55e5bfc RD |
13790 | |
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
36ed4f51 | 13794 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13795 | return resultobj; |
13796 | fail: | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
36ed4f51 | 13801 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13802 | PyObject *resultobj = NULL; |
d55e5bfc | 13803 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13804 | wxBitmap *arg2 = 0 ; |
13805 | int arg3 ; | |
13806 | int arg4 ; | |
13807 | bool arg5 = (bool) false ; | |
d55e5bfc | 13808 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
13809 | PyObject * obj1 = 0 ; |
13810 | PyObject * obj2 = 0 ; | |
13811 | PyObject * obj3 = 0 ; | |
13812 | PyObject * obj4 = 0 ; | |
d55e5bfc | 13813 | char *kwnames[] = { |
36ed4f51 | 13814 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL |
d55e5bfc RD |
13815 | }; |
13816 | ||
36ed4f51 RD |
13817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13820 | { | |
13821 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
13822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13823 | if (arg2 == NULL) { | |
13824 | SWIG_null_ref("wxBitmap"); | |
13825 | } | |
13826 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13827 | } | |
13828 | { | |
32fe5131 | 13829 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13830 | if (SWIG_arg_fail(3)) SWIG_fail; |
13831 | } | |
13832 | { | |
32fe5131 | 13833 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13834 | if (SWIG_arg_fail(4)) SWIG_fail; |
13835 | } | |
13836 | if (obj4) { | |
13837 | { | |
32fe5131 | 13838 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
36ed4f51 RD |
13839 | if (SWIG_arg_fail(5)) SWIG_fail; |
13840 | } | |
13841 | } | |
d55e5bfc RD |
13842 | { |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13844 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); |
d55e5bfc RD |
13845 | |
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
13849 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
13850 | return resultobj; |
13851 | fail: | |
13852 | return NULL; | |
13853 | } | |
13854 | ||
13855 | ||
36ed4f51 | 13856 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13857 | PyObject *resultobj = NULL; |
d55e5bfc | 13858 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13859 | wxBitmap *arg2 = 0 ; |
13860 | wxPoint *arg3 = 0 ; | |
13861 | bool arg4 = (bool) false ; | |
13862 | wxPoint temp3 ; | |
d55e5bfc RD |
13863 | PyObject * obj0 = 0 ; |
13864 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
13865 | PyObject * obj2 = 0 ; |
13866 | PyObject * obj3 = 0 ; | |
d55e5bfc | 13867 | char *kwnames[] = { |
36ed4f51 | 13868 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL |
d55e5bfc RD |
13869 | }; |
13870 | ||
36ed4f51 RD |
13871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13874 | { | |
13875 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
13876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13877 | if (arg2 == NULL) { | |
13878 | SWIG_null_ref("wxBitmap"); | |
13879 | } | |
13880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13881 | } | |
13882 | { | |
13883 | arg3 = &temp3; | |
13884 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13885 | } | |
13886 | if (obj3) { | |
13887 | { | |
32fe5131 | 13888 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
36ed4f51 RD |
13889 | if (SWIG_arg_fail(4)) SWIG_fail; |
13890 | } | |
13891 | } | |
d55e5bfc RD |
13892 | { |
13893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13894 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); |
d55e5bfc RD |
13895 | |
13896 | wxPyEndAllowThreads(__tstate); | |
13897 | if (PyErr_Occurred()) SWIG_fail; | |
13898 | } | |
36ed4f51 | 13899 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
13900 | return resultobj; |
13901 | fail: | |
13902 | return NULL; | |
13903 | } | |
13904 | ||
13905 | ||
36ed4f51 | 13906 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13907 | PyObject *resultobj = NULL; |
d55e5bfc | 13908 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13909 | wxString *arg2 = 0 ; |
13910 | int arg3 ; | |
13911 | int arg4 ; | |
13912 | bool temp2 = false ; | |
d55e5bfc RD |
13913 | PyObject * obj0 = 0 ; |
13914 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
13915 | PyObject * obj2 = 0 ; |
13916 | PyObject * obj3 = 0 ; | |
d55e5bfc | 13917 | char *kwnames[] = { |
36ed4f51 | 13918 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
13919 | }; |
13920 | ||
36ed4f51 RD |
13921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13924 | { | |
13925 | arg2 = wxString_in_helper(obj1); | |
13926 | if (arg2 == NULL) SWIG_fail; | |
13927 | temp2 = true; | |
13928 | } | |
13929 | { | |
32fe5131 | 13930 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
13931 | if (SWIG_arg_fail(3)) SWIG_fail; |
13932 | } | |
13933 | { | |
32fe5131 | 13934 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
13935 | if (SWIG_arg_fail(4)) SWIG_fail; |
13936 | } | |
d55e5bfc RD |
13937 | { |
13938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13939 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
d55e5bfc RD |
13940 | |
13941 | wxPyEndAllowThreads(__tstate); | |
13942 | if (PyErr_Occurred()) SWIG_fail; | |
13943 | } | |
36ed4f51 RD |
13944 | Py_INCREF(Py_None); resultobj = Py_None; |
13945 | { | |
13946 | if (temp2) | |
13947 | delete arg2; | |
13948 | } | |
d55e5bfc RD |
13949 | return resultobj; |
13950 | fail: | |
36ed4f51 RD |
13951 | { |
13952 | if (temp2) | |
13953 | delete arg2; | |
13954 | } | |
d55e5bfc RD |
13955 | return NULL; |
13956 | } | |
13957 | ||
13958 | ||
36ed4f51 | 13959 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13960 | PyObject *resultobj = NULL; |
d55e5bfc | 13961 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
13962 | wxString *arg2 = 0 ; |
13963 | wxPoint *arg3 = 0 ; | |
13964 | bool temp2 = false ; | |
13965 | wxPoint temp3 ; | |
d55e5bfc RD |
13966 | PyObject * obj0 = 0 ; |
13967 | PyObject * obj1 = 0 ; | |
36ed4f51 | 13968 | PyObject * obj2 = 0 ; |
d55e5bfc | 13969 | char *kwnames[] = { |
36ed4f51 | 13970 | (char *) "self",(char *) "text",(char *) "pt", NULL |
d55e5bfc RD |
13971 | }; |
13972 | ||
36ed4f51 RD |
13973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13976 | { | |
13977 | arg2 = wxString_in_helper(obj1); | |
13978 | if (arg2 == NULL) SWIG_fail; | |
13979 | temp2 = true; | |
13980 | } | |
13981 | { | |
13982 | arg3 = &temp3; | |
13983 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13984 | } | |
d55e5bfc RD |
13985 | { |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 13987 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); |
d55e5bfc RD |
13988 | |
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
36ed4f51 RD |
13992 | Py_INCREF(Py_None); resultobj = Py_None; |
13993 | { | |
13994 | if (temp2) | |
13995 | delete arg2; | |
13996 | } | |
d55e5bfc RD |
13997 | return resultobj; |
13998 | fail: | |
36ed4f51 RD |
13999 | { |
14000 | if (temp2) | |
14001 | delete arg2; | |
14002 | } | |
d55e5bfc RD |
14003 | return NULL; |
14004 | } | |
14005 | ||
14006 | ||
36ed4f51 | 14007 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14008 | PyObject *resultobj = NULL; |
d55e5bfc | 14009 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14010 | wxString *arg2 = 0 ; |
14011 | int arg3 ; | |
14012 | int arg4 ; | |
14013 | double arg5 ; | |
14014 | bool temp2 = false ; | |
d55e5bfc RD |
14015 | PyObject * obj0 = 0 ; |
14016 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
14017 | PyObject * obj2 = 0 ; |
14018 | PyObject * obj3 = 0 ; | |
14019 | PyObject * obj4 = 0 ; | |
d55e5bfc | 14020 | char *kwnames[] = { |
36ed4f51 | 14021 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL |
d55e5bfc RD |
14022 | }; |
14023 | ||
36ed4f51 RD |
14024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14027 | { | |
14028 | arg2 = wxString_in_helper(obj1); | |
14029 | if (arg2 == NULL) SWIG_fail; | |
14030 | temp2 = true; | |
14031 | } | |
14032 | { | |
32fe5131 | 14033 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
14034 | if (SWIG_arg_fail(3)) SWIG_fail; |
14035 | } | |
14036 | { | |
32fe5131 | 14037 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14038 | if (SWIG_arg_fail(4)) SWIG_fail; |
14039 | } | |
14040 | { | |
32fe5131 | 14041 | arg5 = static_cast<double >(SWIG_As_double(obj4)); |
36ed4f51 RD |
14042 | if (SWIG_arg_fail(5)) SWIG_fail; |
14043 | } | |
d55e5bfc RD |
14044 | { |
14045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14046 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); |
d55e5bfc RD |
14047 | |
14048 | wxPyEndAllowThreads(__tstate); | |
14049 | if (PyErr_Occurred()) SWIG_fail; | |
14050 | } | |
36ed4f51 RD |
14051 | Py_INCREF(Py_None); resultobj = Py_None; |
14052 | { | |
14053 | if (temp2) | |
14054 | delete arg2; | |
14055 | } | |
d55e5bfc RD |
14056 | return resultobj; |
14057 | fail: | |
36ed4f51 RD |
14058 | { |
14059 | if (temp2) | |
14060 | delete arg2; | |
14061 | } | |
d55e5bfc RD |
14062 | return NULL; |
14063 | } | |
14064 | ||
14065 | ||
36ed4f51 | 14066 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14067 | PyObject *resultobj = NULL; |
d55e5bfc | 14068 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14069 | wxString *arg2 = 0 ; |
14070 | wxPoint *arg3 = 0 ; | |
14071 | double arg4 ; | |
14072 | bool temp2 = false ; | |
14073 | wxPoint temp3 ; | |
d55e5bfc RD |
14074 | PyObject * obj0 = 0 ; |
14075 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
14076 | PyObject * obj2 = 0 ; |
14077 | PyObject * obj3 = 0 ; | |
d55e5bfc | 14078 | char *kwnames[] = { |
36ed4f51 | 14079 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL |
d55e5bfc RD |
14080 | }; |
14081 | ||
36ed4f51 RD |
14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14085 | { | |
14086 | arg2 = wxString_in_helper(obj1); | |
14087 | if (arg2 == NULL) SWIG_fail; | |
14088 | temp2 = true; | |
14089 | } | |
14090 | { | |
14091 | arg3 = &temp3; | |
14092 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14093 | } | |
14094 | { | |
32fe5131 | 14095 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
36ed4f51 RD |
14096 | if (SWIG_arg_fail(4)) SWIG_fail; |
14097 | } | |
d55e5bfc RD |
14098 | { |
14099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14100 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); |
d55e5bfc RD |
14101 | |
14102 | wxPyEndAllowThreads(__tstate); | |
14103 | if (PyErr_Occurred()) SWIG_fail; | |
14104 | } | |
36ed4f51 RD |
14105 | Py_INCREF(Py_None); resultobj = Py_None; |
14106 | { | |
14107 | if (temp2) | |
14108 | delete arg2; | |
14109 | } | |
d55e5bfc RD |
14110 | return resultobj; |
14111 | fail: | |
36ed4f51 RD |
14112 | { |
14113 | if (temp2) | |
14114 | delete arg2; | |
14115 | } | |
d55e5bfc RD |
14116 | return NULL; |
14117 | } | |
14118 | ||
14119 | ||
36ed4f51 | 14120 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14121 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14122 | wxDC *arg1 = (wxDC *) 0 ; |
14123 | int arg2 ; | |
36ed4f51 RD |
14124 | int arg3 ; |
14125 | int arg4 ; | |
14126 | int arg5 ; | |
14127 | wxDC *arg6 = (wxDC *) 0 ; | |
14128 | int arg7 ; | |
14129 | int arg8 ; | |
14130 | int arg9 = (int) wxCOPY ; | |
14131 | bool arg10 = (bool) false ; | |
14132 | int arg11 = (int) -1 ; | |
14133 | int arg12 = (int) -1 ; | |
14134 | bool result; | |
d55e5bfc RD |
14135 | PyObject * obj0 = 0 ; |
14136 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
14137 | PyObject * obj2 = 0 ; |
14138 | PyObject * obj3 = 0 ; | |
14139 | PyObject * obj4 = 0 ; | |
14140 | PyObject * obj5 = 0 ; | |
14141 | PyObject * obj6 = 0 ; | |
14142 | PyObject * obj7 = 0 ; | |
14143 | PyObject * obj8 = 0 ; | |
14144 | PyObject * obj9 = 0 ; | |
14145 | PyObject * obj10 = 0 ; | |
14146 | PyObject * obj11 = 0 ; | |
d55e5bfc | 14147 | char *kwnames[] = { |
36ed4f51 | 14148 | (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 |
d55e5bfc RD |
14149 | }; |
14150 | ||
36ed4f51 RD |
14151 | 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; |
14152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14154 | { | |
32fe5131 | 14155 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
14156 | if (SWIG_arg_fail(2)) SWIG_fail; |
14157 | } | |
14158 | { | |
32fe5131 | 14159 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
14160 | if (SWIG_arg_fail(3)) SWIG_fail; |
14161 | } | |
14162 | { | |
32fe5131 | 14163 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14164 | if (SWIG_arg_fail(4)) SWIG_fail; |
14165 | } | |
14166 | { | |
32fe5131 | 14167 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
14168 | if (SWIG_arg_fail(5)) SWIG_fail; |
14169 | } | |
14170 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14171 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14172 | { | |
32fe5131 | 14173 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
36ed4f51 RD |
14174 | if (SWIG_arg_fail(7)) SWIG_fail; |
14175 | } | |
14176 | { | |
32fe5131 | 14177 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
36ed4f51 RD |
14178 | if (SWIG_arg_fail(8)) SWIG_fail; |
14179 | } | |
14180 | if (obj8) { | |
14181 | { | |
32fe5131 | 14182 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
36ed4f51 RD |
14183 | if (SWIG_arg_fail(9)) SWIG_fail; |
14184 | } | |
14185 | } | |
14186 | if (obj9) { | |
14187 | { | |
32fe5131 | 14188 | arg10 = static_cast<bool >(SWIG_As_bool(obj9)); |
36ed4f51 RD |
14189 | if (SWIG_arg_fail(10)) SWIG_fail; |
14190 | } | |
14191 | } | |
14192 | if (obj10) { | |
14193 | { | |
32fe5131 | 14194 | arg11 = static_cast<int >(SWIG_As_int(obj10)); |
36ed4f51 RD |
14195 | if (SWIG_arg_fail(11)) SWIG_fail; |
14196 | } | |
14197 | } | |
14198 | if (obj11) { | |
14199 | { | |
32fe5131 | 14200 | arg12 = static_cast<int >(SWIG_As_int(obj11)); |
36ed4f51 RD |
14201 | if (SWIG_arg_fail(12)) SWIG_fail; |
14202 | } | |
14203 | } | |
d55e5bfc RD |
14204 | { |
14205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14206 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); |
d55e5bfc RD |
14207 | |
14208 | wxPyEndAllowThreads(__tstate); | |
14209 | if (PyErr_Occurred()) SWIG_fail; | |
14210 | } | |
36ed4f51 RD |
14211 | { |
14212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14213 | } | |
d55e5bfc RD |
14214 | return resultobj; |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
36ed4f51 | 14220 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14221 | PyObject *resultobj = NULL; |
d55e5bfc | 14222 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14223 | wxPoint *arg2 = 0 ; |
14224 | wxSize *arg3 = 0 ; | |
14225 | wxDC *arg4 = (wxDC *) 0 ; | |
14226 | wxPoint *arg5 = 0 ; | |
14227 | int arg6 = (int) wxCOPY ; | |
14228 | bool arg7 = (bool) false ; | |
14229 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
14230 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
14231 | bool result; | |
14232 | wxPoint temp2 ; | |
14233 | wxSize temp3 ; | |
14234 | wxPoint temp5 ; | |
14235 | wxPoint temp8 ; | |
d55e5bfc RD |
14236 | PyObject * obj0 = 0 ; |
14237 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
14238 | PyObject * obj2 = 0 ; |
14239 | PyObject * obj3 = 0 ; | |
14240 | PyObject * obj4 = 0 ; | |
14241 | PyObject * obj5 = 0 ; | |
14242 | PyObject * obj6 = 0 ; | |
14243 | PyObject * obj7 = 0 ; | |
d55e5bfc | 14244 | char *kwnames[] = { |
36ed4f51 | 14245 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL |
d55e5bfc RD |
14246 | }; |
14247 | ||
36ed4f51 RD |
14248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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 | arg2 = &temp2; | |
14253 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14254 | } | |
14255 | { | |
14256 | arg3 = &temp3; | |
14257 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14258 | } | |
14259 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14260 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14261 | { | |
14262 | arg5 = &temp5; | |
14263 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14264 | } | |
14265 | if (obj5) { | |
14266 | { | |
32fe5131 | 14267 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
36ed4f51 RD |
14268 | if (SWIG_arg_fail(6)) SWIG_fail; |
14269 | } | |
14270 | } | |
14271 | if (obj6) { | |
14272 | { | |
32fe5131 | 14273 | arg7 = static_cast<bool >(SWIG_As_bool(obj6)); |
36ed4f51 RD |
14274 | if (SWIG_arg_fail(7)) SWIG_fail; |
14275 | } | |
14276 | } | |
14277 | if (obj7) { | |
14278 | { | |
14279 | arg8 = &temp8; | |
14280 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
14281 | } | |
14282 | } | |
d55e5bfc RD |
14283 | { |
14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14285 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
d55e5bfc RD |
14286 | |
14287 | wxPyEndAllowThreads(__tstate); | |
14288 | if (PyErr_Occurred()) SWIG_fail; | |
14289 | } | |
36ed4f51 RD |
14290 | { |
14291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14292 | } | |
d55e5bfc RD |
14293 | return resultobj; |
14294 | fail: | |
14295 | return NULL; | |
14296 | } | |
14297 | ||
14298 | ||
36ed4f51 | 14299 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14300 | PyObject *resultobj = NULL; |
d55e5bfc RD |
14301 | wxDC *arg1 = (wxDC *) 0 ; |
14302 | int arg2 ; | |
36ed4f51 RD |
14303 | int arg3 ; |
14304 | int arg4 ; | |
14305 | int arg5 ; | |
d55e5bfc RD |
14306 | PyObject * obj0 = 0 ; |
14307 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
14308 | PyObject * obj2 = 0 ; |
14309 | PyObject * obj3 = 0 ; | |
14310 | PyObject * obj4 = 0 ; | |
d55e5bfc | 14311 | char *kwnames[] = { |
36ed4f51 | 14312 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d55e5bfc RD |
14313 | }; |
14314 | ||
36ed4f51 RD |
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14318 | { | |
32fe5131 | 14319 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
14320 | if (SWIG_arg_fail(2)) SWIG_fail; |
14321 | } | |
14322 | { | |
32fe5131 | 14323 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
14324 | if (SWIG_arg_fail(3)) SWIG_fail; |
14325 | } | |
14326 | { | |
32fe5131 | 14327 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14328 | if (SWIG_arg_fail(4)) SWIG_fail; |
14329 | } | |
14330 | { | |
32fe5131 | 14331 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
14332 | if (SWIG_arg_fail(5)) SWIG_fail; |
14333 | } | |
d55e5bfc RD |
14334 | { |
14335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14336 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
14337 | |
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
36ed4f51 | 14341 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14342 | return resultobj; |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
36ed4f51 | 14348 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14349 | PyObject *resultobj = NULL; |
d55e5bfc | 14350 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14351 | wxPoint *arg2 = 0 ; |
14352 | wxSize *arg3 = 0 ; | |
14353 | wxPoint temp2 ; | |
14354 | wxSize temp3 ; | |
d55e5bfc | 14355 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
14356 | PyObject * obj1 = 0 ; |
14357 | PyObject * obj2 = 0 ; | |
d55e5bfc | 14358 | char *kwnames[] = { |
36ed4f51 | 14359 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
14360 | }; |
14361 | ||
36ed4f51 RD |
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14365 | { | |
14366 | arg2 = &temp2; | |
14367 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14368 | } | |
14369 | { | |
14370 | arg3 = &temp3; | |
14371 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14372 | } | |
d55e5bfc RD |
14373 | { |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14375 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
14376 | |
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
36ed4f51 | 14380 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14381 | return resultobj; |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
36ed4f51 | 14387 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14388 | PyObject *resultobj = NULL; |
d55e5bfc | 14389 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 14390 | wxRegion *arg2 = 0 ; |
d55e5bfc | 14391 | PyObject * obj0 = 0 ; |
36ed4f51 | 14392 | PyObject * obj1 = 0 ; |
d55e5bfc | 14393 | char *kwnames[] = { |
36ed4f51 | 14394 | (char *) "self",(char *) "region", NULL |
d55e5bfc RD |
14395 | }; |
14396 | ||
36ed4f51 RD |
14397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
14398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14400 | { | |
14401 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
14402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14403 | if (arg2 == NULL) { | |
14404 | SWIG_null_ref("wxRegion"); | |
14405 | } | |
14406 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14407 | } | |
d55e5bfc RD |
14408 | { |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14410 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); |
d55e5bfc RD |
14411 | |
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
36ed4f51 | 14415 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14416 | return resultobj; |
14417 | fail: | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
36ed4f51 | 14422 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14423 | PyObject *resultobj = NULL; |
d55e5bfc | 14424 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14425 | wxRect *arg2 = 0 ; |
14426 | wxRect temp2 ; | |
14427 | PyObject * obj0 = 0 ; | |
14428 | PyObject * obj1 = 0 ; | |
d55e5bfc | 14429 | char *kwnames[] = { |
36ed4f51 | 14430 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
14431 | }; |
14432 | ||
36ed4f51 RD |
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; |
14434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14436 | { | |
14437 | arg2 = &temp2; | |
14438 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
14439 | } | |
d55e5bfc RD |
14440 | { |
14441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14442 | (arg1)->SetClippingRegion((wxRect const &)*arg2); |
d55e5bfc RD |
14443 | |
14444 | wxPyEndAllowThreads(__tstate); | |
14445 | if (PyErr_Occurred()) SWIG_fail; | |
14446 | } | |
36ed4f51 | 14447 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14448 | return resultobj; |
14449 | fail: | |
14450 | return NULL; | |
14451 | } | |
14452 | ||
14453 | ||
36ed4f51 | 14454 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14455 | PyObject *resultobj = NULL; |
d55e5bfc | 14456 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14457 | int arg2 ; |
14458 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14459 | int arg4 = (int) 0 ; | |
14460 | int arg5 = (int) 0 ; | |
d55e5bfc | 14461 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
14462 | PyObject * obj1 = 0 ; |
14463 | PyObject * obj2 = 0 ; | |
14464 | PyObject * obj3 = 0 ; | |
d55e5bfc | 14465 | char *kwnames[] = { |
36ed4f51 | 14466 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL |
d55e5bfc RD |
14467 | }; |
14468 | ||
36ed4f51 RD |
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14472 | { | |
14473 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14474 | if (arg3 == NULL) SWIG_fail; | |
14475 | } | |
14476 | if (obj2) { | |
14477 | { | |
32fe5131 | 14478 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
14479 | if (SWIG_arg_fail(4)) SWIG_fail; |
14480 | } | |
14481 | } | |
14482 | if (obj3) { | |
14483 | { | |
32fe5131 | 14484 | arg5 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14485 | if (SWIG_arg_fail(5)) SWIG_fail; |
14486 | } | |
14487 | } | |
d55e5bfc RD |
14488 | { |
14489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14490 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
14491 | |
14492 | wxPyEndAllowThreads(__tstate); | |
14493 | if (PyErr_Occurred()) SWIG_fail; | |
14494 | } | |
36ed4f51 | 14495 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 14496 | { |
36ed4f51 | 14497 | if (arg3) delete [] arg3; |
d55e5bfc RD |
14498 | } |
14499 | return resultobj; | |
14500 | fail: | |
36ed4f51 RD |
14501 | { |
14502 | if (arg3) delete [] arg3; | |
14503 | } | |
d55e5bfc RD |
14504 | return NULL; |
14505 | } | |
14506 | ||
14507 | ||
36ed4f51 | 14508 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14509 | PyObject *resultobj = NULL; |
d55e5bfc | 14510 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14511 | int arg2 ; |
14512 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14513 | int arg4 = (int) 0 ; | |
14514 | int arg5 = (int) 0 ; | |
14515 | int arg6 = (int) wxODDEVEN_RULE ; | |
d55e5bfc | 14516 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
14517 | PyObject * obj1 = 0 ; |
14518 | PyObject * obj2 = 0 ; | |
14519 | PyObject * obj3 = 0 ; | |
14520 | PyObject * obj4 = 0 ; | |
d55e5bfc | 14521 | char *kwnames[] = { |
36ed4f51 | 14522 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL |
d55e5bfc RD |
14523 | }; |
14524 | ||
36ed4f51 RD |
14525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14528 | { | |
14529 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14530 | if (arg3 == NULL) SWIG_fail; | |
14531 | } | |
14532 | if (obj2) { | |
14533 | { | |
32fe5131 | 14534 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
14535 | if (SWIG_arg_fail(4)) SWIG_fail; |
14536 | } | |
14537 | } | |
14538 | if (obj3) { | |
14539 | { | |
32fe5131 | 14540 | arg5 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14541 | if (SWIG_arg_fail(5)) SWIG_fail; |
14542 | } | |
14543 | } | |
14544 | if (obj4) { | |
14545 | { | |
32fe5131 | 14546 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
14547 | if (SWIG_arg_fail(6)) SWIG_fail; |
14548 | } | |
14549 | } | |
d55e5bfc RD |
14550 | { |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14552 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
14553 | |
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
36ed4f51 | 14557 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 14558 | { |
36ed4f51 | 14559 | if (arg3) delete [] arg3; |
d55e5bfc RD |
14560 | } |
14561 | return resultobj; | |
14562 | fail: | |
36ed4f51 RD |
14563 | { |
14564 | if (arg3) delete [] arg3; | |
14565 | } | |
d55e5bfc RD |
14566 | return NULL; |
14567 | } | |
14568 | ||
14569 | ||
36ed4f51 | 14570 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14571 | PyObject *resultobj = NULL; |
d55e5bfc | 14572 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14573 | wxString *arg2 = 0 ; |
14574 | wxRect *arg3 = 0 ; | |
14575 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14576 | int arg5 = (int) -1 ; | |
14577 | bool temp2 = false ; | |
14578 | wxRect temp3 ; | |
d55e5bfc | 14579 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
14580 | PyObject * obj1 = 0 ; |
14581 | PyObject * obj2 = 0 ; | |
14582 | PyObject * obj3 = 0 ; | |
14583 | PyObject * obj4 = 0 ; | |
d55e5bfc | 14584 | char *kwnames[] = { |
36ed4f51 | 14585 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d55e5bfc RD |
14586 | }; |
14587 | ||
36ed4f51 RD |
14588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14591 | { | |
14592 | arg2 = wxString_in_helper(obj1); | |
14593 | if (arg2 == NULL) SWIG_fail; | |
14594 | temp2 = true; | |
14595 | } | |
14596 | { | |
14597 | arg3 = &temp3; | |
14598 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
14599 | } | |
14600 | if (obj3) { | |
14601 | { | |
32fe5131 | 14602 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
14603 | if (SWIG_arg_fail(4)) SWIG_fail; |
14604 | } | |
14605 | } | |
14606 | if (obj4) { | |
14607 | { | |
32fe5131 | 14608 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
14609 | if (SWIG_arg_fail(5)) SWIG_fail; |
14610 | } | |
14611 | } | |
d55e5bfc RD |
14612 | { |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14614 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); |
d55e5bfc RD |
14615 | |
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
36ed4f51 RD |
14619 | Py_INCREF(Py_None); resultobj = Py_None; |
14620 | { | |
14621 | if (temp2) | |
14622 | delete arg2; | |
14623 | } | |
d55e5bfc RD |
14624 | return resultobj; |
14625 | fail: | |
36ed4f51 RD |
14626 | { |
14627 | if (temp2) | |
14628 | delete arg2; | |
14629 | } | |
d55e5bfc RD |
14630 | return NULL; |
14631 | } | |
14632 | ||
14633 | ||
36ed4f51 | 14634 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14635 | PyObject *resultobj = NULL; |
d55e5bfc | 14636 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14637 | wxString *arg2 = 0 ; |
14638 | wxBitmap *arg3 = 0 ; | |
14639 | wxRect *arg4 = 0 ; | |
14640 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14641 | int arg6 = (int) -1 ; | |
14642 | wxRect result; | |
14643 | bool temp2 = false ; | |
14644 | wxRect temp4 ; | |
d55e5bfc | 14645 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
14646 | PyObject * obj1 = 0 ; |
14647 | PyObject * obj2 = 0 ; | |
14648 | PyObject * obj3 = 0 ; | |
14649 | PyObject * obj4 = 0 ; | |
14650 | PyObject * obj5 = 0 ; | |
d55e5bfc | 14651 | char *kwnames[] = { |
36ed4f51 | 14652 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d55e5bfc RD |
14653 | }; |
14654 | ||
36ed4f51 RD |
14655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
14656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14658 | { |
36ed4f51 RD |
14659 | arg2 = wxString_in_helper(obj1); |
14660 | if (arg2 == NULL) SWIG_fail; | |
14661 | temp2 = true; | |
14662 | } | |
14663 | { | |
14664 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
14665 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14666 | if (arg3 == NULL) { | |
14667 | SWIG_null_ref("wxBitmap"); | |
14668 | } | |
14669 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14670 | } | |
14671 | { | |
14672 | arg4 = &temp4; | |
14673 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
14674 | } | |
14675 | if (obj4) { | |
d55e5bfc | 14676 | { |
32fe5131 | 14677 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
14678 | if (SWIG_arg_fail(5)) SWIG_fail; |
14679 | } | |
14680 | } | |
14681 | if (obj5) { | |
14682 | { | |
32fe5131 | 14683 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
36ed4f51 | 14684 | if (SWIG_arg_fail(6)) SWIG_fail; |
d55e5bfc | 14685 | } |
36ed4f51 RD |
14686 | } |
14687 | { | |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
d55e5bfc RD |
14690 | |
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | { | |
36ed4f51 | 14695 | wxRect * resultptr; |
32fe5131 | 14696 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
36ed4f51 RD |
14697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
14698 | } | |
14699 | { | |
14700 | if (temp2) | |
14701 | delete arg2; | |
d55e5bfc RD |
14702 | } |
14703 | return resultobj; | |
14704 | fail: | |
36ed4f51 RD |
14705 | { |
14706 | if (temp2) | |
14707 | delete arg2; | |
14708 | } | |
d55e5bfc RD |
14709 | return NULL; |
14710 | } | |
14711 | ||
14712 | ||
36ed4f51 | 14713 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14714 | PyObject *resultobj = NULL; |
d55e5bfc | 14715 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14716 | int arg2 ; |
14717 | wxPoint *arg3 = (wxPoint *) 0 ; | |
d55e5bfc | 14718 | PyObject * obj0 = 0 ; |
36ed4f51 | 14719 | PyObject * obj1 = 0 ; |
d55e5bfc | 14720 | char *kwnames[] = { |
36ed4f51 | 14721 | (char *) "self",(char *) "points", NULL |
d55e5bfc RD |
14722 | }; |
14723 | ||
36ed4f51 RD |
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; |
14725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14727 | { | |
14728 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14729 | if (arg3 == NULL) SWIG_fail; | |
14730 | } | |
d55e5bfc RD |
14731 | { |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14733 | (arg1)->DrawSpline(arg2,arg3); |
d55e5bfc RD |
14734 | |
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
36ed4f51 | 14738 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc | 14739 | { |
36ed4f51 | 14740 | if (arg3) delete [] arg3; |
d55e5bfc RD |
14741 | } |
14742 | return resultobj; | |
14743 | fail: | |
36ed4f51 RD |
14744 | { |
14745 | if (arg3) delete [] arg3; | |
14746 | } | |
d55e5bfc RD |
14747 | return NULL; |
14748 | } | |
14749 | ||
14750 | ||
36ed4f51 | 14751 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14752 | PyObject *resultobj = NULL; |
d55e5bfc | 14753 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc RD |
14754 | PyObject * obj0 = 0 ; |
14755 | char *kwnames[] = { | |
14756 | (char *) "self", NULL | |
14757 | }; | |
14758 | ||
36ed4f51 RD |
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; |
14760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14762 | { |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14764 | (arg1)->Clear(); |
d55e5bfc RD |
14765 | |
14766 | wxPyEndAllowThreads(__tstate); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
14768 | } | |
36ed4f51 | 14769 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14770 | return resultobj; |
14771 | fail: | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
36ed4f51 | 14776 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14777 | PyObject *resultobj = NULL; |
d55e5bfc | 14778 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
14779 | wxString *arg2 = 0 ; |
14780 | bool result; | |
14781 | bool temp2 = false ; | |
d55e5bfc | 14782 | PyObject * obj0 = 0 ; |
36ed4f51 | 14783 | PyObject * obj1 = 0 ; |
d55e5bfc | 14784 | char *kwnames[] = { |
36ed4f51 | 14785 | (char *) "self",(char *) "message", NULL |
d55e5bfc RD |
14786 | }; |
14787 | ||
36ed4f51 RD |
14788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; |
14789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14791 | { | |
14792 | arg2 = wxString_in_helper(obj1); | |
14793 | if (arg2 == NULL) SWIG_fail; | |
14794 | temp2 = true; | |
14795 | } | |
d55e5bfc RD |
14796 | { |
14797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14798 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); |
d55e5bfc RD |
14799 | |
14800 | wxPyEndAllowThreads(__tstate); | |
14801 | if (PyErr_Occurred()) SWIG_fail; | |
14802 | } | |
14803 | { | |
36ed4f51 RD |
14804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
14805 | } | |
14806 | { | |
14807 | if (temp2) | |
14808 | delete arg2; | |
d55e5bfc RD |
14809 | } |
14810 | return resultobj; | |
14811 | fail: | |
36ed4f51 RD |
14812 | { |
14813 | if (temp2) | |
14814 | delete arg2; | |
14815 | } | |
d55e5bfc RD |
14816 | return NULL; |
14817 | } | |
14818 | ||
14819 | ||
36ed4f51 | 14820 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14821 | PyObject *resultobj = NULL; |
d55e5bfc | 14822 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc RD |
14823 | PyObject * obj0 = 0 ; |
14824 | char *kwnames[] = { | |
14825 | (char *) "self", NULL | |
14826 | }; | |
14827 | ||
36ed4f51 RD |
14828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; |
14829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14831 | { |
14832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14833 | (arg1)->EndDoc(); |
d55e5bfc RD |
14834 | |
14835 | wxPyEndAllowThreads(__tstate); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
36ed4f51 | 14838 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14839 | return resultobj; |
14840 | fail: | |
14841 | return NULL; | |
14842 | } | |
14843 | ||
14844 | ||
36ed4f51 | 14845 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14846 | PyObject *resultobj = NULL; |
d55e5bfc | 14847 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc RD |
14848 | PyObject * obj0 = 0 ; |
14849 | char *kwnames[] = { | |
14850 | (char *) "self", NULL | |
14851 | }; | |
14852 | ||
36ed4f51 RD |
14853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; |
14854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14856 | { |
14857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14858 | (arg1)->StartPage(); |
d55e5bfc RD |
14859 | |
14860 | wxPyEndAllowThreads(__tstate); | |
14861 | if (PyErr_Occurred()) SWIG_fail; | |
14862 | } | |
36ed4f51 | 14863 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14864 | return resultobj; |
14865 | fail: | |
14866 | return NULL; | |
14867 | } | |
14868 | ||
14869 | ||
36ed4f51 | 14870 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14871 | PyObject *resultobj = NULL; |
d55e5bfc | 14872 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc | 14873 | PyObject * obj0 = 0 ; |
d55e5bfc | 14874 | char *kwnames[] = { |
36ed4f51 | 14875 | (char *) "self", NULL |
d55e5bfc RD |
14876 | }; |
14877 | ||
36ed4f51 RD |
14878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; |
14879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14881 | { |
14882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14883 | (arg1)->EndPage(); |
d55e5bfc RD |
14884 | |
14885 | wxPyEndAllowThreads(__tstate); | |
14886 | if (PyErr_Occurred()) SWIG_fail; | |
14887 | } | |
14888 | Py_INCREF(Py_None); resultobj = Py_None; | |
14889 | return resultobj; | |
14890 | fail: | |
14891 | return NULL; | |
14892 | } | |
14893 | ||
14894 | ||
36ed4f51 | 14895 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14896 | PyObject *resultobj = NULL; |
d55e5bfc | 14897 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 14898 | wxFont *arg2 = 0 ; |
d55e5bfc RD |
14899 | PyObject * obj0 = 0 ; |
14900 | PyObject * obj1 = 0 ; | |
14901 | char *kwnames[] = { | |
36ed4f51 | 14902 | (char *) "self",(char *) "font", NULL |
d55e5bfc RD |
14903 | }; |
14904 | ||
36ed4f51 RD |
14905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; |
14906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14908 | { |
36ed4f51 RD |
14909 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); |
14910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14911 | if (arg2 == NULL) { | |
14912 | SWIG_null_ref("wxFont"); | |
14913 | } | |
14914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14915 | } |
14916 | { | |
14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14918 | (arg1)->SetFont((wxFont const &)*arg2); |
d55e5bfc RD |
14919 | |
14920 | wxPyEndAllowThreads(__tstate); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
14923 | Py_INCREF(Py_None); resultobj = Py_None; | |
14924 | return resultobj; | |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
36ed4f51 | 14930 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14931 | PyObject *resultobj = NULL; |
d55e5bfc | 14932 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 14933 | wxPen *arg2 = 0 ; |
d55e5bfc | 14934 | PyObject * obj0 = 0 ; |
36ed4f51 | 14935 | PyObject * obj1 = 0 ; |
d55e5bfc | 14936 | char *kwnames[] = { |
36ed4f51 | 14937 | (char *) "self",(char *) "pen", NULL |
d55e5bfc RD |
14938 | }; |
14939 | ||
36ed4f51 RD |
14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; |
14941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14943 | { |
36ed4f51 RD |
14944 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); |
14945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14946 | if (arg2 == NULL) { | |
14947 | SWIG_null_ref("wxPen"); | |
14948 | } | |
14949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 14950 | } |
d55e5bfc RD |
14951 | { |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14953 | (arg1)->SetPen((wxPen const &)*arg2); |
d55e5bfc RD |
14954 | |
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | Py_INCREF(Py_None); resultobj = Py_None; | |
14959 | return resultobj; | |
14960 | fail: | |
14961 | return NULL; | |
14962 | } | |
14963 | ||
14964 | ||
36ed4f51 | 14965 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14966 | PyObject *resultobj = NULL; |
d55e5bfc | 14967 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 14968 | wxBrush *arg2 = 0 ; |
d55e5bfc | 14969 | PyObject * obj0 = 0 ; |
36ed4f51 | 14970 | PyObject * obj1 = 0 ; |
d55e5bfc | 14971 | char *kwnames[] = { |
36ed4f51 | 14972 | (char *) "self",(char *) "brush", NULL |
d55e5bfc RD |
14973 | }; |
14974 | ||
36ed4f51 RD |
14975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; |
14976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14978 | { | |
14979 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
14980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14981 | if (arg2 == NULL) { | |
14982 | SWIG_null_ref("wxBrush"); | |
14983 | } | |
14984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14985 | } | |
d55e5bfc RD |
14986 | { |
14987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14988 | (arg1)->SetBrush((wxBrush const &)*arg2); |
d55e5bfc RD |
14989 | |
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
14994 | return resultobj; |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
36ed4f51 | 15000 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15001 | PyObject *resultobj = NULL; |
d55e5bfc | 15002 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15003 | wxBrush *arg2 = 0 ; |
d55e5bfc RD |
15004 | PyObject * obj0 = 0 ; |
15005 | PyObject * obj1 = 0 ; | |
d55e5bfc | 15006 | char *kwnames[] = { |
36ed4f51 | 15007 | (char *) "self",(char *) "brush", NULL |
d55e5bfc RD |
15008 | }; |
15009 | ||
36ed4f51 RD |
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; |
15011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15013 | { | |
15014 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
15015 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15016 | if (arg2 == NULL) { | |
15017 | SWIG_null_ref("wxBrush"); | |
15018 | } | |
15019 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15020 | } | |
d55e5bfc RD |
15021 | { |
15022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15023 | (arg1)->SetBackground((wxBrush const &)*arg2); |
d55e5bfc RD |
15024 | |
15025 | wxPyEndAllowThreads(__tstate); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
15028 | Py_INCREF(Py_None); resultobj = Py_None; | |
15029 | return resultobj; | |
15030 | fail: | |
15031 | return NULL; | |
15032 | } | |
15033 | ||
15034 | ||
36ed4f51 | 15035 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15036 | PyObject *resultobj = NULL; |
d55e5bfc | 15037 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15038 | int arg2 ; |
d55e5bfc | 15039 | PyObject * obj0 = 0 ; |
36ed4f51 | 15040 | PyObject * obj1 = 0 ; |
d55e5bfc | 15041 | char *kwnames[] = { |
36ed4f51 | 15042 | (char *) "self",(char *) "mode", NULL |
d55e5bfc RD |
15043 | }; |
15044 | ||
36ed4f51 RD |
15045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15048 | { | |
32fe5131 | 15049 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15050 | if (SWIG_arg_fail(2)) SWIG_fail; |
15051 | } | |
d55e5bfc RD |
15052 | { |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15054 | (arg1)->SetBackgroundMode(arg2); |
d55e5bfc RD |
15055 | |
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
15059 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
15060 | return resultobj; |
15061 | fail: | |
15062 | return NULL; | |
15063 | } | |
15064 | ||
15065 | ||
36ed4f51 | 15066 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15067 | PyObject *resultobj = NULL; |
d55e5bfc | 15068 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15069 | wxPalette *arg2 = 0 ; |
d55e5bfc RD |
15070 | PyObject * obj0 = 0 ; |
15071 | PyObject * obj1 = 0 ; | |
d55e5bfc | 15072 | char *kwnames[] = { |
36ed4f51 | 15073 | (char *) "self",(char *) "palette", NULL |
d55e5bfc RD |
15074 | }; |
15075 | ||
36ed4f51 RD |
15076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
15077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15079 | { | |
15080 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
15081 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15082 | if (arg2 == NULL) { | |
15083 | SWIG_null_ref("wxPalette"); | |
15084 | } | |
15085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15086 | } | |
d55e5bfc RD |
15087 | { |
15088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15089 | (arg1)->SetPalette((wxPalette const &)*arg2); |
d55e5bfc RD |
15090 | |
15091 | wxPyEndAllowThreads(__tstate); | |
15092 | if (PyErr_Occurred()) SWIG_fail; | |
15093 | } | |
15094 | Py_INCREF(Py_None); resultobj = Py_None; | |
15095 | return resultobj; | |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
36ed4f51 | 15101 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15102 | PyObject *resultobj = NULL; |
d55e5bfc | 15103 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc RD |
15104 | PyObject * obj0 = 0 ; |
15105 | char *kwnames[] = { | |
15106 | (char *) "self", NULL | |
15107 | }; | |
15108 | ||
36ed4f51 RD |
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; |
15110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15112 | { |
15113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15114 | (arg1)->DestroyClippingRegion(); |
d55e5bfc RD |
15115 | |
15116 | wxPyEndAllowThreads(__tstate); | |
15117 | if (PyErr_Occurred()) SWIG_fail; | |
15118 | } | |
36ed4f51 | 15119 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
15120 | return resultobj; |
15121 | fail: | |
15122 | return NULL; | |
15123 | } | |
15124 | ||
15125 | ||
36ed4f51 | 15126 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15127 | PyObject *resultobj = NULL; |
d55e5bfc RD |
15128 | wxDC *arg1 = (wxDC *) 0 ; |
15129 | int *arg2 = (int *) 0 ; | |
15130 | int *arg3 = (int *) 0 ; | |
36ed4f51 RD |
15131 | int *arg4 = (int *) 0 ; |
15132 | int *arg5 = (int *) 0 ; | |
d55e5bfc | 15133 | int temp2 ; |
c370783e | 15134 | int res2 = 0 ; |
d55e5bfc | 15135 | int temp3 ; |
c370783e | 15136 | int res3 = 0 ; |
36ed4f51 RD |
15137 | int temp4 ; |
15138 | int res4 = 0 ; | |
15139 | int temp5 ; | |
15140 | int res5 = 0 ; | |
d55e5bfc RD |
15141 | PyObject * obj0 = 0 ; |
15142 | char *kwnames[] = { | |
15143 | (char *) "self", NULL | |
15144 | }; | |
15145 | ||
c370783e RD |
15146 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15147 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
36ed4f51 RD |
15148 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
15149 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
15151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15153 | { |
15154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15155 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
15156 | |
15157 | wxPyEndAllowThreads(__tstate); | |
15158 | if (PyErr_Occurred()) SWIG_fail; | |
15159 | } | |
15160 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
15161 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15162 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15163 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15164 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
36ed4f51 RD |
15165 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
15166 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15167 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15168 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15169 | return resultobj; |
15170 | fail: | |
15171 | return NULL; | |
15172 | } | |
15173 | ||
15174 | ||
36ed4f51 | 15175 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15176 | PyObject *resultobj = NULL; |
d55e5bfc | 15177 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15178 | wxRect result; |
d55e5bfc | 15179 | PyObject * obj0 = 0 ; |
d55e5bfc | 15180 | char *kwnames[] = { |
36ed4f51 | 15181 | (char *) "self", NULL |
d55e5bfc RD |
15182 | }; |
15183 | ||
36ed4f51 RD |
15184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; |
15185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15187 | { |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15189 | result = wxDC_GetClippingRect(arg1); |
d55e5bfc RD |
15190 | |
15191 | wxPyEndAllowThreads(__tstate); | |
15192 | if (PyErr_Occurred()) SWIG_fail; | |
15193 | } | |
36ed4f51 RD |
15194 | { |
15195 | wxRect * resultptr; | |
32fe5131 | 15196 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
36ed4f51 RD |
15197 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
15198 | } | |
d55e5bfc RD |
15199 | return resultobj; |
15200 | fail: | |
15201 | return NULL; | |
15202 | } | |
15203 | ||
15204 | ||
36ed4f51 | 15205 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15206 | PyObject *resultobj = NULL; |
d6c14a4c | 15207 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15208 | int result; |
d6c14a4c | 15209 | PyObject * obj0 = 0 ; |
d6c14a4c | 15210 | char *kwnames[] = { |
36ed4f51 | 15211 | (char *) "self", NULL |
d6c14a4c RD |
15212 | }; |
15213 | ||
36ed4f51 RD |
15214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; |
15215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c RD |
15217 | { |
15218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15219 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d6c14a4c RD |
15220 | |
15221 | wxPyEndAllowThreads(__tstate); | |
15222 | if (PyErr_Occurred()) SWIG_fail; | |
15223 | } | |
36ed4f51 | 15224 | { |
32fe5131 | 15225 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15226 | } |
d6c14a4c RD |
15227 | return resultobj; |
15228 | fail: | |
15229 | return NULL; | |
15230 | } | |
15231 | ||
15232 | ||
36ed4f51 | 15233 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15234 | PyObject *resultobj = NULL; |
d55e5bfc | 15235 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15236 | int result; |
d55e5bfc RD |
15237 | PyObject * obj0 = 0 ; |
15238 | char *kwnames[] = { | |
15239 | (char *) "self", NULL | |
15240 | }; | |
15241 | ||
36ed4f51 RD |
15242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; |
15243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15245 | { |
15246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15247 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d55e5bfc RD |
15248 | |
15249 | wxPyEndAllowThreads(__tstate); | |
15250 | if (PyErr_Occurred()) SWIG_fail; | |
15251 | } | |
15252 | { | |
32fe5131 | 15253 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
15254 | } |
15255 | return resultobj; | |
15256 | fail: | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
36ed4f51 | 15261 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15262 | PyObject *resultobj = NULL; |
d55e5bfc | 15263 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15264 | wxString *arg2 = 0 ; |
d55e5bfc | 15265 | int *arg3 = (int *) 0 ; |
36ed4f51 RD |
15266 | int *arg4 = (int *) 0 ; |
15267 | bool temp2 = false ; | |
d55e5bfc | 15268 | int temp3 ; |
c370783e | 15269 | int res3 = 0 ; |
36ed4f51 RD |
15270 | int temp4 ; |
15271 | int res4 = 0 ; | |
d55e5bfc | 15272 | PyObject * obj0 = 0 ; |
36ed4f51 | 15273 | PyObject * obj1 = 0 ; |
d55e5bfc | 15274 | char *kwnames[] = { |
36ed4f51 | 15275 | (char *) "self",(char *) "string", NULL |
d55e5bfc RD |
15276 | }; |
15277 | ||
c370783e | 15278 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
36ed4f51 RD |
15279 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15283 | { | |
15284 | arg2 = wxString_in_helper(obj1); | |
15285 | if (arg2 == NULL) SWIG_fail; | |
15286 | temp2 = true; | |
15287 | } | |
d55e5bfc RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15290 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); |
d55e5bfc RD |
15291 | |
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
15295 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
15296 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
15297 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
36ed4f51 RD |
15298 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
15299 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15300 | { | |
15301 | if (temp2) | |
15302 | delete arg2; | |
15303 | } | |
d55e5bfc RD |
15304 | return resultobj; |
15305 | fail: | |
36ed4f51 RD |
15306 | { |
15307 | if (temp2) | |
15308 | delete arg2; | |
15309 | } | |
d55e5bfc RD |
15310 | return NULL; |
15311 | } | |
15312 | ||
15313 | ||
36ed4f51 | 15314 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15315 | PyObject *resultobj = NULL; |
d55e5bfc | 15316 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15317 | wxString *arg2 = 0 ; |
15318 | int *arg3 = (int *) 0 ; | |
15319 | int *arg4 = (int *) 0 ; | |
15320 | int *arg5 = (int *) 0 ; | |
15321 | int *arg6 = (int *) 0 ; | |
15322 | wxFont *arg7 = (wxFont *) NULL ; | |
15323 | bool temp2 = false ; | |
15324 | int temp3 ; | |
15325 | int res3 = 0 ; | |
15326 | int temp4 ; | |
15327 | int res4 = 0 ; | |
15328 | int temp5 ; | |
15329 | int res5 = 0 ; | |
15330 | int temp6 ; | |
15331 | int res6 = 0 ; | |
d55e5bfc RD |
15332 | PyObject * obj0 = 0 ; |
15333 | PyObject * obj1 = 0 ; | |
15334 | PyObject * obj2 = 0 ; | |
15335 | char *kwnames[] = { | |
36ed4f51 | 15336 | (char *) "self",(char *) "string",(char *) "font", NULL |
d55e5bfc RD |
15337 | }; |
15338 | ||
36ed4f51 RD |
15339 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15340 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15341 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15342 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
15343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15346 | { | |
15347 | arg2 = wxString_in_helper(obj1); | |
15348 | if (arg2 == NULL) SWIG_fail; | |
15349 | temp2 = true; | |
15350 | } | |
15351 | if (obj2) { | |
15352 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15353 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15354 | } | |
d55e5bfc RD |
15355 | { |
15356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15357 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
15358 | |
15359 | wxPyEndAllowThreads(__tstate); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
15363 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
15364 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15365 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15366 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15367 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15368 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
15369 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
15370 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
15371 | { | |
15372 | if (temp2) | |
15373 | delete arg2; | |
15374 | } | |
d55e5bfc RD |
15375 | return resultobj; |
15376 | fail: | |
36ed4f51 RD |
15377 | { |
15378 | if (temp2) | |
15379 | delete arg2; | |
15380 | } | |
d55e5bfc RD |
15381 | return NULL; |
15382 | } | |
15383 | ||
15384 | ||
36ed4f51 | 15385 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15386 | PyObject *resultobj = NULL; |
d6c14a4c | 15387 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15388 | wxString *arg2 = 0 ; |
15389 | int *arg3 = (int *) 0 ; | |
15390 | int *arg4 = (int *) 0 ; | |
15391 | int *arg5 = (int *) 0 ; | |
15392 | wxFont *arg6 = (wxFont *) NULL ; | |
15393 | bool temp2 = false ; | |
15394 | int temp3 ; | |
15395 | int res3 = 0 ; | |
15396 | int temp4 ; | |
15397 | int res4 = 0 ; | |
15398 | int temp5 ; | |
15399 | int res5 = 0 ; | |
d6c14a4c RD |
15400 | PyObject * obj0 = 0 ; |
15401 | PyObject * obj1 = 0 ; | |
36ed4f51 | 15402 | PyObject * obj2 = 0 ; |
d6c14a4c | 15403 | char *kwnames[] = { |
36ed4f51 | 15404 | (char *) "self",(char *) "text",(char *) "font", NULL |
d6c14a4c RD |
15405 | }; |
15406 | ||
36ed4f51 RD |
15407 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15408 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15409 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c | 15413 | { |
36ed4f51 RD |
15414 | arg2 = wxString_in_helper(obj1); |
15415 | if (arg2 == NULL) SWIG_fail; | |
15416 | temp2 = true; | |
15417 | } | |
15418 | if (obj2) { | |
15419 | SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15420 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d6c14a4c RD |
15421 | } |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15424 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
d6c14a4c RD |
15425 | |
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
15430 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
15431 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15432 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15433 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15434 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15435 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
15436 | { | |
15437 | if (temp2) | |
15438 | delete arg2; | |
15439 | } | |
d6c14a4c RD |
15440 | return resultobj; |
15441 | fail: | |
36ed4f51 RD |
15442 | { |
15443 | if (temp2) | |
15444 | delete arg2; | |
15445 | } | |
d6c14a4c RD |
15446 | return NULL; |
15447 | } | |
15448 | ||
15449 | ||
36ed4f51 | 15450 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15451 | PyObject *resultobj = NULL; |
d55e5bfc | 15452 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15453 | wxString *arg2 = 0 ; |
15454 | wxArrayInt result; | |
15455 | bool temp2 = false ; | |
d55e5bfc RD |
15456 | PyObject * obj0 = 0 ; |
15457 | PyObject * obj1 = 0 ; | |
d55e5bfc | 15458 | char *kwnames[] = { |
36ed4f51 | 15459 | (char *) "self",(char *) "text", NULL |
d55e5bfc RD |
15460 | }; |
15461 | ||
36ed4f51 RD |
15462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; |
15463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15465 | { | |
15466 | arg2 = wxString_in_helper(obj1); | |
15467 | if (arg2 == NULL) SWIG_fail; | |
15468 | temp2 = true; | |
15469 | } | |
d55e5bfc RD |
15470 | { |
15471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15472 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
15473 | |
15474 | wxPyEndAllowThreads(__tstate); | |
15475 | if (PyErr_Occurred()) SWIG_fail; | |
15476 | } | |
36ed4f51 RD |
15477 | { |
15478 | resultobj = PyList_New(0); | |
15479 | size_t idx; | |
15480 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
15481 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
15482 | PyList_Append(resultobj, val); | |
15483 | Py_DECREF(val); | |
15484 | } | |
15485 | } | |
15486 | { | |
15487 | if (temp2) | |
15488 | delete arg2; | |
15489 | } | |
d55e5bfc RD |
15490 | return resultobj; |
15491 | fail: | |
36ed4f51 RD |
15492 | { |
15493 | if (temp2) | |
15494 | delete arg2; | |
15495 | } | |
d55e5bfc RD |
15496 | return NULL; |
15497 | } | |
15498 | ||
15499 | ||
36ed4f51 | 15500 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15501 | PyObject *resultobj = NULL; |
d55e5bfc | 15502 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15503 | wxSize result; |
d55e5bfc RD |
15504 | PyObject * obj0 = 0 ; |
15505 | char *kwnames[] = { | |
15506 | (char *) "self", NULL | |
15507 | }; | |
15508 | ||
36ed4f51 RD |
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; |
15510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15512 | { |
15513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15514 | result = (arg1)->GetSize(); |
d55e5bfc RD |
15515 | |
15516 | wxPyEndAllowThreads(__tstate); | |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
36ed4f51 RD |
15519 | { |
15520 | wxSize * resultptr; | |
32fe5131 | 15521 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 RD |
15522 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
15523 | } | |
d55e5bfc RD |
15524 | return resultobj; |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
36ed4f51 | 15530 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15531 | PyObject *resultobj = NULL; |
d55e5bfc | 15532 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15533 | int *arg2 = (int *) 0 ; |
15534 | int *arg3 = (int *) 0 ; | |
15535 | int temp2 ; | |
15536 | int res2 = 0 ; | |
15537 | int temp3 ; | |
15538 | int res3 = 0 ; | |
d55e5bfc | 15539 | PyObject * obj0 = 0 ; |
d55e5bfc | 15540 | char *kwnames[] = { |
36ed4f51 | 15541 | (char *) "self", NULL |
d55e5bfc RD |
15542 | }; |
15543 | ||
36ed4f51 RD |
15544 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15545 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15549 | { |
15550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15551 | (arg1)->GetSize(arg2,arg3); |
d55e5bfc RD |
15552 | |
15553 | wxPyEndAllowThreads(__tstate); | |
15554 | if (PyErr_Occurred()) SWIG_fail; | |
15555 | } | |
15556 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
15557 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15558 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15559 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15560 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15561 | return resultobj; |
15562 | fail: | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
36ed4f51 | 15567 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15568 | PyObject *resultobj = NULL; |
d55e5bfc | 15569 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15570 | wxSize result; |
d55e5bfc RD |
15571 | PyObject * obj0 = 0 ; |
15572 | char *kwnames[] = { | |
15573 | (char *) "self", NULL | |
15574 | }; | |
15575 | ||
36ed4f51 RD |
15576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15579 | { |
15580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15581 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d55e5bfc RD |
15582 | |
15583 | wxPyEndAllowThreads(__tstate); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
36ed4f51 RD |
15586 | { |
15587 | wxSize * resultptr; | |
32fe5131 | 15588 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 RD |
15589 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
15590 | } | |
d55e5bfc RD |
15591 | return resultobj; |
15592 | fail: | |
15593 | return NULL; | |
15594 | } | |
15595 | ||
15596 | ||
36ed4f51 | 15597 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15598 | PyObject *resultobj = NULL; |
d55e5bfc | 15599 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15600 | int *arg2 = (int *) 0 ; |
15601 | int *arg3 = (int *) 0 ; | |
15602 | int temp2 ; | |
15603 | int res2 = 0 ; | |
15604 | int temp3 ; | |
15605 | int res3 = 0 ; | |
d55e5bfc | 15606 | PyObject * obj0 = 0 ; |
d55e5bfc | 15607 | char *kwnames[] = { |
36ed4f51 | 15608 | (char *) "self", NULL |
d55e5bfc RD |
15609 | }; |
15610 | ||
36ed4f51 RD |
15611 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15612 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
15614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15616 | { |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15618 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); |
d55e5bfc RD |
15619 | |
15620 | wxPyEndAllowThreads(__tstate); | |
15621 | if (PyErr_Occurred()) SWIG_fail; | |
15622 | } | |
15623 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
15624 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15625 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15626 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15627 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15628 | return resultobj; |
15629 | fail: | |
15630 | return NULL; | |
15631 | } | |
15632 | ||
15633 | ||
36ed4f51 | 15634 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15635 | PyObject *resultobj = NULL; |
d6c14a4c | 15636 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15637 | int arg2 ; |
15638 | int result; | |
d6c14a4c RD |
15639 | PyObject * obj0 = 0 ; |
15640 | PyObject * obj1 = 0 ; | |
15641 | char *kwnames[] = { | |
36ed4f51 | 15642 | (char *) "self",(char *) "x", NULL |
d6c14a4c RD |
15643 | }; |
15644 | ||
36ed4f51 RD |
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d6c14a4c | 15648 | { |
32fe5131 | 15649 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 15650 | if (SWIG_arg_fail(2)) SWIG_fail; |
d6c14a4c RD |
15651 | } |
15652 | { | |
15653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15654 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d6c14a4c RD |
15655 | |
15656 | wxPyEndAllowThreads(__tstate); | |
15657 | if (PyErr_Occurred()) SWIG_fail; | |
15658 | } | |
36ed4f51 | 15659 | { |
32fe5131 | 15660 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15661 | } |
d6c14a4c RD |
15662 | return resultobj; |
15663 | fail: | |
15664 | return NULL; | |
15665 | } | |
15666 | ||
15667 | ||
36ed4f51 | 15668 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15669 | PyObject *resultobj = NULL; |
d55e5bfc | 15670 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15671 | int arg2 ; |
15672 | int result; | |
d55e5bfc | 15673 | PyObject * obj0 = 0 ; |
36ed4f51 | 15674 | PyObject * obj1 = 0 ; |
d55e5bfc | 15675 | char *kwnames[] = { |
36ed4f51 | 15676 | (char *) "self",(char *) "y", NULL |
d55e5bfc RD |
15677 | }; |
15678 | ||
36ed4f51 RD |
15679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15682 | { | |
32fe5131 | 15683 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15684 | if (SWIG_arg_fail(2)) SWIG_fail; |
15685 | } | |
d55e5bfc RD |
15686 | { |
15687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15688 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d55e5bfc RD |
15689 | |
15690 | wxPyEndAllowThreads(__tstate); | |
15691 | if (PyErr_Occurred()) SWIG_fail; | |
15692 | } | |
36ed4f51 | 15693 | { |
32fe5131 | 15694 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15695 | } |
d55e5bfc RD |
15696 | return resultobj; |
15697 | fail: | |
15698 | return NULL; | |
15699 | } | |
15700 | ||
15701 | ||
36ed4f51 | 15702 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15703 | PyObject *resultobj = NULL; |
d55e5bfc | 15704 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15705 | int arg2 ; |
d55e5bfc RD |
15706 | int result; |
15707 | PyObject * obj0 = 0 ; | |
36ed4f51 | 15708 | PyObject * obj1 = 0 ; |
d55e5bfc | 15709 | char *kwnames[] = { |
36ed4f51 | 15710 | (char *) "self",(char *) "x", NULL |
d55e5bfc RD |
15711 | }; |
15712 | ||
36ed4f51 RD |
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15716 | { | |
32fe5131 | 15717 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15718 | if (SWIG_arg_fail(2)) SWIG_fail; |
15719 | } | |
d55e5bfc RD |
15720 | { |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15722 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d55e5bfc RD |
15723 | |
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
36ed4f51 | 15727 | { |
32fe5131 | 15728 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15729 | } |
d55e5bfc RD |
15730 | return resultobj; |
15731 | fail: | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
36ed4f51 | 15736 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15737 | PyObject *resultobj = NULL; |
d55e5bfc | 15738 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15739 | int arg2 ; |
d55e5bfc RD |
15740 | int result; |
15741 | PyObject * obj0 = 0 ; | |
36ed4f51 | 15742 | PyObject * obj1 = 0 ; |
d55e5bfc | 15743 | char *kwnames[] = { |
36ed4f51 | 15744 | (char *) "self",(char *) "y", NULL |
d55e5bfc RD |
15745 | }; |
15746 | ||
36ed4f51 RD |
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15750 | { | |
32fe5131 | 15751 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15752 | if (SWIG_arg_fail(2)) SWIG_fail; |
15753 | } | |
d55e5bfc RD |
15754 | { |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15756 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d55e5bfc RD |
15757 | |
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
36ed4f51 | 15761 | { |
32fe5131 | 15762 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15763 | } |
d55e5bfc RD |
15764 | return resultobj; |
15765 | fail: | |
15766 | return NULL; | |
15767 | } | |
15768 | ||
15769 | ||
36ed4f51 | 15770 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15771 | PyObject *resultobj = NULL; |
d55e5bfc | 15772 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15773 | int arg2 ; |
d55e5bfc RD |
15774 | int result; |
15775 | PyObject * obj0 = 0 ; | |
36ed4f51 | 15776 | PyObject * obj1 = 0 ; |
d55e5bfc | 15777 | char *kwnames[] = { |
36ed4f51 | 15778 | (char *) "self",(char *) "x", NULL |
d55e5bfc RD |
15779 | }; |
15780 | ||
36ed4f51 RD |
15781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15784 | { | |
32fe5131 | 15785 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15786 | if (SWIG_arg_fail(2)) SWIG_fail; |
15787 | } | |
d55e5bfc RD |
15788 | { |
15789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15790 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d55e5bfc RD |
15791 | |
15792 | wxPyEndAllowThreads(__tstate); | |
15793 | if (PyErr_Occurred()) SWIG_fail; | |
15794 | } | |
36ed4f51 | 15795 | { |
32fe5131 | 15796 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15797 | } |
d55e5bfc RD |
15798 | return resultobj; |
15799 | fail: | |
15800 | return NULL; | |
15801 | } | |
15802 | ||
15803 | ||
36ed4f51 | 15804 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15805 | PyObject *resultobj = NULL; |
d55e5bfc | 15806 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15807 | int arg2 ; |
d55e5bfc RD |
15808 | int result; |
15809 | PyObject * obj0 = 0 ; | |
36ed4f51 | 15810 | PyObject * obj1 = 0 ; |
d55e5bfc | 15811 | char *kwnames[] = { |
36ed4f51 | 15812 | (char *) "self",(char *) "y", NULL |
d55e5bfc RD |
15813 | }; |
15814 | ||
36ed4f51 RD |
15815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15818 | { | |
32fe5131 | 15819 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15820 | if (SWIG_arg_fail(2)) SWIG_fail; |
15821 | } | |
d55e5bfc RD |
15822 | { |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15824 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d55e5bfc RD |
15825 | |
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
36ed4f51 | 15829 | { |
32fe5131 | 15830 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15831 | } |
d55e5bfc RD |
15832 | return resultobj; |
15833 | fail: | |
15834 | return NULL; | |
15835 | } | |
15836 | ||
15837 | ||
36ed4f51 | 15838 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15839 | PyObject *resultobj = NULL; |
d55e5bfc | 15840 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15841 | int arg2 ; |
15842 | int result; | |
d55e5bfc | 15843 | PyObject * obj0 = 0 ; |
36ed4f51 | 15844 | PyObject * obj1 = 0 ; |
d55e5bfc | 15845 | char *kwnames[] = { |
36ed4f51 | 15846 | (char *) "self",(char *) "x", NULL |
d55e5bfc RD |
15847 | }; |
15848 | ||
36ed4f51 RD |
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15852 | { | |
32fe5131 | 15853 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15854 | if (SWIG_arg_fail(2)) SWIG_fail; |
15855 | } | |
d55e5bfc RD |
15856 | { |
15857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15858 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d55e5bfc RD |
15859 | |
15860 | wxPyEndAllowThreads(__tstate); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
36ed4f51 | 15863 | { |
32fe5131 | 15864 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15865 | } |
d55e5bfc RD |
15866 | return resultobj; |
15867 | fail: | |
15868 | return NULL; | |
15869 | } | |
15870 | ||
15871 | ||
36ed4f51 | 15872 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15873 | PyObject *resultobj = NULL; |
d55e5bfc | 15874 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 RD |
15875 | int arg2 ; |
15876 | int result; | |
d55e5bfc RD |
15877 | PyObject * obj0 = 0 ; |
15878 | PyObject * obj1 = 0 ; | |
d55e5bfc | 15879 | char *kwnames[] = { |
36ed4f51 | 15880 | (char *) "self",(char *) "y", NULL |
d55e5bfc RD |
15881 | }; |
15882 | ||
36ed4f51 RD |
15883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15886 | { | |
32fe5131 | 15887 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
15888 | if (SWIG_arg_fail(2)) SWIG_fail; |
15889 | } | |
d55e5bfc RD |
15890 | { |
15891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15892 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d55e5bfc RD |
15893 | |
15894 | wxPyEndAllowThreads(__tstate); | |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
15896 | } | |
36ed4f51 | 15897 | { |
32fe5131 | 15898 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15899 | } |
d55e5bfc RD |
15900 | return resultobj; |
15901 | fail: | |
15902 | return NULL; | |
15903 | } | |
15904 | ||
15905 | ||
36ed4f51 | 15906 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15907 | PyObject *resultobj = NULL; |
d55e5bfc | 15908 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15909 | bool result; |
d55e5bfc | 15910 | PyObject * obj0 = 0 ; |
d55e5bfc | 15911 | char *kwnames[] = { |
36ed4f51 | 15912 | (char *) "self", NULL |
d55e5bfc RD |
15913 | }; |
15914 | ||
36ed4f51 RD |
15915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; |
15916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15918 | { |
15919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15920 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); |
d55e5bfc RD |
15921 | |
15922 | wxPyEndAllowThreads(__tstate); | |
15923 | if (PyErr_Occurred()) SWIG_fail; | |
15924 | } | |
36ed4f51 RD |
15925 | { |
15926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15927 | } | |
d55e5bfc RD |
15928 | return resultobj; |
15929 | fail: | |
15930 | return NULL; | |
15931 | } | |
15932 | ||
15933 | ||
36ed4f51 | 15934 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15935 | PyObject *resultobj = NULL; |
d55e5bfc | 15936 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15937 | bool result; |
d55e5bfc | 15938 | PyObject * obj0 = 0 ; |
d55e5bfc | 15939 | char *kwnames[] = { |
36ed4f51 | 15940 | (char *) "self", NULL |
d55e5bfc RD |
15941 | }; |
15942 | ||
36ed4f51 RD |
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; |
15944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15946 | { |
15947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15948 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); |
d55e5bfc RD |
15949 | |
15950 | wxPyEndAllowThreads(__tstate); | |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
15952 | } | |
36ed4f51 RD |
15953 | { |
15954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15955 | } | |
d55e5bfc RD |
15956 | return resultobj; |
15957 | fail: | |
15958 | return NULL; | |
15959 | } | |
15960 | ||
15961 | ||
36ed4f51 | 15962 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15963 | PyObject *resultobj = NULL; |
d55e5bfc | 15964 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15965 | int result; |
d55e5bfc | 15966 | PyObject * obj0 = 0 ; |
d55e5bfc | 15967 | char *kwnames[] = { |
36ed4f51 | 15968 | (char *) "self", NULL |
d55e5bfc RD |
15969 | }; |
15970 | ||
36ed4f51 RD |
15971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; |
15972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15974 | { |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15976 | result = (int)((wxDC const *)arg1)->GetDepth(); |
d55e5bfc RD |
15977 | |
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
36ed4f51 | 15981 | { |
32fe5131 | 15982 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 15983 | } |
d55e5bfc RD |
15984 | return resultobj; |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
36ed4f51 | 15990 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15991 | PyObject *resultobj = NULL; |
d55e5bfc | 15992 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 15993 | wxSize result; |
d55e5bfc | 15994 | PyObject * obj0 = 0 ; |
d55e5bfc | 15995 | char *kwnames[] = { |
36ed4f51 | 15996 | (char *) "self", NULL |
d55e5bfc RD |
15997 | }; |
15998 | ||
36ed4f51 RD |
15999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; |
16000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16002 | { |
16003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16004 | result = ((wxDC const *)arg1)->GetPPI(); |
d55e5bfc RD |
16005 | |
16006 | wxPyEndAllowThreads(__tstate); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | } | |
36ed4f51 RD |
16009 | { |
16010 | wxSize * resultptr; | |
32fe5131 | 16011 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 RD |
16012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
16013 | } | |
d55e5bfc RD |
16014 | return resultobj; |
16015 | fail: | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
36ed4f51 | 16020 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16021 | PyObject *resultobj = NULL; |
d55e5bfc | 16022 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 16023 | bool result; |
d55e5bfc | 16024 | PyObject * obj0 = 0 ; |
d55e5bfc | 16025 | char *kwnames[] = { |
36ed4f51 | 16026 | (char *) "self", NULL |
d55e5bfc RD |
16027 | }; |
16028 | ||
36ed4f51 RD |
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; |
16030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16032 | { |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16034 | result = (bool)((wxDC const *)arg1)->Ok(); |
d55e5bfc RD |
16035 | |
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
36ed4f51 RD |
16039 | { |
16040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16041 | } | |
16042 | return resultobj; | |
16043 | fail: | |
d55e5bfc RD |
16044 | return NULL; |
16045 | } | |
16046 | ||
16047 | ||
36ed4f51 | 16048 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16049 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16050 | wxDC *arg1 = (wxDC *) 0 ; |
16051 | int result; | |
16052 | PyObject * obj0 = 0 ; | |
d55e5bfc | 16053 | char *kwnames[] = { |
36ed4f51 | 16054 | (char *) "self", NULL |
d55e5bfc RD |
16055 | }; |
16056 | ||
36ed4f51 RD |
16057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; |
16058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16060 | { |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16062 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); |
d55e5bfc RD |
16063 | |
16064 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16066 | } |
36ed4f51 | 16067 | { |
32fe5131 | 16068 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 16069 | } |
d55e5bfc RD |
16070 | return resultobj; |
16071 | fail: | |
16072 | return NULL; | |
16073 | } | |
16074 | ||
16075 | ||
36ed4f51 | 16076 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16077 | PyObject *resultobj = NULL; |
d55e5bfc | 16078 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 16079 | wxBrush *result; |
d55e5bfc RD |
16080 | PyObject * obj0 = 0 ; |
16081 | char *kwnames[] = { | |
36ed4f51 | 16082 | (char *) "self", NULL |
d55e5bfc RD |
16083 | }; |
16084 | ||
36ed4f51 RD |
16085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; |
16086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16088 | { |
16089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
16090 | { |
16091 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
16092 | result = (wxBrush *) &_result_ref; | |
16093 | } | |
d55e5bfc RD |
16094 | |
16095 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16096 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16097 | } |
36ed4f51 RD |
16098 | { |
16099 | wxBrush* resultptr = new wxBrush(*result); | |
16100 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
16101 | } | |
d55e5bfc RD |
16102 | return resultobj; |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
36ed4f51 | 16108 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16109 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16110 | wxDC *arg1 = (wxDC *) 0 ; |
16111 | wxBrush *result; | |
d55e5bfc | 16112 | PyObject * obj0 = 0 ; |
d55e5bfc | 16113 | char *kwnames[] = { |
36ed4f51 | 16114 | (char *) "self", NULL |
d55e5bfc RD |
16115 | }; |
16116 | ||
36ed4f51 RD |
16117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; |
16118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16120 | { |
16121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
16122 | { |
16123 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
16124 | result = (wxBrush *) &_result_ref; | |
16125 | } | |
d55e5bfc RD |
16126 | |
16127 | wxPyEndAllowThreads(__tstate); | |
16128 | if (PyErr_Occurred()) SWIG_fail; | |
16129 | } | |
36ed4f51 RD |
16130 | { |
16131 | wxBrush* resultptr = new wxBrush(*result); | |
16132 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
16133 | } | |
d55e5bfc RD |
16134 | return resultobj; |
16135 | fail: | |
16136 | return NULL; | |
16137 | } | |
16138 | ||
16139 | ||
36ed4f51 | 16140 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16141 | PyObject *resultobj = NULL; |
d55e5bfc | 16142 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 16143 | wxFont *result; |
d55e5bfc | 16144 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16145 | char *kwnames[] = { |
16146 | (char *) "self", NULL | |
16147 | }; | |
d55e5bfc | 16148 | |
36ed4f51 RD |
16149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; |
16150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16152 | { |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
16154 | { |
16155 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
16156 | result = (wxFont *) &_result_ref; | |
16157 | } | |
d55e5bfc RD |
16158 | |
16159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16160 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16161 | } |
36ed4f51 RD |
16162 | { |
16163 | wxFont* resultptr = new wxFont(*result); | |
16164 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
16165 | } | |
d55e5bfc RD |
16166 | return resultobj; |
16167 | fail: | |
16168 | return NULL; | |
16169 | } | |
16170 | ||
16171 | ||
36ed4f51 | 16172 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16173 | PyObject *resultobj = NULL; |
d55e5bfc | 16174 | wxDC *arg1 = (wxDC *) 0 ; |
36ed4f51 | 16175 | wxPen *result; |
d55e5bfc | 16176 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16177 | char *kwnames[] = { |
16178 | (char *) "self", NULL | |
16179 | }; | |
d55e5bfc | 16180 | |
36ed4f51 RD |
16181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; |
16182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16184 | { |
16185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
16186 | { |
16187 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
16188 | result = (wxPen *) &_result_ref; | |
16189 | } | |
d55e5bfc RD |
16190 | |
16191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16193 | } |
36ed4f51 RD |
16194 | { |
16195 | wxPen* resultptr = new wxPen(*result); | |
16196 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
16197 | } | |
d55e5bfc RD |
16198 | return resultobj; |
16199 | fail: | |
16200 | return NULL; | |
16201 | } | |
16202 | ||
16203 | ||
36ed4f51 | 16204 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16205 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16206 | wxDC *arg1 = (wxDC *) 0 ; |
16207 | wxColour *result; | |
16208 | PyObject * obj0 = 0 ; | |
16209 | char *kwnames[] = { | |
16210 | (char *) "self", NULL | |
16211 | }; | |
d55e5bfc | 16212 | |
36ed4f51 RD |
16213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; |
16214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16216 | { | |
16217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 16218 | { |
36ed4f51 RD |
16219 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
16220 | result = (wxColour *) &_result_ref; | |
d55e5bfc | 16221 | } |
36ed4f51 RD |
16222 | |
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 16225 | } |
36ed4f51 RD |
16226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
16227 | return resultobj; | |
16228 | fail: | |
d55e5bfc RD |
16229 | return NULL; |
16230 | } | |
16231 | ||
16232 | ||
36ed4f51 | 16233 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16234 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16235 | wxDC *arg1 = (wxDC *) 0 ; |
16236 | wxColour *result; | |
d55e5bfc RD |
16237 | PyObject * obj0 = 0 ; |
16238 | char *kwnames[] = { | |
16239 | (char *) "self", NULL | |
16240 | }; | |
16241 | ||
36ed4f51 RD |
16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; |
16243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16245 | { |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 RD |
16247 | { |
16248 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
16249 | result = (wxColour *) &_result_ref; | |
16250 | } | |
d55e5bfc RD |
16251 | |
16252 | wxPyEndAllowThreads(__tstate); | |
16253 | if (PyErr_Occurred()) SWIG_fail; | |
16254 | } | |
36ed4f51 | 16255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d55e5bfc RD |
16256 | return resultobj; |
16257 | fail: | |
16258 | return NULL; | |
16259 | } | |
16260 | ||
16261 | ||
36ed4f51 | 16262 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16263 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16264 | wxDC *arg1 = (wxDC *) 0 ; |
16265 | wxColour *arg2 = 0 ; | |
16266 | wxColour temp2 ; | |
d55e5bfc | 16267 | PyObject * obj0 = 0 ; |
36ed4f51 | 16268 | PyObject * obj1 = 0 ; |
d55e5bfc | 16269 | char *kwnames[] = { |
36ed4f51 | 16270 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
16271 | }; |
16272 | ||
36ed4f51 RD |
16273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; |
16274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16276 | { | |
16277 | arg2 = &temp2; | |
16278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16279 | } | |
d55e5bfc RD |
16280 | { |
16281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16282 | (arg1)->SetTextForeground((wxColour const &)*arg2); |
d55e5bfc RD |
16283 | |
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | Py_INCREF(Py_None); resultobj = Py_None; | |
16288 | return resultobj; | |
16289 | fail: | |
16290 | return NULL; | |
16291 | } | |
16292 | ||
16293 | ||
36ed4f51 | 16294 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16295 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16296 | wxDC *arg1 = (wxDC *) 0 ; |
16297 | wxColour *arg2 = 0 ; | |
16298 | wxColour temp2 ; | |
d55e5bfc RD |
16299 | PyObject * obj0 = 0 ; |
16300 | PyObject * obj1 = 0 ; | |
16301 | char *kwnames[] = { | |
36ed4f51 | 16302 | (char *) "self",(char *) "colour", NULL |
d55e5bfc RD |
16303 | }; |
16304 | ||
36ed4f51 RD |
16305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; |
16306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16308 | { | |
16309 | arg2 = &temp2; | |
16310 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
16311 | } |
16312 | { | |
16313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16314 | (arg1)->SetTextBackground((wxColour const &)*arg2); |
d55e5bfc RD |
16315 | |
16316 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16317 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16318 | } |
36ed4f51 | 16319 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16320 | return resultobj; |
16321 | fail: | |
16322 | return NULL; | |
16323 | } | |
16324 | ||
16325 | ||
36ed4f51 | 16326 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16327 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16328 | wxDC *arg1 = (wxDC *) 0 ; |
16329 | int result; | |
16330 | PyObject * obj0 = 0 ; | |
d55e5bfc | 16331 | char *kwnames[] = { |
36ed4f51 | 16332 | (char *) "self", NULL |
d55e5bfc RD |
16333 | }; |
16334 | ||
36ed4f51 RD |
16335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; |
16336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16338 | { |
16339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16340 | result = (int)((wxDC const *)arg1)->GetMapMode(); |
d55e5bfc RD |
16341 | |
16342 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16343 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16344 | } |
36ed4f51 | 16345 | { |
32fe5131 | 16346 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 16347 | } |
d55e5bfc RD |
16348 | return resultobj; |
16349 | fail: | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
36ed4f51 | 16354 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16355 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16356 | wxDC *arg1 = (wxDC *) 0 ; |
16357 | int arg2 ; | |
d55e5bfc RD |
16358 | PyObject * obj0 = 0 ; |
16359 | PyObject * obj1 = 0 ; | |
16360 | char *kwnames[] = { | |
36ed4f51 | 16361 | (char *) "self",(char *) "mode", NULL |
d55e5bfc RD |
16362 | }; |
16363 | ||
36ed4f51 RD |
16364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
16365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16367 | { | |
32fe5131 | 16368 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
16369 | if (SWIG_arg_fail(2)) SWIG_fail; |
16370 | } | |
d55e5bfc RD |
16371 | { |
16372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16373 | (arg1)->SetMapMode(arg2); |
d55e5bfc RD |
16374 | |
16375 | wxPyEndAllowThreads(__tstate); | |
16376 | if (PyErr_Occurred()) SWIG_fail; | |
16377 | } | |
36ed4f51 | 16378 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16379 | return resultobj; |
16380 | fail: | |
16381 | return NULL; | |
16382 | } | |
16383 | ||
16384 | ||
36ed4f51 | 16385 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16386 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16387 | wxDC *arg1 = (wxDC *) 0 ; |
16388 | double *arg2 = (double *) 0 ; | |
16389 | double *arg3 = (double *) 0 ; | |
16390 | double temp2 ; | |
16391 | int res2 = 0 ; | |
16392 | double temp3 ; | |
16393 | int res3 = 0 ; | |
d55e5bfc | 16394 | PyObject * obj0 = 0 ; |
d55e5bfc | 16395 | char *kwnames[] = { |
36ed4f51 | 16396 | (char *) "self", NULL |
d55e5bfc RD |
16397 | }; |
16398 | ||
36ed4f51 RD |
16399 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16400 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
16402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16404 | { |
16405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16406 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); |
d55e5bfc RD |
16407 | |
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
36ed4f51 RD |
16411 | Py_INCREF(Py_None); resultobj = Py_None; |
16412 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16413 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16414 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16415 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
16416 | return resultobj; |
16417 | fail: | |
16418 | return NULL; | |
16419 | } | |
16420 | ||
16421 | ||
36ed4f51 | 16422 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16423 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16424 | wxDC *arg1 = (wxDC *) 0 ; |
16425 | double arg2 ; | |
16426 | double arg3 ; | |
d55e5bfc | 16427 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16428 | PyObject * obj1 = 0 ; |
16429 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16430 | char *kwnames[] = { |
36ed4f51 | 16431 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
16432 | }; |
16433 | ||
36ed4f51 RD |
16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16437 | { | |
32fe5131 | 16438 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
36ed4f51 RD |
16439 | if (SWIG_arg_fail(2)) SWIG_fail; |
16440 | } | |
16441 | { | |
32fe5131 | 16442 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
36ed4f51 RD |
16443 | if (SWIG_arg_fail(3)) SWIG_fail; |
16444 | } | |
d55e5bfc RD |
16445 | { |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16447 | (arg1)->SetUserScale(arg2,arg3); |
d55e5bfc RD |
16448 | |
16449 | wxPyEndAllowThreads(__tstate); | |
16450 | if (PyErr_Occurred()) SWIG_fail; | |
16451 | } | |
36ed4f51 | 16452 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16453 | return resultobj; |
16454 | fail: | |
16455 | return NULL; | |
16456 | } | |
16457 | ||
16458 | ||
36ed4f51 | 16459 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16460 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16461 | wxDC *arg1 = (wxDC *) 0 ; |
16462 | double *arg2 = (double *) 0 ; | |
16463 | double *arg3 = (double *) 0 ; | |
16464 | double temp2 ; | |
16465 | int res2 = 0 ; | |
16466 | double temp3 ; | |
16467 | int res3 = 0 ; | |
d55e5bfc RD |
16468 | PyObject * obj0 = 0 ; |
16469 | char *kwnames[] = { | |
36ed4f51 | 16470 | (char *) "self", NULL |
d55e5bfc RD |
16471 | }; |
16472 | ||
36ed4f51 RD |
16473 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16474 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
16476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16478 | { |
16479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16480 | (arg1)->GetLogicalScale(arg2,arg3); |
d55e5bfc RD |
16481 | |
16482 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16483 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16484 | } |
36ed4f51 RD |
16485 | Py_INCREF(Py_None); resultobj = Py_None; |
16486 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16487 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16488 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16489 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
16490 | return resultobj; |
16491 | fail: | |
16492 | return NULL; | |
16493 | } | |
16494 | ||
16495 | ||
36ed4f51 | 16496 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16497 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16498 | wxDC *arg1 = (wxDC *) 0 ; |
16499 | double arg2 ; | |
16500 | double arg3 ; | |
d55e5bfc | 16501 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16502 | PyObject * obj1 = 0 ; |
16503 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16504 | char *kwnames[] = { |
36ed4f51 | 16505 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
16506 | }; |
16507 | ||
36ed4f51 RD |
16508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16511 | { | |
32fe5131 | 16512 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
36ed4f51 RD |
16513 | if (SWIG_arg_fail(2)) SWIG_fail; |
16514 | } | |
16515 | { | |
32fe5131 | 16516 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
36ed4f51 RD |
16517 | if (SWIG_arg_fail(3)) SWIG_fail; |
16518 | } | |
d55e5bfc RD |
16519 | { |
16520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16521 | (arg1)->SetLogicalScale(arg2,arg3); |
d55e5bfc RD |
16522 | |
16523 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16524 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16525 | } |
36ed4f51 | 16526 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16527 | return resultobj; |
16528 | fail: | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
36ed4f51 | 16533 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16534 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16535 | wxDC *arg1 = (wxDC *) 0 ; |
16536 | wxPoint result; | |
d55e5bfc RD |
16537 | PyObject * obj0 = 0 ; |
16538 | char *kwnames[] = { | |
36ed4f51 | 16539 | (char *) "self", NULL |
d55e5bfc RD |
16540 | }; |
16541 | ||
36ed4f51 RD |
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
16543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16545 | { |
16546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16547 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d55e5bfc RD |
16548 | |
16549 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16550 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16551 | } |
36ed4f51 RD |
16552 | { |
16553 | wxPoint * resultptr; | |
32fe5131 | 16554 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
36ed4f51 RD |
16555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16556 | } | |
d55e5bfc RD |
16557 | return resultobj; |
16558 | fail: | |
16559 | return NULL; | |
16560 | } | |
16561 | ||
16562 | ||
36ed4f51 | 16563 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16564 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16565 | wxDC *arg1 = (wxDC *) 0 ; |
16566 | int *arg2 = (int *) 0 ; | |
16567 | int *arg3 = (int *) 0 ; | |
16568 | int temp2 ; | |
16569 | int res2 = 0 ; | |
16570 | int temp3 ; | |
16571 | int res3 = 0 ; | |
d55e5bfc | 16572 | PyObject * obj0 = 0 ; |
d55e5bfc | 16573 | char *kwnames[] = { |
36ed4f51 | 16574 | (char *) "self", NULL |
d55e5bfc RD |
16575 | }; |
16576 | ||
36ed4f51 RD |
16577 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16578 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
16580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16582 | { |
16583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16584 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d55e5bfc RD |
16585 | |
16586 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16587 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16588 | } |
36ed4f51 RD |
16589 | Py_INCREF(Py_None); resultobj = Py_None; |
16590 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16591 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16592 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16593 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
16594 | return resultobj; |
16595 | fail: | |
16596 | return NULL; | |
16597 | } | |
16598 | ||
16599 | ||
36ed4f51 | 16600 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16601 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16602 | wxDC *arg1 = (wxDC *) 0 ; |
16603 | int arg2 ; | |
16604 | int arg3 ; | |
d55e5bfc | 16605 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16606 | PyObject * obj1 = 0 ; |
16607 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16608 | char *kwnames[] = { |
36ed4f51 | 16609 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
16610 | }; |
16611 | ||
36ed4f51 RD |
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16613 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16614 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16615 | { | |
32fe5131 | 16616 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
16617 | if (SWIG_arg_fail(2)) SWIG_fail; |
16618 | } | |
16619 | { | |
32fe5131 | 16620 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 | 16621 | if (SWIG_arg_fail(3)) SWIG_fail; |
d55e5bfc RD |
16622 | } |
16623 | { | |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16625 | (arg1)->SetLogicalOrigin(arg2,arg3); |
d55e5bfc RD |
16626 | |
16627 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16628 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16629 | } |
36ed4f51 | 16630 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16631 | return resultobj; |
16632 | fail: | |
16633 | return NULL; | |
16634 | } | |
16635 | ||
16636 | ||
36ed4f51 | 16637 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16638 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16639 | wxDC *arg1 = (wxDC *) 0 ; |
16640 | wxPoint *arg2 = 0 ; | |
16641 | wxPoint temp2 ; | |
d55e5bfc | 16642 | PyObject * obj0 = 0 ; |
36ed4f51 | 16643 | PyObject * obj1 = 0 ; |
d55e5bfc | 16644 | char *kwnames[] = { |
36ed4f51 | 16645 | (char *) "self",(char *) "point", NULL |
d55e5bfc RD |
16646 | }; |
16647 | ||
36ed4f51 RD |
16648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16651 | { | |
16652 | arg2 = &temp2; | |
16653 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16654 | } | |
d55e5bfc RD |
16655 | { |
16656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16657 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
16658 | |
16659 | wxPyEndAllowThreads(__tstate); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | } | |
36ed4f51 | 16662 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16663 | return resultobj; |
16664 | fail: | |
16665 | return NULL; | |
16666 | } | |
16667 | ||
16668 | ||
36ed4f51 | 16669 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16670 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16671 | wxDC *arg1 = (wxDC *) 0 ; |
16672 | wxPoint result; | |
d55e5bfc | 16673 | PyObject * obj0 = 0 ; |
d55e5bfc | 16674 | char *kwnames[] = { |
36ed4f51 | 16675 | (char *) "self", NULL |
d55e5bfc RD |
16676 | }; |
16677 | ||
36ed4f51 RD |
16678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
16679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16681 | { |
16682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16683 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d55e5bfc RD |
16684 | |
16685 | wxPyEndAllowThreads(__tstate); | |
16686 | if (PyErr_Occurred()) SWIG_fail; | |
16687 | } | |
36ed4f51 RD |
16688 | { |
16689 | wxPoint * resultptr; | |
32fe5131 | 16690 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
36ed4f51 RD |
16691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16692 | } | |
d55e5bfc RD |
16693 | return resultobj; |
16694 | fail: | |
16695 | return NULL; | |
16696 | } | |
16697 | ||
16698 | ||
36ed4f51 | 16699 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16700 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16701 | wxDC *arg1 = (wxDC *) 0 ; |
16702 | int *arg2 = (int *) 0 ; | |
16703 | int *arg3 = (int *) 0 ; | |
16704 | int temp2 ; | |
16705 | int res2 = 0 ; | |
16706 | int temp3 ; | |
16707 | int res3 = 0 ; | |
d55e5bfc RD |
16708 | PyObject * obj0 = 0 ; |
16709 | char *kwnames[] = { | |
36ed4f51 | 16710 | (char *) "self", NULL |
d55e5bfc RD |
16711 | }; |
16712 | ||
36ed4f51 RD |
16713 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16714 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
16716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16718 | { |
16719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16720 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d55e5bfc RD |
16721 | |
16722 | wxPyEndAllowThreads(__tstate); | |
16723 | if (PyErr_Occurred()) SWIG_fail; | |
16724 | } | |
16725 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
16726 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16727 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16728 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16729 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
16730 | return resultobj; |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
36ed4f51 | 16736 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16737 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16738 | wxDC *arg1 = (wxDC *) 0 ; |
16739 | int arg2 ; | |
16740 | int arg3 ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | PyObject * obj1 = 0 ; | |
16743 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16744 | char *kwnames[] = { |
36ed4f51 | 16745 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
16746 | }; |
16747 | ||
36ed4f51 RD |
16748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16751 | { | |
32fe5131 | 16752 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
16753 | if (SWIG_arg_fail(2)) SWIG_fail; |
16754 | } | |
16755 | { | |
32fe5131 | 16756 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
16757 | if (SWIG_arg_fail(3)) SWIG_fail; |
16758 | } | |
d55e5bfc RD |
16759 | { |
16760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16761 | (arg1)->SetDeviceOrigin(arg2,arg3); |
d55e5bfc RD |
16762 | |
16763 | wxPyEndAllowThreads(__tstate); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
36ed4f51 | 16766 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16767 | return resultobj; |
16768 | fail: | |
16769 | return NULL; | |
16770 | } | |
16771 | ||
16772 | ||
36ed4f51 | 16773 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16774 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16775 | wxDC *arg1 = (wxDC *) 0 ; |
16776 | wxPoint *arg2 = 0 ; | |
16777 | wxPoint temp2 ; | |
d55e5bfc | 16778 | PyObject * obj0 = 0 ; |
36ed4f51 | 16779 | PyObject * obj1 = 0 ; |
d55e5bfc | 16780 | char *kwnames[] = { |
36ed4f51 | 16781 | (char *) "self",(char *) "point", NULL |
d55e5bfc RD |
16782 | }; |
16783 | ||
36ed4f51 RD |
16784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16787 | { | |
16788 | arg2 = &temp2; | |
16789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
16790 | } |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16793 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
16794 | |
16795 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16796 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 16797 | } |
36ed4f51 | 16798 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16799 | return resultobj; |
16800 | fail: | |
d55e5bfc RD |
16801 | return NULL; |
16802 | } | |
16803 | ||
16804 | ||
36ed4f51 | 16805 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16806 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16807 | wxDC *arg1 = (wxDC *) 0 ; |
16808 | bool arg2 ; | |
16809 | bool arg3 ; | |
d55e5bfc | 16810 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16811 | PyObject * obj1 = 0 ; |
16812 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16813 | char *kwnames[] = { |
36ed4f51 | 16814 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL |
d55e5bfc RD |
16815 | }; |
16816 | ||
36ed4f51 RD |
16817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16820 | { | |
32fe5131 | 16821 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 RD |
16822 | if (SWIG_arg_fail(2)) SWIG_fail; |
16823 | } | |
16824 | { | |
32fe5131 | 16825 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
36ed4f51 RD |
16826 | if (SWIG_arg_fail(3)) SWIG_fail; |
16827 | } | |
d55e5bfc RD |
16828 | { |
16829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16830 | (arg1)->SetAxisOrientation(arg2,arg3); |
d55e5bfc RD |
16831 | |
16832 | wxPyEndAllowThreads(__tstate); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
16835 | Py_INCREF(Py_None); resultobj = Py_None; | |
16836 | return resultobj; | |
16837 | fail: | |
16838 | return NULL; | |
16839 | } | |
16840 | ||
16841 | ||
36ed4f51 | 16842 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16843 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16844 | wxDC *arg1 = (wxDC *) 0 ; |
16845 | int result; | |
d55e5bfc RD |
16846 | PyObject * obj0 = 0 ; |
16847 | char *kwnames[] = { | |
16848 | (char *) "self", NULL | |
16849 | }; | |
16850 | ||
36ed4f51 RD |
16851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; |
16852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16854 | { |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16856 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); |
d55e5bfc RD |
16857 | |
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | { | |
32fe5131 | 16862 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
16863 | } |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
16867 | } | |
16868 | ||
16869 | ||
36ed4f51 | 16870 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16871 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16872 | wxDC *arg1 = (wxDC *) 0 ; |
16873 | int arg2 ; | |
d55e5bfc RD |
16874 | PyObject * obj0 = 0 ; |
16875 | PyObject * obj1 = 0 ; | |
d55e5bfc | 16876 | char *kwnames[] = { |
36ed4f51 | 16877 | (char *) "self",(char *) "function", NULL |
d55e5bfc RD |
16878 | }; |
16879 | ||
36ed4f51 RD |
16880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
16881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16883 | { | |
32fe5131 | 16884 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 16885 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
16886 | } |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16889 | (arg1)->SetLogicalFunction(arg2); |
d55e5bfc RD |
16890 | |
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
36ed4f51 | 16894 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16895 | return resultobj; |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
36ed4f51 | 16901 | static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16902 | PyObject *resultobj = NULL; |
36ed4f51 | 16903 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc RD |
16904 | PyObject * obj0 = 0 ; |
16905 | char *kwnames[] = { | |
16906 | (char *) "self", NULL | |
16907 | }; | |
16908 | ||
36ed4f51 RD |
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail; |
16910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16912 | { |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16914 | (arg1)->ComputeScaleAndOrigin(); |
d55e5bfc RD |
16915 | |
16916 | wxPyEndAllowThreads(__tstate); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
36ed4f51 | 16919 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16920 | return resultobj; |
16921 | fail: | |
16922 | return NULL; | |
16923 | } | |
16924 | ||
16925 | ||
36ed4f51 | 16926 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16927 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16928 | wxDC *arg1 = (wxDC *) 0 ; |
16929 | int arg2 ; | |
16930 | int arg3 ; | |
d55e5bfc | 16931 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
16932 | PyObject * obj1 = 0 ; |
16933 | PyObject * obj2 = 0 ; | |
d55e5bfc | 16934 | char *kwnames[] = { |
36ed4f51 | 16935 | (char *) "self",(char *) "x",(char *) "y", NULL |
d55e5bfc RD |
16936 | }; |
16937 | ||
36ed4f51 RD |
16938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16941 | { | |
32fe5131 | 16942 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
16943 | if (SWIG_arg_fail(2)) SWIG_fail; |
16944 | } | |
16945 | { | |
32fe5131 | 16946 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
16947 | if (SWIG_arg_fail(3)) SWIG_fail; |
16948 | } | |
d55e5bfc RD |
16949 | { |
16950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16951 | (arg1)->CalcBoundingBox(arg2,arg3); |
d55e5bfc RD |
16952 | |
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
36ed4f51 | 16956 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16957 | return resultobj; |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
36ed4f51 | 16963 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16964 | PyObject *resultobj = NULL; |
36ed4f51 RD |
16965 | wxDC *arg1 = (wxDC *) 0 ; |
16966 | wxPoint *arg2 = 0 ; | |
16967 | wxPoint temp2 ; | |
d55e5bfc | 16968 | PyObject * obj0 = 0 ; |
36ed4f51 | 16969 | PyObject * obj1 = 0 ; |
d55e5bfc | 16970 | char *kwnames[] = { |
36ed4f51 | 16971 | (char *) "self",(char *) "point", NULL |
d55e5bfc RD |
16972 | }; |
16973 | ||
36ed4f51 RD |
16974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; |
16975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16977 | { | |
16978 | arg2 = &temp2; | |
16979 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16980 | } | |
d55e5bfc RD |
16981 | { |
16982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 16983 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
16984 | |
16985 | wxPyEndAllowThreads(__tstate); | |
16986 | if (PyErr_Occurred()) SWIG_fail; | |
16987 | } | |
36ed4f51 | 16988 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
16989 | return resultobj; |
16990 | fail: | |
16991 | return NULL; | |
16992 | } | |
16993 | ||
16994 | ||
36ed4f51 | 16995 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16996 | PyObject *resultobj = NULL; |
36ed4f51 | 16997 | wxDC *arg1 = (wxDC *) 0 ; |
d55e5bfc | 16998 | PyObject * obj0 = 0 ; |
d55e5bfc | 16999 | char *kwnames[] = { |
36ed4f51 | 17000 | (char *) "self", NULL |
d55e5bfc RD |
17001 | }; |
17002 | ||
36ed4f51 RD |
17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; |
17004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17006 | { |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17008 | (arg1)->ResetBoundingBox(); |
d55e5bfc RD |
17009 | |
17010 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17011 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17012 | } |
36ed4f51 | 17013 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
17014 | return resultobj; |
17015 | fail: | |
d55e5bfc RD |
17016 | return NULL; |
17017 | } | |
17018 | ||
17019 | ||
36ed4f51 | 17020 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17021 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17022 | wxDC *arg1 = (wxDC *) 0 ; |
17023 | int result; | |
d55e5bfc RD |
17024 | PyObject * obj0 = 0 ; |
17025 | char *kwnames[] = { | |
17026 | (char *) "self", NULL | |
17027 | }; | |
17028 | ||
36ed4f51 RD |
17029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; |
17030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17032 | { |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17034 | result = (int)((wxDC const *)arg1)->MinX(); |
d55e5bfc RD |
17035 | |
17036 | wxPyEndAllowThreads(__tstate); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
36ed4f51 | 17039 | { |
32fe5131 | 17040 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 17041 | } |
d55e5bfc RD |
17042 | return resultobj; |
17043 | fail: | |
17044 | return NULL; | |
17045 | } | |
17046 | ||
17047 | ||
36ed4f51 | 17048 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17049 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17050 | wxDC *arg1 = (wxDC *) 0 ; |
17051 | int result; | |
d55e5bfc RD |
17052 | PyObject * obj0 = 0 ; |
17053 | char *kwnames[] = { | |
36ed4f51 | 17054 | (char *) "self", NULL |
d55e5bfc RD |
17055 | }; |
17056 | ||
36ed4f51 RD |
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; |
17058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17060 | { |
17061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17062 | result = (int)((wxDC const *)arg1)->MaxX(); |
d55e5bfc RD |
17063 | |
17064 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17066 | } |
36ed4f51 | 17067 | { |
32fe5131 | 17068 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 17069 | } |
d55e5bfc RD |
17070 | return resultobj; |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
36ed4f51 | 17076 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17077 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17078 | wxDC *arg1 = (wxDC *) 0 ; |
17079 | int result; | |
d55e5bfc | 17080 | PyObject * obj0 = 0 ; |
d55e5bfc | 17081 | char *kwnames[] = { |
36ed4f51 | 17082 | (char *) "self", NULL |
d55e5bfc RD |
17083 | }; |
17084 | ||
36ed4f51 RD |
17085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; |
17086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17088 | { |
17089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17090 | result = (int)((wxDC const *)arg1)->MinY(); |
d55e5bfc RD |
17091 | |
17092 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17093 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17094 | } |
17095 | { | |
32fe5131 | 17096 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d55e5bfc RD |
17097 | } |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
36ed4f51 | 17104 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17105 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17106 | wxDC *arg1 = (wxDC *) 0 ; |
17107 | int result; | |
d55e5bfc RD |
17108 | PyObject * obj0 = 0 ; |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
17112 | ||
36ed4f51 RD |
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; |
17114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17116 | { |
17117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17118 | result = (int)((wxDC const *)arg1)->MaxY(); |
d55e5bfc RD |
17119 | |
17120 | wxPyEndAllowThreads(__tstate); | |
17121 | if (PyErr_Occurred()) SWIG_fail; | |
17122 | } | |
36ed4f51 | 17123 | { |
32fe5131 | 17124 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 17125 | } |
d55e5bfc RD |
17126 | return resultobj; |
17127 | fail: | |
17128 | return NULL; | |
17129 | } | |
17130 | ||
17131 | ||
36ed4f51 | 17132 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17133 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17134 | wxDC *arg1 = (wxDC *) 0 ; |
17135 | int *arg2 = (int *) 0 ; | |
17136 | int *arg3 = (int *) 0 ; | |
17137 | int *arg4 = (int *) 0 ; | |
17138 | int *arg5 = (int *) 0 ; | |
17139 | int temp2 ; | |
17140 | int res2 = 0 ; | |
17141 | int temp3 ; | |
17142 | int res3 = 0 ; | |
17143 | int temp4 ; | |
17144 | int res4 = 0 ; | |
17145 | int temp5 ; | |
17146 | int res5 = 0 ; | |
d55e5bfc | 17147 | PyObject * obj0 = 0 ; |
d55e5bfc | 17148 | char *kwnames[] = { |
36ed4f51 | 17149 | (char *) "self", NULL |
d55e5bfc RD |
17150 | }; |
17151 | ||
36ed4f51 RD |
17152 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17153 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
17154 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
17155 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
17156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
17157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17159 | { |
17160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17161 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
17162 | |
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
36ed4f51 RD |
17166 | Py_INCREF(Py_None); resultobj = Py_None; |
17167 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
17168 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
17169 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17170 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
17171 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
17172 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
17173 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
17174 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
17175 | return resultobj; |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
36ed4f51 | 17181 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17182 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17183 | wxDC *arg1 = (wxDC *) 0 ; |
17184 | PyObject *arg2 = (PyObject *) 0 ; | |
17185 | PyObject *arg3 = (PyObject *) 0 ; | |
17186 | PyObject *arg4 = (PyObject *) 0 ; | |
17187 | PyObject *result; | |
d55e5bfc RD |
17188 | PyObject * obj0 = 0 ; |
17189 | PyObject * obj1 = 0 ; | |
17190 | PyObject * obj2 = 0 ; | |
36ed4f51 | 17191 | PyObject * obj3 = 0 ; |
d55e5bfc | 17192 | char *kwnames[] = { |
36ed4f51 | 17193 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d55e5bfc RD |
17194 | }; |
17195 | ||
36ed4f51 RD |
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17199 | arg2 = obj1; | |
17200 | arg3 = obj2; | |
17201 | arg4 = obj3; | |
d55e5bfc RD |
17202 | { |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17204 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17205 | |
17206 | wxPyEndAllowThreads(__tstate); | |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
17208 | } | |
36ed4f51 | 17209 | resultobj = result; |
d55e5bfc RD |
17210 | return resultobj; |
17211 | fail: | |
17212 | return NULL; | |
17213 | } | |
17214 | ||
17215 | ||
36ed4f51 | 17216 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17217 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17218 | wxDC *arg1 = (wxDC *) 0 ; |
17219 | PyObject *arg2 = (PyObject *) 0 ; | |
17220 | PyObject *arg3 = (PyObject *) 0 ; | |
17221 | PyObject *arg4 = (PyObject *) 0 ; | |
17222 | PyObject *result; | |
d55e5bfc RD |
17223 | PyObject * obj0 = 0 ; |
17224 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
17225 | PyObject * obj2 = 0 ; |
17226 | PyObject * obj3 = 0 ; | |
d55e5bfc | 17227 | char *kwnames[] = { |
36ed4f51 | 17228 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d55e5bfc RD |
17229 | }; |
17230 | ||
36ed4f51 RD |
17231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17234 | arg2 = obj1; | |
17235 | arg3 = obj2; | |
17236 | arg4 = obj3; | |
d55e5bfc RD |
17237 | { |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17239 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17240 | |
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
36ed4f51 | 17244 | resultobj = result; |
d55e5bfc RD |
17245 | return resultobj; |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
36ed4f51 | 17251 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17252 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17253 | wxDC *arg1 = (wxDC *) 0 ; |
17254 | PyObject *arg2 = (PyObject *) 0 ; | |
17255 | PyObject *arg3 = (PyObject *) 0 ; | |
17256 | PyObject *arg4 = (PyObject *) 0 ; | |
17257 | PyObject *result; | |
d55e5bfc RD |
17258 | PyObject * obj0 = 0 ; |
17259 | PyObject * obj1 = 0 ; | |
17260 | PyObject * obj2 = 0 ; | |
36ed4f51 | 17261 | PyObject * obj3 = 0 ; |
d55e5bfc | 17262 | char *kwnames[] = { |
36ed4f51 | 17263 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d55e5bfc RD |
17264 | }; |
17265 | ||
36ed4f51 RD |
17266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17269 | arg2 = obj1; | |
17270 | arg3 = obj2; | |
17271 | arg4 = obj3; | |
d55e5bfc RD |
17272 | { |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17274 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17275 | |
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
36ed4f51 | 17279 | resultobj = result; |
d55e5bfc RD |
17280 | return resultobj; |
17281 | fail: | |
17282 | return NULL; | |
17283 | } | |
17284 | ||
17285 | ||
36ed4f51 | 17286 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17287 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17288 | wxDC *arg1 = (wxDC *) 0 ; |
17289 | PyObject *arg2 = (PyObject *) 0 ; | |
17290 | PyObject *arg3 = (PyObject *) 0 ; | |
17291 | PyObject *arg4 = (PyObject *) 0 ; | |
17292 | PyObject *result; | |
17293 | PyObject * obj0 = 0 ; | |
17294 | PyObject * obj1 = 0 ; | |
17295 | PyObject * obj2 = 0 ; | |
17296 | PyObject * obj3 = 0 ; | |
d55e5bfc | 17297 | char *kwnames[] = { |
36ed4f51 | 17298 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d55e5bfc RD |
17299 | }; |
17300 | ||
36ed4f51 RD |
17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17304 | arg2 = obj1; | |
17305 | arg3 = obj2; | |
17306 | arg4 = obj3; | |
d55e5bfc RD |
17307 | { |
17308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17309 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17310 | |
17311 | wxPyEndAllowThreads(__tstate); | |
17312 | if (PyErr_Occurred()) SWIG_fail; | |
17313 | } | |
36ed4f51 | 17314 | resultobj = result; |
d55e5bfc RD |
17315 | return resultobj; |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
36ed4f51 | 17321 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17322 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17323 | wxDC *arg1 = (wxDC *) 0 ; |
17324 | PyObject *arg2 = (PyObject *) 0 ; | |
17325 | PyObject *arg3 = (PyObject *) 0 ; | |
17326 | PyObject *arg4 = (PyObject *) 0 ; | |
17327 | PyObject *result; | |
d55e5bfc | 17328 | PyObject * obj0 = 0 ; |
36ed4f51 RD |
17329 | PyObject * obj1 = 0 ; |
17330 | PyObject * obj2 = 0 ; | |
17331 | PyObject * obj3 = 0 ; | |
d55e5bfc | 17332 | char *kwnames[] = { |
36ed4f51 | 17333 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d55e5bfc RD |
17334 | }; |
17335 | ||
36ed4f51 RD |
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17339 | arg2 = obj1; | |
17340 | arg3 = obj2; | |
17341 | arg4 = obj3; | |
d55e5bfc RD |
17342 | { |
17343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17344 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17345 | |
17346 | wxPyEndAllowThreads(__tstate); | |
17347 | if (PyErr_Occurred()) SWIG_fail; | |
17348 | } | |
36ed4f51 | 17349 | resultobj = result; |
d55e5bfc RD |
17350 | return resultobj; |
17351 | fail: | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
36ed4f51 | 17356 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17357 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17358 | wxDC *arg1 = (wxDC *) 0 ; |
17359 | PyObject *arg2 = (PyObject *) 0 ; | |
17360 | PyObject *arg3 = (PyObject *) 0 ; | |
17361 | PyObject *arg4 = (PyObject *) 0 ; | |
17362 | PyObject *arg5 = (PyObject *) 0 ; | |
17363 | PyObject *result; | |
d55e5bfc RD |
17364 | PyObject * obj0 = 0 ; |
17365 | PyObject * obj1 = 0 ; | |
36ed4f51 RD |
17366 | PyObject * obj2 = 0 ; |
17367 | PyObject * obj3 = 0 ; | |
17368 | PyObject * obj4 = 0 ; | |
d55e5bfc | 17369 | char *kwnames[] = { |
36ed4f51 | 17370 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL |
d55e5bfc RD |
17371 | }; |
17372 | ||
36ed4f51 RD |
17373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
17374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17376 | arg2 = obj1; | |
17377 | arg3 = obj2; | |
17378 | arg4 = obj3; | |
17379 | arg5 = obj4; | |
d55e5bfc RD |
17380 | { |
17381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17382 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
17383 | |
17384 | wxPyEndAllowThreads(__tstate); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | } | |
36ed4f51 RD |
17387 | resultobj = result; |
17388 | return resultobj; | |
17389 | fail: | |
17390 | return NULL; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { | |
17395 | PyObject *obj; | |
17396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17397 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
17398 | Py_INCREF(obj); | |
17399 | return Py_BuildValue((char *)""); | |
17400 | } | |
17401 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 17402 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17403 | wxMemoryDC *result; |
17404 | char *kwnames[] = { | |
17405 | NULL | |
17406 | }; | |
17407 | ||
17408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
d55e5bfc | 17409 | { |
36ed4f51 RD |
17410 | if (!wxPyCheckForApp()) SWIG_fail; |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | result = (wxMemoryDC *)new wxMemoryDC(); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 17416 | } |
36ed4f51 | 17417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d55e5bfc RD |
17418 | return resultobj; |
17419 | fail: | |
17420 | return NULL; | |
17421 | } | |
17422 | ||
17423 | ||
36ed4f51 | 17424 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17425 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17426 | wxDC *arg1 = (wxDC *) 0 ; |
17427 | wxMemoryDC *result; | |
d55e5bfc RD |
17428 | PyObject * obj0 = 0 ; |
17429 | char *kwnames[] = { | |
36ed4f51 | 17430 | (char *) "oldDC", NULL |
d55e5bfc RD |
17431 | }; |
17432 | ||
36ed4f51 RD |
17433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; |
17434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17436 | { |
36ed4f51 | 17437 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 17438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 17439 | result = (wxMemoryDC *)new wxMemoryDC(arg1); |
d55e5bfc RD |
17440 | |
17441 | wxPyEndAllowThreads(__tstate); | |
17442 | if (PyErr_Occurred()) SWIG_fail; | |
17443 | } | |
36ed4f51 | 17444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d55e5bfc RD |
17445 | return resultobj; |
17446 | fail: | |
17447 | return NULL; | |
17448 | } | |
17449 | ||
17450 | ||
36ed4f51 | 17451 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17452 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17453 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; |
17454 | wxBitmap *arg2 = 0 ; | |
d55e5bfc RD |
17455 | PyObject * obj0 = 0 ; |
17456 | PyObject * obj1 = 0 ; | |
17457 | char *kwnames[] = { | |
36ed4f51 | 17458 | (char *) "self",(char *) "bitmap", NULL |
d55e5bfc RD |
17459 | }; |
17460 | ||
36ed4f51 RD |
17461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; |
17462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
17463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17464 | { | |
17465 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17466 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17467 | if (arg2 == NULL) { | |
17468 | SWIG_null_ref("wxBitmap"); | |
17469 | } | |
17470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17471 | } | |
d55e5bfc RD |
17472 | { |
17473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 17474 | (arg1)->SelectObject((wxBitmap const &)*arg2); |
d55e5bfc RD |
17475 | |
17476 | wxPyEndAllowThreads(__tstate); | |
17477 | if (PyErr_Occurred()) SWIG_fail; | |
17478 | } | |
17479 | Py_INCREF(Py_None); resultobj = Py_None; | |
d55e5bfc RD |
17480 | return resultobj; |
17481 | fail: | |
17482 | return NULL; | |
17483 | } | |
17484 | ||
17485 | ||
36ed4f51 | 17486 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17487 | PyObject *obj; |
17488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36ed4f51 | 17489 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); |
d55e5bfc RD |
17490 | Py_INCREF(obj); |
17491 | return Py_BuildValue((char *)""); | |
17492 | } | |
36ed4f51 | 17493 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 17494 | PyObject *resultobj = NULL; |
36ed4f51 | 17495 | wxDC *arg1 = (wxDC *) 0 ; |
32fe5131 RD |
17496 | wxBitmap *arg2 = 0 ; |
17497 | int arg3 ; | |
36ed4f51 RD |
17498 | wxBufferedDC *result; |
17499 | PyObject * obj0 = 0 ; | |
17500 | PyObject * obj1 = 0 ; | |
e2950dbb | 17501 | PyObject * obj2 = 0 ; |
d55e5bfc | 17502 | |
32fe5131 | 17503 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
17504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32fe5131 RD |
17506 | { |
17507 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17508 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17509 | if (arg2 == NULL) { | |
17510 | SWIG_null_ref("wxBitmap"); | |
36ed4f51 | 17511 | } |
32fe5131 | 17512 | if (SWIG_arg_fail(2)) SWIG_fail; |
36ed4f51 | 17513 | } |
32fe5131 RD |
17514 | { |
17515 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
17516 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e2950dbb | 17517 | } |
36ed4f51 RD |
17518 | { |
17519 | if (!wxPyCheckForApp()) SWIG_fail; | |
17520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 17521 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); |
36ed4f51 RD |
17522 | |
17523 | wxPyEndAllowThreads(__tstate); | |
17524 | if (PyErr_Occurred()) SWIG_fail; | |
17525 | } | |
17526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17527 | return resultobj; | |
17528 | fail: | |
17529 | return NULL; | |
d55e5bfc RD |
17530 | } |
17531 | ||
17532 | ||
36ed4f51 | 17533 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 RD |
17534 | PyObject *resultobj = NULL; |
17535 | wxDC *arg1 = (wxDC *) 0 ; | |
17536 | wxBitmap *arg2 = 0 ; | |
17537 | wxBufferedDC *result; | |
17538 | PyObject * obj0 = 0 ; | |
17539 | PyObject * obj1 = 0 ; | |
17540 | ||
17541 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
17542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17544 | { | |
17545 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17546 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17547 | if (arg2 == NULL) { | |
17548 | SWIG_null_ref("wxBitmap"); | |
17549 | } | |
17550 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17551 | } | |
17552 | { | |
17553 | if (!wxPyCheckForApp()) SWIG_fail; | |
17554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17555 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
17556 | ||
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
17560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
17567 | static PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *, PyObject *args) { | |
17568 | PyObject *resultobj = NULL; | |
17569 | wxDC *arg1 = (wxDC *) 0 ; | |
17570 | wxBufferedDC *result; | |
17571 | PyObject * obj0 = 0 ; | |
17572 | ||
17573 | if(!PyArg_ParseTuple(args,(char *)"O:new_BufferedDC",&obj0)) goto fail; | |
17574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17576 | { | |
17577 | if (!wxPyCheckForApp()) SWIG_fail; | |
17578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17579 | result = (wxBufferedDC *)new wxBufferedDC(arg1); | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17585 | return resultobj; | |
17586 | fail: | |
17587 | return NULL; | |
17588 | } | |
17589 | ||
17590 | ||
17591 | static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) { | |
17592 | PyObject *resultobj = NULL; | |
36ed4f51 RD |
17593 | wxDC *arg1 = (wxDC *) 0 ; |
17594 | wxSize *arg2 = 0 ; | |
32fe5131 | 17595 | int arg3 ; |
36ed4f51 RD |
17596 | wxBufferedDC *result; |
17597 | wxSize temp2 ; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | PyObject * obj1 = 0 ; | |
e2950dbb | 17600 | PyObject * obj2 = 0 ; |
d55e5bfc | 17601 | |
32fe5131 | 17602 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
17603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17605 | { | |
17606 | arg2 = &temp2; | |
17607 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17608 | } | |
32fe5131 RD |
17609 | { |
17610 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
17611 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e2950dbb | 17612 | } |
36ed4f51 RD |
17613 | { |
17614 | if (!wxPyCheckForApp()) SWIG_fail; | |
17615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 17616 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); |
36ed4f51 RD |
17617 | |
17618 | wxPyEndAllowThreads(__tstate); | |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
17620 | } | |
17621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17622 | return resultobj; | |
17623 | fail: | |
17624 | return NULL; | |
d55e5bfc RD |
17625 | } |
17626 | ||
17627 | ||
32fe5131 RD |
17628 | static PyObject *_wrap_new_BufferedDC__SWIG_4(PyObject *, PyObject *args) { |
17629 | PyObject *resultobj = NULL; | |
17630 | wxDC *arg1 = (wxDC *) 0 ; | |
17631 | wxSize *arg2 = 0 ; | |
17632 | wxBufferedDC *result; | |
17633 | wxSize temp2 ; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | PyObject * obj1 = 0 ; | |
17636 | ||
17637 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
17638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17640 | { | |
17641 | arg2 = &temp2; | |
17642 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17643 | } | |
17644 | { | |
17645 | if (!wxPyCheckForApp()) SWIG_fail; | |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17653 | return resultobj; | |
17654 | fail: | |
17655 | return NULL; | |
17656 | } | |
17657 | ||
17658 | ||
36ed4f51 RD |
17659 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { |
17660 | int argc; | |
e2950dbb | 17661 | PyObject *argv[4]; |
36ed4f51 | 17662 | int ii; |
d55e5bfc | 17663 | |
36ed4f51 | 17664 | argc = PyObject_Length(args); |
e2950dbb | 17665 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { |
36ed4f51 RD |
17666 | argv[ii] = PyTuple_GetItem(args,ii); |
17667 | } | |
32fe5131 | 17668 | if (argc == 1) { |
36ed4f51 RD |
17669 | int _v; |
17670 | { | |
17671 | void *ptr; | |
17672 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17673 | _v = 0; | |
17674 | PyErr_Clear(); | |
17675 | } else { | |
17676 | _v = 1; | |
17677 | } | |
17678 | } | |
17679 | if (_v) { | |
32fe5131 RD |
17680 | return _wrap_new_BufferedDC__SWIG_2(self,args); |
17681 | } | |
17682 | } | |
17683 | if (argc == 2) { | |
17684 | int _v; | |
17685 | { | |
17686 | void *ptr; | |
17687 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17688 | _v = 0; | |
17689 | PyErr_Clear(); | |
17690 | } else { | |
17691 | _v = 1; | |
f491ed97 | 17692 | } |
32fe5131 RD |
17693 | } |
17694 | if (_v) { | |
36ed4f51 RD |
17695 | { |
17696 | void *ptr = 0; | |
17697 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
17698 | _v = 0; | |
17699 | PyErr_Clear(); | |
17700 | } else { | |
17701 | _v = (ptr != 0); | |
17702 | } | |
17703 | } | |
17704 | if (_v) { | |
32fe5131 RD |
17705 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
17706 | } | |
17707 | } | |
17708 | } | |
17709 | if (argc == 2) { | |
17710 | int _v; | |
17711 | { | |
17712 | void *ptr; | |
17713 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17714 | _v = 0; | |
17715 | PyErr_Clear(); | |
17716 | } else { | |
17717 | _v = 1; | |
17718 | } | |
17719 | } | |
17720 | if (_v) { | |
17721 | { | |
17722 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
17723 | } | |
17724 | if (_v) { | |
17725 | return _wrap_new_BufferedDC__SWIG_4(self,args); | |
17726 | } | |
17727 | } | |
17728 | } | |
17729 | if (argc == 3) { | |
17730 | int _v; | |
17731 | { | |
17732 | void *ptr; | |
17733 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17734 | _v = 0; | |
17735 | PyErr_Clear(); | |
17736 | } else { | |
17737 | _v = 1; | |
17738 | } | |
17739 | } | |
17740 | if (_v) { | |
17741 | { | |
17742 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
17743 | } | |
17744 | if (_v) { | |
e2950dbb RD |
17745 | _v = SWIG_Check_int(argv[2]); |
17746 | if (_v) { | |
32fe5131 | 17747 | return _wrap_new_BufferedDC__SWIG_3(self,args); |
e2950dbb | 17748 | } |
36ed4f51 RD |
17749 | } |
17750 | } | |
17751 | } | |
32fe5131 | 17752 | if (argc == 3) { |
36ed4f51 RD |
17753 | int _v; |
17754 | { | |
17755 | void *ptr; | |
17756 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17757 | _v = 0; | |
17758 | PyErr_Clear(); | |
17759 | } else { | |
17760 | _v = 1; | |
17761 | } | |
17762 | } | |
17763 | if (_v) { | |
17764 | { | |
32fe5131 RD |
17765 | void *ptr = 0; |
17766 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
17767 | _v = 0; | |
17768 | PyErr_Clear(); | |
17769 | } else { | |
17770 | _v = (ptr != 0); | |
17771 | } | |
36ed4f51 RD |
17772 | } |
17773 | if (_v) { | |
e2950dbb RD |
17774 | _v = SWIG_Check_int(argv[2]); |
17775 | if (_v) { | |
32fe5131 | 17776 | return _wrap_new_BufferedDC__SWIG_0(self,args); |
e2950dbb | 17777 | } |
36ed4f51 RD |
17778 | } |
17779 | } | |
17780 | } | |
d55e5bfc | 17781 | |
36ed4f51 RD |
17782 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); |
17783 | return NULL; | |
d55e5bfc RD |
17784 | } |
17785 | ||
17786 | ||
36ed4f51 | 17787 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17788 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17789 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
17790 | PyObject * obj0 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "self", NULL | |
17793 | }; | |
d55e5bfc | 17794 | |
36ed4f51 RD |
17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
17796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17798 | { | |
17799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17800 | delete arg1; | |
17801 | ||
17802 | wxPyEndAllowThreads(__tstate); | |
17803 | if (PyErr_Occurred()) SWIG_fail; | |
17804 | } | |
17805 | Py_INCREF(Py_None); resultobj = Py_None; | |
17806 | return resultobj; | |
17807 | fail: | |
17808 | return NULL; | |
d55e5bfc RD |
17809 | } |
17810 | ||
17811 | ||
36ed4f51 | 17812 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17813 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17814 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
17815 | PyObject * obj0 = 0 ; | |
17816 | char *kwnames[] = { | |
17817 | (char *) "self", NULL | |
17818 | }; | |
d55e5bfc | 17819 | |
36ed4f51 RD |
17820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
17821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17823 | { | |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | (arg1)->UnMask(); | |
17826 | ||
17827 | wxPyEndAllowThreads(__tstate); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | Py_INCREF(Py_None); resultobj = Py_None; | |
17831 | return resultobj; | |
17832 | fail: | |
17833 | return NULL; | |
d55e5bfc RD |
17834 | } |
17835 | ||
17836 | ||
36ed4f51 RD |
17837 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
17838 | PyObject *obj; | |
17839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17840 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
17841 | Py_INCREF(obj); | |
17842 | return Py_BuildValue((char *)""); | |
d55e5bfc | 17843 | } |
36ed4f51 | 17844 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17845 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17846 | wxWindow *arg1 = (wxWindow *) 0 ; |
17847 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
17848 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
e2950dbb | 17849 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; |
36ed4f51 RD |
17850 | wxBufferedPaintDC *result; |
17851 | PyObject * obj0 = 0 ; | |
17852 | PyObject * obj1 = 0 ; | |
e2950dbb | 17853 | PyObject * obj2 = 0 ; |
36ed4f51 | 17854 | char *kwnames[] = { |
e2950dbb | 17855 | (char *) "window",(char *) "buffer",(char *) "style", NULL |
36ed4f51 | 17856 | }; |
d55e5bfc | 17857 | |
e2950dbb | 17858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
17859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17861 | if (obj1) { | |
17862 | { | |
17863 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17865 | if (arg2 == NULL) { | |
17866 | SWIG_null_ref("wxBitmap"); | |
17867 | } | |
17868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17869 | } | |
17870 | } | |
e2950dbb RD |
17871 | if (obj2) { |
17872 | { | |
32fe5131 | 17873 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
e2950dbb RD |
17874 | if (SWIG_arg_fail(3)) SWIG_fail; |
17875 | } | |
17876 | } | |
36ed4f51 RD |
17877 | { |
17878 | if (!wxPyCheckForApp()) SWIG_fail; | |
17879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 17880 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); |
36ed4f51 RD |
17881 | |
17882 | wxPyEndAllowThreads(__tstate); | |
17883 | if (PyErr_Occurred()) SWIG_fail; | |
17884 | } | |
17885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
17886 | return resultobj; | |
17887 | fail: | |
17888 | return NULL; | |
d55e5bfc RD |
17889 | } |
17890 | ||
17891 | ||
36ed4f51 RD |
17892 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
17893 | PyObject *obj; | |
17894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17895 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
17896 | Py_INCREF(obj); | |
17897 | return Py_BuildValue((char *)""); | |
d55e5bfc | 17898 | } |
36ed4f51 | 17899 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17900 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17901 | wxScreenDC *result; |
17902 | char *kwnames[] = { | |
17903 | NULL | |
17904 | }; | |
d55e5bfc | 17905 | |
36ed4f51 RD |
17906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; |
17907 | { | |
17908 | if (!wxPyCheckForApp()) SWIG_fail; | |
17909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17910 | result = (wxScreenDC *)new wxScreenDC(); | |
17911 | ||
17912 | wxPyEndAllowThreads(__tstate); | |
17913 | if (PyErr_Occurred()) SWIG_fail; | |
17914 | } | |
17915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
17916 | return resultobj; | |
17917 | fail: | |
17918 | return NULL; | |
d55e5bfc RD |
17919 | } |
17920 | ||
17921 | ||
36ed4f51 | 17922 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17923 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17924 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17925 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17926 | bool result; | |
17927 | PyObject * obj0 = 0 ; | |
17928 | PyObject * obj1 = 0 ; | |
17929 | char *kwnames[] = { | |
17930 | (char *) "self",(char *) "window", NULL | |
17931 | }; | |
d55e5bfc | 17932 | |
36ed4f51 RD |
17933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; |
17934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17938 | { | |
17939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17940 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
17941 | ||
17942 | wxPyEndAllowThreads(__tstate); | |
17943 | if (PyErr_Occurred()) SWIG_fail; | |
17944 | } | |
17945 | { | |
17946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17947 | } | |
17948 | return resultobj; | |
17949 | fail: | |
17950 | return NULL; | |
d55e5bfc RD |
17951 | } |
17952 | ||
17953 | ||
36ed4f51 | 17954 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17955 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17956 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17957 | wxRect *arg2 = (wxRect *) NULL ; | |
17958 | bool result; | |
17959 | PyObject * obj0 = 0 ; | |
17960 | PyObject * obj1 = 0 ; | |
17961 | char *kwnames[] = { | |
17962 | (char *) "self",(char *) "rect", NULL | |
17963 | }; | |
d55e5bfc | 17964 | |
36ed4f51 RD |
17965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; |
17966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17968 | if (obj1) { | |
17969 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
17970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17971 | } | |
17972 | { | |
17973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17974 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
17975 | ||
17976 | wxPyEndAllowThreads(__tstate); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
17979 | { | |
17980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17981 | } | |
17982 | return resultobj; | |
17983 | fail: | |
17984 | return NULL; | |
d55e5bfc RD |
17985 | } |
17986 | ||
17987 | ||
36ed4f51 | 17988 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17989 | PyObject *resultobj = NULL; |
36ed4f51 RD |
17990 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17991 | bool result; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | char *kwnames[] = { | |
17994 | (char *) "self", NULL | |
17995 | }; | |
d55e5bfc | 17996 | |
36ed4f51 RD |
17997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; |
17998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18000 | { | |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (bool)(arg1)->EndDrawingOnTop(); | |
18003 | ||
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | { | |
18008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18009 | } | |
18010 | return resultobj; | |
18011 | fail: | |
18012 | return NULL; | |
d55e5bfc RD |
18013 | } |
18014 | ||
18015 | ||
36ed4f51 RD |
18016 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
18017 | PyObject *obj; | |
18018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18019 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
18020 | Py_INCREF(obj); | |
18021 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18022 | } |
36ed4f51 | 18023 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18024 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18025 | wxWindow *arg1 = (wxWindow *) 0 ; |
18026 | wxClientDC *result; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "win", NULL | |
18030 | }; | |
d55e5bfc | 18031 | |
36ed4f51 RD |
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; |
18033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18035 | { | |
18036 | if (!wxPyCheckForApp()) SWIG_fail; | |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | result = (wxClientDC *)new wxClientDC(arg1); | |
18039 | ||
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
18043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
18044 | return resultobj; | |
18045 | fail: | |
18046 | return NULL; | |
d55e5bfc RD |
18047 | } |
18048 | ||
18049 | ||
36ed4f51 RD |
18050 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
18051 | PyObject *obj; | |
18052 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18053 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
18054 | Py_INCREF(obj); | |
18055 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18056 | } |
36ed4f51 | 18057 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18058 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18059 | wxWindow *arg1 = (wxWindow *) 0 ; |
18060 | wxPaintDC *result; | |
18061 | PyObject * obj0 = 0 ; | |
18062 | char *kwnames[] = { | |
18063 | (char *) "win", NULL | |
18064 | }; | |
d55e5bfc | 18065 | |
36ed4f51 RD |
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; |
18067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18069 | { | |
18070 | if (!wxPyCheckForApp()) SWIG_fail; | |
18071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18072 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
18073 | ||
18074 | wxPyEndAllowThreads(__tstate); | |
18075 | if (PyErr_Occurred()) SWIG_fail; | |
18076 | } | |
18077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
18078 | return resultobj; | |
18079 | fail: | |
18080 | return NULL; | |
d55e5bfc RD |
18081 | } |
18082 | ||
18083 | ||
36ed4f51 RD |
18084 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
18085 | PyObject *obj; | |
18086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18087 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
18088 | Py_INCREF(obj); | |
18089 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18090 | } |
36ed4f51 | 18091 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18092 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18093 | wxWindow *arg1 = (wxWindow *) 0 ; |
18094 | wxWindowDC *result; | |
18095 | PyObject * obj0 = 0 ; | |
18096 | char *kwnames[] = { | |
18097 | (char *) "win", NULL | |
18098 | }; | |
d55e5bfc | 18099 | |
36ed4f51 RD |
18100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; |
18101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18103 | { | |
18104 | if (!wxPyCheckForApp()) SWIG_fail; | |
18105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18106 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
18107 | ||
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
18112 | return resultobj; | |
18113 | fail: | |
18114 | return NULL; | |
d55e5bfc RD |
18115 | } |
18116 | ||
18117 | ||
36ed4f51 RD |
18118 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
18119 | PyObject *obj; | |
18120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18121 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
18122 | Py_INCREF(obj); | |
18123 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18124 | } |
36ed4f51 | 18125 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18126 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18127 | wxDC *arg1 = 0 ; |
18128 | bool arg2 ; | |
18129 | wxMirrorDC *result; | |
18130 | PyObject * obj0 = 0 ; | |
18131 | PyObject * obj1 = 0 ; | |
18132 | char *kwnames[] = { | |
18133 | (char *) "dc",(char *) "mirror", NULL | |
18134 | }; | |
d55e5bfc | 18135 | |
36ed4f51 RD |
18136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; |
18137 | { | |
18138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
18139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18140 | if (arg1 == NULL) { | |
18141 | SWIG_null_ref("wxDC"); | |
18142 | } | |
18143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18144 | } | |
18145 | { | |
32fe5131 | 18146 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
36ed4f51 RD |
18147 | if (SWIG_arg_fail(2)) SWIG_fail; |
18148 | } | |
18149 | { | |
18150 | if (!wxPyCheckForApp()) SWIG_fail; | |
18151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18152 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
18153 | ||
18154 | wxPyEndAllowThreads(__tstate); | |
18155 | if (PyErr_Occurred()) SWIG_fail; | |
18156 | } | |
18157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | return NULL; | |
d55e5bfc RD |
18161 | } |
18162 | ||
18163 | ||
36ed4f51 RD |
18164 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
18165 | PyObject *obj; | |
18166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18167 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
18168 | Py_INCREF(obj); | |
18169 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18170 | } |
36ed4f51 | 18171 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18172 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18173 | wxPrintData *arg1 = 0 ; |
18174 | wxPostScriptDC *result; | |
18175 | PyObject * obj0 = 0 ; | |
18176 | char *kwnames[] = { | |
18177 | (char *) "printData", NULL | |
18178 | }; | |
d55e5bfc | 18179 | |
36ed4f51 RD |
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; |
18181 | { | |
18182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18184 | if (arg1 == NULL) { | |
18185 | SWIG_null_ref("wxPrintData"); | |
18186 | } | |
18187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18188 | } | |
18189 | { | |
18190 | if (!wxPyCheckForApp()) SWIG_fail; | |
18191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18192 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
18193 | ||
18194 | wxPyEndAllowThreads(__tstate); | |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
18196 | } | |
18197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
18198 | return resultobj; | |
18199 | fail: | |
18200 | return NULL; | |
d55e5bfc RD |
18201 | } |
18202 | ||
18203 | ||
36ed4f51 | 18204 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18205 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18206 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
18207 | wxPrintData *result; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | char *kwnames[] = { | |
18210 | (char *) "self", NULL | |
18211 | }; | |
d55e5bfc | 18212 | |
36ed4f51 RD |
18213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; |
18214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
18215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18216 | { | |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | { | |
18219 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
18220 | result = (wxPrintData *) &_result_ref; | |
18221 | } | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
d55e5bfc RD |
18230 | } |
18231 | ||
18232 | ||
36ed4f51 | 18233 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18234 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18235 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
18236 | wxPrintData *arg2 = 0 ; | |
18237 | PyObject * obj0 = 0 ; | |
18238 | PyObject * obj1 = 0 ; | |
18239 | char *kwnames[] = { | |
18240 | (char *) "self",(char *) "data", NULL | |
18241 | }; | |
d55e5bfc | 18242 | |
36ed4f51 RD |
18243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; |
18244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
18245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18246 | { | |
18247 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18249 | if (arg2 == NULL) { | |
18250 | SWIG_null_ref("wxPrintData"); | |
18251 | } | |
18252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18253 | } | |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | Py_INCREF(Py_None); resultobj = Py_None; | |
18262 | return resultobj; | |
18263 | fail: | |
18264 | return NULL; | |
d55e5bfc RD |
18265 | } |
18266 | ||
18267 | ||
36ed4f51 | 18268 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18269 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18270 | int arg1 ; |
18271 | PyObject * obj0 = 0 ; | |
18272 | char *kwnames[] = { | |
18273 | (char *) "ppi", NULL | |
18274 | }; | |
18275 | ||
18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
18277 | { | |
32fe5131 | 18278 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
18279 | if (SWIG_arg_fail(1)) SWIG_fail; |
18280 | } | |
18281 | { | |
18282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18283 | wxPostScriptDC::SetResolution(arg1); | |
18284 | ||
18285 | wxPyEndAllowThreads(__tstate); | |
18286 | if (PyErr_Occurred()) SWIG_fail; | |
18287 | } | |
18288 | Py_INCREF(Py_None); resultobj = Py_None; | |
18289 | return resultobj; | |
18290 | fail: | |
18291 | return NULL; | |
d55e5bfc RD |
18292 | } |
18293 | ||
18294 | ||
36ed4f51 | 18295 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18296 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18297 | int result; |
18298 | char *kwnames[] = { | |
18299 | NULL | |
18300 | }; | |
d55e5bfc | 18301 | |
36ed4f51 RD |
18302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (int)wxPostScriptDC::GetResolution(); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | { | |
32fe5131 | 18311 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
18312 | } |
18313 | return resultobj; | |
18314 | fail: | |
18315 | return NULL; | |
d55e5bfc RD |
18316 | } |
18317 | ||
18318 | ||
36ed4f51 RD |
18319 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
18320 | PyObject *obj; | |
18321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18322 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
18323 | Py_INCREF(obj); | |
18324 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18325 | } |
36ed4f51 | 18326 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18327 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18328 | wxString const &arg1_defvalue = wxPyEmptyString ; |
18329 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18330 | wxMetaFile *result; | |
18331 | bool temp1 = false ; | |
18332 | PyObject * obj0 = 0 ; | |
18333 | char *kwnames[] = { | |
18334 | (char *) "filename", NULL | |
18335 | }; | |
d55e5bfc | 18336 | |
36ed4f51 RD |
18337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; |
18338 | if (obj0) { | |
18339 | { | |
18340 | arg1 = wxString_in_helper(obj0); | |
18341 | if (arg1 == NULL) SWIG_fail; | |
18342 | temp1 = true; | |
18343 | } | |
18344 | } | |
18345 | { | |
18346 | if (!wxPyCheckForApp()) SWIG_fail; | |
18347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18348 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
18349 | ||
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
18354 | { | |
18355 | if (temp1) | |
18356 | delete arg1; | |
18357 | } | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | { | |
18361 | if (temp1) | |
18362 | delete arg1; | |
18363 | } | |
18364 | return NULL; | |
d55e5bfc RD |
18365 | } |
18366 | ||
18367 | ||
36ed4f51 | 18368 | static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18369 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18370 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18371 | PyObject * obj0 = 0 ; | |
18372 | char *kwnames[] = { | |
18373 | (char *) "self", NULL | |
18374 | }; | |
d55e5bfc | 18375 | |
36ed4f51 RD |
18376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; |
18377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18379 | { | |
18380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18381 | delete arg1; | |
18382 | ||
18383 | wxPyEndAllowThreads(__tstate); | |
18384 | if (PyErr_Occurred()) SWIG_fail; | |
18385 | } | |
18386 | Py_INCREF(Py_None); resultobj = Py_None; | |
18387 | return resultobj; | |
18388 | fail: | |
18389 | return NULL; | |
d55e5bfc RD |
18390 | } |
18391 | ||
18392 | ||
36ed4f51 | 18393 | static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18394 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18395 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18396 | bool result; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | char *kwnames[] = { | |
18399 | (char *) "self", NULL | |
18400 | }; | |
18401 | ||
18402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
18403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18405 | { | |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | result = (bool)(arg1)->Ok(); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | { | |
18413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18414 | } | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
d55e5bfc RD |
18418 | } |
18419 | ||
18420 | ||
36ed4f51 | 18421 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18422 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18423 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18424 | int arg2 = (int) 0 ; | |
18425 | int arg3 = (int) 0 ; | |
18426 | bool result; | |
18427 | PyObject * obj0 = 0 ; | |
18428 | PyObject * obj1 = 0 ; | |
18429 | PyObject * obj2 = 0 ; | |
18430 | char *kwnames[] = { | |
18431 | (char *) "self",(char *) "width",(char *) "height", NULL | |
18432 | }; | |
d55e5bfc | 18433 | |
36ed4f51 RD |
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18437 | if (obj1) { | |
18438 | { | |
32fe5131 | 18439 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
18440 | if (SWIG_arg_fail(2)) SWIG_fail; |
18441 | } | |
18442 | } | |
18443 | if (obj2) { | |
18444 | { | |
32fe5131 | 18445 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
18446 | if (SWIG_arg_fail(3)) SWIG_fail; |
18447 | } | |
18448 | } | |
18449 | { | |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
18452 | ||
18453 | wxPyEndAllowThreads(__tstate); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
18456 | { | |
18457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18458 | } | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
d55e5bfc RD |
18462 | } |
18463 | ||
18464 | ||
36ed4f51 | 18465 | static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18466 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18467 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18468 | wxSize result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
18475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (arg1)->GetSize(); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | { | |
18485 | wxSize * resultptr; | |
32fe5131 | 18486 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
36ed4f51 RD |
18487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
18488 | } | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
d55e5bfc RD |
18492 | } |
18493 | ||
18494 | ||
36ed4f51 | 18495 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18496 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18497 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18498 | int result; | |
18499 | PyObject * obj0 = 0 ; | |
18500 | char *kwnames[] = { | |
18501 | (char *) "self", NULL | |
18502 | }; | |
d55e5bfc | 18503 | |
36ed4f51 RD |
18504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; |
18505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18507 | { | |
18508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18509 | result = (int)(arg1)->GetWidth(); | |
18510 | ||
18511 | wxPyEndAllowThreads(__tstate); | |
18512 | if (PyErr_Occurred()) SWIG_fail; | |
18513 | } | |
18514 | { | |
32fe5131 | 18515 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
18516 | } |
18517 | return resultobj; | |
18518 | fail: | |
18519 | return NULL; | |
d55e5bfc RD |
18520 | } |
18521 | ||
18522 | ||
36ed4f51 | 18523 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18524 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18525 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; |
18526 | int result; | |
18527 | PyObject * obj0 = 0 ; | |
18528 | char *kwnames[] = { | |
18529 | (char *) "self", NULL | |
18530 | }; | |
d55e5bfc | 18531 | |
36ed4f51 RD |
18532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; |
18533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0); | |
18534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18535 | { | |
18536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18537 | result = (int)(arg1)->GetHeight(); | |
18538 | ||
18539 | wxPyEndAllowThreads(__tstate); | |
18540 | if (PyErr_Occurred()) SWIG_fail; | |
18541 | } | |
18542 | { | |
32fe5131 | 18543 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
18544 | } |
18545 | return resultobj; | |
18546 | fail: | |
18547 | return NULL; | |
d55e5bfc RD |
18548 | } |
18549 | ||
18550 | ||
36ed4f51 RD |
18551 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
18552 | PyObject *obj; | |
18553 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18554 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
18555 | Py_INCREF(obj); | |
18556 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18557 | } |
36ed4f51 | 18558 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18559 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18560 | wxString const &arg1_defvalue = wxPyEmptyString ; |
18561 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18562 | int arg2 = (int) 0 ; | |
18563 | int arg3 = (int) 0 ; | |
18564 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18565 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18566 | wxMetaFileDC *result; | |
18567 | bool temp1 = false ; | |
18568 | bool temp4 = false ; | |
18569 | PyObject * obj0 = 0 ; | |
18570 | PyObject * obj1 = 0 ; | |
18571 | PyObject * obj2 = 0 ; | |
18572 | PyObject * obj3 = 0 ; | |
18573 | char *kwnames[] = { | |
18574 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
18575 | }; | |
d55e5bfc | 18576 | |
36ed4f51 RD |
18577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18578 | if (obj0) { | |
18579 | { | |
18580 | arg1 = wxString_in_helper(obj0); | |
18581 | if (arg1 == NULL) SWIG_fail; | |
18582 | temp1 = true; | |
18583 | } | |
18584 | } | |
18585 | if (obj1) { | |
18586 | { | |
32fe5131 | 18587 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
18588 | if (SWIG_arg_fail(2)) SWIG_fail; |
18589 | } | |
18590 | } | |
18591 | if (obj2) { | |
18592 | { | |
32fe5131 | 18593 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
18594 | if (SWIG_arg_fail(3)) SWIG_fail; |
18595 | } | |
18596 | } | |
18597 | if (obj3) { | |
18598 | { | |
18599 | arg4 = wxString_in_helper(obj3); | |
18600 | if (arg4 == NULL) SWIG_fail; | |
18601 | temp4 = true; | |
18602 | } | |
18603 | } | |
18604 | { | |
18605 | if (!wxPyCheckForApp()) SWIG_fail; | |
18606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18607 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
18608 | ||
18609 | wxPyEndAllowThreads(__tstate); | |
18610 | if (PyErr_Occurred()) SWIG_fail; | |
18611 | } | |
18612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
18613 | { | |
18614 | if (temp1) | |
18615 | delete arg1; | |
18616 | } | |
18617 | { | |
18618 | if (temp4) | |
18619 | delete arg4; | |
18620 | } | |
18621 | return resultobj; | |
18622 | fail: | |
18623 | { | |
18624 | if (temp1) | |
18625 | delete arg1; | |
18626 | } | |
18627 | { | |
18628 | if (temp4) | |
18629 | delete arg4; | |
18630 | } | |
18631 | return NULL; | |
d55e5bfc RD |
18632 | } |
18633 | ||
18634 | ||
36ed4f51 | 18635 | static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18636 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18637 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; |
18638 | wxMetaFile *result; | |
18639 | PyObject * obj0 = 0 ; | |
18640 | char *kwnames[] = { | |
18641 | (char *) "self", NULL | |
18642 | }; | |
d55e5bfc | 18643 | |
36ed4f51 RD |
18644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; |
18645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_EXCEPTION | 0); | |
18646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18647 | { | |
18648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18649 | result = (wxMetaFile *)(arg1)->Close(); | |
18650 | ||
18651 | wxPyEndAllowThreads(__tstate); | |
18652 | if (PyErr_Occurred()) SWIG_fail; | |
18653 | } | |
18654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
18655 | return resultobj; | |
18656 | fail: | |
18657 | return NULL; | |
d55e5bfc RD |
18658 | } |
18659 | ||
18660 | ||
36ed4f51 RD |
18661 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
18662 | PyObject *obj; | |
18663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18664 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
18665 | Py_INCREF(obj); | |
18666 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18667 | } |
36ed4f51 | 18668 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18669 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18670 | wxPrintData *arg1 = 0 ; |
18671 | wxPrinterDC *result; | |
18672 | PyObject * obj0 = 0 ; | |
18673 | char *kwnames[] = { | |
18674 | (char *) "printData", NULL | |
18675 | }; | |
d55e5bfc | 18676 | |
36ed4f51 RD |
18677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; |
18678 | { | |
18679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18681 | if (arg1 == NULL) { | |
18682 | SWIG_null_ref("wxPrintData"); | |
18683 | } | |
18684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18685 | } | |
18686 | { | |
18687 | if (!wxPyCheckForApp()) SWIG_fail; | |
18688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18689 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
18690 | ||
18691 | wxPyEndAllowThreads(__tstate); | |
18692 | if (PyErr_Occurred()) SWIG_fail; | |
18693 | } | |
18694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
18695 | return resultobj; | |
18696 | fail: | |
18697 | return NULL; | |
d55e5bfc RD |
18698 | } |
18699 | ||
18700 | ||
36ed4f51 RD |
18701 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
18702 | PyObject *obj; | |
18703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18704 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
18705 | Py_INCREF(obj); | |
18706 | return Py_BuildValue((char *)""); | |
d55e5bfc | 18707 | } |
36ed4f51 | 18708 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18709 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18710 | int arg1 ; |
18711 | int arg2 ; | |
18712 | int arg3 = (int) true ; | |
18713 | int arg4 = (int) 1 ; | |
18714 | wxImageList *result; | |
18715 | PyObject * obj0 = 0 ; | |
18716 | PyObject * obj1 = 0 ; | |
18717 | PyObject * obj2 = 0 ; | |
18718 | PyObject * obj3 = 0 ; | |
18719 | char *kwnames[] = { | |
18720 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
18721 | }; | |
d55e5bfc | 18722 | |
36ed4f51 RD |
18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18724 | { | |
32fe5131 | 18725 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
36ed4f51 RD |
18726 | if (SWIG_arg_fail(1)) SWIG_fail; |
18727 | } | |
18728 | { | |
32fe5131 | 18729 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
18730 | if (SWIG_arg_fail(2)) SWIG_fail; |
18731 | } | |
18732 | if (obj2) { | |
18733 | { | |
32fe5131 | 18734 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
18735 | if (SWIG_arg_fail(3)) SWIG_fail; |
18736 | } | |
18737 | } | |
18738 | if (obj3) { | |
18739 | { | |
32fe5131 | 18740 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
18741 | if (SWIG_arg_fail(4)) SWIG_fail; |
18742 | } | |
18743 | } | |
18744 | { | |
18745 | if (!wxPyCheckForApp()) SWIG_fail; | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
18752 | { | |
18753 | resultobj = wxPyMake_wxObject(result, 1); | |
18754 | } | |
18755 | return resultobj; | |
18756 | fail: | |
18757 | return NULL; | |
d55e5bfc RD |
18758 | } |
18759 | ||
18760 | ||
36ed4f51 | 18761 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18762 | PyObject *resultobj = NULL; |
36ed4f51 | 18763 | wxImageList *arg1 = (wxImageList *) 0 ; |
d55e5bfc | 18764 | PyObject * obj0 = 0 ; |
d55e5bfc | 18765 | char *kwnames[] = { |
36ed4f51 | 18766 | (char *) "self", NULL |
d55e5bfc RD |
18767 | }; |
18768 | ||
36ed4f51 RD |
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; |
18770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18772 | { |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18774 | delete arg1; |
d55e5bfc RD |
18775 | |
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | Py_INCREF(Py_None); resultobj = Py_None; | |
18780 | return resultobj; | |
18781 | fail: | |
18782 | return NULL; | |
18783 | } | |
18784 | ||
18785 | ||
36ed4f51 | 18786 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18787 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18788 | wxImageList *arg1 = (wxImageList *) 0 ; |
18789 | wxBitmap *arg2 = 0 ; | |
18790 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
18791 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
18792 | int result; | |
d55e5bfc RD |
18793 | PyObject * obj0 = 0 ; |
18794 | PyObject * obj1 = 0 ; | |
18795 | PyObject * obj2 = 0 ; | |
d55e5bfc | 18796 | char *kwnames[] = { |
36ed4f51 | 18797 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL |
d55e5bfc RD |
18798 | }; |
18799 | ||
36ed4f51 RD |
18800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 18803 | { |
36ed4f51 RD |
18804 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); |
18805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18806 | if (arg2 == NULL) { | |
18807 | SWIG_null_ref("wxBitmap"); | |
18808 | } | |
18809 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18810 | } | |
18811 | if (obj2) { | |
18812 | { | |
18813 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18814 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18815 | if (arg3 == NULL) { | |
18816 | SWIG_null_ref("wxBitmap"); | |
18817 | } | |
18818 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18819 | } | |
d55e5bfc | 18820 | } |
d55e5bfc RD |
18821 | { |
18822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18823 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); |
d55e5bfc RD |
18824 | |
18825 | wxPyEndAllowThreads(__tstate); | |
18826 | if (PyErr_Occurred()) SWIG_fail; | |
18827 | } | |
36ed4f51 | 18828 | { |
32fe5131 | 18829 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 18830 | } |
d55e5bfc RD |
18831 | return resultobj; |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
36ed4f51 | 18837 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18838 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18839 | wxImageList *arg1 = (wxImageList *) 0 ; |
18840 | wxBitmap *arg2 = 0 ; | |
18841 | wxColour *arg3 = 0 ; | |
18842 | int result; | |
18843 | wxColour temp3 ; | |
d55e5bfc RD |
18844 | PyObject * obj0 = 0 ; |
18845 | PyObject * obj1 = 0 ; | |
36ed4f51 | 18846 | PyObject * obj2 = 0 ; |
d55e5bfc | 18847 | char *kwnames[] = { |
36ed4f51 | 18848 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL |
d55e5bfc RD |
18849 | }; |
18850 | ||
36ed4f51 RD |
18851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18854 | { | |
18855 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18857 | if (arg2 == NULL) { | |
18858 | SWIG_null_ref("wxBitmap"); | |
18859 | } | |
18860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18861 | } | |
18862 | { | |
18863 | arg3 = &temp3; | |
18864 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18865 | } | |
d55e5bfc RD |
18866 | { |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18868 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); |
d55e5bfc RD |
18869 | |
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
36ed4f51 | 18873 | { |
32fe5131 | 18874 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 18875 | } |
d55e5bfc RD |
18876 | return resultobj; |
18877 | fail: | |
18878 | return NULL; | |
18879 | } | |
18880 | ||
18881 | ||
36ed4f51 | 18882 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18883 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18884 | wxImageList *arg1 = (wxImageList *) 0 ; |
18885 | wxIcon *arg2 = 0 ; | |
d55e5bfc RD |
18886 | int result; |
18887 | PyObject * obj0 = 0 ; | |
36ed4f51 | 18888 | PyObject * obj1 = 0 ; |
d55e5bfc | 18889 | char *kwnames[] = { |
36ed4f51 | 18890 | (char *) "self",(char *) "icon", NULL |
d55e5bfc RD |
18891 | }; |
18892 | ||
36ed4f51 RD |
18893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
18894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18896 | { | |
18897 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
18898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18899 | if (arg2 == NULL) { | |
18900 | SWIG_null_ref("wxIcon"); | |
18901 | } | |
18902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18903 | } | |
d55e5bfc RD |
18904 | { |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18906 | result = (int)(arg1)->Add((wxIcon const &)*arg2); |
d55e5bfc RD |
18907 | |
18908 | wxPyEndAllowThreads(__tstate); | |
18909 | if (PyErr_Occurred()) SWIG_fail; | |
18910 | } | |
36ed4f51 | 18911 | { |
32fe5131 | 18912 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 18913 | } |
d55e5bfc RD |
18914 | return resultobj; |
18915 | fail: | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
7fbf8399 | 18920 | static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18921 | PyObject *resultobj = NULL; |
7fbf8399 RD |
18922 | wxImageList *arg1 = (wxImageList *) 0 ; |
18923 | int arg2 ; | |
18924 | SwigValueWrapper<wxBitmap > result; | |
18925 | PyObject * obj0 = 0 ; | |
18926 | PyObject * obj1 = 0 ; | |
18927 | char *kwnames[] = { | |
18928 | (char *) "self",(char *) "index", NULL | |
18929 | }; | |
18930 | ||
18931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
18932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18934 | { | |
32fe5131 | 18935 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
7fbf8399 RD |
18936 | if (SWIG_arg_fail(2)) SWIG_fail; |
18937 | } | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | { | |
18946 | wxBitmap * resultptr; | |
32fe5131 | 18947 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
7fbf8399 RD |
18948 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
18949 | } | |
18950 | return resultobj; | |
18951 | fail: | |
18952 | return NULL; | |
18953 | } | |
18954 | ||
18955 | ||
18956 | static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18957 | PyObject *resultobj = NULL; |
7fbf8399 RD |
18958 | wxImageList *arg1 = (wxImageList *) 0 ; |
18959 | int arg2 ; | |
18960 | wxIcon result; | |
18961 | PyObject * obj0 = 0 ; | |
18962 | PyObject * obj1 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self",(char *) "index", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
18968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18970 | { | |
32fe5131 | 18971 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
7fbf8399 RD |
18972 | if (SWIG_arg_fail(2)) SWIG_fail; |
18973 | } | |
18974 | { | |
18975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18976 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
18977 | ||
18978 | wxPyEndAllowThreads(__tstate); | |
18979 | if (PyErr_Occurred()) SWIG_fail; | |
18980 | } | |
18981 | { | |
18982 | wxIcon * resultptr; | |
32fe5131 | 18983 | resultptr = new wxIcon(static_cast<wxIcon & >(result)); |
7fbf8399 RD |
18984 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
18985 | } | |
18986 | return resultobj; | |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
36ed4f51 | 18992 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18993 | PyObject *resultobj = NULL; |
36ed4f51 RD |
18994 | wxImageList *arg1 = (wxImageList *) 0 ; |
18995 | int arg2 ; | |
18996 | wxBitmap *arg3 = 0 ; | |
18997 | bool result; | |
d55e5bfc RD |
18998 | PyObject * obj0 = 0 ; |
18999 | PyObject * obj1 = 0 ; | |
36ed4f51 | 19000 | PyObject * obj2 = 0 ; |
d55e5bfc | 19001 | char *kwnames[] = { |
36ed4f51 | 19002 | (char *) "self",(char *) "index",(char *) "bitmap", NULL |
d55e5bfc RD |
19003 | }; |
19004 | ||
36ed4f51 RD |
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
19006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19008 | { | |
32fe5131 | 19009 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
19010 | if (SWIG_arg_fail(2)) SWIG_fail; |
19011 | } | |
19012 | { | |
19013 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19014 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19015 | if (arg3 == NULL) { | |
19016 | SWIG_null_ref("wxBitmap"); | |
19017 | } | |
19018 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19019 | } | |
d55e5bfc RD |
19020 | { |
19021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19022 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); |
d55e5bfc RD |
19023 | |
19024 | wxPyEndAllowThreads(__tstate); | |
19025 | if (PyErr_Occurred()) SWIG_fail; | |
19026 | } | |
36ed4f51 RD |
19027 | { |
19028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19029 | } | |
d55e5bfc RD |
19030 | return resultobj; |
19031 | fail: | |
19032 | return NULL; | |
19033 | } | |
19034 | ||
19035 | ||
36ed4f51 | 19036 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19037 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19038 | wxImageList *arg1 = (wxImageList *) 0 ; |
19039 | int arg2 ; | |
19040 | wxDC *arg3 = 0 ; | |
19041 | int arg4 ; | |
19042 | int arg5 ; | |
19043 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
19044 | bool arg7 = (bool) (bool)false ; | |
19045 | bool result; | |
d55e5bfc RD |
19046 | PyObject * obj0 = 0 ; |
19047 | PyObject * obj1 = 0 ; | |
19048 | PyObject * obj2 = 0 ; | |
36ed4f51 RD |
19049 | PyObject * obj3 = 0 ; |
19050 | PyObject * obj4 = 0 ; | |
19051 | PyObject * obj5 = 0 ; | |
19052 | PyObject * obj6 = 0 ; | |
d55e5bfc | 19053 | char *kwnames[] = { |
36ed4f51 | 19054 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL |
d55e5bfc RD |
19055 | }; |
19056 | ||
36ed4f51 RD |
19057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
19058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19060 | { |
32fe5131 | 19061 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 19062 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc | 19063 | } |
d55e5bfc | 19064 | { |
36ed4f51 RD |
19065 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
19066 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19067 | if (arg3 == NULL) { | |
19068 | SWIG_null_ref("wxDC"); | |
19069 | } | |
19070 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 19071 | } |
d55e5bfc | 19072 | { |
32fe5131 | 19073 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 | 19074 | if (SWIG_arg_fail(4)) SWIG_fail; |
d55e5bfc | 19075 | } |
d55e5bfc | 19076 | { |
32fe5131 | 19077 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
19078 | if (SWIG_arg_fail(5)) SWIG_fail; |
19079 | } | |
19080 | if (obj5) { | |
19081 | { | |
32fe5131 | 19082 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
36ed4f51 RD |
19083 | if (SWIG_arg_fail(6)) SWIG_fail; |
19084 | } | |
19085 | } | |
19086 | if (obj6) { | |
19087 | { | |
32fe5131 | 19088 | arg7 = static_cast<bool const >(SWIG_As_bool(obj6)); |
36ed4f51 RD |
19089 | if (SWIG_arg_fail(7)) SWIG_fail; |
19090 | } | |
d55e5bfc | 19091 | } |
d55e5bfc RD |
19092 | { |
19093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19094 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
19095 | |
19096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19097 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 19098 | } |
36ed4f51 RD |
19099 | { |
19100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19101 | } | |
d55e5bfc RD |
19102 | return resultobj; |
19103 | fail: | |
19104 | return NULL; | |
19105 | } | |
19106 | ||
19107 | ||
36ed4f51 | 19108 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19109 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19110 | wxImageList *arg1 = (wxImageList *) 0 ; |
19111 | int result; | |
d55e5bfc RD |
19112 | PyObject * obj0 = 0 ; |
19113 | char *kwnames[] = { | |
19114 | (char *) "self", NULL | |
19115 | }; | |
19116 | ||
36ed4f51 RD |
19117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; |
19118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19120 | { |
19121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19122 | result = (int)(arg1)->GetImageCount(); |
d55e5bfc RD |
19123 | |
19124 | wxPyEndAllowThreads(__tstate); | |
19125 | if (PyErr_Occurred()) SWIG_fail; | |
19126 | } | |
36ed4f51 | 19127 | { |
32fe5131 | 19128 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 | 19129 | } |
d55e5bfc RD |
19130 | return resultobj; |
19131 | fail: | |
19132 | return NULL; | |
19133 | } | |
19134 | ||
19135 | ||
36ed4f51 | 19136 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19137 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19138 | wxImageList *arg1 = (wxImageList *) 0 ; |
19139 | int arg2 ; | |
19140 | bool result; | |
d55e5bfc RD |
19141 | PyObject * obj0 = 0 ; |
19142 | PyObject * obj1 = 0 ; | |
19143 | char *kwnames[] = { | |
36ed4f51 | 19144 | (char *) "self",(char *) "index", NULL |
d55e5bfc RD |
19145 | }; |
19146 | ||
36ed4f51 RD |
19147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
19148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19150 | { |
32fe5131 | 19151 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 19152 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
19153 | } |
19154 | { | |
19155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19156 | result = (bool)(arg1)->Remove(arg2); |
d55e5bfc RD |
19157 | |
19158 | wxPyEndAllowThreads(__tstate); | |
19159 | if (PyErr_Occurred()) SWIG_fail; | |
19160 | } | |
19161 | { | |
36ed4f51 | 19162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
19163 | } |
19164 | return resultobj; | |
19165 | fail: | |
d55e5bfc RD |
19166 | return NULL; |
19167 | } | |
19168 | ||
19169 | ||
36ed4f51 | 19170 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19171 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19172 | wxImageList *arg1 = (wxImageList *) 0 ; |
19173 | bool result; | |
d55e5bfc | 19174 | PyObject * obj0 = 0 ; |
d55e5bfc | 19175 | char *kwnames[] = { |
36ed4f51 | 19176 | (char *) "self", NULL |
d55e5bfc RD |
19177 | }; |
19178 | ||
36ed4f51 RD |
19179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; |
19180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19182 | { |
19183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19184 | result = (bool)(arg1)->RemoveAll(); |
d55e5bfc RD |
19185 | |
19186 | wxPyEndAllowThreads(__tstate); | |
19187 | if (PyErr_Occurred()) SWIG_fail; | |
19188 | } | |
19189 | { | |
36ed4f51 | 19190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
19191 | } |
19192 | return resultobj; | |
19193 | fail: | |
19194 | return NULL; | |
19195 | } | |
19196 | ||
19197 | ||
36ed4f51 | 19198 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19199 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19200 | wxImageList *arg1 = (wxImageList *) 0 ; |
19201 | int arg2 ; | |
19202 | int *arg3 = 0 ; | |
19203 | int *arg4 = 0 ; | |
19204 | int temp3 ; | |
19205 | int res3 = 0 ; | |
19206 | int temp4 ; | |
19207 | int res4 = 0 ; | |
d55e5bfc RD |
19208 | PyObject * obj0 = 0 ; |
19209 | PyObject * obj1 = 0 ; | |
d55e5bfc | 19210 | char *kwnames[] = { |
36ed4f51 | 19211 | (char *) "self",(char *) "index", NULL |
d55e5bfc RD |
19212 | }; |
19213 | ||
36ed4f51 RD |
19214 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
19215 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
19216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
19217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
19218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19219 | { |
32fe5131 | 19220 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 | 19221 | if (SWIG_arg_fail(2)) SWIG_fail; |
d55e5bfc RD |
19222 | } |
19223 | { | |
19224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19225 | (arg1)->GetSize(arg2,*arg3,*arg4); |
d55e5bfc RD |
19226 | |
19227 | wxPyEndAllowThreads(__tstate); | |
19228 | if (PyErr_Occurred()) SWIG_fail; | |
19229 | } | |
19230 | Py_INCREF(Py_None); resultobj = Py_None; | |
36ed4f51 RD |
19231 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
19232 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
19233 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
19234 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
19235 | return resultobj; |
19236 | fail: | |
d55e5bfc RD |
19237 | return NULL; |
19238 | } | |
19239 | ||
19240 | ||
36ed4f51 | 19241 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19242 | PyObject *obj; |
19243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36ed4f51 | 19244 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); |
d55e5bfc RD |
19245 | Py_INCREF(obj); |
19246 | return Py_BuildValue((char *)""); | |
19247 | } | |
36ed4f51 RD |
19248 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
19249 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
19250 | return 1; | |
d55e5bfc RD |
19251 | } |
19252 | ||
19253 | ||
36ed4f51 | 19254 | static PyObject *_wrap_NORMAL_FONT_get(void) { |
32fe5131 | 19255 | PyObject *pyobj = NULL; |
d55e5bfc | 19256 | |
36ed4f51 RD |
19257 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
19258 | return pyobj; | |
d55e5bfc RD |
19259 | } |
19260 | ||
19261 | ||
36ed4f51 RD |
19262 | static int _wrap_SMALL_FONT_set(PyObject *) { |
19263 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
19264 | return 1; | |
d55e5bfc RD |
19265 | } |
19266 | ||
19267 | ||
36ed4f51 | 19268 | static PyObject *_wrap_SMALL_FONT_get(void) { |
32fe5131 | 19269 | PyObject *pyobj = NULL; |
d55e5bfc | 19270 | |
36ed4f51 RD |
19271 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
19272 | return pyobj; | |
d55e5bfc RD |
19273 | } |
19274 | ||
19275 | ||
36ed4f51 RD |
19276 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
19277 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
d55e5bfc RD |
19278 | return 1; |
19279 | } | |
19280 | ||
19281 | ||
36ed4f51 | 19282 | static PyObject *_wrap_ITALIC_FONT_get(void) { |
32fe5131 | 19283 | PyObject *pyobj = NULL; |
d55e5bfc | 19284 | |
36ed4f51 | 19285 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
d55e5bfc RD |
19286 | return pyobj; |
19287 | } | |
19288 | ||
19289 | ||
36ed4f51 RD |
19290 | static int _wrap_SWISS_FONT_set(PyObject *) { |
19291 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
d55e5bfc RD |
19292 | return 1; |
19293 | } | |
19294 | ||
19295 | ||
36ed4f51 | 19296 | static PyObject *_wrap_SWISS_FONT_get(void) { |
32fe5131 | 19297 | PyObject *pyobj = NULL; |
d55e5bfc | 19298 | |
36ed4f51 | 19299 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
d55e5bfc RD |
19300 | return pyobj; |
19301 | } | |
19302 | ||
19303 | ||
36ed4f51 RD |
19304 | static int _wrap_RED_PEN_set(PyObject *) { |
19305 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
d55e5bfc RD |
19306 | return 1; |
19307 | } | |
19308 | ||
19309 | ||
36ed4f51 | 19310 | static PyObject *_wrap_RED_PEN_get(void) { |
32fe5131 | 19311 | PyObject *pyobj = NULL; |
d55e5bfc | 19312 | |
36ed4f51 | 19313 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
d55e5bfc RD |
19314 | return pyobj; |
19315 | } | |
19316 | ||
19317 | ||
36ed4f51 RD |
19318 | static int _wrap_CYAN_PEN_set(PyObject *) { |
19319 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
d55e5bfc RD |
19320 | return 1; |
19321 | } | |
19322 | ||
19323 | ||
36ed4f51 | 19324 | static PyObject *_wrap_CYAN_PEN_get(void) { |
32fe5131 | 19325 | PyObject *pyobj = NULL; |
d55e5bfc | 19326 | |
36ed4f51 | 19327 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
d55e5bfc RD |
19328 | return pyobj; |
19329 | } | |
19330 | ||
19331 | ||
36ed4f51 RD |
19332 | static int _wrap_GREEN_PEN_set(PyObject *) { |
19333 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
19334 | return 1; | |
d55e5bfc RD |
19335 | } |
19336 | ||
19337 | ||
36ed4f51 | 19338 | static PyObject *_wrap_GREEN_PEN_get(void) { |
32fe5131 | 19339 | PyObject *pyobj = NULL; |
d55e5bfc | 19340 | |
36ed4f51 RD |
19341 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
19342 | return pyobj; | |
d55e5bfc RD |
19343 | } |
19344 | ||
19345 | ||
36ed4f51 RD |
19346 | static int _wrap_BLACK_PEN_set(PyObject *) { |
19347 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
19348 | return 1; | |
d55e5bfc RD |
19349 | } |
19350 | ||
19351 | ||
36ed4f51 | 19352 | static PyObject *_wrap_BLACK_PEN_get(void) { |
32fe5131 | 19353 | PyObject *pyobj = NULL; |
d55e5bfc | 19354 | |
36ed4f51 RD |
19355 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
19356 | return pyobj; | |
d55e5bfc RD |
19357 | } |
19358 | ||
19359 | ||
36ed4f51 RD |
19360 | static int _wrap_WHITE_PEN_set(PyObject *) { |
19361 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
19362 | return 1; | |
d55e5bfc RD |
19363 | } |
19364 | ||
19365 | ||
36ed4f51 | 19366 | static PyObject *_wrap_WHITE_PEN_get(void) { |
32fe5131 | 19367 | PyObject *pyobj = NULL; |
d55e5bfc | 19368 | |
36ed4f51 RD |
19369 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
19370 | return pyobj; | |
d55e5bfc RD |
19371 | } |
19372 | ||
19373 | ||
36ed4f51 RD |
19374 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
19375 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
19376 | return 1; | |
d55e5bfc RD |
19377 | } |
19378 | ||
19379 | ||
36ed4f51 | 19380 | static PyObject *_wrap_TRANSPARENT_PEN_get(void) { |
32fe5131 | 19381 | PyObject *pyobj = NULL; |
d55e5bfc | 19382 | |
36ed4f51 RD |
19383 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
19384 | return pyobj; | |
d55e5bfc RD |
19385 | } |
19386 | ||
19387 | ||
36ed4f51 RD |
19388 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
19389 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
19390 | return 1; | |
d55e5bfc RD |
19391 | } |
19392 | ||
19393 | ||
36ed4f51 | 19394 | static PyObject *_wrap_BLACK_DASHED_PEN_get(void) { |
32fe5131 | 19395 | PyObject *pyobj = NULL; |
d55e5bfc | 19396 | |
36ed4f51 RD |
19397 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
19398 | return pyobj; | |
d55e5bfc RD |
19399 | } |
19400 | ||
19401 | ||
36ed4f51 RD |
19402 | static int _wrap_GREY_PEN_set(PyObject *) { |
19403 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
19404 | return 1; | |
19405 | } | |
19406 | ||
19407 | ||
19408 | static PyObject *_wrap_GREY_PEN_get(void) { | |
32fe5131 | 19409 | PyObject *pyobj = NULL; |
d55e5bfc | 19410 | |
36ed4f51 RD |
19411 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
19412 | return pyobj; | |
d55e5bfc RD |
19413 | } |
19414 | ||
19415 | ||
36ed4f51 RD |
19416 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
19417 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
19418 | return 1; | |
d55e5bfc RD |
19419 | } |
19420 | ||
19421 | ||
36ed4f51 | 19422 | static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) { |
32fe5131 | 19423 | PyObject *pyobj = NULL; |
d55e5bfc | 19424 | |
36ed4f51 RD |
19425 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
19426 | return pyobj; | |
d55e5bfc RD |
19427 | } |
19428 | ||
19429 | ||
36ed4f51 RD |
19430 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
19431 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
19432 | return 1; | |
19433 | } | |
19434 | ||
19435 | ||
19436 | static PyObject *_wrap_LIGHT_GREY_PEN_get(void) { | |
32fe5131 | 19437 | PyObject *pyobj = NULL; |
d55e5bfc | 19438 | |
36ed4f51 RD |
19439 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
19440 | return pyobj; | |
d55e5bfc RD |
19441 | } |
19442 | ||
19443 | ||
36ed4f51 RD |
19444 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
19445 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
19446 | return 1; | |
d55e5bfc | 19447 | } |
d55e5bfc RD |
19448 | |
19449 | ||
36ed4f51 | 19450 | static PyObject *_wrap_BLUE_BRUSH_get(void) { |
32fe5131 | 19451 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19452 | |
19453 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19454 | return pyobj; | |
19455 | } | |
d55e5bfc | 19456 | |
36ed4f51 RD |
19457 | |
19458 | static int _wrap_GREEN_BRUSH_set(PyObject *) { | |
19459 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
19460 | return 1; | |
d55e5bfc | 19461 | } |
36ed4f51 RD |
19462 | |
19463 | ||
19464 | static PyObject *_wrap_GREEN_BRUSH_get(void) { | |
32fe5131 | 19465 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19466 | |
19467 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19468 | return pyobj; | |
d55e5bfc | 19469 | } |
36ed4f51 RD |
19470 | |
19471 | ||
19472 | static int _wrap_WHITE_BRUSH_set(PyObject *) { | |
19473 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
19474 | return 1; | |
d55e5bfc | 19475 | } |
36ed4f51 RD |
19476 | |
19477 | ||
19478 | static PyObject *_wrap_WHITE_BRUSH_get(void) { | |
32fe5131 | 19479 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19480 | |
19481 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19482 | return pyobj; | |
d55e5bfc | 19483 | } |
36ed4f51 RD |
19484 | |
19485 | ||
19486 | static int _wrap_BLACK_BRUSH_set(PyObject *) { | |
19487 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
19488 | return 1; | |
d55e5bfc | 19489 | } |
36ed4f51 RD |
19490 | |
19491 | ||
19492 | static PyObject *_wrap_BLACK_BRUSH_get(void) { | |
32fe5131 | 19493 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19494 | |
19495 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19496 | return pyobj; | |
d55e5bfc | 19497 | } |
36ed4f51 RD |
19498 | |
19499 | ||
19500 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { | |
19501 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
19502 | return 1; | |
d55e5bfc | 19503 | } |
36ed4f51 RD |
19504 | |
19505 | ||
19506 | static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) { | |
32fe5131 | 19507 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19508 | |
19509 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19510 | return pyobj; | |
d55e5bfc | 19511 | } |
36ed4f51 RD |
19512 | |
19513 | ||
19514 | static int _wrap_CYAN_BRUSH_set(PyObject *) { | |
19515 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
19516 | return 1; | |
d55e5bfc | 19517 | } |
36ed4f51 RD |
19518 | |
19519 | ||
19520 | static PyObject *_wrap_CYAN_BRUSH_get(void) { | |
32fe5131 | 19521 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19522 | |
19523 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19524 | return pyobj; | |
d55e5bfc | 19525 | } |
36ed4f51 RD |
19526 | |
19527 | ||
19528 | static int _wrap_RED_BRUSH_set(PyObject *) { | |
19529 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
19530 | return 1; | |
d55e5bfc | 19531 | } |
36ed4f51 RD |
19532 | |
19533 | ||
19534 | static PyObject *_wrap_RED_BRUSH_get(void) { | |
32fe5131 | 19535 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19536 | |
19537 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19538 | return pyobj; | |
d55e5bfc | 19539 | } |
36ed4f51 RD |
19540 | |
19541 | ||
19542 | static int _wrap_GREY_BRUSH_set(PyObject *) { | |
19543 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
19544 | return 1; | |
d55e5bfc | 19545 | } |
36ed4f51 RD |
19546 | |
19547 | ||
19548 | static PyObject *_wrap_GREY_BRUSH_get(void) { | |
32fe5131 | 19549 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19550 | |
19551 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19552 | return pyobj; | |
d55e5bfc | 19553 | } |
36ed4f51 RD |
19554 | |
19555 | ||
19556 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { | |
19557 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
19558 | return 1; | |
d55e5bfc | 19559 | } |
36ed4f51 RD |
19560 | |
19561 | ||
19562 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) { | |
32fe5131 | 19563 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19564 | |
19565 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19566 | return pyobj; | |
d55e5bfc | 19567 | } |
36ed4f51 RD |
19568 | |
19569 | ||
19570 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { | |
19571 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
19572 | return 1; | |
d55e5bfc | 19573 | } |
36ed4f51 RD |
19574 | |
19575 | ||
19576 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) { | |
32fe5131 | 19577 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19578 | |
19579 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19580 | return pyobj; | |
d55e5bfc | 19581 | } |
36ed4f51 RD |
19582 | |
19583 | ||
19584 | static int _wrap_BLACK_set(PyObject *) { | |
19585 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
19586 | return 1; | |
d55e5bfc | 19587 | } |
36ed4f51 RD |
19588 | |
19589 | ||
19590 | static PyObject *_wrap_BLACK_get(void) { | |
32fe5131 | 19591 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19592 | |
19593 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
19594 | return pyobj; | |
d55e5bfc | 19595 | } |
36ed4f51 RD |
19596 | |
19597 | ||
19598 | static int _wrap_WHITE_set(PyObject *) { | |
19599 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
19600 | return 1; | |
d55e5bfc | 19601 | } |
36ed4f51 RD |
19602 | |
19603 | ||
19604 | static PyObject *_wrap_WHITE_get(void) { | |
32fe5131 | 19605 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19606 | |
19607 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
19608 | return pyobj; | |
d55e5bfc | 19609 | } |
36ed4f51 RD |
19610 | |
19611 | ||
19612 | static int _wrap_RED_set(PyObject *) { | |
19613 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
19614 | return 1; | |
d55e5bfc | 19615 | } |
36ed4f51 RD |
19616 | |
19617 | ||
19618 | static PyObject *_wrap_RED_get(void) { | |
32fe5131 | 19619 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19620 | |
19621 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
19622 | return pyobj; | |
d55e5bfc | 19623 | } |
36ed4f51 RD |
19624 | |
19625 | ||
19626 | static int _wrap_BLUE_set(PyObject *) { | |
19627 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
19628 | return 1; | |
d55e5bfc | 19629 | } |
36ed4f51 RD |
19630 | |
19631 | ||
19632 | static PyObject *_wrap_BLUE_get(void) { | |
32fe5131 | 19633 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19634 | |
19635 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
19636 | return pyobj; | |
d55e5bfc | 19637 | } |
36ed4f51 RD |
19638 | |
19639 | ||
19640 | static int _wrap_GREEN_set(PyObject *) { | |
19641 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
19642 | return 1; | |
d55e5bfc | 19643 | } |
36ed4f51 RD |
19644 | |
19645 | ||
19646 | static PyObject *_wrap_GREEN_get(void) { | |
32fe5131 | 19647 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19648 | |
19649 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
19650 | return pyobj; | |
d55e5bfc | 19651 | } |
36ed4f51 RD |
19652 | |
19653 | ||
19654 | static int _wrap_CYAN_set(PyObject *) { | |
19655 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
19656 | return 1; | |
d55e5bfc | 19657 | } |
36ed4f51 RD |
19658 | |
19659 | ||
19660 | static PyObject *_wrap_CYAN_get(void) { | |
32fe5131 | 19661 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19662 | |
19663 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
19664 | return pyobj; | |
d55e5bfc | 19665 | } |
36ed4f51 RD |
19666 | |
19667 | ||
19668 | static int _wrap_LIGHT_GREY_set(PyObject *) { | |
19669 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
19670 | return 1; | |
d55e5bfc | 19671 | } |
36ed4f51 RD |
19672 | |
19673 | ||
19674 | static PyObject *_wrap_LIGHT_GREY_get(void) { | |
32fe5131 | 19675 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19676 | |
19677 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
19678 | return pyobj; | |
d55e5bfc | 19679 | } |
36ed4f51 RD |
19680 | |
19681 | ||
19682 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { | |
19683 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
19684 | return 1; | |
d55e5bfc | 19685 | } |
36ed4f51 RD |
19686 | |
19687 | ||
19688 | static PyObject *_wrap_STANDARD_CURSOR_get(void) { | |
32fe5131 | 19689 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19690 | |
19691 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
19692 | return pyobj; | |
d55e5bfc | 19693 | } |
36ed4f51 RD |
19694 | |
19695 | ||
19696 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { | |
19697 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
19698 | return 1; | |
d55e5bfc | 19699 | } |
36ed4f51 RD |
19700 | |
19701 | ||
19702 | static PyObject *_wrap_HOURGLASS_CURSOR_get(void) { | |
32fe5131 | 19703 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19704 | |
19705 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
19706 | return pyobj; | |
d55e5bfc | 19707 | } |
36ed4f51 RD |
19708 | |
19709 | ||
19710 | static int _wrap_CROSS_CURSOR_set(PyObject *) { | |
19711 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
19712 | return 1; | |
d55e5bfc | 19713 | } |
36ed4f51 RD |
19714 | |
19715 | ||
19716 | static PyObject *_wrap_CROSS_CURSOR_get(void) { | |
32fe5131 | 19717 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19718 | |
19719 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
19720 | return pyobj; | |
d55e5bfc | 19721 | } |
36ed4f51 RD |
19722 | |
19723 | ||
19724 | static int _wrap_NullBitmap_set(PyObject *) { | |
19725 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
19726 | return 1; | |
d55e5bfc | 19727 | } |
36ed4f51 RD |
19728 | |
19729 | ||
19730 | static PyObject *_wrap_NullBitmap_get(void) { | |
32fe5131 | 19731 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19732 | |
19733 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
19734 | return pyobj; | |
d55e5bfc | 19735 | } |
36ed4f51 RD |
19736 | |
19737 | ||
19738 | static int _wrap_NullIcon_set(PyObject *) { | |
19739 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
19740 | return 1; | |
d55e5bfc | 19741 | } |
36ed4f51 RD |
19742 | |
19743 | ||
19744 | static PyObject *_wrap_NullIcon_get(void) { | |
32fe5131 | 19745 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19746 | |
19747 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
19748 | return pyobj; | |
d55e5bfc | 19749 | } |
36ed4f51 RD |
19750 | |
19751 | ||
19752 | static int _wrap_NullCursor_set(PyObject *) { | |
19753 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
19754 | return 1; | |
d55e5bfc | 19755 | } |
36ed4f51 RD |
19756 | |
19757 | ||
19758 | static PyObject *_wrap_NullCursor_get(void) { | |
32fe5131 | 19759 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19760 | |
19761 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
19762 | return pyobj; | |
d55e5bfc | 19763 | } |
36ed4f51 RD |
19764 | |
19765 | ||
19766 | static int _wrap_NullPen_set(PyObject *) { | |
19767 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
19768 | return 1; | |
d55e5bfc | 19769 | } |
36ed4f51 RD |
19770 | |
19771 | ||
19772 | static PyObject *_wrap_NullPen_get(void) { | |
32fe5131 | 19773 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19774 | |
19775 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
19776 | return pyobj; | |
d55e5bfc | 19777 | } |
36ed4f51 RD |
19778 | |
19779 | ||
19780 | static int _wrap_NullBrush_set(PyObject *) { | |
19781 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
19782 | return 1; | |
d55e5bfc | 19783 | } |
36ed4f51 RD |
19784 | |
19785 | ||
19786 | static PyObject *_wrap_NullBrush_get(void) { | |
32fe5131 | 19787 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19788 | |
19789 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
19790 | return pyobj; | |
d55e5bfc | 19791 | } |
36ed4f51 RD |
19792 | |
19793 | ||
19794 | static int _wrap_NullPalette_set(PyObject *) { | |
19795 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
19796 | return 1; | |
d55e5bfc | 19797 | } |
36ed4f51 RD |
19798 | |
19799 | ||
19800 | static PyObject *_wrap_NullPalette_get(void) { | |
32fe5131 | 19801 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19802 | |
19803 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
19804 | return pyobj; | |
d55e5bfc | 19805 | } |
36ed4f51 RD |
19806 | |
19807 | ||
19808 | static int _wrap_NullFont_set(PyObject *) { | |
19809 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
19810 | return 1; | |
d55e5bfc | 19811 | } |
36ed4f51 RD |
19812 | |
19813 | ||
19814 | static PyObject *_wrap_NullFont_get(void) { | |
32fe5131 | 19815 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19816 | |
19817 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
19818 | return pyobj; | |
d55e5bfc | 19819 | } |
36ed4f51 RD |
19820 | |
19821 | ||
19822 | static int _wrap_NullColour_set(PyObject *) { | |
19823 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
19824 | return 1; | |
d55e5bfc | 19825 | } |
36ed4f51 RD |
19826 | |
19827 | ||
19828 | static PyObject *_wrap_NullColour_get(void) { | |
32fe5131 | 19829 | PyObject *pyobj = NULL; |
36ed4f51 RD |
19830 | |
19831 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
19832 | return pyobj; | |
d55e5bfc | 19833 | } |
36ed4f51 RD |
19834 | |
19835 | ||
19836 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 19837 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19838 | wxPenList *arg1 = (wxPenList *) 0 ; |
19839 | wxPen *arg2 = (wxPen *) 0 ; | |
19840 | PyObject * obj0 = 0 ; | |
19841 | PyObject * obj1 = 0 ; | |
19842 | char *kwnames[] = { | |
19843 | (char *) "self",(char *) "pen", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
19847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); | |
19848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19849 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19850 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19851 | { | |
19852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19853 | (arg1)->AddPen(arg2); | |
19854 | ||
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | Py_INCREF(Py_None); resultobj = Py_None; | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
d55e5bfc | 19862 | } |
36ed4f51 RD |
19863 | |
19864 | ||
19865 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 19866 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19867 | wxPenList *arg1 = (wxPenList *) 0 ; |
19868 | wxColour *arg2 = 0 ; | |
19869 | int arg3 ; | |
19870 | int arg4 ; | |
19871 | wxPen *result; | |
19872 | wxColour temp2 ; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | PyObject * obj1 = 0 ; | |
19875 | PyObject * obj2 = 0 ; | |
19876 | PyObject * obj3 = 0 ; | |
19877 | char *kwnames[] = { | |
19878 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
19879 | }; | |
19880 | ||
19881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); | |
19883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19884 | { | |
19885 | arg2 = &temp2; | |
19886 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19887 | } | |
19888 | { | |
32fe5131 | 19889 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
19890 | if (SWIG_arg_fail(3)) SWIG_fail; |
19891 | } | |
19892 | { | |
32fe5131 | 19893 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
19894 | if (SWIG_arg_fail(4)) SWIG_fail; |
19895 | } | |
19896 | { | |
19897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19898 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
19899 | ||
19900 | wxPyEndAllowThreads(__tstate); | |
19901 | if (PyErr_Occurred()) SWIG_fail; | |
19902 | } | |
19903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
19904 | return resultobj; | |
19905 | fail: | |
19906 | return NULL; | |
d55e5bfc | 19907 | } |
36ed4f51 RD |
19908 | |
19909 | ||
19910 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 19911 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19912 | wxPenList *arg1 = (wxPenList *) 0 ; |
19913 | wxPen *arg2 = (wxPen *) 0 ; | |
19914 | PyObject * obj0 = 0 ; | |
19915 | PyObject * obj1 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self",(char *) "pen", NULL | |
19918 | }; | |
19919 | ||
19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
19921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); | |
19922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19923 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19924 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19925 | { | |
19926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19927 | (arg1)->RemovePen(arg2); | |
19928 | ||
19929 | wxPyEndAllowThreads(__tstate); | |
19930 | if (PyErr_Occurred()) SWIG_fail; | |
19931 | } | |
19932 | Py_INCREF(Py_None); resultobj = Py_None; | |
19933 | return resultobj; | |
19934 | fail: | |
19935 | return NULL; | |
d55e5bfc | 19936 | } |
36ed4f51 RD |
19937 | |
19938 | ||
19939 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 19940 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19941 | wxPenList *arg1 = (wxPenList *) 0 ; |
19942 | int result; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
19949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); | |
19950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = (int)(arg1)->GetCount(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | { | |
32fe5131 | 19959 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
19960 | } |
19961 | return resultobj; | |
19962 | fail: | |
19963 | return NULL; | |
d55e5bfc | 19964 | } |
36ed4f51 RD |
19965 | |
19966 | ||
19967 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { | |
19968 | PyObject *obj; | |
19969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19970 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
19971 | Py_INCREF(obj); | |
19972 | return Py_BuildValue((char *)""); | |
d55e5bfc | 19973 | } |
36ed4f51 | 19974 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19975 | PyObject *resultobj = NULL; |
36ed4f51 RD |
19976 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
19977 | wxBrush *arg2 = (wxBrush *) 0 ; | |
19978 | PyObject * obj0 = 0 ; | |
19979 | PyObject * obj1 = 0 ; | |
19980 | char *kwnames[] = { | |
19981 | (char *) "self",(char *) "brush", NULL | |
19982 | }; | |
19983 | ||
19984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
19985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); | |
19986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19987 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
19988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19989 | { | |
19990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19991 | (arg1)->AddBrush(arg2); | |
19992 | ||
19993 | wxPyEndAllowThreads(__tstate); | |
19994 | if (PyErr_Occurred()) SWIG_fail; | |
19995 | } | |
19996 | Py_INCREF(Py_None); resultobj = Py_None; | |
19997 | return resultobj; | |
19998 | fail: | |
19999 | return NULL; | |
d55e5bfc | 20000 | } |
36ed4f51 RD |
20001 | |
20002 | ||
20003 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20004 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20005 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
20006 | wxColour *arg2 = 0 ; | |
bb2ef2cc | 20007 | int arg3 = (int) wxSOLID ; |
36ed4f51 RD |
20008 | wxBrush *result; |
20009 | wxColour temp2 ; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | PyObject * obj1 = 0 ; | |
20012 | PyObject * obj2 = 0 ; | |
20013 | char *kwnames[] = { | |
20014 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
20015 | }; | |
20016 | ||
bb2ef2cc | 20017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
20018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
20019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20020 | { | |
20021 | arg2 = &temp2; | |
20022 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20023 | } | |
bb2ef2cc RD |
20024 | if (obj2) { |
20025 | { | |
32fe5131 | 20026 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
bb2ef2cc RD |
20027 | if (SWIG_arg_fail(3)) SWIG_fail; |
20028 | } | |
36ed4f51 RD |
20029 | } |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
20033 | ||
20034 | wxPyEndAllowThreads(__tstate); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | return NULL; | |
d55e5bfc | 20041 | } |
36ed4f51 RD |
20042 | |
20043 | ||
20044 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20045 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20046 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
20047 | wxBrush *arg2 = (wxBrush *) 0 ; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | PyObject * obj1 = 0 ; | |
20050 | char *kwnames[] = { | |
20051 | (char *) "self",(char *) "brush", NULL | |
20052 | }; | |
20053 | ||
20054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
20055 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); | |
20056 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20057 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
20058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20059 | { | |
20060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20061 | (arg1)->RemoveBrush(arg2); | |
20062 | ||
20063 | wxPyEndAllowThreads(__tstate); | |
20064 | if (PyErr_Occurred()) SWIG_fail; | |
20065 | } | |
20066 | Py_INCREF(Py_None); resultobj = Py_None; | |
20067 | return resultobj; | |
20068 | fail: | |
20069 | return NULL; | |
d55e5bfc | 20070 | } |
36ed4f51 RD |
20071 | |
20072 | ||
20073 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20074 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20075 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
20076 | int result; | |
20077 | PyObject * obj0 = 0 ; | |
20078 | char *kwnames[] = { | |
20079 | (char *) "self", NULL | |
20080 | }; | |
20081 | ||
20082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
20083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); | |
20084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20085 | { | |
20086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20087 | result = (int)(arg1)->GetCount(); | |
20088 | ||
20089 | wxPyEndAllowThreads(__tstate); | |
20090 | if (PyErr_Occurred()) SWIG_fail; | |
20091 | } | |
20092 | { | |
32fe5131 | 20093 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
20094 | } |
20095 | return resultobj; | |
20096 | fail: | |
20097 | return NULL; | |
d55e5bfc | 20098 | } |
36ed4f51 RD |
20099 | |
20100 | ||
20101 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { | |
20102 | PyObject *obj; | |
20103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20104 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
20105 | Py_INCREF(obj); | |
20106 | return Py_BuildValue((char *)""); | |
d55e5bfc | 20107 | } |
36ed4f51 | 20108 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20109 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20110 | wxColourDatabase *result; |
20111 | char *kwnames[] = { | |
20112 | NULL | |
20113 | }; | |
20114 | ||
20115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
20116 | { | |
20117 | if (!wxPyCheckForApp()) SWIG_fail; | |
20118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20119 | result = (wxColourDatabase *)new wxColourDatabase(); | |
20120 | ||
20121 | wxPyEndAllowThreads(__tstate); | |
20122 | if (PyErr_Occurred()) SWIG_fail; | |
20123 | } | |
20124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
20125 | return resultobj; | |
20126 | fail: | |
20127 | return NULL; | |
d55e5bfc | 20128 | } |
36ed4f51 RD |
20129 | |
20130 | ||
20131 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20132 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20133 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20134 | PyObject * obj0 = 0 ; | |
20135 | char *kwnames[] = { | |
20136 | (char *) "self", NULL | |
20137 | }; | |
20138 | ||
20139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
20140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); | |
20141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20142 | { | |
20143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20144 | delete arg1; | |
20145 | ||
20146 | wxPyEndAllowThreads(__tstate); | |
20147 | if (PyErr_Occurred()) SWIG_fail; | |
20148 | } | |
20149 | Py_INCREF(Py_None); resultobj = Py_None; | |
20150 | return resultobj; | |
20151 | fail: | |
20152 | return NULL; | |
d55e5bfc | 20153 | } |
36ed4f51 RD |
20154 | |
20155 | ||
20156 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20157 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20158 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20159 | wxString *arg2 = 0 ; | |
20160 | wxColour result; | |
20161 | bool temp2 = false ; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | char *kwnames[] = { | |
20165 | (char *) "self",(char *) "name", NULL | |
20166 | }; | |
20167 | ||
20168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
20169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); | |
20170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20171 | { | |
20172 | arg2 = wxString_in_helper(obj1); | |
20173 | if (arg2 == NULL) SWIG_fail; | |
20174 | temp2 = true; | |
20175 | } | |
20176 | { | |
20177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20178 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
20179 | ||
20180 | wxPyEndAllowThreads(__tstate); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | { | |
20184 | wxColour * resultptr; | |
32fe5131 | 20185 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20187 | } | |
20188 | { | |
20189 | if (temp2) | |
20190 | delete arg2; | |
20191 | } | |
20192 | return resultobj; | |
20193 | fail: | |
20194 | { | |
20195 | if (temp2) | |
20196 | delete arg2; | |
20197 | } | |
20198 | return NULL; | |
d55e5bfc | 20199 | } |
36ed4f51 RD |
20200 | |
20201 | ||
20202 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20203 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20204 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20205 | wxColour *arg2 = 0 ; | |
20206 | wxString result; | |
20207 | wxColour temp2 ; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | PyObject * obj1 = 0 ; | |
20210 | char *kwnames[] = { | |
20211 | (char *) "self",(char *) "colour", NULL | |
20212 | }; | |
20213 | ||
20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
20215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); | |
20216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20217 | { | |
20218 | arg2 = &temp2; | |
20219 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20220 | } | |
20221 | { | |
20222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20223 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
20224 | ||
20225 | wxPyEndAllowThreads(__tstate); | |
20226 | if (PyErr_Occurred()) SWIG_fail; | |
20227 | } | |
20228 | { | |
20229 | #if wxUSE_UNICODE | |
20230 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20231 | #else | |
20232 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20233 | #endif | |
20234 | } | |
20235 | return resultobj; | |
20236 | fail: | |
20237 | return NULL; | |
d55e5bfc | 20238 | } |
36ed4f51 RD |
20239 | |
20240 | ||
20241 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20242 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20243 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20244 | wxString *arg2 = 0 ; | |
20245 | wxColour *arg3 = 0 ; | |
20246 | bool temp2 = false ; | |
20247 | wxColour temp3 ; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | PyObject * obj1 = 0 ; | |
20250 | PyObject * obj2 = 0 ; | |
20251 | char *kwnames[] = { | |
20252 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
20253 | }; | |
20254 | ||
20255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); | |
20257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20258 | { | |
20259 | arg2 = wxString_in_helper(obj1); | |
20260 | if (arg2 == NULL) SWIG_fail; | |
20261 | temp2 = true; | |
20262 | } | |
20263 | { | |
20264 | arg3 = &temp3; | |
20265 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
20266 | } | |
20267 | { | |
20268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20269 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
20270 | ||
20271 | wxPyEndAllowThreads(__tstate); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
20274 | Py_INCREF(Py_None); resultobj = Py_None; | |
20275 | { | |
20276 | if (temp2) | |
20277 | delete arg2; | |
20278 | } | |
20279 | return resultobj; | |
20280 | fail: | |
20281 | { | |
20282 | if (temp2) | |
20283 | delete arg2; | |
20284 | } | |
20285 | return NULL; | |
d55e5bfc | 20286 | } |
36ed4f51 RD |
20287 | |
20288 | ||
20289 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20290 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20291 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20292 | wxString *arg2 = 0 ; | |
20293 | int arg3 ; | |
20294 | int arg4 ; | |
20295 | int arg5 ; | |
20296 | bool temp2 = false ; | |
20297 | PyObject * obj0 = 0 ; | |
20298 | PyObject * obj1 = 0 ; | |
20299 | PyObject * obj2 = 0 ; | |
20300 | PyObject * obj3 = 0 ; | |
20301 | PyObject * obj4 = 0 ; | |
20302 | char *kwnames[] = { | |
20303 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
20304 | }; | |
20305 | ||
20306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
20307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); | |
20308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20309 | { | |
20310 | arg2 = wxString_in_helper(obj1); | |
20311 | if (arg2 == NULL) SWIG_fail; | |
20312 | temp2 = true; | |
20313 | } | |
20314 | { | |
32fe5131 | 20315 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
20316 | if (SWIG_arg_fail(3)) SWIG_fail; |
20317 | } | |
20318 | { | |
32fe5131 | 20319 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
20320 | if (SWIG_arg_fail(4)) SWIG_fail; |
20321 | } | |
20322 | { | |
32fe5131 | 20323 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
20324 | if (SWIG_arg_fail(5)) SWIG_fail; |
20325 | } | |
20326 | { | |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
20333 | Py_INCREF(Py_None); resultobj = Py_None; | |
20334 | { | |
20335 | if (temp2) | |
20336 | delete arg2; | |
20337 | } | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | { | |
20341 | if (temp2) | |
20342 | delete arg2; | |
20343 | } | |
20344 | return NULL; | |
d55e5bfc | 20345 | } |
36ed4f51 RD |
20346 | |
20347 | ||
20348 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { | |
20349 | PyObject *obj; | |
20350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20351 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
20352 | Py_INCREF(obj); | |
20353 | return Py_BuildValue((char *)""); | |
d55e5bfc | 20354 | } |
36ed4f51 | 20355 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20356 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20357 | wxFontList *arg1 = (wxFontList *) 0 ; |
20358 | wxFont *arg2 = (wxFont *) 0 ; | |
20359 | PyObject * obj0 = 0 ; | |
20360 | PyObject * obj1 = 0 ; | |
20361 | char *kwnames[] = { | |
20362 | (char *) "self",(char *) "font", NULL | |
20363 | }; | |
20364 | ||
20365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
20366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); | |
20367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20368 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
20369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | (arg1)->AddFont(arg2); | |
20373 | ||
20374 | wxPyEndAllowThreads(__tstate); | |
20375 | if (PyErr_Occurred()) SWIG_fail; | |
20376 | } | |
20377 | Py_INCREF(Py_None); resultobj = Py_None; | |
20378 | return resultobj; | |
20379 | fail: | |
20380 | return NULL; | |
d55e5bfc | 20381 | } |
36ed4f51 RD |
20382 | |
20383 | ||
20384 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20385 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20386 | wxFontList *arg1 = (wxFontList *) 0 ; |
20387 | int arg2 ; | |
20388 | int arg3 ; | |
20389 | int arg4 ; | |
20390 | int arg5 ; | |
20391 | bool arg6 = (bool) false ; | |
20392 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
20393 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20394 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
20395 | wxFont *result; | |
20396 | bool temp7 = false ; | |
20397 | PyObject * obj0 = 0 ; | |
20398 | PyObject * obj1 = 0 ; | |
20399 | PyObject * obj2 = 0 ; | |
20400 | PyObject * obj3 = 0 ; | |
20401 | PyObject * obj4 = 0 ; | |
20402 | PyObject * obj5 = 0 ; | |
20403 | PyObject * obj6 = 0 ; | |
20404 | PyObject * obj7 = 0 ; | |
20405 | char *kwnames[] = { | |
20406 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
20407 | }; | |
20408 | ||
20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
20410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); | |
20411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20412 | { | |
32fe5131 | 20413 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
36ed4f51 RD |
20414 | if (SWIG_arg_fail(2)) SWIG_fail; |
20415 | } | |
20416 | { | |
32fe5131 | 20417 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
36ed4f51 RD |
20418 | if (SWIG_arg_fail(3)) SWIG_fail; |
20419 | } | |
20420 | { | |
32fe5131 | 20421 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
20422 | if (SWIG_arg_fail(4)) SWIG_fail; |
20423 | } | |
20424 | { | |
32fe5131 | 20425 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
36ed4f51 RD |
20426 | if (SWIG_arg_fail(5)) SWIG_fail; |
20427 | } | |
20428 | if (obj5) { | |
20429 | { | |
32fe5131 | 20430 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
36ed4f51 RD |
20431 | if (SWIG_arg_fail(6)) SWIG_fail; |
20432 | } | |
20433 | } | |
20434 | if (obj6) { | |
20435 | { | |
20436 | arg7 = wxString_in_helper(obj6); | |
20437 | if (arg7 == NULL) SWIG_fail; | |
20438 | temp7 = true; | |
20439 | } | |
20440 | } | |
20441 | if (obj7) { | |
20442 | { | |
32fe5131 | 20443 | arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7)); |
36ed4f51 RD |
20444 | if (SWIG_arg_fail(8)) SWIG_fail; |
20445 | } | |
20446 | } | |
20447 | { | |
20448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20449 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
36ed4f51 RD |
20450 | |
20451 | wxPyEndAllowThreads(__tstate); | |
20452 | if (PyErr_Occurred()) SWIG_fail; | |
20453 | } | |
20454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
20455 | { | |
20456 | if (temp7) | |
20457 | delete arg7; | |
20458 | } | |
20459 | return resultobj; | |
20460 | fail: | |
20461 | { | |
20462 | if (temp7) | |
20463 | delete arg7; | |
20464 | } | |
20465 | return NULL; | |
d55e5bfc | 20466 | } |
36ed4f51 RD |
20467 | |
20468 | ||
20469 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20470 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20471 | wxFontList *arg1 = (wxFontList *) 0 ; |
20472 | wxFont *arg2 = (wxFont *) 0 ; | |
20473 | PyObject * obj0 = 0 ; | |
20474 | PyObject * obj1 = 0 ; | |
20475 | char *kwnames[] = { | |
20476 | (char *) "self",(char *) "font", NULL | |
20477 | }; | |
20478 | ||
20479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
20480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); | |
20481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20482 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
20483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20484 | { | |
20485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20486 | (arg1)->RemoveFont(arg2); | |
20487 | ||
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
20491 | Py_INCREF(Py_None); resultobj = Py_None; | |
20492 | return resultobj; | |
20493 | fail: | |
20494 | return NULL; | |
d55e5bfc | 20495 | } |
36ed4f51 RD |
20496 | |
20497 | ||
20498 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20499 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20500 | wxFontList *arg1 = (wxFontList *) 0 ; |
20501 | int result; | |
20502 | PyObject * obj0 = 0 ; | |
20503 | char *kwnames[] = { | |
20504 | (char *) "self", NULL | |
20505 | }; | |
20506 | ||
20507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
20508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); | |
20509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20510 | { | |
20511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20512 | result = (int)(arg1)->GetCount(); | |
20513 | ||
20514 | wxPyEndAllowThreads(__tstate); | |
20515 | if (PyErr_Occurred()) SWIG_fail; | |
20516 | } | |
20517 | { | |
32fe5131 | 20518 | resultobj = SWIG_From_int(static_cast<int >(result)); |
36ed4f51 RD |
20519 | } |
20520 | return resultobj; | |
20521 | fail: | |
20522 | return NULL; | |
d55e5bfc | 20523 | } |
36ed4f51 RD |
20524 | |
20525 | ||
20526 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { | |
20527 | PyObject *obj; | |
20528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20529 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
20530 | Py_INCREF(obj); | |
20531 | return Py_BuildValue((char *)""); | |
d55e5bfc | 20532 | } |
36ed4f51 RD |
20533 | static int _wrap_TheFontList_set(PyObject *) { |
20534 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
20535 | return 1; | |
d55e5bfc | 20536 | } |
36ed4f51 RD |
20537 | |
20538 | ||
20539 | static PyObject *_wrap_TheFontList_get(void) { | |
32fe5131 | 20540 | PyObject *pyobj = NULL; |
36ed4f51 RD |
20541 | |
20542 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
20543 | return pyobj; | |
d55e5bfc | 20544 | } |
36ed4f51 RD |
20545 | |
20546 | ||
20547 | static int _wrap_ThePenList_set(PyObject *) { | |
20548 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
20549 | return 1; | |
d55e5bfc | 20550 | } |
36ed4f51 RD |
20551 | |
20552 | ||
20553 | static PyObject *_wrap_ThePenList_get(void) { | |
32fe5131 | 20554 | PyObject *pyobj = NULL; |
36ed4f51 RD |
20555 | |
20556 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
20557 | return pyobj; | |
d55e5bfc | 20558 | } |
36ed4f51 RD |
20559 | |
20560 | ||
20561 | static int _wrap_TheBrushList_set(PyObject *) { | |
20562 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
20563 | return 1; | |
d55e5bfc | 20564 | } |
36ed4f51 RD |
20565 | |
20566 | ||
20567 | static PyObject *_wrap_TheBrushList_get(void) { | |
32fe5131 | 20568 | PyObject *pyobj = NULL; |
36ed4f51 RD |
20569 | |
20570 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
20571 | return pyobj; | |
d55e5bfc | 20572 | } |
36ed4f51 RD |
20573 | |
20574 | ||
20575 | static int _wrap_TheColourDatabase_set(PyObject *) { | |
20576 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
20577 | return 1; | |
d55e5bfc | 20578 | } |
36ed4f51 RD |
20579 | |
20580 | ||
20581 | static PyObject *_wrap_TheColourDatabase_get(void) { | |
32fe5131 | 20582 | PyObject *pyobj = NULL; |
36ed4f51 RD |
20583 | |
20584 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
20585 | return pyobj; | |
d55e5bfc | 20586 | } |
36ed4f51 RD |
20587 | |
20588 | ||
20589 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20590 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20591 | wxEffects *result; |
20592 | char *kwnames[] = { | |
20593 | NULL | |
20594 | }; | |
20595 | ||
20596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
20597 | { | |
20598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20599 | result = (wxEffects *)new wxEffects(); | |
20600 | ||
20601 | wxPyEndAllowThreads(__tstate); | |
20602 | if (PyErr_Occurred()) SWIG_fail; | |
20603 | } | |
20604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
20605 | return resultobj; | |
20606 | fail: | |
20607 | return NULL; | |
d55e5bfc | 20608 | } |
36ed4f51 RD |
20609 | |
20610 | ||
20611 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20612 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20613 | wxEffects *arg1 = (wxEffects *) 0 ; |
20614 | wxColour result; | |
20615 | PyObject * obj0 = 0 ; | |
20616 | char *kwnames[] = { | |
20617 | (char *) "self", NULL | |
20618 | }; | |
20619 | ||
20620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
20621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20623 | { | |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | { | |
20631 | wxColour * resultptr; | |
32fe5131 | 20632 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20634 | } | |
20635 | return resultobj; | |
20636 | fail: | |
20637 | return NULL; | |
d55e5bfc | 20638 | } |
36ed4f51 RD |
20639 | |
20640 | ||
20641 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20642 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20643 | wxEffects *arg1 = (wxEffects *) 0 ; |
20644 | wxColour result; | |
20645 | PyObject * obj0 = 0 ; | |
20646 | char *kwnames[] = { | |
20647 | (char *) "self", NULL | |
20648 | }; | |
20649 | ||
20650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
20651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20653 | { | |
20654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20655 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | { | |
20661 | wxColour * resultptr; | |
32fe5131 | 20662 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20664 | } | |
20665 | return resultobj; | |
20666 | fail: | |
20667 | return NULL; | |
d55e5bfc | 20668 | } |
36ed4f51 RD |
20669 | |
20670 | ||
20671 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20672 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20673 | wxEffects *arg1 = (wxEffects *) 0 ; |
20674 | wxColour result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | char *kwnames[] = { | |
20677 | (char *) "self", NULL | |
20678 | }; | |
20679 | ||
20680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
20681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
20686 | ||
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
20690 | { | |
20691 | wxColour * resultptr; | |
32fe5131 | 20692 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20694 | } | |
20695 | return resultobj; | |
20696 | fail: | |
20697 | return NULL; | |
d55e5bfc | 20698 | } |
36ed4f51 RD |
20699 | |
20700 | ||
20701 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20702 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20703 | wxEffects *arg1 = (wxEffects *) 0 ; |
20704 | wxColour result; | |
20705 | PyObject * obj0 = 0 ; | |
20706 | char *kwnames[] = { | |
20707 | (char *) "self", NULL | |
20708 | }; | |
20709 | ||
20710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
20711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20713 | { | |
20714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20715 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
20716 | ||
20717 | wxPyEndAllowThreads(__tstate); | |
20718 | if (PyErr_Occurred()) SWIG_fail; | |
20719 | } | |
20720 | { | |
20721 | wxColour * resultptr; | |
32fe5131 | 20722 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20724 | } | |
20725 | return resultobj; | |
20726 | fail: | |
20727 | return NULL; | |
d55e5bfc | 20728 | } |
36ed4f51 RD |
20729 | |
20730 | ||
20731 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20732 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20733 | wxEffects *arg1 = (wxEffects *) 0 ; |
20734 | wxColour result; | |
20735 | PyObject * obj0 = 0 ; | |
20736 | char *kwnames[] = { | |
20737 | (char *) "self", NULL | |
20738 | }; | |
20739 | ||
20740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
20741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20743 | { | |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20745 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
20746 | ||
20747 | wxPyEndAllowThreads(__tstate); | |
20748 | if (PyErr_Occurred()) SWIG_fail; | |
20749 | } | |
20750 | { | |
20751 | wxColour * resultptr; | |
32fe5131 | 20752 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
36ed4f51 RD |
20753 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
20754 | } | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | return NULL; | |
d55e5bfc | 20758 | } |
36ed4f51 RD |
20759 | |
20760 | ||
20761 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20762 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20763 | wxEffects *arg1 = (wxEffects *) 0 ; |
20764 | wxColour *arg2 = 0 ; | |
20765 | wxColour temp2 ; | |
20766 | PyObject * obj0 = 0 ; | |
20767 | PyObject * obj1 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "self",(char *) "c", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
20773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20775 | { | |
20776 | arg2 = &temp2; | |
20777 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20778 | } | |
20779 | { | |
20780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20781 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
20782 | ||
20783 | wxPyEndAllowThreads(__tstate); | |
20784 | if (PyErr_Occurred()) SWIG_fail; | |
20785 | } | |
20786 | Py_INCREF(Py_None); resultobj = Py_None; | |
20787 | return resultobj; | |
20788 | fail: | |
20789 | return NULL; | |
d55e5bfc | 20790 | } |
36ed4f51 RD |
20791 | |
20792 | ||
20793 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20794 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20795 | wxEffects *arg1 = (wxEffects *) 0 ; |
20796 | wxColour *arg2 = 0 ; | |
20797 | wxColour temp2 ; | |
20798 | PyObject * obj0 = 0 ; | |
20799 | PyObject * obj1 = 0 ; | |
20800 | char *kwnames[] = { | |
20801 | (char *) "self",(char *) "c", NULL | |
20802 | }; | |
20803 | ||
20804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
20805 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20807 | { | |
20808 | arg2 = &temp2; | |
20809 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20810 | } | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | Py_INCREF(Py_None); resultobj = Py_None; | |
20819 | return resultobj; | |
20820 | fail: | |
20821 | return NULL; | |
d55e5bfc | 20822 | } |
d55e5bfc RD |
20823 | |
20824 | ||
36ed4f51 | 20825 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20826 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20827 | wxEffects *arg1 = (wxEffects *) 0 ; |
20828 | wxColour *arg2 = 0 ; | |
20829 | wxColour temp2 ; | |
20830 | PyObject * obj0 = 0 ; | |
20831 | PyObject * obj1 = 0 ; | |
20832 | char *kwnames[] = { | |
20833 | (char *) "self",(char *) "c", NULL | |
20834 | }; | |
20835 | ||
20836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
20837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20839 | { | |
20840 | arg2 = &temp2; | |
20841 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20842 | } | |
20843 | { | |
20844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20845 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
20850 | Py_INCREF(Py_None); resultobj = Py_None; | |
20851 | return resultobj; | |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
d55e5bfc | 20855 | |
d55e5bfc | 20856 | |
36ed4f51 | 20857 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20858 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20859 | wxEffects *arg1 = (wxEffects *) 0 ; |
20860 | wxColour *arg2 = 0 ; | |
20861 | wxColour temp2 ; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | PyObject * obj1 = 0 ; | |
20864 | char *kwnames[] = { | |
20865 | (char *) "self",(char *) "c", NULL | |
20866 | }; | |
20867 | ||
20868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
20869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20871 | { | |
20872 | arg2 = &temp2; | |
20873 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20874 | } | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
20878 | ||
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | Py_INCREF(Py_None); resultobj = Py_None; | |
20883 | return resultobj; | |
20884 | fail: | |
20885 | return NULL; | |
d55e5bfc | 20886 | } |
d55e5bfc | 20887 | |
36ed4f51 RD |
20888 | |
20889 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20890 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20891 | wxEffects *arg1 = (wxEffects *) 0 ; |
20892 | wxColour *arg2 = 0 ; | |
20893 | wxColour temp2 ; | |
20894 | PyObject * obj0 = 0 ; | |
20895 | PyObject * obj1 = 0 ; | |
20896 | char *kwnames[] = { | |
20897 | (char *) "self",(char *) "c", NULL | |
20898 | }; | |
d55e5bfc | 20899 | |
36ed4f51 RD |
20900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; |
20901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20903 | { | |
20904 | arg2 = &temp2; | |
20905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 20906 | } |
36ed4f51 RD |
20907 | { |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
20910 | ||
20911 | wxPyEndAllowThreads(__tstate); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
20914 | Py_INCREF(Py_None); resultobj = Py_None; | |
20915 | return resultobj; | |
20916 | fail: | |
20917 | return NULL; | |
20918 | } | |
20919 | ||
20920 | ||
20921 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20922 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20923 | wxEffects *arg1 = (wxEffects *) 0 ; |
20924 | wxColour *arg2 = 0 ; | |
20925 | wxColour *arg3 = 0 ; | |
20926 | wxColour *arg4 = 0 ; | |
20927 | wxColour *arg5 = 0 ; | |
20928 | wxColour *arg6 = 0 ; | |
20929 | wxColour temp2 ; | |
20930 | wxColour temp3 ; | |
20931 | wxColour temp4 ; | |
20932 | wxColour temp5 ; | |
20933 | wxColour temp6 ; | |
20934 | PyObject * obj0 = 0 ; | |
20935 | PyObject * obj1 = 0 ; | |
20936 | PyObject * obj2 = 0 ; | |
20937 | PyObject * obj3 = 0 ; | |
20938 | PyObject * obj4 = 0 ; | |
20939 | PyObject * obj5 = 0 ; | |
20940 | char *kwnames[] = { | |
20941 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
20942 | }; | |
d55e5bfc | 20943 | |
36ed4f51 RD |
20944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
20945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20947 | { | |
20948 | arg2 = &temp2; | |
20949 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20950 | } | |
20951 | { | |
20952 | arg3 = &temp3; | |
20953 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
20954 | } | |
20955 | { | |
20956 | arg4 = &temp4; | |
20957 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
20958 | } | |
20959 | { | |
20960 | arg5 = &temp5; | |
20961 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
20962 | } | |
20963 | { | |
20964 | arg6 = &temp6; | |
20965 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
20966 | } | |
20967 | { | |
20968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20969 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
20970 | ||
20971 | wxPyEndAllowThreads(__tstate); | |
20972 | if (PyErr_Occurred()) SWIG_fail; | |
20973 | } | |
20974 | Py_INCREF(Py_None); resultobj = Py_None; | |
20975 | return resultobj; | |
20976 | fail: | |
20977 | return NULL; | |
20978 | } | |
20979 | ||
20980 | ||
20981 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20982 | PyObject *resultobj = NULL; |
36ed4f51 RD |
20983 | wxEffects *arg1 = (wxEffects *) 0 ; |
20984 | wxDC *arg2 = 0 ; | |
20985 | wxRect *arg3 = 0 ; | |
20986 | int arg4 = (int) 1 ; | |
20987 | wxRect temp3 ; | |
20988 | PyObject * obj0 = 0 ; | |
20989 | PyObject * obj1 = 0 ; | |
20990 | PyObject * obj2 = 0 ; | |
20991 | PyObject * obj3 = 0 ; | |
20992 | char *kwnames[] = { | |
20993 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
20994 | }; | |
d55e5bfc | 20995 | |
36ed4f51 RD |
20996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
20998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20999 | { | |
21000 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21002 | if (arg2 == NULL) { | |
21003 | SWIG_null_ref("wxDC"); | |
21004 | } | |
21005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21006 | } | |
21007 | { | |
21008 | arg3 = &temp3; | |
21009 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
21010 | } | |
21011 | if (obj3) { | |
21012 | { | |
32fe5131 | 21013 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
36ed4f51 RD |
21014 | if (SWIG_arg_fail(4)) SWIG_fail; |
21015 | } | |
21016 | } | |
21017 | { | |
21018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21019 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
21020 | ||
21021 | wxPyEndAllowThreads(__tstate); | |
21022 | if (PyErr_Occurred()) SWIG_fail; | |
21023 | } | |
21024 | Py_INCREF(Py_None); resultobj = Py_None; | |
21025 | return resultobj; | |
21026 | fail: | |
21027 | return NULL; | |
21028 | } | |
21029 | ||
21030 | ||
21031 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21032 | PyObject *resultobj = NULL; |
36ed4f51 RD |
21033 | wxEffects *arg1 = (wxEffects *) 0 ; |
21034 | wxRect *arg2 = 0 ; | |
21035 | wxDC *arg3 = 0 ; | |
21036 | wxBitmap *arg4 = 0 ; | |
21037 | bool result; | |
21038 | wxRect temp2 ; | |
21039 | PyObject * obj0 = 0 ; | |
21040 | PyObject * obj1 = 0 ; | |
21041 | PyObject * obj2 = 0 ; | |
21042 | PyObject * obj3 = 0 ; | |
21043 | char *kwnames[] = { | |
21044 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
21045 | }; | |
d55e5bfc | 21046 | |
36ed4f51 RD |
21047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); | |
21049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21050 | { | |
21051 | arg2 = &temp2; | |
21052 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21053 | } | |
21054 | { | |
21055 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21056 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21057 | if (arg3 == NULL) { | |
21058 | SWIG_null_ref("wxDC"); | |
21059 | } | |
21060 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21061 | } | |
21062 | { | |
21063 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
21064 | if (SWIG_arg_fail(4)) SWIG_fail; | |
21065 | if (arg4 == NULL) { | |
21066 | SWIG_null_ref("wxBitmap"); | |
21067 | } | |
21068 | if (SWIG_arg_fail(4)) SWIG_fail; | |
21069 | } | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
21073 | ||
21074 | wxPyEndAllowThreads(__tstate); | |
21075 | if (PyErr_Occurred()) SWIG_fail; | |
21076 | } | |
21077 | { | |
21078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21079 | } | |
21080 | return resultobj; | |
21081 | fail: | |
21082 | return NULL; | |
21083 | } | |
21084 | ||
21085 | ||
21086 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { | |
21087 | PyObject *obj; | |
21088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21089 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
21090 | Py_INCREF(obj); | |
21091 | return Py_BuildValue((char *)""); | |
21092 | } | |
be9b1dca | 21093 | static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21094 | PyObject *resultobj = NULL; |
be9b1dca RD |
21095 | int arg1 ; |
21096 | int arg2 ; | |
21097 | bool arg3 ; | |
21098 | wxSplitterRenderParams *result; | |
21099 | PyObject * obj0 = 0 ; | |
21100 | PyObject * obj1 = 0 ; | |
21101 | PyObject * obj2 = 0 ; | |
21102 | char *kwnames[] = { | |
21103 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
21104 | }; | |
21105 | ||
21106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21107 | { | |
32fe5131 | 21108 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
be9b1dca RD |
21109 | if (SWIG_arg_fail(1)) SWIG_fail; |
21110 | } | |
21111 | { | |
32fe5131 | 21112 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
be9b1dca RD |
21113 | if (SWIG_arg_fail(2)) SWIG_fail; |
21114 | } | |
21115 | { | |
32fe5131 | 21116 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
be9b1dca RD |
21117 | if (SWIG_arg_fail(3)) SWIG_fail; |
21118 | } | |
21119 | { | |
21120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21121 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
21122 | ||
21123 | wxPyEndAllowThreads(__tstate); | |
21124 | if (PyErr_Occurred()) SWIG_fail; | |
21125 | } | |
21126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1); | |
21127 | return resultobj; | |
21128 | fail: | |
21129 | return NULL; | |
21130 | } | |
21131 | ||
21132 | ||
21133 | static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21134 | PyObject *resultobj = NULL; |
be9b1dca RD |
21135 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
21136 | PyObject * obj0 = 0 ; | |
21137 | char *kwnames[] = { | |
21138 | (char *) "self", NULL | |
21139 | }; | |
21140 | ||
21141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail; | |
21142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
21143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | delete arg1; | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
21151 | Py_INCREF(Py_None); resultobj = Py_None; | |
21152 | return resultobj; | |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
21158 | static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21159 | PyObject *resultobj = NULL; |
be9b1dca RD |
21160 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
21161 | int result; | |
21162 | PyObject * obj0 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "self", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail; | |
21168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
21169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21170 | result = (int)(int) ((arg1)->widthSash); | |
21171 | ||
21172 | { | |
32fe5131 | 21173 | resultobj = SWIG_From_int(static_cast<int >(result)); |
be9b1dca RD |
21174 | } |
21175 | return resultobj; | |
21176 | fail: | |
21177 | return NULL; | |
21178 | } | |
21179 | ||
21180 | ||
21181 | static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21182 | PyObject *resultobj = NULL; |
be9b1dca RD |
21183 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
21184 | int result; | |
21185 | PyObject * obj0 = 0 ; | |
21186 | char *kwnames[] = { | |
21187 | (char *) "self", NULL | |
21188 | }; | |
21189 | ||
21190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail; | |
21191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
21192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21193 | result = (int)(int) ((arg1)->border); | |
21194 | ||
21195 | { | |
32fe5131 | 21196 | resultobj = SWIG_From_int(static_cast<int >(result)); |
be9b1dca RD |
21197 | } |
21198 | return resultobj; | |
21199 | fail: | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21205 | PyObject *resultobj = NULL; |
be9b1dca RD |
21206 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
21207 | bool result; | |
21208 | PyObject * obj0 = 0 ; | |
21209 | char *kwnames[] = { | |
21210 | (char *) "self", NULL | |
21211 | }; | |
21212 | ||
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail; | |
21214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
21215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21216 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
21217 | ||
21218 | { | |
32fe5131 | 21219 | resultobj = SWIG_From_bool(static_cast<bool >(result)); |
be9b1dca RD |
21220 | } |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
21227 | static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) { | |
21228 | PyObject *obj; | |
21229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21230 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj); | |
21231 | Py_INCREF(obj); | |
21232 | return Py_BuildValue((char *)""); | |
21233 | } | |
21234 | static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21235 | PyObject *resultobj = NULL; |
be9b1dca RD |
21236 | int arg1 ; |
21237 | int arg2 ; | |
21238 | wxRendererVersion *result; | |
21239 | PyObject * obj0 = 0 ; | |
21240 | PyObject * obj1 = 0 ; | |
21241 | char *kwnames[] = { | |
21242 | (char *) "version_",(char *) "age_", NULL | |
21243 | }; | |
21244 | ||
21245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail; | |
21246 | { | |
32fe5131 | 21247 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
be9b1dca RD |
21248 | if (SWIG_arg_fail(1)) SWIG_fail; |
21249 | } | |
21250 | { | |
32fe5131 | 21251 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
be9b1dca RD |
21252 | if (SWIG_arg_fail(2)) SWIG_fail; |
21253 | } | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1); | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21269 | PyObject *resultobj = NULL; |
be9b1dca RD |
21270 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21271 | PyObject * obj0 = 0 ; | |
21272 | char *kwnames[] = { | |
21273 | (char *) "self", NULL | |
21274 | }; | |
21275 | ||
21276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail; | |
21277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21279 | { | |
21280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21281 | delete arg1; | |
21282 | ||
21283 | wxPyEndAllowThreads(__tstate); | |
21284 | if (PyErr_Occurred()) SWIG_fail; | |
21285 | } | |
21286 | Py_INCREF(Py_None); resultobj = Py_None; | |
21287 | return resultobj; | |
21288 | fail: | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21294 | PyObject *resultobj = NULL; |
be9b1dca RD |
21295 | wxRendererVersion *arg1 = 0 ; |
21296 | bool result; | |
21297 | PyObject * obj0 = 0 ; | |
21298 | char *kwnames[] = { | |
21299 | (char *) "ver", NULL | |
21300 | }; | |
21301 | ||
21302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail; | |
21303 | { | |
21304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21306 | if (arg1 == NULL) { | |
21307 | SWIG_null_ref("wxRendererVersion"); | |
21308 | } | |
21309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21310 | } | |
21311 | { | |
21312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21313 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
21314 | ||
21315 | wxPyEndAllowThreads(__tstate); | |
21316 | if (PyErr_Occurred()) SWIG_fail; | |
21317 | } | |
21318 | { | |
21319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21320 | } | |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21328 | PyObject *resultobj = NULL; |
be9b1dca RD |
21329 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21330 | int result; | |
21331 | PyObject * obj0 = 0 ; | |
21332 | char *kwnames[] = { | |
21333 | (char *) "self", NULL | |
21334 | }; | |
21335 | ||
21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail; | |
21337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21339 | result = (int)(int) ((arg1)->version); | |
21340 | ||
21341 | { | |
32fe5131 | 21342 | resultobj = SWIG_From_int(static_cast<int >(result)); |
be9b1dca RD |
21343 | } |
21344 | return resultobj; | |
21345 | fail: | |
21346 | return NULL; | |
21347 | } | |
21348 | ||
21349 | ||
21350 | static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21351 | PyObject *resultobj = NULL; |
be9b1dca RD |
21352 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21353 | int result; | |
21354 | PyObject * obj0 = 0 ; | |
21355 | char *kwnames[] = { | |
21356 | (char *) "self", NULL | |
21357 | }; | |
21358 | ||
21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail; | |
21360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21362 | result = (int)(int) ((arg1)->age); | |
21363 | ||
21364 | { | |
32fe5131 | 21365 | resultobj = SWIG_From_int(static_cast<int >(result)); |
be9b1dca RD |
21366 | } |
21367 | return resultobj; | |
21368 | fail: | |
21369 | return NULL; | |
21370 | } | |
21371 | ||
21372 | ||
21373 | static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) { | |
21374 | PyObject *obj; | |
21375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21376 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj); | |
21377 | Py_INCREF(obj); | |
21378 | return Py_BuildValue((char *)""); | |
21379 | } | |
21380 | static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21381 | PyObject *resultobj = NULL; |
be9b1dca RD |
21382 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21383 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21384 | wxDC *arg3 = 0 ; | |
21385 | wxRect *arg4 = 0 ; | |
21386 | int arg5 = (int) 0 ; | |
21387 | wxRect temp4 ; | |
21388 | PyObject * obj0 = 0 ; | |
21389 | PyObject * obj1 = 0 ; | |
21390 | PyObject * obj2 = 0 ; | |
21391 | PyObject * obj3 = 0 ; | |
21392 | PyObject * obj4 = 0 ; | |
21393 | char *kwnames[] = { | |
21394 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21395 | }; | |
21396 | ||
21397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21400 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21401 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21402 | { | |
21403 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21405 | if (arg3 == NULL) { | |
21406 | SWIG_null_ref("wxDC"); | |
21407 | } | |
21408 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21409 | } | |
21410 | { | |
21411 | arg4 = &temp4; | |
21412 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21413 | } | |
21414 | if (obj4) { | |
21415 | { | |
32fe5131 | 21416 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21417 | if (SWIG_arg_fail(5)) SWIG_fail; |
21418 | } | |
21419 | } | |
21420 | { | |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | Py_INCREF(Py_None); resultobj = Py_None; | |
21428 | return resultobj; | |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
21434 | static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21435 | PyObject *resultobj = NULL; |
be9b1dca RD |
21436 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21437 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21438 | wxDC *arg3 = 0 ; | |
21439 | wxRect *arg4 = 0 ; | |
21440 | int arg5 = (int) 0 ; | |
21441 | wxRect temp4 ; | |
21442 | PyObject * obj0 = 0 ; | |
21443 | PyObject * obj1 = 0 ; | |
21444 | PyObject * obj2 = 0 ; | |
21445 | PyObject * obj3 = 0 ; | |
21446 | PyObject * obj4 = 0 ; | |
21447 | char *kwnames[] = { | |
21448 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21449 | }; | |
21450 | ||
21451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21454 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21455 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21456 | { | |
21457 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21458 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21459 | if (arg3 == NULL) { | |
21460 | SWIG_null_ref("wxDC"); | |
21461 | } | |
21462 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21463 | } | |
21464 | { | |
21465 | arg4 = &temp4; | |
21466 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21467 | } | |
21468 | if (obj4) { | |
21469 | { | |
32fe5131 | 21470 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21471 | if (SWIG_arg_fail(5)) SWIG_fail; |
21472 | } | |
21473 | } | |
21474 | { | |
21475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21476 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21477 | ||
21478 | wxPyEndAllowThreads(__tstate); | |
21479 | if (PyErr_Occurred()) SWIG_fail; | |
21480 | } | |
21481 | Py_INCREF(Py_None); resultobj = Py_None; | |
21482 | return resultobj; | |
21483 | fail: | |
21484 | return NULL; | |
21485 | } | |
21486 | ||
21487 | ||
21488 | static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21489 | PyObject *resultobj = NULL; |
be9b1dca RD |
21490 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21491 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21492 | wxDC *arg3 = 0 ; | |
21493 | wxRect *arg4 = 0 ; | |
21494 | int arg5 = (int) 0 ; | |
21495 | wxRect temp4 ; | |
21496 | PyObject * obj0 = 0 ; | |
21497 | PyObject * obj1 = 0 ; | |
21498 | PyObject * obj2 = 0 ; | |
21499 | PyObject * obj3 = 0 ; | |
21500 | PyObject * obj4 = 0 ; | |
21501 | char *kwnames[] = { | |
21502 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21503 | }; | |
21504 | ||
21505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21508 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21510 | { | |
21511 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21512 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21513 | if (arg3 == NULL) { | |
21514 | SWIG_null_ref("wxDC"); | |
21515 | } | |
21516 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21517 | } | |
21518 | { | |
21519 | arg4 = &temp4; | |
21520 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21521 | } | |
21522 | if (obj4) { | |
21523 | { | |
32fe5131 | 21524 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21525 | if (SWIG_arg_fail(5)) SWIG_fail; |
21526 | } | |
21527 | } | |
21528 | { | |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21531 | ||
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | Py_INCREF(Py_None); resultobj = Py_None; | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21543 | PyObject *resultobj = NULL; |
be9b1dca RD |
21544 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21546 | wxDC *arg3 = 0 ; | |
21547 | wxSize *arg4 = 0 ; | |
21548 | int arg5 ; | |
21549 | wxOrientation arg6 ; | |
21550 | int arg7 = (int) 0 ; | |
21551 | wxSize temp4 ; | |
21552 | PyObject * obj0 = 0 ; | |
21553 | PyObject * obj1 = 0 ; | |
21554 | PyObject * obj2 = 0 ; | |
21555 | PyObject * obj3 = 0 ; | |
21556 | PyObject * obj4 = 0 ; | |
21557 | PyObject * obj5 = 0 ; | |
21558 | PyObject * obj6 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21566 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21567 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21568 | { | |
21569 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21570 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21571 | if (arg3 == NULL) { | |
21572 | SWIG_null_ref("wxDC"); | |
21573 | } | |
21574 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21575 | } | |
21576 | { | |
21577 | arg4 = &temp4; | |
21578 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21579 | } | |
21580 | { | |
32fe5131 | 21581 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21582 | if (SWIG_arg_fail(5)) SWIG_fail; |
21583 | } | |
21584 | { | |
32fe5131 | 21585 | arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5)); |
be9b1dca RD |
21586 | if (SWIG_arg_fail(6)) SWIG_fail; |
21587 | } | |
21588 | if (obj6) { | |
21589 | { | |
32fe5131 | 21590 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
be9b1dca RD |
21591 | if (SWIG_arg_fail(7)) SWIG_fail; |
21592 | } | |
21593 | } | |
21594 | { | |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21596 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); |
be9b1dca RD |
21597 | |
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | Py_INCREF(Py_None); resultobj = Py_None; | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
21608 | static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21609 | PyObject *resultobj = NULL; |
be9b1dca RD |
21610 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21611 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21612 | wxDC *arg3 = 0 ; | |
21613 | wxRect *arg4 = 0 ; | |
21614 | int arg5 = (int) 0 ; | |
21615 | wxRect temp4 ; | |
21616 | PyObject * obj0 = 0 ; | |
21617 | PyObject * obj1 = 0 ; | |
21618 | PyObject * obj2 = 0 ; | |
21619 | PyObject * obj3 = 0 ; | |
21620 | PyObject * obj4 = 0 ; | |
21621 | char *kwnames[] = { | |
21622 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21623 | }; | |
21624 | ||
21625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21628 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21629 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21630 | { | |
21631 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21632 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21633 | if (arg3 == NULL) { | |
21634 | SWIG_null_ref("wxDC"); | |
21635 | } | |
21636 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21637 | } | |
21638 | { | |
21639 | arg4 = &temp4; | |
21640 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21641 | } | |
21642 | if (obj4) { | |
21643 | { | |
32fe5131 | 21644 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21645 | if (SWIG_arg_fail(5)) SWIG_fail; |
21646 | } | |
21647 | } | |
21648 | { | |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
21655 | Py_INCREF(Py_None); resultobj = Py_None; | |
21656 | return resultobj; | |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21663 | PyObject *resultobj = NULL; |
be9b1dca RD |
21664 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21666 | wxDC *arg3 = 0 ; | |
21667 | wxRect *arg4 = 0 ; | |
21668 | int arg5 = (int) 0 ; | |
21669 | wxRect temp4 ; | |
21670 | PyObject * obj0 = 0 ; | |
21671 | PyObject * obj1 = 0 ; | |
21672 | PyObject * obj2 = 0 ; | |
21673 | PyObject * obj3 = 0 ; | |
21674 | PyObject * obj4 = 0 ; | |
21675 | char *kwnames[] = { | |
21676 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21677 | }; | |
21678 | ||
21679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21682 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21684 | { | |
21685 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21686 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21687 | if (arg3 == NULL) { | |
21688 | SWIG_null_ref("wxDC"); | |
21689 | } | |
21690 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21691 | } | |
21692 | { | |
21693 | arg4 = &temp4; | |
21694 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21695 | } | |
21696 | if (obj4) { | |
21697 | { | |
32fe5131 | 21698 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
be9b1dca RD |
21699 | if (SWIG_arg_fail(5)) SWIG_fail; |
21700 | } | |
21701 | } | |
21702 | { | |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21704 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21705 | ||
21706 | wxPyEndAllowThreads(__tstate); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | } | |
21709 | Py_INCREF(Py_None); resultobj = Py_None; | |
21710 | return resultobj; | |
21711 | fail: | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
21716 | static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21717 | PyObject *resultobj = NULL; |
be9b1dca RD |
21718 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21719 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21720 | SwigValueWrapper<wxSplitterRenderParams > result; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | PyObject * obj1 = 0 ; | |
21723 | char *kwnames[] = { | |
21724 | (char *) "self",(char *) "win", NULL | |
21725 | }; | |
21726 | ||
21727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail; | |
21728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21732 | { | |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | { | |
21740 | wxSplitterRenderParams * resultptr; | |
32fe5131 | 21741 | resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result)); |
be9b1dca RD |
21742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1); |
21743 | } | |
21744 | return resultobj; | |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21751 | PyObject *resultobj = NULL; |
be9b1dca RD |
21752 | wxRendererNative *result; |
21753 | char *kwnames[] = { | |
21754 | NULL | |
21755 | }; | |
21756 | ||
21757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail; | |
21758 | { | |
21759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21760 | { | |
21761 | wxRendererNative &_result_ref = wxRendererNative::Get(); | |
21762 | result = (wxRendererNative *) &_result_ref; | |
21763 | } | |
21764 | ||
21765 | wxPyEndAllowThreads(__tstate); | |
21766 | if (PyErr_Occurred()) SWIG_fail; | |
21767 | } | |
21768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21769 | return resultobj; | |
21770 | fail: | |
21771 | return NULL; | |
21772 | } | |
21773 | ||
21774 | ||
21775 | static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21776 | PyObject *resultobj = NULL; |
be9b1dca RD |
21777 | wxRendererNative *result; |
21778 | char *kwnames[] = { | |
21779 | NULL | |
21780 | }; | |
21781 | ||
21782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail; | |
21783 | { | |
21784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21785 | { | |
21786 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); | |
21787 | result = (wxRendererNative *) &_result_ref; | |
21788 | } | |
21789 | ||
21790 | wxPyEndAllowThreads(__tstate); | |
21791 | if (PyErr_Occurred()) SWIG_fail; | |
21792 | } | |
21793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21794 | return resultobj; | |
21795 | fail: | |
21796 | return NULL; | |
21797 | } | |
21798 | ||
21799 | ||
21800 | static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21801 | PyObject *resultobj = NULL; |
be9b1dca RD |
21802 | wxRendererNative *result; |
21803 | char *kwnames[] = { | |
21804 | NULL | |
21805 | }; | |
21806 | ||
21807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail; | |
21808 | { | |
21809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21810 | { | |
21811 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); | |
21812 | result = (wxRendererNative *) &_result_ref; | |
21813 | } | |
21814 | ||
21815 | wxPyEndAllowThreads(__tstate); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | } | |
21818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21819 | return resultobj; | |
21820 | fail: | |
21821 | return NULL; | |
21822 | } | |
21823 | ||
21824 | ||
21825 | static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21826 | PyObject *resultobj = NULL; |
be9b1dca RD |
21827 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21828 | wxRendererNative *result; | |
21829 | PyObject * obj0 = 0 ; | |
21830 | char *kwnames[] = { | |
21831 | (char *) "renderer", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail; | |
21835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21837 | { | |
21838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21839 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
21840 | ||
21841 | wxPyEndAllowThreads(__tstate); | |
21842 | if (PyErr_Occurred()) SWIG_fail; | |
21843 | } | |
21844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21845 | return resultobj; | |
21846 | fail: | |
21847 | return NULL; | |
21848 | } | |
21849 | ||
21850 | ||
21851 | static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21852 | PyObject *resultobj = NULL; |
be9b1dca RD |
21853 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21854 | SwigValueWrapper<wxRendererVersion > result; | |
21855 | PyObject * obj0 = 0 ; | |
21856 | char *kwnames[] = { | |
21857 | (char *) "self", NULL | |
21858 | }; | |
21859 | ||
21860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail; | |
21861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21863 | { | |
21864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21865 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
21866 | ||
21867 | wxPyEndAllowThreads(__tstate); | |
21868 | if (PyErr_Occurred()) SWIG_fail; | |
21869 | } | |
21870 | { | |
21871 | wxRendererVersion * resultptr; | |
32fe5131 | 21872 | resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result)); |
be9b1dca RD |
21873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1); |
21874 | } | |
21875 | return resultobj; | |
21876 | fail: | |
21877 | return NULL; | |
21878 | } | |
21879 | ||
21880 | ||
21881 | static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) { | |
21882 | PyObject *obj; | |
21883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21884 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj); | |
21885 | Py_INCREF(obj); | |
21886 | return Py_BuildValue((char *)""); | |
21887 | } | |
21888 | static PyMethodDef SwigMethods[] = { | |
21889 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21890 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21891 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21892 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21893 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21894 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
21895 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21896 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21897 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21898 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21899 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21900 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21901 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21902 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21903 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21904 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21905 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21906 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21907 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21908 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21909 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21910 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21911 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
21912 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21913 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21914 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21915 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21916 | { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21917 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21918 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
21919 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21920 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21921 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21922 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21923 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21924 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21925 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21926 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21927 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21928 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21929 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21930 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21931 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21932 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21933 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21934 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21935 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21936 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21937 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
21938 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21939 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21940 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21941 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21942 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21943 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21944 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21945 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21946 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21947 | { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21948 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21949 | { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21950 | { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21951 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
21952 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21953 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21954 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21955 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21956 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21957 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21958 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21959 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21960 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21961 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21962 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21963 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21964 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21965 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21966 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21967 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21968 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21969 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21970 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21971 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21972 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21973 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21974 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21975 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21976 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21977 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21978 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21979 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
21980 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21981 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
21982 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21983 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21984 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21985 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21986 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21987 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21988 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21989 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21990 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21991 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21992 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21993 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21994 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21995 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21996 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
21997 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21998 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21999 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22000 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22001 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22002 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22003 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22004 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
22005 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22006 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22007 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22008 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22009 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22010 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22011 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22012 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
22013 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22014 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22015 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22016 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22017 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22018 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
22019 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22020 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22021 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22022 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22023 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22024 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22025 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22026 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22027 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22028 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22029 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22030 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22031 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22032 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22033 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22034 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22035 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22036 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22037 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22038 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22039 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22040 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22041 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22042 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22043 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22044 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22045 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22046 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22047 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
22048 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22049 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22050 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22051 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22052 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22053 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22054 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22055 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22056 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22057 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22058 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22059 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22060 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22061 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
22062 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22063 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22064 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22065 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22066 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22067 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22068 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22069 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22070 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22071 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22072 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22073 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22074 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22075 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22076 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22077 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22078 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22079 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22080 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22081 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22082 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22083 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22084 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22085 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
22086 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22087 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22088 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22089 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22090 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22091 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22092 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22093 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22094 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
22095 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22096 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22097 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22098 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22099 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22100 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22101 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22102 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22103 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22104 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22105 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22106 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be9b1dca RD |
22107 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
22108 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22109 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22110 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22111 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22112 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22113 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
22114 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22115 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22116 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22117 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22118 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22119 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22120 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22121 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22122 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22123 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22124 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22125 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22126 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22127 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22128 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22129 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22130 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22131 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22132 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22133 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22134 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22135 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22136 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
22137 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
22138 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22139 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22140 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22141 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22142 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22143 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22144 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22145 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22146 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22147 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22148 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22149 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22150 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22151 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22152 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22153 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22154 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22155 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
22156 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22157 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22158 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22159 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22160 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22161 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22162 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22163 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, | |
22164 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22165 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22166 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22167 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22168 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22169 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22170 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
22171 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22172 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22173 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22174 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22175 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22176 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22177 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22178 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22179 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22180 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22181 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22182 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22183 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22184 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22185 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22186 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22187 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22188 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22189 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22190 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22191 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22192 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
22193 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22194 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
22195 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22196 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22197 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22198 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22199 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22200 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22201 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22202 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
22203 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22204 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22205 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22206 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22207 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22208 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22209 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22210 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22211 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22212 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22213 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22214 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22215 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22216 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22217 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22218 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22219 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22220 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22221 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22222 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22223 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22224 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22225 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22226 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22227 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22228 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22229 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22230 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22231 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22232 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22233 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22234 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22235 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22236 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22237 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22238 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22239 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22240 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22241 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22242 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22243 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22244 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22245 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22246 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22247 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22248 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22249 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22250 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22251 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22252 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22253 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22254 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22255 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22256 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22257 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22258 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22259 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22260 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22261 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22262 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22263 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22264 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22265 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22266 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22267 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22268 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22269 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22270 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22271 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22272 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22273 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22274 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22275 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22276 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22277 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22278 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22279 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22280 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22281 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22282 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22283 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22284 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22285 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22286 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22287 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22288 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22289 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22290 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22291 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22292 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22293 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22294 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22295 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22296 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22297 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22298 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22299 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22300 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22301 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22302 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22303 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22304 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22305 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22306 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22307 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22308 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22309 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22310 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22311 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22312 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22313 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22314 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22315 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22316 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22317 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22318 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22319 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22320 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22321 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22322 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22323 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22324 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22325 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22326 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22327 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22328 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22329 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22330 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
22331 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22332 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22333 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22334 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
22335 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
22336 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22337 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22338 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
22339 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22340 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
22341 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22342 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22343 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22344 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22345 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
22346 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22347 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
22348 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22349 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
22350 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22351 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
22352 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22353 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
22354 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22355 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22356 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22357 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22358 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22359 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
22360 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22361 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22362 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22363 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22364 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22365 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22366 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22367 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
22368 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22369 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22370 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
22371 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22372 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
22373 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22374 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22375 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22376 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22377 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7fbf8399 RD |
22378 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
22379 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
22380 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, |
22381 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22382 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22383 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22384 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22385 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22386 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
22387 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22388 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22389 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22390 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22391 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, | |
22392 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22393 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22394 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22395 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22396 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, | |
22397 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22398 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22399 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22400 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22401 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22402 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22403 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
22404 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22405 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22406 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22407 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22408 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
22409 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22410 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22411 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22412 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22413 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22414 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22415 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22416 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22417 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22418 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22419 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22420 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22421 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22422 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22423 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
be9b1dca RD |
22424 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
22425 | { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22426 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22427 | { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22428 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22429 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
22430 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22431 | { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22432 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22433 | { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22434 | { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22435 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
22436 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22437 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22438 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22439 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22440 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22441 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22442 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22443 | { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22444 | { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22445 | { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22446 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22447 | { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22448 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
36ed4f51 RD |
22449 | { NULL, NULL, 0, NULL } |
22450 | }; | |
22451 | ||
22452 | ||
22453 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
22454 | ||
22455 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
22456 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
22457 | } | |
22458 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
22459 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22460 | } | |
22461 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
22462 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
22463 | } | |
22464 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
22465 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
22466 | } | |
22467 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
22468 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
22469 | } | |
22470 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
22471 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
22472 | } | |
22473 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
22474 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
22475 | } | |
22476 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
22477 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
22478 | } | |
22479 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
22480 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
22481 | } | |
22482 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
22483 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
22484 | } | |
22485 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
22486 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
22487 | } | |
22488 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
22489 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
22490 | } | |
22491 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
22492 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
22493 | } | |
22494 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
22495 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
22496 | } | |
22497 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
22498 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
22499 | } | |
22500 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
22501 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
22502 | } | |
22503 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
22504 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22505 | } | |
22506 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
22507 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
22508 | } | |
22509 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
22510 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
22511 | } | |
22512 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
22513 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
22514 | } | |
22515 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
22516 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
22517 | } | |
22518 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
22519 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22520 | } | |
22521 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
22522 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
22523 | } | |
22524 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
22525 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
22526 | } | |
22527 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
22528 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
22529 | } | |
22530 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
22531 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
22532 | } | |
22533 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
22534 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
22535 | } | |
22536 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
22537 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
22538 | } | |
22539 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
22540 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
22541 | } | |
22542 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
22543 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
22544 | } | |
22545 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
22546 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
22547 | } | |
22548 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
22549 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
22550 | } | |
22551 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
22552 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
22553 | } | |
22554 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
22555 | return (void *)((wxObject *) ((wxSizer *) x)); | |
22556 | } | |
22557 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
22558 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
22559 | } | |
22560 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
22561 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
22562 | } | |
22563 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
22564 | return (void *)((wxObject *) ((wxPenList *) x)); | |
22565 | } | |
22566 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
22567 | return (void *)((wxObject *) ((wxEvent *) x)); | |
22568 | } | |
22569 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
22570 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
22571 | } | |
22572 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
22573 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
22574 | } | |
22575 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
22576 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
22577 | } | |
22578 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
22579 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
22580 | } | |
22581 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
22582 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
22583 | } | |
22584 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
22585 | return (void *)((wxObject *) ((wxDC *) x)); | |
22586 | } | |
22587 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
22588 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
22589 | } | |
22590 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
22591 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
22592 | } | |
22593 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
22594 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
22595 | } | |
22596 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
22597 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
22598 | } | |
22599 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
22600 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
22601 | } | |
22602 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
22603 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
22604 | } | |
22605 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
22606 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
22607 | } | |
22608 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
22609 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
22610 | } | |
22611 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
22612 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
22613 | } | |
22614 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
22615 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
22616 | } | |
22617 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
22618 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
22619 | } | |
22620 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
22621 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
22622 | } | |
22623 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
22624 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
22625 | } | |
22626 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
22627 | return (void *)((wxObject *) ((wxEffects *) x)); | |
22628 | } | |
22629 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
22630 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
22631 | } | |
22632 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
22633 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
22634 | } | |
22635 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
22636 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
22637 | } | |
22638 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
22639 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
22640 | } | |
22641 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
22642 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
22643 | } | |
53aa7709 RD |
22644 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
22645 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
22646 | } | |
36ed4f51 RD |
22647 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
22648 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
22649 | } | |
22650 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
22651 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
22652 | } | |
22653 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
22654 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
22655 | } | |
22656 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
22657 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
22658 | } | |
22659 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
22660 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
22661 | } | |
22662 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
22663 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
22664 | } | |
22665 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
22666 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
22667 | } | |
22668 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
22669 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
22670 | } | |
36ed4f51 RD |
22671 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
22672 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
22673 | } | |
22674 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
22675 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
22676 | } | |
22677 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
22678 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
22679 | } | |
22680 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
22681 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
22682 | } | |
22683 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
22684 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
22685 | } | |
22686 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
22687 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
22688 | } | |
22689 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
22690 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
22691 | } | |
22692 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
22693 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
22694 | } | |
22695 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
22696 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
22697 | } | |
943e8dfd RD |
22698 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
22699 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
22700 | } | |
36ed4f51 RD |
22701 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
22702 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
22703 | } | |
943e8dfd RD |
22704 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
22705 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
22706 | } | |
36ed4f51 RD |
22707 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
22708 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
22709 | } | |
22710 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
22711 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
22712 | } | |
22713 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
22714 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22715 | } | |
22716 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
22717 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
22718 | } | |
22719 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
22720 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
22721 | } | |
22722 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
22723 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
22724 | } | |
51b83b37 RD |
22725 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
22726 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
22727 | } | |
36ed4f51 RD |
22728 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
22729 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
22730 | } | |
22731 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
22732 | return (void *)((wxObject *) ((wxImage *) x)); | |
22733 | } | |
22734 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
22735 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
22736 | } | |
22737 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
22738 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
22739 | } | |
22740 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
22741 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
22742 | } | |
22743 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
22744 | return (void *)((wxObject *) ((wxImageList *) x)); | |
22745 | } | |
22746 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
22747 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
22748 | } | |
22749 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
22750 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
22751 | } | |
22752 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
22753 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
22754 | } | |
22755 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
22756 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
22757 | } | |
22758 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
22759 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
22760 | } | |
22761 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
22762 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
22763 | } | |
22764 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
22765 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
22766 | } | |
22767 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
22768 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
22769 | } | |
22770 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
22771 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
22772 | } | |
22773 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
22774 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
22775 | } | |
22776 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
22777 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
22778 | } | |
22779 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
22780 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
22781 | } | |
22782 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
22783 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
22784 | } | |
22785 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
22786 | return (void *)((wxObject *) ((wxMask *) x)); | |
22787 | } | |
22788 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
22789 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
22790 | } | |
22791 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
22792 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
22793 | } | |
22794 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
22795 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
22796 | } | |
22797 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
22798 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
22799 | } | |
22800 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
22801 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
22802 | } | |
22803 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
22804 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
22805 | } | |
22806 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
22807 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
22808 | } | |
22809 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
22810 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
22811 | } | |
22812 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
22813 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
22814 | } | |
22815 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
22816 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
22817 | } | |
22818 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
22819 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
22820 | } | |
22821 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
22822 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
22823 | } | |
22824 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
22825 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
22826 | } | |
22827 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
22828 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
22829 | } | |
22830 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
22831 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
22832 | } | |
22833 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
22834 | return (void *)((wxObject *) ((wxColour *) x)); | |
22835 | } | |
22836 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
22837 | return (void *)((wxObject *) ((wxFontList *) x)); | |
22838 | } | |
22839 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
22840 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
22841 | } | |
22842 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
22843 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
22844 | } | |
22845 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
22846 | return (void *)((wxWindow *) ((wxControl *) x)); | |
22847 | } | |
22848 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
22849 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
22850 | } | |
22851 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
22852 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
22853 | } | |
32fe5131 RD |
22854 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
22855 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0}; | |
22856 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
22857 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
22858 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
22859 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
22860 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
22861 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
22862 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0}; | |
22863 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0}; | |
22864 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0}; | |
22865 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0}; | |
22866 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0}; | |
22867 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
22868 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0}; | |
22869 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
22870 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
22871 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0}; | |
22872 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
22873 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0}; | |
22874 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0}; | |
22875 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
22876 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0}; | |
22877 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0}; | |
22878 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0}; | |
22879 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
22880 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0}; | |
22881 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0}; | |
22882 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0}; | |
22883 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0}; | |
22884 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0}; | |
22885 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0}; | |
22886 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0}; | |
22887 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0}; | |
22888 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0}; | |
22889 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0}; | |
22890 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0}; | |
22891 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0}; | |
22892 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0}; | |
22893 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
22894 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
22895 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
22896 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
22897 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
22898 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
22899 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
22900 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
22901 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
22902 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
22903 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
22904 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
22905 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0}; | |
22906 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
22907 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
22908 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
22909 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
22910 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
22911 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
22912 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
22913 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
22914 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
22915 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0}; | |
22916 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
22917 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
22918 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
22919 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
22920 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
22921 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
22922 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
22923 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
22924 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
22925 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
22926 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
22927 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
22928 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
22929 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
22930 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
22931 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
22932 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
22933 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
22934 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
22935 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
22936 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
22937 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
22938 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
22939 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
22940 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0}; | |
22941 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
22942 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
22943 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
22944 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
22945 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
22946 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
22947 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
22948 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
22949 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
22950 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
22951 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
22952 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
22953 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
22954 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
22955 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
22956 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
22957 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
22958 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
22959 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
22960 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
22961 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0}; | |
22962 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
22963 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
22964 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
22965 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
22966 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
22967 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
22968 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0}; | |
22969 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0}; | |
22970 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
22971 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0}; | |
22972 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0}; | |
22973 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
22974 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0}; | |
22975 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0}; | |
22976 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0}; | |
22977 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0}; | |
22978 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
22979 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0}; | |
22980 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0}; | |
22981 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0}; | |
22982 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0}; | |
22983 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0}; | |
22984 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
22985 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0}; | |
22986 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
22987 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
22988 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0}; | |
22989 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
22990 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
22991 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
22992 | ||
22993 | static swig_type_info *swig_type_initial[] = { | |
22994 | &_swigt__p_char, | |
22995 | &_swigt__p_double, | |
22996 | &_swigt__p_form_ops_t, | |
22997 | &_swigt__p_int, | |
22998 | &_swigt__p_unsigned_char, | |
22999 | &_swigt__p_unsigned_int, | |
23000 | &_swigt__p_unsigned_long, | |
23001 | &_swigt__p_wxANIHandler, | |
23002 | &_swigt__p_wxAcceleratorTable, | |
23003 | &_swigt__p_wxActivateEvent, | |
23004 | &_swigt__p_wxBMPHandler, | |
23005 | &_swigt__p_wxBitmap, | |
23006 | &_swigt__p_wxBoxSizer, | |
23007 | &_swigt__p_wxBrush, | |
23008 | &_swigt__p_wxBrushList, | |
23009 | &_swigt__p_wxBufferedDC, | |
23010 | &_swigt__p_wxBufferedPaintDC, | |
23011 | &_swigt__p_wxCURHandler, | |
23012 | &_swigt__p_wxChildFocusEvent, | |
23013 | &_swigt__p_wxClientDC, | |
23014 | &_swigt__p_wxCloseEvent, | |
23015 | &_swigt__p_wxColour, | |
23016 | &_swigt__p_wxColourDatabase, | |
23017 | &_swigt__p_wxCommandEvent, | |
23018 | &_swigt__p_wxContextMenuEvent, | |
23019 | &_swigt__p_wxControl, | |
23020 | &_swigt__p_wxControlWithItems, | |
23021 | &_swigt__p_wxCursor, | |
23022 | &_swigt__p_wxDC, | |
23023 | &_swigt__p_wxDash, | |
23024 | &_swigt__p_wxDateEvent, | |
23025 | &_swigt__p_wxDisplayChangedEvent, | |
23026 | &_swigt__p_wxDropFilesEvent, | |
23027 | &_swigt__p_wxDuplexMode, | |
23028 | &_swigt__p_wxEffects, | |
23029 | &_swigt__p_wxEncodingConverter, | |
23030 | &_swigt__p_wxEraseEvent, | |
23031 | &_swigt__p_wxEvent, | |
23032 | &_swigt__p_wxEvtHandler, | |
23033 | &_swigt__p_wxFSFile, | |
23034 | &_swigt__p_wxFileSystem, | |
23035 | &_swigt__p_wxFlexGridSizer, | |
23036 | &_swigt__p_wxFocusEvent, | |
23037 | &_swigt__p_wxFont, | |
23038 | &_swigt__p_wxFontList, | |
23039 | &_swigt__p_wxFontMapper, | |
23040 | &_swigt__p_wxGBSizerItem, | |
23041 | &_swigt__p_wxGDIObject, | |
23042 | &_swigt__p_wxGIFHandler, | |
23043 | &_swigt__p_wxGridBagSizer, | |
23044 | &_swigt__p_wxGridSizer, | |
23045 | &_swigt__p_wxICOHandler, | |
23046 | &_swigt__p_wxIcon, | |
23047 | &_swigt__p_wxIconBundle, | |
23048 | &_swigt__p_wxIconLocation, | |
23049 | &_swigt__p_wxIconizeEvent, | |
23050 | &_swigt__p_wxIdleEvent, | |
23051 | &_swigt__p_wxImage, | |
23052 | &_swigt__p_wxImageHandler, | |
23053 | &_swigt__p_wxImageList, | |
23054 | &_swigt__p_wxIndividualLayoutConstraint, | |
23055 | &_swigt__p_wxInitDialogEvent, | |
23056 | &_swigt__p_wxJPEGHandler, | |
23057 | &_swigt__p_wxKeyEvent, | |
23058 | &_swigt__p_wxLanguageInfo, | |
23059 | &_swigt__p_wxLayoutConstraints, | |
23060 | &_swigt__p_wxLocale, | |
23061 | &_swigt__p_wxMask, | |
23062 | &_swigt__p_wxMaximizeEvent, | |
23063 | &_swigt__p_wxMemoryDC, | |
23064 | &_swigt__p_wxMenu, | |
23065 | &_swigt__p_wxMenuBar, | |
23066 | &_swigt__p_wxMenuEvent, | |
23067 | &_swigt__p_wxMenuItem, | |
23068 | &_swigt__p_wxMetaFile, | |
23069 | &_swigt__p_wxMetaFileDC, | |
23070 | &_swigt__p_wxMirrorDC, | |
23071 | &_swigt__p_wxMouseCaptureChangedEvent, | |
23072 | &_swigt__p_wxMouseEvent, | |
23073 | &_swigt__p_wxMoveEvent, | |
23074 | &_swigt__p_wxNativeEncodingInfo, | |
23075 | &_swigt__p_wxNativeFontInfo, | |
23076 | &_swigt__p_wxNavigationKeyEvent, | |
23077 | &_swigt__p_wxNcPaintEvent, | |
23078 | &_swigt__p_wxNotifyEvent, | |
23079 | &_swigt__p_wxObject, | |
23080 | &_swigt__p_wxPCXHandler, | |
23081 | &_swigt__p_wxPNGHandler, | |
23082 | &_swigt__p_wxPNMHandler, | |
23083 | &_swigt__p_wxPaintDC, | |
23084 | &_swigt__p_wxPaintEvent, | |
23085 | &_swigt__p_wxPalette, | |
23086 | &_swigt__p_wxPaletteChangedEvent, | |
23087 | &_swigt__p_wxPaperSize, | |
23088 | &_swigt__p_wxPen, | |
23089 | &_swigt__p_wxPenList, | |
23090 | &_swigt__p_wxPoint, | |
23091 | &_swigt__p_wxPostScriptDC, | |
23092 | &_swigt__p_wxPrintData, | |
23093 | &_swigt__p_wxPrinterDC, | |
23094 | &_swigt__p_wxPyApp, | |
23095 | &_swigt__p_wxPyCommandEvent, | |
23096 | &_swigt__p_wxPyEvent, | |
23097 | &_swigt__p_wxPyFontEnumerator, | |
23098 | &_swigt__p_wxPyImageHandler, | |
23099 | &_swigt__p_wxPySizer, | |
23100 | &_swigt__p_wxPyValidator, | |
23101 | &_swigt__p_wxQueryNewPaletteEvent, | |
23102 | &_swigt__p_wxRect, | |
23103 | &_swigt__p_wxRegion, | |
23104 | &_swigt__p_wxRegionIterator, | |
23105 | &_swigt__p_wxRendererNative, | |
23106 | &_swigt__p_wxRendererVersion, | |
23107 | &_swigt__p_wxScreenDC, | |
23108 | &_swigt__p_wxScrollEvent, | |
23109 | &_swigt__p_wxScrollWinEvent, | |
23110 | &_swigt__p_wxSetCursorEvent, | |
23111 | &_swigt__p_wxShowEvent, | |
23112 | &_swigt__p_wxSize, | |
23113 | &_swigt__p_wxSizeEvent, | |
23114 | &_swigt__p_wxSizer, | |
23115 | &_swigt__p_wxSizerItem, | |
23116 | &_swigt__p_wxSplitterRenderParams, | |
23117 | &_swigt__p_wxStaticBoxSizer, | |
23118 | &_swigt__p_wxStdDialogButtonSizer, | |
23119 | &_swigt__p_wxString, | |
23120 | &_swigt__p_wxSysColourChangedEvent, | |
23121 | &_swigt__p_wxTIFFHandler, | |
23122 | &_swigt__p_wxUpdateUIEvent, | |
23123 | &_swigt__p_wxValidator, | |
23124 | &_swigt__p_wxWindow, | |
23125 | &_swigt__p_wxWindowCreateEvent, | |
23126 | &_swigt__p_wxWindowDC, | |
23127 | &_swigt__p_wxWindowDestroyEvent, | |
23128 | &_swigt__p_wxXPMHandler, | |
23129 | &_swigt__ptrdiff_t, | |
23130 | &_swigt__std__ptrdiff_t, | |
23131 | &_swigt__unsigned_int, | |
23132 | }; | |
23133 | ||
23134 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
23135 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
23136 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
23137 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
23138 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
23139 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
23140 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
23141 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
23142 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
23143 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
23144 | static swig_cast_info _swigc__p_wxBufferedDC[] = { {&_swigt__p_wxBufferedDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0},{0, 0, 0, 0}}; | |
23145 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23146 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23147 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
23148 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
23149 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
23150 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}}; | |
23151 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
23152 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
23153 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
23154 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
23155 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
23156 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
23157 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
23158 | static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}}; | |
23159 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
23160 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
23161 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
23162 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
23163 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
23164 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
23165 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; | |
23166 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; | |
23167 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}}; | |
23168 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
23169 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23170 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23171 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
23172 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
23173 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
23174 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
23175 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
23176 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23177 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
23178 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23179 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23180 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23181 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23182 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23183 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
23184 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23185 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23186 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23187 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23188 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23189 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23190 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23191 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23192 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23193 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23194 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
23195 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23196 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
23197 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23198 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23199 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23200 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23201 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
23202 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23203 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23204 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23205 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23206 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23207 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23208 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23209 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23210 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23211 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23212 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23213 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23214 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23215 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23216 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23217 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23218 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23219 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23220 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23221 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23222 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23223 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23224 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
23225 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23226 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
23227 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23228 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23229 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23230 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23231 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
23232 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
23233 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23234 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23235 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
23236 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23237 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23238 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23239 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23240 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23241 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23242 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23243 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23244 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
23245 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
23246 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
23247 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDatabase, _p_wxColourDatabaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
23248 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23249 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
23250 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
23251 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
23252 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
23253 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
23254 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23255 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
23256 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23257 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; | |
23258 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
23259 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
23260 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
23261 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
23262 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
23263 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23264 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
23265 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
23266 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
23267 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
23268 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23269 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
23270 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
23271 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
23272 | ||
23273 | static swig_cast_info *swig_cast_initial[] = { | |
23274 | _swigc__p_char, | |
23275 | _swigc__p_double, | |
23276 | _swigc__p_form_ops_t, | |
23277 | _swigc__p_int, | |
23278 | _swigc__p_unsigned_char, | |
23279 | _swigc__p_unsigned_int, | |
23280 | _swigc__p_unsigned_long, | |
23281 | _swigc__p_wxANIHandler, | |
23282 | _swigc__p_wxAcceleratorTable, | |
23283 | _swigc__p_wxActivateEvent, | |
23284 | _swigc__p_wxBMPHandler, | |
23285 | _swigc__p_wxBitmap, | |
23286 | _swigc__p_wxBoxSizer, | |
23287 | _swigc__p_wxBrush, | |
23288 | _swigc__p_wxBrushList, | |
23289 | _swigc__p_wxBufferedDC, | |
23290 | _swigc__p_wxBufferedPaintDC, | |
23291 | _swigc__p_wxCURHandler, | |
23292 | _swigc__p_wxChildFocusEvent, | |
23293 | _swigc__p_wxClientDC, | |
23294 | _swigc__p_wxCloseEvent, | |
23295 | _swigc__p_wxColour, | |
23296 | _swigc__p_wxColourDatabase, | |
23297 | _swigc__p_wxCommandEvent, | |
23298 | _swigc__p_wxContextMenuEvent, | |
23299 | _swigc__p_wxControl, | |
23300 | _swigc__p_wxControlWithItems, | |
23301 | _swigc__p_wxCursor, | |
23302 | _swigc__p_wxDC, | |
23303 | _swigc__p_wxDash, | |
23304 | _swigc__p_wxDateEvent, | |
23305 | _swigc__p_wxDisplayChangedEvent, | |
23306 | _swigc__p_wxDropFilesEvent, | |
23307 | _swigc__p_wxDuplexMode, | |
23308 | _swigc__p_wxEffects, | |
23309 | _swigc__p_wxEncodingConverter, | |
23310 | _swigc__p_wxEraseEvent, | |
23311 | _swigc__p_wxEvent, | |
23312 | _swigc__p_wxEvtHandler, | |
23313 | _swigc__p_wxFSFile, | |
23314 | _swigc__p_wxFileSystem, | |
23315 | _swigc__p_wxFlexGridSizer, | |
23316 | _swigc__p_wxFocusEvent, | |
23317 | _swigc__p_wxFont, | |
23318 | _swigc__p_wxFontList, | |
23319 | _swigc__p_wxFontMapper, | |
23320 | _swigc__p_wxGBSizerItem, | |
23321 | _swigc__p_wxGDIObject, | |
23322 | _swigc__p_wxGIFHandler, | |
23323 | _swigc__p_wxGridBagSizer, | |
23324 | _swigc__p_wxGridSizer, | |
23325 | _swigc__p_wxICOHandler, | |
23326 | _swigc__p_wxIcon, | |
23327 | _swigc__p_wxIconBundle, | |
23328 | _swigc__p_wxIconLocation, | |
23329 | _swigc__p_wxIconizeEvent, | |
23330 | _swigc__p_wxIdleEvent, | |
23331 | _swigc__p_wxImage, | |
23332 | _swigc__p_wxImageHandler, | |
23333 | _swigc__p_wxImageList, | |
23334 | _swigc__p_wxIndividualLayoutConstraint, | |
23335 | _swigc__p_wxInitDialogEvent, | |
23336 | _swigc__p_wxJPEGHandler, | |
23337 | _swigc__p_wxKeyEvent, | |
23338 | _swigc__p_wxLanguageInfo, | |
23339 | _swigc__p_wxLayoutConstraints, | |
23340 | _swigc__p_wxLocale, | |
23341 | _swigc__p_wxMask, | |
23342 | _swigc__p_wxMaximizeEvent, | |
23343 | _swigc__p_wxMemoryDC, | |
23344 | _swigc__p_wxMenu, | |
23345 | _swigc__p_wxMenuBar, | |
23346 | _swigc__p_wxMenuEvent, | |
23347 | _swigc__p_wxMenuItem, | |
23348 | _swigc__p_wxMetaFile, | |
23349 | _swigc__p_wxMetaFileDC, | |
23350 | _swigc__p_wxMirrorDC, | |
23351 | _swigc__p_wxMouseCaptureChangedEvent, | |
23352 | _swigc__p_wxMouseEvent, | |
23353 | _swigc__p_wxMoveEvent, | |
23354 | _swigc__p_wxNativeEncodingInfo, | |
23355 | _swigc__p_wxNativeFontInfo, | |
23356 | _swigc__p_wxNavigationKeyEvent, | |
23357 | _swigc__p_wxNcPaintEvent, | |
23358 | _swigc__p_wxNotifyEvent, | |
23359 | _swigc__p_wxObject, | |
23360 | _swigc__p_wxPCXHandler, | |
23361 | _swigc__p_wxPNGHandler, | |
23362 | _swigc__p_wxPNMHandler, | |
23363 | _swigc__p_wxPaintDC, | |
23364 | _swigc__p_wxPaintEvent, | |
23365 | _swigc__p_wxPalette, | |
23366 | _swigc__p_wxPaletteChangedEvent, | |
23367 | _swigc__p_wxPaperSize, | |
23368 | _swigc__p_wxPen, | |
23369 | _swigc__p_wxPenList, | |
23370 | _swigc__p_wxPoint, | |
23371 | _swigc__p_wxPostScriptDC, | |
23372 | _swigc__p_wxPrintData, | |
23373 | _swigc__p_wxPrinterDC, | |
23374 | _swigc__p_wxPyApp, | |
23375 | _swigc__p_wxPyCommandEvent, | |
23376 | _swigc__p_wxPyEvent, | |
23377 | _swigc__p_wxPyFontEnumerator, | |
23378 | _swigc__p_wxPyImageHandler, | |
23379 | _swigc__p_wxPySizer, | |
23380 | _swigc__p_wxPyValidator, | |
23381 | _swigc__p_wxQueryNewPaletteEvent, | |
23382 | _swigc__p_wxRect, | |
23383 | _swigc__p_wxRegion, | |
23384 | _swigc__p_wxRegionIterator, | |
23385 | _swigc__p_wxRendererNative, | |
23386 | _swigc__p_wxRendererVersion, | |
23387 | _swigc__p_wxScreenDC, | |
23388 | _swigc__p_wxScrollEvent, | |
23389 | _swigc__p_wxScrollWinEvent, | |
23390 | _swigc__p_wxSetCursorEvent, | |
23391 | _swigc__p_wxShowEvent, | |
23392 | _swigc__p_wxSize, | |
23393 | _swigc__p_wxSizeEvent, | |
23394 | _swigc__p_wxSizer, | |
23395 | _swigc__p_wxSizerItem, | |
23396 | _swigc__p_wxSplitterRenderParams, | |
23397 | _swigc__p_wxStaticBoxSizer, | |
23398 | _swigc__p_wxStdDialogButtonSizer, | |
23399 | _swigc__p_wxString, | |
23400 | _swigc__p_wxSysColourChangedEvent, | |
23401 | _swigc__p_wxTIFFHandler, | |
23402 | _swigc__p_wxUpdateUIEvent, | |
23403 | _swigc__p_wxValidator, | |
23404 | _swigc__p_wxWindow, | |
23405 | _swigc__p_wxWindowCreateEvent, | |
23406 | _swigc__p_wxWindowDC, | |
23407 | _swigc__p_wxWindowDestroyEvent, | |
23408 | _swigc__p_wxXPMHandler, | |
23409 | _swigc__ptrdiff_t, | |
23410 | _swigc__std__ptrdiff_t, | |
23411 | _swigc__unsigned_int, | |
36ed4f51 RD |
23412 | }; |
23413 | ||
23414 | ||
23415 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
23416 | ||
23417 | static swig_const_info swig_const_table[] = { | |
23418 | {0, 0, 0, 0.0, 0, 0}}; | |
23419 | ||
23420 | #ifdef __cplusplus | |
23421 | } | |
23422 | #endif | |
32fe5131 RD |
23423 | /************************************************************************* |
23424 | * Type initialization: | |
23425 | * This problem is tough by the requirement that no dynamic | |
23426 | * memory is used. Also, since swig_type_info structures store pointers to | |
23427 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
23428 | * to swig_type_info structures, we need some lookup code at initialization. | |
23429 | * The idea is that swig generates all the structures that are needed. | |
23430 | * The runtime then collects these partially filled structures. | |
23431 | * The SWIG_InitializeModule function takes these initial arrays out of | |
23432 | * swig_module, and does all the lookup, filling in the swig_module.types | |
23433 | * array with the correct data and linking the correct swig_cast_info | |
23434 | * structures together. | |
23435 | ||
23436 | * The generated swig_type_info structures are assigned staticly to an initial | |
23437 | * array. We just loop though that array, and handle each type individually. | |
23438 | * First we lookup if this type has been already loaded, and if so, use the | |
23439 | * loaded structure instead of the generated one. Then we have to fill in the | |
23440 | * cast linked list. The cast data is initially stored in something like a | |
23441 | * two-dimensional array. Each row corresponds to a type (there are the same | |
23442 | * number of rows as there are in the swig_type_initial array). Each entry in | |
23443 | * a column is one of the swig_cast_info structures for that type. | |
23444 | * The cast_initial array is actually an array of arrays, because each row has | |
23445 | * a variable number of columns. So to actually build the cast linked list, | |
23446 | * we find the array of casts associated with the type, and loop through it | |
23447 | * adding the casts to the list. The one last trick we need to do is making | |
23448 | * sure the type pointer in the swig_cast_info struct is correct. | |
23449 | ||
23450 | * First off, we lookup the cast->type name to see if it is already loaded. | |
23451 | * There are three cases to handle: | |
23452 | * 1) If the cast->type has already been loaded AND the type we are adding | |
23453 | * casting info to has not been loaded (it is in this module), THEN we | |
23454 | * replace the cast->type pointer with the type pointer that has already | |
23455 | * been loaded. | |
23456 | * 2) If BOTH types (the one we are adding casting info to, and the | |
23457 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
23458 | * the previous module so we just ignore it. | |
23459 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
23460 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
23461 | * be correct. | |
23462 | **/ | |
23463 | ||
23464 | #ifdef __cplusplus | |
23465 | extern "C" { | |
23466 | #if 0 | |
23467 | } /* c-mode */ | |
23468 | #endif | |
23469 | #endif | |
23470 | ||
23471 | #if 0 | |
23472 | #define SWIGRUNTIME_DEBUG | |
23473 | #endif | |
23474 | ||
23475 | SWIGRUNTIME void | |
23476 | SWIG_InitializeModule(void *clientdata) { | |
23477 | size_t i; | |
23478 | swig_module_info *module_head; | |
23479 | static int init_run = 0; | |
23480 | ||
23481 | clientdata = clientdata; | |
23482 | ||
23483 | if (init_run) return; | |
23484 | init_run = 1; | |
23485 | ||
23486 | /* Initialize the swig_module */ | |
23487 | swig_module.type_initial = swig_type_initial; | |
23488 | swig_module.cast_initial = swig_cast_initial; | |
23489 | ||
23490 | /* Try and load any already created modules */ | |
23491 | module_head = SWIG_GetModule(clientdata); | |
23492 | if (module_head) { | |
23493 | swig_module.next = module_head->next; | |
23494 | module_head->next = &swig_module; | |
23495 | } else { | |
23496 | /* This is the first module loaded */ | |
23497 | swig_module.next = &swig_module; | |
23498 | SWIG_SetModule(clientdata, &swig_module); | |
23499 | } | |
23500 | ||
23501 | /* Now work on filling in swig_module.types */ | |
23502 | #ifdef SWIGRUNTIME_DEBUG | |
23503 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
23504 | #endif | |
23505 | for (i = 0; i < swig_module.size; ++i) { | |
23506 | swig_type_info *type = 0; | |
23507 | swig_type_info *ret; | |
23508 | swig_cast_info *cast; | |
23509 | ||
23510 | #ifdef SWIGRUNTIME_DEBUG | |
23511 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
23512 | #endif | |
23513 | ||
23514 | /* if there is another module already loaded */ | |
23515 | if (swig_module.next != &swig_module) { | |
23516 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
23517 | } | |
23518 | if (type) { | |
23519 | /* Overwrite clientdata field */ | |
23520 | #ifdef SWIGRUNTIME_DEBUG | |
23521 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
23522 | #endif | |
23523 | if (swig_module.type_initial[i]->clientdata) { | |
23524 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
23525 | #ifdef SWIGRUNTIME_DEBUG | |
23526 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
23527 | #endif | |
23528 | } | |
23529 | } else { | |
23530 | type = swig_module.type_initial[i]; | |
23531 | } | |
23532 | ||
23533 | /* Insert casting types */ | |
23534 | cast = swig_module.cast_initial[i]; | |
23535 | while (cast->type) { | |
23536 | /* Don't need to add information already in the list */ | |
23537 | ret = 0; | |
23538 | #ifdef SWIGRUNTIME_DEBUG | |
23539 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
23540 | #endif | |
23541 | if (swig_module.next != &swig_module) { | |
23542 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
23543 | #ifdef SWIGRUNTIME_DEBUG | |
23544 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
23545 | #endif | |
23546 | } | |
23547 | if (ret) { | |
23548 | if (type == swig_module.type_initial[i]) { | |
23549 | #ifdef SWIGRUNTIME_DEBUG | |
23550 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
23551 | #endif | |
23552 | cast->type = ret; | |
23553 | ret = 0; | |
23554 | } else { | |
23555 | /* Check for casting already in the list */ | |
23556 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
23557 | #ifdef SWIGRUNTIME_DEBUG | |
23558 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
23559 | #endif | |
23560 | if (!ocast) ret = 0; | |
23561 | } | |
23562 | } | |
23563 | ||
23564 | if (!ret) { | |
23565 | #ifdef SWIGRUNTIME_DEBUG | |
23566 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
23567 | #endif | |
23568 | if (type->cast) { | |
23569 | type->cast->prev = cast; | |
23570 | cast->next = type->cast; | |
23571 | } | |
23572 | type->cast = cast; | |
23573 | } | |
23574 | cast++; | |
23575 | } | |
23576 | /* Set entry in modules->types array equal to the type */ | |
23577 | swig_module.types[i] = type; | |
23578 | } | |
23579 | swig_module.types[i] = 0; | |
23580 | ||
23581 | #ifdef SWIGRUNTIME_DEBUG | |
23582 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
23583 | for (i = 0; i < swig_module.size; ++i) { | |
23584 | int j = 0; | |
23585 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
23586 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
23587 | while (cast->type) { | |
23588 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
23589 | cast++; | |
23590 | ++j; | |
23591 | } | |
23592 | printf("---- Total casts: %d\n",j); | |
23593 | } | |
23594 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
23595 | #endif | |
23596 | } | |
23597 | ||
23598 | /* This function will propagate the clientdata field of type to | |
23599 | * any new swig_type_info structures that have been added into the list | |
23600 | * of equivalent types. It is like calling | |
23601 | * SWIG_TypeClientData(type, clientdata) a second time. | |
23602 | */ | |
23603 | SWIGRUNTIME void | |
23604 | SWIG_PropagateClientData(void) { | |
23605 | size_t i; | |
23606 | swig_cast_info *equiv; | |
23607 | static int init_run = 0; | |
23608 | ||
23609 | if (init_run) return; | |
23610 | init_run = 1; | |
23611 | ||
23612 | for (i = 0; i < swig_module.size; i++) { | |
23613 | if (swig_module.types[i]->clientdata) { | |
23614 | equiv = swig_module.types[i]->cast; | |
23615 | while (equiv) { | |
23616 | if (!equiv->converter) { | |
23617 | if (equiv->type && !equiv->type->clientdata) | |
23618 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
23619 | } | |
23620 | equiv = equiv->next; | |
23621 | } | |
23622 | } | |
23623 | } | |
23624 | } | |
23625 | ||
23626 | #ifdef __cplusplus | |
23627 | #if 0 | |
23628 | { | |
23629 | /* c-mode */ | |
23630 | #endif | |
23631 | } | |
23632 | #endif | |
23633 | ||
36ed4f51 RD |
23634 | |
23635 | ||
23636 | #ifdef __cplusplus | |
23637 | extern "C" { | |
23638 | #endif | |
23639 | ||
23640 | /* Python-specific SWIG API */ | |
23641 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
23642 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
23643 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
23644 | ||
23645 | /* ----------------------------------------------------------------------------- | |
23646 | * global variable support code. | |
23647 | * ----------------------------------------------------------------------------- */ | |
23648 | ||
23649 | typedef struct swig_globalvar { | |
23650 | char *name; /* Name of global variable */ | |
32fe5131 | 23651 | PyObject *(*get_attr)(void); /* Return the current value */ |
36ed4f51 RD |
23652 | int (*set_attr)(PyObject *); /* Set the value */ |
23653 | struct swig_globalvar *next; | |
23654 | } swig_globalvar; | |
23655 | ||
23656 | typedef struct swig_varlinkobject { | |
23657 | PyObject_HEAD | |
23658 | swig_globalvar *vars; | |
23659 | } swig_varlinkobject; | |
23660 | ||
32fe5131 | 23661 | SWIGINTERN PyObject * |
36ed4f51 RD |
23662 | swig_varlink_repr(swig_varlinkobject *v) { |
23663 | v = v; | |
23664 | return PyString_FromString("<Swig global variables>"); | |
23665 | } | |
23666 | ||
32fe5131 | 23667 | SWIGINTERN int |
36ed4f51 RD |
23668 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
23669 | swig_globalvar *var; | |
23670 | flags = flags; | |
23671 | fprintf(fp,"Swig global variables { "); | |
23672 | for (var = v->vars; var; var=var->next) { | |
23673 | fprintf(fp,"%s", var->name); | |
23674 | if (var->next) fprintf(fp,", "); | |
23675 | } | |
23676 | fprintf(fp," }\n"); | |
23677 | return 0; | |
23678 | } | |
23679 | ||
32fe5131 | 23680 | SWIGINTERN PyObject * |
36ed4f51 RD |
23681 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
23682 | swig_globalvar *var = v->vars; | |
23683 | while (var) { | |
23684 | if (strcmp(var->name,n) == 0) { | |
23685 | return (*var->get_attr)(); | |
23686 | } | |
23687 | var = var->next; | |
23688 | } | |
23689 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
23690 | return NULL; | |
23691 | } | |
23692 | ||
32fe5131 | 23693 | SWIGINTERN int |
36ed4f51 RD |
23694 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
23695 | swig_globalvar *var = v->vars; | |
23696 | while (var) { | |
23697 | if (strcmp(var->name,n) == 0) { | |
23698 | return (*var->set_attr)(p); | |
23699 | } | |
23700 | var = var->next; | |
23701 | } | |
23702 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
23703 | return 1; | |
23704 | } | |
23705 | ||
32fe5131 RD |
23706 | SWIGINTERN PyTypeObject* |
23707 | swig_varlink_type(void) { | |
23708 | static char varlink__doc__[] = "Swig var link object"; | |
23709 | static PyTypeObject varlink_type | |
23710 | #if !defined(__cplusplus) | |
23711 | ; | |
23712 | static int type_init = 0; | |
23713 | if (!type_init) { | |
23714 | PyTypeObject tmp | |
23715 | #endif | |
23716 | = { | |
23717 | PyObject_HEAD_INIT(&PyType_Type) | |
23718 | 0, /* Number of items in variable part (ob_size) */ | |
23719 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
23720 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
23721 | 0, /* Itemsize (tp_itemsize) */ | |
23722 | 0, /* Deallocator (tp_dealloc) */ | |
23723 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
23724 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
23725 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
23726 | 0, /* tp_compare */ | |
23727 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
23728 | 0, /* tp_as_number */ | |
23729 | 0, /* tp_as_sequence */ | |
23730 | 0, /* tp_as_mapping */ | |
23731 | 0, /* tp_hash */ | |
23732 | 0, /* tp_call */ | |
23733 | 0, /* tp_str */ | |
23734 | 0, /* tp_getattro */ | |
23735 | 0, /* tp_setattro */ | |
23736 | 0, /* tp_as_buffer */ | |
23737 | 0, /* tp_flags */ | |
23738 | varlink__doc__, /* tp_doc */ | |
36ed4f51 | 23739 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
23740 | 0, /* tp_traverse */ |
23741 | 0, /* tp_clear */ | |
36ed4f51 RD |
23742 | #endif |
23743 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
23744 | 0, /* tp_richcompare */ |
23745 | 0, /* tp_weaklistoffset */ | |
36ed4f51 RD |
23746 | #endif |
23747 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 23748 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
36ed4f51 RD |
23749 | #endif |
23750 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 23751 | 0, /* tp_del */ |
36ed4f51 RD |
23752 | #endif |
23753 | #ifdef COUNT_ALLOCS | |
32fe5131 | 23754 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 23755 | #endif |
32fe5131 RD |
23756 | }; |
23757 | #if !defined(__cplusplus) | |
23758 | varlink_type = tmp; | |
23759 | type_init = 1; | |
23760 | } | |
23761 | #endif | |
23762 | return &varlink_type; | |
23763 | } | |
36ed4f51 RD |
23764 | |
23765 | /* Create a variable linking object for use later */ | |
32fe5131 | 23766 | SWIGINTERN PyObject * |
36ed4f51 | 23767 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
23768 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
23769 | if (result) { | |
23770 | result->vars = 0; | |
23771 | } | |
36ed4f51 RD |
23772 | return ((PyObject*) result); |
23773 | } | |
23774 | ||
32fe5131 | 23775 | SWIGINTERN void |
36ed4f51 | 23776 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
23777 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
23778 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
23779 | if (gv) { | |
23780 | size_t size = strlen(name)+1; | |
23781 | gv->name = (char *)malloc(size); | |
23782 | if (gv->name) { | |
23783 | strncpy(gv->name,name,size); | |
23784 | gv->get_attr = get_attr; | |
23785 | gv->set_attr = set_attr; | |
23786 | gv->next = v->vars; | |
23787 | } | |
23788 | } | |
36ed4f51 RD |
23789 | v->vars = gv; |
23790 | } | |
23791 | ||
23792 | /* ----------------------------------------------------------------------------- | |
23793 | * constants/methods manipulation | |
23794 | * ----------------------------------------------------------------------------- */ | |
23795 | ||
23796 | /* Install Constants */ | |
32fe5131 | 23797 | SWIGINTERN void |
36ed4f51 RD |
23798 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
23799 | PyObject *obj = 0; | |
23800 | size_t i; | |
32fe5131 | 23801 | for (i = 0; constants[i].type; ++i) { |
36ed4f51 RD |
23802 | switch(constants[i].type) { |
23803 | case SWIG_PY_INT: | |
23804 | obj = PyInt_FromLong(constants[i].lvalue); | |
23805 | break; | |
23806 | case SWIG_PY_FLOAT: | |
23807 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
23808 | break; | |
23809 | case SWIG_PY_STRING: | |
23810 | if (constants[i].pvalue) { | |
23811 | obj = PyString_FromString((char *) constants[i].pvalue); | |
23812 | } else { | |
23813 | Py_INCREF(Py_None); | |
23814 | obj = Py_None; | |
23815 | } | |
23816 | break; | |
23817 | case SWIG_PY_POINTER: | |
23818 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
23819 | break; | |
23820 | case SWIG_PY_BINARY: | |
23821 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
23822 | break; | |
23823 | default: | |
23824 | obj = 0; | |
23825 | break; | |
23826 | } | |
23827 | if (obj) { | |
23828 | PyDict_SetItemString(d,constants[i].name,obj); | |
23829 | Py_DECREF(obj); | |
23830 | } | |
23831 | } | |
23832 | } | |
23833 | ||
23834 | /* -----------------------------------------------------------------------------*/ | |
23835 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
23836 | /* -----------------------------------------------------------------------------*/ | |
23837 | ||
32fe5131 | 23838 | SWIGINTERN void |
36ed4f51 RD |
23839 | SWIG_Python_FixMethods(PyMethodDef *methods, |
23840 | swig_const_info *const_table, | |
23841 | swig_type_info **types, | |
23842 | swig_type_info **types_initial) { | |
23843 | size_t i; | |
23844 | for (i = 0; methods[i].ml_name; ++i) { | |
23845 | char *c = methods[i].ml_doc; | |
23846 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
23847 | int j; | |
23848 | swig_const_info *ci = 0; | |
23849 | char *name = c + 10; | |
32fe5131 | 23850 | for (j = 0; const_table[j].type; ++j) { |
36ed4f51 RD |
23851 | if (strncmp(const_table[j].name, name, |
23852 | strlen(const_table[j].name)) == 0) { | |
23853 | ci = &(const_table[j]); | |
23854 | break; | |
23855 | } | |
23856 | } | |
23857 | if (ci) { | |
23858 | size_t shift = (ci->ptype) - types; | |
23859 | swig_type_info *ty = types_initial[shift]; | |
23860 | size_t ldoc = (c - methods[i].ml_doc); | |
23861 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
23862 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
23863 | if (ndoc) { |
23864 | char *buff = ndoc; | |
23865 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
23866 | if (ptr) { | |
23867 | strncpy(buff, methods[i].ml_doc, ldoc); | |
23868 | buff += ldoc; | |
23869 | strncpy(buff, "swig_ptr: ", 10); | |
23870 | buff += 10; | |
23871 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
23872 | methods[i].ml_doc = ndoc; | |
23873 | } | |
23874 | } | |
36ed4f51 RD |
23875 | } |
23876 | } | |
23877 | } | |
23878 | } | |
23879 | ||
23880 | /* -----------------------------------------------------------------------------* | |
23881 | * Initialize type list | |
23882 | * -----------------------------------------------------------------------------*/ | |
23883 | ||
36ed4f51 RD |
23884 | #ifdef __cplusplus |
23885 | } | |
23886 | #endif | |
23887 | ||
23888 | /* -----------------------------------------------------------------------------* | |
23889 | * Partial Init method | |
23890 | * -----------------------------------------------------------------------------*/ | |
23891 | ||
36ed4f51 RD |
23892 | #ifdef __cplusplus |
23893 | extern "C" | |
23894 | #endif | |
32fe5131 | 23895 | SWIGEXPORT void SWIG_init(void) { |
36ed4f51 | 23896 | static PyObject *SWIG_globals = 0; |
36ed4f51 | 23897 | PyObject *m, *d; |
36ed4f51 RD |
23898 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
23899 | ||
23900 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 23901 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
36ed4f51 RD |
23902 | |
23903 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
23904 | d = PyModule_GetDict(m); | |
23905 | ||
32fe5131 | 23906 | SWIG_InitializeModule(0); |
36ed4f51 RD |
23907 | SWIG_InstallConstants(d,swig_const_table); |
23908 | ||
23909 | { | |
32fe5131 | 23910 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion))); |
36ed4f51 RD |
23911 | } |
23912 | { | |
32fe5131 | 23913 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion))); |
36ed4f51 RD |
23914 | } |
23915 | { | |
32fe5131 | 23916 | PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion))); |
36ed4f51 RD |
23917 | } |
23918 | { | |
32fe5131 | 23919 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT))); |
36ed4f51 RD |
23920 | } |
23921 | { | |
32fe5131 | 23922 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE))); |
36ed4f51 RD |
23923 | } |
23924 | { | |
32fe5131 | 23925 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN))); |
36ed4f51 RD |
23926 | } |
23927 | { | |
32fe5131 | 23928 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT))); |
36ed4f51 RD |
23929 | } |
23930 | { | |
32fe5131 | 23931 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS))); |
36ed4f51 RD |
23932 | } |
23933 | { | |
32fe5131 | 23934 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN))); |
36ed4f51 RD |
23935 | } |
23936 | { | |
32fe5131 | 23937 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE))); |
36ed4f51 RD |
23938 | } |
23939 | { | |
32fe5131 | 23940 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX))); |
36ed4f51 RD |
23941 | } |
23942 | { | |
32fe5131 | 23943 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN))); |
36ed4f51 RD |
23944 | } |
23945 | { | |
32fe5131 | 23946 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL))); |
36ed4f51 RD |
23947 | } |
23948 | { | |
32fe5131 | 23949 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC))); |
36ed4f51 RD |
23950 | } |
23951 | { | |
32fe5131 | 23952 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT))); |
36ed4f51 RD |
23953 | } |
23954 | { | |
32fe5131 | 23955 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX))); |
36ed4f51 RD |
23956 | } |
23957 | { | |
32fe5131 | 23958 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL))); |
36ed4f51 RD |
23959 | } |
23960 | { | |
32fe5131 | 23961 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT))); |
36ed4f51 RD |
23962 | } |
23963 | { | |
32fe5131 | 23964 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD))); |
36ed4f51 RD |
23965 | } |
23966 | { | |
32fe5131 | 23967 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX))); |
36ed4f51 RD |
23968 | } |
23969 | { | |
32fe5131 | 23970 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT))); |
36ed4f51 RD |
23971 | } |
23972 | { | |
32fe5131 | 23973 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC))); |
36ed4f51 RD |
23974 | } |
23975 | { | |
32fe5131 | 23976 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT))); |
36ed4f51 RD |
23977 | } |
23978 | { | |
32fe5131 | 23979 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT))); |
36ed4f51 RD |
23980 | } |
23981 | { | |
32fe5131 | 23982 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD))); |
36ed4f51 RD |
23983 | } |
23984 | { | |
32fe5131 | 23985 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED))); |
36ed4f51 RD |
23986 | } |
23987 | { | |
32fe5131 | 23988 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED))); |
36ed4f51 RD |
23989 | } |
23990 | { | |
32fe5131 | 23991 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED))); |
36ed4f51 RD |
23992 | } |
23993 | { | |
32fe5131 | 23994 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH))); |
36ed4f51 RD |
23995 | } |
23996 | { | |
32fe5131 | 23997 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK))); |
36ed4f51 RD |
23998 | } |
23999 | { | |
32fe5131 | 24000 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM))); |
36ed4f51 RD |
24001 | } |
24002 | { | |
32fe5131 | 24003 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT))); |
36ed4f51 RD |
24004 | } |
24005 | { | |
32fe5131 | 24006 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1))); |
36ed4f51 RD |
24007 | } |
24008 | { | |
32fe5131 | 24009 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2))); |
36ed4f51 RD |
24010 | } |
24011 | { | |
32fe5131 | 24012 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3))); |
36ed4f51 RD |
24013 | } |
24014 | { | |
32fe5131 | 24015 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4))); |
36ed4f51 RD |
24016 | } |
24017 | { | |
32fe5131 | 24018 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5))); |
36ed4f51 RD |
24019 | } |
24020 | { | |
32fe5131 | 24021 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6))); |
36ed4f51 RD |
24022 | } |
24023 | { | |
32fe5131 | 24024 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7))); |
36ed4f51 RD |
24025 | } |
24026 | { | |
32fe5131 | 24027 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8))); |
36ed4f51 RD |
24028 | } |
24029 | { | |
32fe5131 | 24030 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9))); |
36ed4f51 RD |
24031 | } |
24032 | { | |
32fe5131 | 24033 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10))); |
36ed4f51 RD |
24034 | } |
24035 | { | |
32fe5131 | 24036 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11))); |
36ed4f51 RD |
24037 | } |
24038 | { | |
32fe5131 | 24039 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12))); |
36ed4f51 RD |
24040 | } |
24041 | { | |
32fe5131 | 24042 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13))); |
36ed4f51 RD |
24043 | } |
24044 | { | |
32fe5131 | 24045 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14))); |
36ed4f51 RD |
24046 | } |
24047 | { | |
32fe5131 | 24048 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15))); |
36ed4f51 RD |
24049 | } |
24050 | { | |
32fe5131 | 24051 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX))); |
36ed4f51 RD |
24052 | } |
24053 | { | |
32fe5131 | 24054 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8))); |
36ed4f51 RD |
24055 | } |
24056 | { | |
32fe5131 | 24057 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U))); |
36ed4f51 RD |
24058 | } |
24059 | { | |
32fe5131 | 24060 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE))); |
36ed4f51 RD |
24061 | } |
24062 | { | |
32fe5131 | 24063 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN))); |
36ed4f51 RD |
24064 | } |
24065 | { | |
32fe5131 | 24066 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437))); |
36ed4f51 RD |
24067 | } |
24068 | { | |
32fe5131 | 24069 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850))); |
36ed4f51 RD |
24070 | } |
24071 | { | |
32fe5131 | 24072 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852))); |
36ed4f51 RD |
24073 | } |
24074 | { | |
32fe5131 | 24075 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855))); |
36ed4f51 RD |
24076 | } |
24077 | { | |
32fe5131 | 24078 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866))); |
36ed4f51 RD |
24079 | } |
24080 | { | |
32fe5131 | 24081 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874))); |
36ed4f51 RD |
24082 | } |
24083 | { | |
32fe5131 | 24084 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932))); |
36ed4f51 RD |
24085 | } |
24086 | { | |
32fe5131 | 24087 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936))); |
36ed4f51 RD |
24088 | } |
24089 | { | |
32fe5131 | 24090 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949))); |
36ed4f51 RD |
24091 | } |
24092 | { | |
32fe5131 | 24093 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950))); |
36ed4f51 RD |
24094 | } |
24095 | { | |
32fe5131 | 24096 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250))); |
36ed4f51 RD |
24097 | } |
24098 | { | |
32fe5131 | 24099 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251))); |
36ed4f51 RD |
24100 | } |
24101 | { | |
32fe5131 | 24102 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252))); |
36ed4f51 RD |
24103 | } |
24104 | { | |
32fe5131 | 24105 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253))); |
36ed4f51 RD |
24106 | } |
24107 | { | |
32fe5131 | 24108 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254))); |
36ed4f51 RD |
24109 | } |
24110 | { | |
32fe5131 | 24111 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255))); |
36ed4f51 RD |
24112 | } |
24113 | { | |
32fe5131 | 24114 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256))); |
36ed4f51 RD |
24115 | } |
24116 | { | |
32fe5131 | 24117 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257))); |
36ed4f51 RD |
24118 | } |
24119 | { | |
32fe5131 | 24120 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX))); |
36ed4f51 RD |
24121 | } |
24122 | { | |
32fe5131 | 24123 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7))); |
36ed4f51 RD |
24124 | } |
24125 | { | |
32fe5131 | 24126 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8))); |
36ed4f51 RD |
24127 | } |
24128 | { | |
32fe5131 | 24129 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP))); |
36ed4f51 RD |
24130 | } |
24131 | { | |
32fe5131 | 24132 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE))); |
36ed4f51 RD |
24133 | } |
24134 | { | |
32fe5131 | 24135 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE))); |
36ed4f51 RD |
24136 | } |
24137 | { | |
32fe5131 | 24138 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE))); |
36ed4f51 RD |
24139 | } |
24140 | { | |
32fe5131 | 24141 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE))); |
36ed4f51 RD |
24142 | } |
24143 | { | |
32fe5131 | 24144 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN))); |
36ed4f51 RD |
24145 | } |
24146 | { | |
32fe5131 | 24147 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE))); |
36ed4f51 RD |
24148 | } |
24149 | { | |
32fe5131 | 24150 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD))); |
36ed4f51 RD |
24151 | } |
24152 | { | |
32fe5131 | 24153 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN))); |
36ed4f51 RD |
24154 | } |
24155 | { | |
32fe5131 | 24156 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC))); |
36ed4f51 RD |
24157 | } |
24158 | { | |
32fe5131 | 24159 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW))); |
36ed4f51 RD |
24160 | } |
24161 | { | |
32fe5131 | 24162 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK))); |
36ed4f51 RD |
24163 | } |
24164 | { | |
32fe5131 | 24165 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC))); |
36ed4f51 RD |
24166 | } |
24167 | { | |
32fe5131 | 24168 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI))); |
36ed4f51 RD |
24169 | } |
24170 | { | |
32fe5131 | 24171 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI))); |
36ed4f51 RD |
24172 | } |
24173 | { | |
32fe5131 | 24174 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI))); |
36ed4f51 RD |
24175 | } |
24176 | { | |
32fe5131 | 24177 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA))); |
36ed4f51 RD |
24178 | } |
24179 | { | |
32fe5131 | 24180 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI))); |
36ed4f51 RD |
24181 | } |
24182 | { | |
32fe5131 | 24183 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL))); |
36ed4f51 RD |
24184 | } |
24185 | { | |
32fe5131 | 24186 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU))); |
36ed4f51 RD |
24187 | } |
24188 | { | |
32fe5131 | 24189 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA))); |
36ed4f51 RD |
24190 | } |
24191 | { | |
32fe5131 | 24192 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM))); |
36ed4f51 RD |
24193 | } |
24194 | { | |
32fe5131 | 24195 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE))); |
36ed4f51 RD |
24196 | } |
24197 | { | |
32fe5131 | 24198 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE))); |
36ed4f51 RD |
24199 | } |
24200 | { | |
32fe5131 | 24201 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER))); |
36ed4f51 RD |
24202 | } |
24203 | { | |
32fe5131 | 24204 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI))); |
36ed4f51 RD |
24205 | } |
24206 | { | |
32fe5131 | 24207 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN))); |
36ed4f51 RD |
24208 | } |
24209 | { | |
32fe5131 | 24210 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN))); |
36ed4f51 RD |
24211 | } |
24212 | { | |
32fe5131 | 24213 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN))); |
36ed4f51 RD |
24214 | } |
24215 | { | |
32fe5131 | 24216 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP))); |
36ed4f51 RD |
24217 | } |
24218 | { | |
32fe5131 | 24219 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN))); |
36ed4f51 RD |
24220 | } |
24221 | { | |
32fe5131 | 24222 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN))); |
36ed4f51 RD |
24223 | } |
24224 | { | |
32fe5131 | 24225 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC))); |
36ed4f51 RD |
24226 | } |
24227 | { | |
32fe5131 | 24228 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR))); |
36ed4f51 RD |
24229 | } |
24230 | { | |
32fe5131 | 24231 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE))); |
36ed4f51 RD |
24232 | } |
24233 | { | |
32fe5131 | 24234 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT))); |
36ed4f51 RD |
24235 | } |
24236 | { | |
32fe5131 | 24237 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL))); |
36ed4f51 RD |
24238 | } |
24239 | { | |
32fe5131 | 24240 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS))); |
36ed4f51 RD |
24241 | } |
24242 | { | |
32fe5131 | 24243 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH))); |
36ed4f51 RD |
24244 | } |
24245 | { | |
32fe5131 | 24246 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN))); |
36ed4f51 RD |
24247 | } |
24248 | { | |
32fe5131 | 24249 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC))); |
36ed4f51 RD |
24250 | } |
24251 | { | |
32fe5131 | 24252 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN))); |
36ed4f51 RD |
24253 | } |
24254 | { | |
32fe5131 | 24255 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC))); |
36ed4f51 RD |
24256 | } |
24257 | { | |
32fe5131 | 24258 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC))); |
36ed4f51 RD |
24259 | } |
24260 | { | |
32fe5131 | 24261 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD))); |
36ed4f51 RD |
24262 | } |
24263 | { | |
32fe5131 | 24264 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN))); |
36ed4f51 RD |
24265 | } |
24266 | { | |
32fe5131 | 24267 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX))); |
36ed4f51 RD |
24268 | } |
24269 | { | |
32fe5131 | 24270 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX))); |
36ed4f51 RD |
24271 | } |
24272 | { | |
32fe5131 | 24273 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16))); |
36ed4f51 RD |
24274 | } |
24275 | { | |
32fe5131 | 24276 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32))); |
36ed4f51 RD |
24277 | } |
24278 | { | |
32fe5131 | 24279 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE))); |
36ed4f51 RD |
24280 | } |
24281 | { | |
32fe5131 | 24282 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312))); |
36ed4f51 RD |
24283 | } |
24284 | { | |
32fe5131 | 24285 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5))); |
36ed4f51 RD |
24286 | } |
24287 | { | |
32fe5131 | 24288 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS))); |
36ed4f51 RD |
24289 | } |
24290 | ||
24291 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
24292 | ||
24293 | { | |
32fe5131 | 24294 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT))); |
36ed4f51 RD |
24295 | } |
24296 | { | |
32fe5131 | 24297 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN))); |
36ed4f51 RD |
24298 | } |
24299 | { | |
32fe5131 | 24300 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN))); |
36ed4f51 RD |
24301 | } |
24302 | { | |
32fe5131 | 24303 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR))); |
36ed4f51 RD |
24304 | } |
24305 | { | |
32fe5131 | 24306 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS))); |
36ed4f51 RD |
24307 | } |
24308 | { | |
32fe5131 | 24309 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN))); |
36ed4f51 RD |
24310 | } |
24311 | { | |
32fe5131 | 24312 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC))); |
36ed4f51 RD |
24313 | } |
24314 | { | |
32fe5131 | 24315 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC))); |
36ed4f51 RD |
24316 | } |
24317 | { | |
32fe5131 | 24318 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA))); |
36ed4f51 RD |
24319 | } |
24320 | { | |
32fe5131 | 24321 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN))); |
36ed4f51 RD |
24322 | } |
24323 | { | |
32fe5131 | 24324 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT))); |
36ed4f51 RD |
24325 | } |
24326 | { | |
32fe5131 | 24327 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ))); |
36ed4f51 RD |
24328 | } |
24329 | { | |
32fe5131 | 24330 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN))); |
36ed4f51 RD |
24331 | } |
24332 | { | |
32fe5131 | 24333 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT))); |
36ed4f51 RD |
24334 | } |
24335 | { | |
32fe5131 | 24336 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON))); |
36ed4f51 RD |
24337 | } |
24338 | { | |
32fe5131 | 24339 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA))); |
36ed4f51 RD |
24340 | } |
24341 | { | |
32fe5131 | 24342 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO))); |
36ed4f51 RD |
24343 | } |
24344 | { | |
32fe5131 | 24345 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN))); |
36ed4f51 RD |
24346 | } |
24347 | { | |
32fe5131 | 24348 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR))); |
36ed4f51 RD |
24349 | } |
24350 | { | |
32fe5131 | 24351 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); |
36ed4f51 RD |
24352 | } |
24353 | { | |
32fe5131 | 24354 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN))); |
36ed4f51 RD |
24355 | } |
24356 | { | |
32fe5131 | 24357 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA))); |
36ed4f51 RD |
24358 | } |
24359 | { | |
32fe5131 | 24360 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA))); |
36ed4f51 RD |
24361 | } |
24362 | { | |
32fe5131 | 24363 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE))); |
36ed4f51 RD |
24364 | } |
24365 | { | |
32fe5131 | 24366 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN))); |
36ed4f51 RD |
24367 | } |
24368 | { | |
32fe5131 | 24369 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN))); |
36ed4f51 RD |
24370 | } |
24371 | { | |
32fe5131 | 24372 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE))); |
36ed4f51 RD |
24373 | } |
24374 | { | |
32fe5131 | 24375 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA))); |
36ed4f51 RD |
24376 | } |
24377 | { | |
32fe5131 | 24378 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI))); |
36ed4f51 RD |
24379 | } |
24380 | { | |
32fe5131 | 24381 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC))); |
36ed4f51 RD |
24382 | } |
24383 | { | |
32fe5131 | 24384 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN))); |
36ed4f51 RD |
24385 | } |
24386 | { | |
32fe5131 | 24387 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR))); |
36ed4f51 RD |
24388 | } |
24389 | { | |
32fe5131 | 24390 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE))); |
36ed4f51 RD |
24391 | } |
24392 | { | |
32fe5131 | 24393 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN))); |
36ed4f51 RD |
24394 | } |
24395 | { | |
32fe5131 | 24396 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI))); |
36ed4f51 RD |
24397 | } |
24398 | { | |
32fe5131 | 24399 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI))); |
36ed4f51 RD |
24400 | } |
24401 | { | |
32fe5131 | 24402 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI))); |
36ed4f51 RD |
24403 | } |
24404 | { | |
32fe5131 | 24405 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA))); |
36ed4f51 RD |
24406 | } |
24407 | { | |
32fe5131 | 24408 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON))); |
36ed4f51 RD |
24409 | } |
24410 | { | |
32fe5131 | 24411 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN))); |
36ed4f51 RD |
24412 | } |
24413 | { | |
32fe5131 | 24414 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE))); |
36ed4f51 RD |
24415 | } |
24416 | { | |
32fe5131 | 24417 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN))); |
36ed4f51 RD |
24418 | } |
24419 | { | |
32fe5131 | 24420 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN))); |
36ed4f51 RD |
24421 | } |
24422 | { | |
32fe5131 | 24423 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE))); |
36ed4f51 RD |
24424 | } |
24425 | { | |
32fe5131 | 24426 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); |
36ed4f51 RD |
24427 | } |
24428 | { | |
32fe5131 | 24429 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL))); |
36ed4f51 RD |
24430 | } |
24431 | { | |
32fe5131 | 24432 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG))); |
36ed4f51 RD |
24433 | } |
24434 | { | |
32fe5131 | 24435 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU))); |
36ed4f51 RD |
24436 | } |
24437 | { | |
32fe5131 | 24438 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE))); |
36ed4f51 RD |
24439 | } |
24440 | { | |
32fe5131 | 24441 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN))); |
36ed4f51 RD |
24442 | } |
24443 | { | |
32fe5131 | 24444 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN))); |
36ed4f51 RD |
24445 | } |
24446 | { | |
32fe5131 | 24447 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN))); |
36ed4f51 RD |
24448 | } |
24449 | { | |
32fe5131 | 24450 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH))); |
36ed4f51 RD |
24451 | } |
24452 | { | |
32fe5131 | 24453 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH))); |
36ed4f51 RD |
24454 | } |
24455 | { | |
32fe5131 | 24456 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH))); |
36ed4f51 RD |
24457 | } |
24458 | { | |
32fe5131 | 24459 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN))); |
36ed4f51 RD |
24460 | } |
24461 | { | |
32fe5131 | 24462 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH))); |
36ed4f51 RD |
24463 | } |
24464 | { | |
32fe5131 | 24465 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK))); |
36ed4f51 RD |
24466 | } |
24467 | { | |
32fe5131 | 24468 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US))); |
36ed4f51 RD |
24469 | } |
24470 | { | |
32fe5131 | 24471 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); |
36ed4f51 RD |
24472 | } |
24473 | { | |
32fe5131 | 24474 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE))); |
36ed4f51 RD |
24475 | } |
24476 | { | |
32fe5131 | 24477 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA))); |
36ed4f51 RD |
24478 | } |
24479 | { | |
32fe5131 | 24480 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA))); |
36ed4f51 RD |
24481 | } |
24482 | { | |
32fe5131 | 24483 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); |
36ed4f51 RD |
24484 | } |
24485 | { | |
32fe5131 | 24486 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK))); |
36ed4f51 RD |
24487 | } |
24488 | { | |
32fe5131 | 24489 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE))); |
36ed4f51 RD |
24490 | } |
24491 | { | |
32fe5131 | 24492 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA))); |
36ed4f51 RD |
24493 | } |
24494 | { | |
32fe5131 | 24495 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); |
36ed4f51 RD |
24496 | } |
24497 | { | |
32fe5131 | 24498 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); |
36ed4f51 RD |
24499 | } |
24500 | { | |
32fe5131 | 24501 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); |
36ed4f51 RD |
24502 | } |
24503 | { | |
32fe5131 | 24504 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD))); |
36ed4f51 RD |
24505 | } |
24506 | { | |
32fe5131 | 24507 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); |
36ed4f51 RD |
24508 | } |
24509 | { | |
32fe5131 | 24510 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO))); |
36ed4f51 RD |
24511 | } |
24512 | { | |
32fe5131 | 24513 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN))); |
36ed4f51 RD |
24514 | } |
24515 | { | |
32fe5131 | 24516 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE))); |
36ed4f51 RD |
24517 | } |
24518 | { | |
32fe5131 | 24519 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI))); |
36ed4f51 RD |
24520 | } |
24521 | { | |
32fe5131 | 24522 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI))); |
36ed4f51 RD |
24523 | } |
24524 | { | |
32fe5131 | 24525 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH))); |
36ed4f51 RD |
24526 | } |
24527 | { | |
32fe5131 | 24528 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH))); |
36ed4f51 RD |
24529 | } |
24530 | { | |
32fe5131 | 24531 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN))); |
36ed4f51 RD |
24532 | } |
24533 | { | |
32fe5131 | 24534 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN))); |
36ed4f51 RD |
24535 | } |
24536 | { | |
32fe5131 | 24537 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); |
36ed4f51 RD |
24538 | } |
24539 | { | |
32fe5131 | 24540 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO))); |
36ed4f51 RD |
24541 | } |
24542 | { | |
32fe5131 | 24543 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS))); |
36ed4f51 RD |
24544 | } |
24545 | { | |
32fe5131 | 24546 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN))); |
36ed4f51 RD |
24547 | } |
24548 | { | |
32fe5131 | 24549 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN))); |
36ed4f51 RD |
24550 | } |
24551 | { | |
32fe5131 | 24552 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN))); |
36ed4f51 RD |
24553 | } |
24554 | { | |
32fe5131 | 24555 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN))); |
36ed4f51 RD |
24556 | } |
24557 | { | |
32fe5131 | 24558 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN))); |
36ed4f51 RD |
24559 | } |
24560 | { | |
32fe5131 | 24561 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM))); |
36ed4f51 RD |
24562 | } |
24563 | { | |
32fe5131 | 24564 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); |
36ed4f51 RD |
24565 | } |
24566 | { | |
32fe5131 | 24567 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); |
36ed4f51 RD |
24568 | } |
24569 | { | |
32fe5131 | 24570 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS))); |
36ed4f51 RD |
24571 | } |
24572 | { | |
32fe5131 | 24573 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK))); |
36ed4f51 RD |
24574 | } |
24575 | { | |
32fe5131 | 24576 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC))); |
36ed4f51 RD |
24577 | } |
24578 | { | |
32fe5131 | 24579 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI))); |
36ed4f51 RD |
24580 | } |
24581 | { | |
32fe5131 | 24582 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI))); |
36ed4f51 RD |
24583 | } |
24584 | { | |
32fe5131 | 24585 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA))); |
36ed4f51 RD |
24586 | } |
24587 | { | |
32fe5131 | 24588 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW))); |
36ed4f51 RD |
24589 | } |
24590 | { | |
32fe5131 | 24591 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI))); |
36ed4f51 RD |
24592 | } |
24593 | { | |
32fe5131 | 24594 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN))); |
36ed4f51 RD |
24595 | } |
24596 | { | |
32fe5131 | 24597 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC))); |
36ed4f51 RD |
24598 | } |
24599 | { | |
32fe5131 | 24600 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN))); |
36ed4f51 RD |
24601 | } |
24602 | { | |
32fe5131 | 24603 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA))); |
36ed4f51 RD |
24604 | } |
24605 | { | |
32fe5131 | 24606 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE))); |
36ed4f51 RD |
24607 | } |
24608 | { | |
32fe5131 | 24609 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT))); |
36ed4f51 RD |
24610 | } |
24611 | { | |
32fe5131 | 24612 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK))); |
36ed4f51 RD |
24613 | } |
24614 | { | |
32fe5131 | 24615 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH))); |
36ed4f51 RD |
24616 | } |
24617 | { | |
32fe5131 | 24618 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN))); |
36ed4f51 RD |
24619 | } |
24620 | { | |
32fe5131 | 24621 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS))); |
36ed4f51 RD |
24622 | } |
24623 | { | |
32fe5131 | 24624 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE))); |
36ed4f51 RD |
24625 | } |
24626 | { | |
32fe5131 | 24627 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE))); |
36ed4f51 RD |
24628 | } |
24629 | { | |
32fe5131 | 24630 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA))); |
36ed4f51 RD |
24631 | } |
24632 | { | |
32fe5131 | 24633 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI))); |
36ed4f51 RD |
24634 | } |
24635 | { | |
32fe5131 | 24636 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA))); |
36ed4f51 RD |
24637 | } |
24638 | { | |
32fe5131 | 24639 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH))); |
36ed4f51 RD |
24640 | } |
24641 | { | |
32fe5131 | 24642 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK))); |
36ed4f51 RD |
24643 | } |
24644 | { | |
32fe5131 | 24645 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA))); |
36ed4f51 RD |
24646 | } |
24647 | { | |
32fe5131 | 24648 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ))); |
36ed4f51 RD |
24649 | } |
24650 | { | |
32fe5131 | 24651 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI))); |
36ed4f51 RD |
24652 | } |
24653 | { | |
32fe5131 | 24654 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI))); |
36ed4f51 RD |
24655 | } |
24656 | { | |
32fe5131 | 24657 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN))); |
36ed4f51 RD |
24658 | } |
24659 | { | |
32fe5131 | 24660 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH))); |
36ed4f51 RD |
24661 | } |
24662 | { | |
32fe5131 | 24663 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN))); |
36ed4f51 RD |
24664 | } |
24665 | { | |
32fe5131 | 24666 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN))); |
36ed4f51 RD |
24667 | } |
24668 | { | |
32fe5131 | 24669 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN))); |
36ed4f51 RD |
24670 | } |
24671 | { | |
32fe5131 | 24672 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA))); |
36ed4f51 RD |
24673 | } |
24674 | { | |
32fe5131 | 24675 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN))); |
36ed4f51 RD |
24676 | } |
24677 | { | |
32fe5131 | 24678 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN))); |
36ed4f51 RD |
24679 | } |
24680 | { | |
32fe5131 | 24681 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY))); |
36ed4f51 RD |
24682 | } |
24683 | { | |
32fe5131 | 24684 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY))); |
36ed4f51 RD |
24685 | } |
24686 | { | |
32fe5131 | 24687 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM))); |
36ed4f51 RD |
24688 | } |
24689 | { | |
32fe5131 | 24690 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); |
36ed4f51 RD |
24691 | } |
24692 | { | |
32fe5131 | 24693 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA))); |
36ed4f51 RD |
24694 | } |
24695 | { | |
32fe5131 | 24696 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE))); |
36ed4f51 RD |
24697 | } |
24698 | { | |
32fe5131 | 24699 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI))); |
36ed4f51 RD |
24700 | } |
24701 | { | |
32fe5131 | 24702 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI))); |
36ed4f51 RD |
24703 | } |
24704 | { | |
32fe5131 | 24705 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI))); |
36ed4f51 RD |
24706 | } |
24707 | { | |
32fe5131 | 24708 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN))); |
36ed4f51 RD |
24709 | } |
24710 | { | |
32fe5131 | 24711 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN))); |
36ed4f51 RD |
24712 | } |
24713 | { | |
32fe5131 | 24714 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU))); |
36ed4f51 RD |
24715 | } |
24716 | { | |
32fe5131 | 24717 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI))); |
36ed4f51 RD |
24718 | } |
24719 | { | |
32fe5131 | 24720 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA))); |
36ed4f51 RD |
24721 | } |
24722 | { | |
32fe5131 | 24723 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); |
36ed4f51 RD |
24724 | } |
24725 | { | |
32fe5131 | 24726 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); |
36ed4f51 RD |
24727 | } |
24728 | { | |
32fe5131 | 24729 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN))); |
36ed4f51 RD |
24730 | } |
24731 | { | |
32fe5131 | 24732 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA))); |
36ed4f51 RD |
24733 | } |
24734 | { | |
32fe5131 | 24735 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO))); |
36ed4f51 RD |
24736 | } |
24737 | { | |
32fe5131 | 24738 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO))); |
36ed4f51 RD |
24739 | } |
24740 | { | |
32fe5131 | 24741 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH))); |
36ed4f51 RD |
24742 | } |
24743 | { | |
32fe5131 | 24744 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE))); |
36ed4f51 RD |
24745 | } |
24746 | { | |
32fe5131 | 24747 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); |
36ed4f51 RD |
24748 | } |
24749 | { | |
32fe5131 | 24750 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI))); |
36ed4f51 RD |
24751 | } |
24752 | { | |
32fe5131 | 24753 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA))); |
36ed4f51 RD |
24754 | } |
24755 | { | |
32fe5131 | 24756 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE))); |
36ed4f51 RD |
24757 | } |
24758 | { | |
32fe5131 | 24759 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN))); |
36ed4f51 RD |
24760 | } |
24761 | { | |
32fe5131 | 24762 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN))); |
36ed4f51 RD |
24763 | } |
24764 | { | |
32fe5131 | 24765 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE))); |
36ed4f51 RD |
24766 | } |
24767 | { | |
32fe5131 | 24768 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN))); |
36ed4f51 RD |
24769 | } |
24770 | { | |
32fe5131 | 24771 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO))); |
36ed4f51 RD |
24772 | } |
24773 | { | |
32fe5131 | 24774 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT))); |
36ed4f51 RD |
24775 | } |
24776 | { | |
32fe5131 | 24777 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC))); |
36ed4f51 RD |
24778 | } |
24779 | { | |
32fe5131 | 24780 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN))); |
36ed4f51 RD |
24781 | } |
24782 | { | |
32fe5131 | 24783 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC))); |
36ed4f51 RD |
24784 | } |
24785 | { | |
32fe5131 | 24786 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN))); |
36ed4f51 RD |
24787 | } |
24788 | { | |
32fe5131 | 24789 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN))); |
36ed4f51 RD |
24790 | } |
24791 | { | |
32fe5131 | 24792 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO))); |
36ed4f51 RD |
24793 | } |
24794 | { | |
32fe5131 | 24795 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA))); |
36ed4f51 RD |
24796 | } |
24797 | { | |
32fe5131 | 24798 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA))); |
36ed4f51 RD |
24799 | } |
24800 | { | |
32fe5131 | 24801 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI))); |
36ed4f51 RD |
24802 | } |
24803 | { | |
32fe5131 | 24804 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE))); |
36ed4f51 RD |
24805 | } |
24806 | { | |
32fe5131 | 24807 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI))); |
36ed4f51 RD |
24808 | } |
24809 | { | |
32fe5131 | 24810 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK))); |
36ed4f51 RD |
24811 | } |
24812 | { | |
32fe5131 | 24813 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN))); |
36ed4f51 RD |
24814 | } |
24815 | { | |
32fe5131 | 24816 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI))); |
36ed4f51 RD |
24817 | } |
24818 | { | |
32fe5131 | 24819 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH))); |
36ed4f51 RD |
24820 | } |
24821 | { | |
32fe5131 | 24822 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA))); |
36ed4f51 RD |
24823 | } |
24824 | { | |
32fe5131 | 24825 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA))); |
36ed4f51 RD |
24826 | } |
24827 | { | |
32fe5131 | 24828 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE))); |
36ed4f51 RD |
24829 | } |
24830 | { | |
32fe5131 | 24831 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA))); |
36ed4f51 RD |
24832 | } |
24833 | { | |
32fe5131 | 24834 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA))); |
36ed4f51 RD |
24835 | } |
24836 | { | |
32fe5131 | 24837 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); |
36ed4f51 RD |
24838 | } |
24839 | { | |
32fe5131 | 24840 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR))); |
36ed4f51 RD |
24841 | } |
24842 | { | |
32fe5131 | 24843 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); |
36ed4f51 RD |
24844 | } |
24845 | { | |
32fe5131 | 24846 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA))); |
36ed4f51 RD |
24847 | } |
24848 | { | |
32fe5131 | 24849 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS))); |
36ed4f51 RD |
24850 | } |
24851 | { | |
32fe5131 | 24852 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN))); |
36ed4f51 RD |
24853 | } |
24854 | { | |
32fe5131 | 24855 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN))); |
36ed4f51 RD |
24856 | } |
24857 | { | |
32fe5131 | 24858 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA))); |
36ed4f51 RD |
24859 | } |
24860 | { | |
32fe5131 | 24861 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA))); |
36ed4f51 RD |
24862 | } |
24863 | { | |
32fe5131 | 24864 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY))); |
36ed4f51 RD |
24865 | } |
24866 | { | |
32fe5131 | 24867 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU))); |
36ed4f51 RD |
24868 | } |
24869 | { | |
32fe5131 | 24870 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); |
36ed4f51 RD |
24871 | } |
24872 | { | |
32fe5131 | 24873 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY))); |
36ed4f51 RD |
24874 | } |
24875 | { | |
32fe5131 | 24876 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US))); |
36ed4f51 RD |
24877 | } |
24878 | { | |
32fe5131 | 24879 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA))); |
36ed4f51 RD |
24880 | } |
24881 | { | |
32fe5131 | 24882 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE))); |
36ed4f51 RD |
24883 | } |
24884 | { | |
32fe5131 | 24885 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI))); |
36ed4f51 RD |
24886 | } |
24887 | { | |
32fe5131 | 24888 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH))); |
36ed4f51 RD |
24889 | } |
24890 | { | |
32fe5131 | 24891 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND))); |
36ed4f51 RD |
24892 | } |
24893 | { | |
32fe5131 | 24894 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG))); |
36ed4f51 RD |
24895 | } |
24896 | { | |
32fe5131 | 24897 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK))); |
36ed4f51 RD |
24898 | } |
24899 | { | |
32fe5131 | 24900 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL))); |
36ed4f51 RD |
24901 | } |
24902 | { | |
32fe5131 | 24903 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR))); |
36ed4f51 RD |
24904 | } |
24905 | { | |
32fe5131 | 24906 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU))); |
36ed4f51 RD |
24907 | } |
24908 | { | |
32fe5131 | 24909 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI))); |
36ed4f51 RD |
24910 | } |
24911 | { | |
32fe5131 | 24912 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN))); |
36ed4f51 RD |
24913 | } |
24914 | { | |
32fe5131 | 24915 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA))); |
36ed4f51 RD |
24916 | } |
24917 | { | |
32fe5131 | 24918 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA))); |
36ed4f51 RD |
24919 | } |
24920 | { | |
32fe5131 | 24921 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA))); |
36ed4f51 RD |
24922 | } |
24923 | { | |
32fe5131 | 24924 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH))); |
36ed4f51 RD |
24925 | } |
24926 | { | |
32fe5131 | 24927 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN))); |
36ed4f51 RD |
24928 | } |
24929 | { | |
32fe5131 | 24930 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI))); |
36ed4f51 RD |
24931 | } |
24932 | { | |
32fe5131 | 24933 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR))); |
36ed4f51 RD |
24934 | } |
24935 | { | |
32fe5131 | 24936 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN))); |
36ed4f51 RD |
24937 | } |
24938 | { | |
32fe5131 | 24939 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU))); |
36ed4f51 RD |
24940 | } |
24941 | { | |
32fe5131 | 24942 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA))); |
36ed4f51 RD |
24943 | } |
24944 | { | |
32fe5131 | 24945 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN))); |
36ed4f51 RD |
24946 | } |
24947 | { | |
32fe5131 | 24948 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK))); |
36ed4f51 RD |
24949 | } |
24950 | { | |
32fe5131 | 24951 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC))); |
36ed4f51 RD |
24952 | } |
24953 | { | |
32fe5131 | 24954 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN))); |
36ed4f51 RD |
24955 | } |
24956 | { | |
32fe5131 | 24957 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE))); |
36ed4f51 RD |
24958 | } |
24959 | { | |
32fe5131 | 24960 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK))); |
36ed4f51 RD |
24961 | } |
24962 | { | |
32fe5131 | 24963 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH))); |
36ed4f51 RD |
24964 | } |
24965 | { | |
32fe5131 | 24966 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF))); |
36ed4f51 RD |
24967 | } |
24968 | { | |
32fe5131 | 24969 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA))); |
36ed4f51 RD |
24970 | } |
24971 | { | |
32fe5131 | 24972 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH))); |
36ed4f51 RD |
24973 | } |
24974 | { | |
32fe5131 | 24975 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA))); |
36ed4f51 RD |
24976 | } |
24977 | { | |
32fe5131 | 24978 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG))); |
36ed4f51 RD |
24979 | } |
24980 | { | |
32fe5131 | 24981 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU))); |
36ed4f51 RD |
24982 | } |
24983 | { | |
32fe5131 | 24984 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED))); |
36ed4f51 RD |
24985 | } |
24986 | { | |
32fe5131 | 24987 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER))); |
36ed4f51 RD |
24988 | } |
24989 | { | |
32fe5131 | 24990 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE))); |
36ed4f51 RD |
24991 | } |
24992 | { | |
32fe5131 | 24993 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY))); |
36ed4f51 RD |
24994 | } |
24995 | { | |
32fe5131 | 24996 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX))); |
36ed4f51 RD |
24997 | } |
24998 | { | |
32fe5131 | 24999 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP))); |
36ed4f51 RD |
25000 | } |
25001 | { | |
32fe5131 | 25002 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT))); |
36ed4f51 RD |
25003 | } |
25004 | { | |
32fe5131 | 25005 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT))); |
36ed4f51 RD |
25006 | } |
25007 | { | |
32fe5131 | 25008 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING))); |
36ed4f51 RD |
25009 | } |
25010 | { | |
32fe5131 | 25011 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT))); |
36ed4f51 RD |
25012 | } |
25013 | { | |
32fe5131 | 25014 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE))); |
36ed4f51 RD |
25015 | } |
25016 | { | |
32fe5131 | 25017 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT))); |
36ed4f51 RD |
25018 | } |
25019 | { | |
32fe5131 | 25020 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX))); |
36ed4f51 RD |
25021 | } |
25022 | { | |
32fe5131 | 25023 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS))); |
36ed4f51 RD |
25024 | } |
25025 | { | |
32fe5131 | 25026 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2))); |
36ed4f51 RD |
25027 | } |
25028 | { | |
32fe5131 | 25029 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC))); |
36ed4f51 | 25030 | } |
e2950dbb | 25031 | { |
32fe5131 | 25032 | PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA))); |
e2950dbb RD |
25033 | } |
25034 | { | |
32fe5131 | 25035 | PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA))); |
e2950dbb | 25036 | } |
36ed4f51 | 25037 | { |
32fe5131 | 25038 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL))); |
36ed4f51 RD |
25039 | } |
25040 | { | |
32fe5131 | 25041 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT))); |
36ed4f51 RD |
25042 | } |
25043 | { | |
32fe5131 | 25044 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED))); |
36ed4f51 RD |
25045 | } |
25046 | { | |
32fe5131 | 25047 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED))); |
36ed4f51 RD |
25048 | } |
25049 | { | |
32fe5131 | 25050 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL))); |
36ed4f51 RD |
25051 | } |
25052 | { | |
32fe5131 | 25053 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL))); |
36ed4f51 RD |
25054 | } |
25055 | { | |
32fe5131 | 25056 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE))); |
36ed4f51 | 25057 | } |
d55e5bfc RD |
25058 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
25059 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
25060 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
25061 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
25062 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
25063 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
25064 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
25065 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
25066 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
25067 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
25068 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
25069 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
25070 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
25071 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
25072 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
25073 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
25074 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
25075 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
25076 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
25077 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
25078 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
25079 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
25080 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
25081 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
25082 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
25083 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
25084 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
25085 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
25086 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
25087 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
25088 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
25089 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
25090 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
25091 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
25092 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
25093 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
25094 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
25095 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
25096 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
25097 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
25098 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
25099 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
25100 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
25101 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
25102 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
25103 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
25104 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
be9b1dca | 25105 | { |
32fe5131 | 25106 | PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED))); |
be9b1dca RD |
25107 | } |
25108 | { | |
32fe5131 | 25109 | PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED))); |
be9b1dca RD |
25110 | } |
25111 | { | |
32fe5131 | 25112 | PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED))); |
be9b1dca RD |
25113 | } |
25114 | { | |
32fe5131 | 25115 | PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT))); |
be9b1dca RD |
25116 | } |
25117 | { | |
32fe5131 | 25118 | PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU))); |
be9b1dca RD |
25119 | } |
25120 | { | |
32fe5131 | 25121 | PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED))); |
be9b1dca RD |
25122 | } |
25123 | { | |
32fe5131 | 25124 | PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT))); |
be9b1dca RD |
25125 | } |
25126 | { | |
32fe5131 | 25127 | PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED))); |
be9b1dca RD |
25128 | } |
25129 | { | |
32fe5131 | 25130 | PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED))); |
be9b1dca RD |
25131 | } |
25132 | { | |
32fe5131 | 25133 | PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE))); |
be9b1dca RD |
25134 | } |
25135 | { | |
32fe5131 | 25136 | PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED))); |
be9b1dca RD |
25137 | } |
25138 | { | |
32fe5131 | 25139 | PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK))); |
be9b1dca RD |
25140 | } |
25141 | { | |
32fe5131 | 25142 | PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY))); |
be9b1dca RD |
25143 | } |
25144 | { | |
32fe5131 | 25145 | PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version))); |
be9b1dca RD |
25146 | } |
25147 | { | |
32fe5131 | 25148 | PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age))); |
be9b1dca | 25149 | } |
d55e5bfc RD |
25150 | |
25151 | // Work around a chicken/egg problem in drawlist.cpp | |
25152 | wxPyDrawList_SetAPIPtr(); | |
25153 | ||
25154 | } | |
25155 |