]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
32fe5131 | 3 | * Version 1.3.27 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
32fe5131 RD |
29 | /*********************************************************************** |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
d14a1e28 | 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 | |
093d3ff1 | 40 | # else |
32fe5131 | 41 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
42 | # endif |
43 | #endif | |
d14a1e28 | 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 | ||
c9c7117a | 96 | |
093d3ff1 | 97 | #include <Python.h> |
d14a1e28 RD |
98 | |
99 | /*********************************************************************** | |
093d3ff1 | 100 | * swigrun.swg |
d14a1e28 | 101 | * |
093d3ff1 RD |
102 | * This file contains generic CAPI SWIG runtime support for pointer |
103 | * type checking. | |
d14a1e28 RD |
104 | * |
105 | ************************************************************************/ | |
106 | ||
093d3ff1 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" |
d14a1e28 | 110 | |
093d3ff1 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) | |
d14a1e28 | 116 | #else |
32fe5131 | 117 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 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 | |
093d3ff1 | 129 | #ifndef SWIGRUNTIME |
32fe5131 | 130 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 131 | #endif |
32fe5131 | 132 | |
093d3ff1 | 133 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
135 | #endif |
136 | ||
32fe5131 RD |
137 | #include <string.h> |
138 | ||
d14a1e28 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 */ |
d14a1e28 | 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 */ | |
d14a1e28 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 | ||
093d3ff1 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); |
093d3ff1 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 |
093d3ff1 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; |
093d3ff1 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 | |
093d3ff1 | 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; | |
093d3ff1 | 225 | } |
32fe5131 RD |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
227 | if (*ne) ++ne; | |
093d3ff1 | 228 | } |
32fe5131 | 229 | return equiv; |
093d3ff1 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 | ||
093d3ff1 RD |
255 | /* |
256 | Check the typename | |
257 | */ | |
32fe5131 | 258 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 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); | |
093d3ff1 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) { |
093d3ff1 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 | ||
093d3ff1 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; | |
093d3ff1 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); | |
093d3ff1 | 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); | |
093d3ff1 | 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); | |
093d3ff1 | 413 | } |
32fe5131 RD |
414 | |
415 | /* neither found a match */ | |
416 | return 0; | |
093d3ff1 RD |
417 | } |
418 | ||
32fe5131 | 419 | |
093d3ff1 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; | |
093d3ff1 | 428 | for (; u != eu; ++u) { |
32fe5131 | 429 | register unsigned char uu = *u; |
093d3ff1 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; |
093d3ff1 | 443 | for (; u != eu; ++u) { |
32fe5131 | 444 | register char d = *(c++); |
093d3ff1 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 | ||
093d3ff1 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 | } | |
d14a1e28 | 505 | |
093d3ff1 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 | } | |
d14a1e28 RD |
518 | |
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
093d3ff1 RD |
523 | /* ----------------------------------------------------------------------------- |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 526 | |
093d3ff1 RD |
527 | #ifdef __cplusplus |
528 | extern "C" { | |
529 | #endif | |
c32bde28 | 530 | |
093d3ff1 RD |
531 | /* ----------------------------------------------------------------------------- |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 534 | |
093d3ff1 | 535 | #ifndef SWIGINTERN |
32fe5131 | 536 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 | 537 | #endif |
d14a1e28 | 538 | |
32fe5131 RD |
539 | #ifndef SWIGINTERNINLINE |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 | 541 | #endif |
d14a1e28 | 542 | |
093d3ff1 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 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 562 | |
093d3ff1 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; | |
d14a1e28 | 579 | |
c32bde28 | 580 | |
093d3ff1 RD |
581 | /* ----------------------------------------------------------------------------- |
582 | * Alloc. memory flags | |
583 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
584 | #define SWIG_OLDOBJ 1 |
585 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
586 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 587 | |
994141e6 | 588 | #ifdef __cplusplus |
093d3ff1 RD |
589 | } |
590 | #endif | |
994141e6 | 591 | |
15afbcd0 | 592 | |
093d3ff1 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 | ************************************************************************/ | |
15afbcd0 | 602 | |
093d3ff1 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 | ||
994141e6 | 608 | |
093d3ff1 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) | |
994141e6 | 612 | |
32fe5131 RD |
613 | /* Runtime API */ |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
994141e6 | 616 | |
093d3ff1 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 | |
994141e6 | 628 | |
093d3ff1 RD |
629 | /* Flags for pointer conversion */ |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 632 | |
994141e6 | 633 | |
32fe5131 RD |
634 | /* Add PyOS_snprintf for old Pythons */ |
635 | #if PY_VERSION_HEX < 0x02020000 | |
636 | #define PyOS_snprintf snprintf | |
637 | #endif | |
638 | ||
093d3ff1 RD |
639 | #ifdef __cplusplus |
640 | extern "C" { | |
641 | #endif | |
c32bde28 | 642 | |
093d3ff1 RD |
643 | /* ----------------------------------------------------------------------------- |
644 | * Create a new pointer string | |
645 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 RD |
646 | #ifndef SWIG_BUFFER_SIZE |
647 | #define SWIG_BUFFER_SIZE 1024 | |
648 | #endif | |
994141e6 | 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 | ||
093d3ff1 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 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 673 | |
093d3ff1 RD |
674 | typedef struct { |
675 | PyObject_HEAD | |
676 | void *ptr; | |
677 | const char *desc; | |
678 | } PySwigObject; | |
c32bde28 | 679 | |
093d3ff1 | 680 | /* Declarations for objects of type PySwigObject */ |
c32bde28 | 681 | |
093d3ff1 RD |
682 | SWIGRUNTIME int |
683 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
684 | { | |
685 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 686 | flags = flags; |
093d3ff1 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; | |
15afbcd0 | 690 | } else { |
093d3ff1 | 691 | return 1; |
15afbcd0 RD |
692 | } |
693 | } | |
093d3ff1 RD |
694 | |
695 | SWIGRUNTIME PyObject * | |
696 | PySwigObject_repr(PySwigObject *v) | |
c32bde28 | 697 | { |
093d3ff1 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; | |
c32bde28 | 701 | } |
15afbcd0 | 702 | |
093d3ff1 RD |
703 | SWIGRUNTIME PyObject * |
704 | PySwigObject_str(PySwigObject *v) | |
c32bde28 | 705 | { |
093d3ff1 RD |
706 | char result[SWIG_BUFFER_SIZE]; |
707 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
708 | PyString_FromString(result) : 0; | |
c32bde28 | 709 | } |
15afbcd0 | 710 | |
093d3ff1 RD |
711 | SWIGRUNTIME PyObject * |
712 | PySwigObject_long(PySwigObject *v) | |
15afbcd0 | 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; | |
c32bde28 RD |
731 | } |
732 | ||
093d3ff1 RD |
733 | SWIGRUNTIME PyObject * |
734 | PySwigObject_oct(PySwigObject *v) | |
c32bde28 | 735 | { |
32fe5131 | 736 | return PySwigObject_format("%o",v); |
15afbcd0 RD |
737 | } |
738 | ||
093d3ff1 RD |
739 | SWIGRUNTIME PyObject * |
740 | PySwigObject_hex(PySwigObject *v) | |
69223c70 | 741 | { |
32fe5131 | 742 | return PySwigObject_format("%x",v); |
69223c70 RD |
743 | } |
744 | ||
093d3ff1 RD |
745 | SWIGRUNTIME int |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
15afbcd0 | 747 | { |
093d3ff1 RD |
748 | int c = strcmp(v->desc, w->desc); |
749 | if (c) { | |
32fe5131 | 750 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
751 | } else { |
752 | void *i = v->ptr; | |
753 | void *j = w->ptr; | |
32fe5131 | 754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
15afbcd0 | 755 | } |
093d3ff1 | 756 | } |
15afbcd0 | 757 | |
093d3ff1 RD |
758 | SWIGRUNTIME void |
759 | PySwigObject_dealloc(PySwigObject *self) | |
760 | { | |
32fe5131 | 761 | PyObject_Del(self); |
093d3ff1 | 762 | } |
15afbcd0 | 763 | |
093d3ff1 | 764 | SWIGRUNTIME PyTypeObject* |
32fe5131 RD |
765 | PySwigObject_type(void) { |
766 | static char pyswigobject_type__doc__[] = | |
093d3ff1 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 |
093d3ff1 | 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 */ | |
093d3ff1 RD |
797 | #endif |
798 | }; | |
799 | ||
32fe5131 RD |
800 | static PyTypeObject pyswigobject_type |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
093d3ff1 | 804 | if (!type_init) { |
32fe5131 RD |
805 | PyTypeObject tmp |
806 | #endif | |
807 | = { | |
093d3ff1 RD |
808 | PyObject_HEAD_INIT(&PyType_Type) |
809 | 0, /*ob_size*/ | |
32fe5131 | 810 | (char *)"PySwigObject", /*tp_name*/ |
093d3ff1 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 */ | |
093d3ff1 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; | |
093d3ff1 | 849 | type_init = 1; |
c32bde28 | 850 | } |
32fe5131 RD |
851 | #endif |
852 | return &pyswigobject_type; | |
15afbcd0 RD |
853 | } |
854 | ||
093d3ff1 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 | } | |
093d3ff1 RD |
863 | return (PyObject *)self; |
864 | } | |
15afbcd0 | 865 | |
093d3ff1 RD |
866 | SWIGRUNTIMEINLINE void * |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
15afbcd0 | 868 | { |
093d3ff1 RD |
869 | return ((PySwigObject *)self)->ptr; |
870 | } | |
871 | ||
872 | SWIGRUNTIMEINLINE const char * | |
873 | PySwigObject_GetDesc(PyObject *self) | |
874 | { | |
875 | return ((PySwigObject *)self)->desc; | |
876 | } | |
877 | ||
878 | SWIGRUNTIMEINLINE int | |
879 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 880 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 | 881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
15afbcd0 RD |
882 | } |
883 | ||
093d3ff1 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) | |
897 | { | |
898 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 899 | flags = flags; |
093d3ff1 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); | |
904 | } | |
905 | fputs(v->desc,fp); | |
906 | fputs(">", fp); | |
907 | return 0; | |
908 | } | |
c32bde28 | 909 | |
093d3ff1 RD |
910 | SWIGRUNTIME PyObject * |
911 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 912 | { |
093d3ff1 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 | } | |
c32bde28 RD |
919 | } |
920 | ||
093d3ff1 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); |
093d3ff1 RD |
929 | } |
930 | } | |
c32bde28 | 931 | |
093d3ff1 RD |
932 | SWIGRUNTIME int |
933 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 934 | { |
093d3ff1 RD |
935 | int c = strcmp(v->desc, w->desc); |
936 | if (c) { | |
32fe5131 | 937 | return (c > 0) ? 1 : -1; |
093d3ff1 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); |
093d3ff1 | 942 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
15afbcd0 | 943 | } |
c32bde28 RD |
944 | } |
945 | ||
093d3ff1 RD |
946 | SWIGRUNTIME void |
947 | PySwigPacked_dealloc(PySwigPacked *self) | |
948 | { | |
949 | free(self->pack); | |
32fe5131 | 950 | PyObject_Del(self); |
093d3ff1 RD |
951 | } |
952 | ||
953 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
954 | PySwigPacked_type(void) { |
955 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 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; | |
093d3ff1 | 961 | if (!type_init) { |
32fe5131 RD |
962 | PyTypeObject tmp |
963 | #endif | |
964 | = { | |
093d3ff1 RD |
965 | PyObject_HEAD_INIT(&PyType_Type) |
966 | 0, /*ob_size*/ | |
32fe5131 | 967 | (char *)"PySwigPacked", /*tp_name*/ |
093d3ff1 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 */ | |
093d3ff1 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; | |
093d3ff1 RD |
1006 | type_init = 1; |
1007 | } | |
32fe5131 RD |
1008 | #endif |
1009 | return &pyswigpacked_type; | |
093d3ff1 RD |
1010 | } |
1011 | ||
1012 | SWIGRUNTIME PyObject * | |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
c32bde28 | 1014 | { |
32fe5131 | 1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 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; | |
093d3ff1 | 1028 | } |
994141e6 RD |
1029 | } |
1030 | ||
093d3ff1 RD |
1031 | SWIGRUNTIMEINLINE const char * |
1032 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1033 | { | |
1034 | PySwigPacked *self = (PySwigPacked *)obj; | |
1035 | if (self->size != size) return 0; | |
1036 | memcpy(ptr, self->pack, size); | |
1037 | return self->desc; | |
1038 | } | |
b88bce5f | 1039 | |
093d3ff1 RD |
1040 | SWIGRUNTIMEINLINE const char * |
1041 | PySwigPacked_GetDesc(PyObject *self) | |
15afbcd0 | 1042 | { |
093d3ff1 | 1043 | return ((PySwigPacked *)self)->desc; |
15afbcd0 RD |
1044 | } |
1045 | ||
093d3ff1 RD |
1046 | SWIGRUNTIMEINLINE int |
1047 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1048 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 RD |
1049 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1050 | } | |
15afbcd0 | 1051 | |
093d3ff1 RD |
1052 | #else |
1053 | /* ----------------------------------------------------------------------------- | |
1054 | * Use the old Python PyCObject instead of PySwigObject | |
1055 | * ----------------------------------------------------------------------------- */ | |
1056 | ||
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) | |
1061 | ||
1062 | #endif | |
1063 | ||
1064 | #endif | |
1065 | ||
1066 | /* ----------------------------------------------------------------------------- | |
1067 | * errors manipulation | |
1068 | * ----------------------------------------------------------------------------- */ | |
1069 | ||
1070 | SWIGRUNTIME void | |
1071 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
15afbcd0 | 1072 | { |
093d3ff1 RD |
1073 | if (type) { |
1074 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1075 | if (obj && PySwigObject_Check(obj)) { |
093d3ff1 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); |
093d3ff1 RD |
1097 | return; |
1098 | } | |
1099 | } | |
1100 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1101 | } else { | |
1102 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
15afbcd0 | 1103 | } |
15afbcd0 RD |
1104 | } |
1105 | ||
093d3ff1 RD |
1106 | SWIGRUNTIMEINLINE void |
1107 | SWIG_Python_NullRef(const char *type) | |
15afbcd0 | 1108 | { |
093d3ff1 RD |
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 | } | |
994141e6 RD |
1114 | } |
1115 | ||
093d3ff1 RD |
1116 | SWIGRUNTIME int |
1117 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1118 | { | |
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; | |
1138 | } | |
1139 | } | |
994141e6 | 1140 | |
093d3ff1 RD |
1141 | SWIGRUNTIME int |
1142 | SWIG_Python_ArgFail(int argnum) | |
1143 | { | |
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); |
093d3ff1 RD |
1148 | return SWIG_Python_AddErrMesg(mesg, 1); |
1149 | } else { | |
1150 | return 0; | |
1151 | } | |
1152 | } | |
d14a1e28 | 1153 | |
093d3ff1 RD |
1154 | |
1155 | /* ----------------------------------------------------------------------------- | |
1156 | * pointers/data manipulation | |
1157 | * ----------------------------------------------------------------------------- */ | |
1158 | ||
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; |
093d3ff1 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; | |
7e63a440 | 1173 | } |
d14a1e28 | 1174 | |
093d3ff1 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); |
093d3ff1 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 | |
c32bde28 | 1211 | |
093d3ff1 | 1212 | type_check: |
093d3ff1 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 | } | |
093d3ff1 RD |
1220 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1221 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1222 | } | |
1223 | return 0; | |
d14a1e28 | 1224 | |
093d3ff1 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; |
093d3ff1 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 | } | |
d14a1e28 | 1249 | |
093d3ff1 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); | |
d14a1e28 | 1259 | } |
093d3ff1 RD |
1260 | } |
1261 | return result; | |
1262 | } | |
d14a1e28 | 1263 | |
093d3ff1 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; |
093d3ff1 | 1268 | const char *c = 0; |
d14a1e28 | 1269 | |
093d3ff1 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); |
093d3ff1 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; | |
d14a1e28 | 1284 | |
093d3ff1 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 | } | |
15afbcd0 | 1293 | } |
093d3ff1 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 | } | |
093d3ff1 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; | |
c32bde28 RD |
1335 | } |
1336 | ||
093d3ff1 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; | |
994141e6 RD |
1354 | } |
1355 | ||
093d3ff1 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) { | |
093d3ff1 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); | |
15afbcd0 | 1371 | #else |
093d3ff1 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 | } | |
15afbcd0 | 1378 | #endif |
32fe5131 RD |
1379 | } |
1380 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 1381 | } |
d14a1e28 | 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; | |
093d3ff1 | 1412 | } |
32fe5131 | 1413 | #endif |
d14a1e28 | 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 | } | |
d14a1e28 | 1426 | |
093d3ff1 RD |
1427 | #ifdef __cplusplus |
1428 | } | |
1429 | #endif | |
d14a1e28 | 1430 | |
d14a1e28 | 1431 | |
093d3ff1 | 1432 | /* -------- TYPES TABLE (BEGIN) -------- */ |
d14a1e28 | 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) | |
d14a1e28 | 1576 | |
093d3ff1 | 1577 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 1578 | |
d14a1e28 | 1579 | |
093d3ff1 RD |
1580 | /*----------------------------------------------- |
1581 | @(target):= _gdi_.so | |
1582 | ------------------------------------------------*/ | |
1583 | #define SWIG_init init_gdi_ | |
d14a1e28 | 1584 | |
093d3ff1 | 1585 | #define SWIG_name "_gdi_" |
d14a1e28 | 1586 | |
093d3ff1 RD |
1587 | #include "wx/wxPython/wxPython.h" |
1588 | #include "wx/wxPython/pyclasses.h" | |
1589 | ||
d14a1e28 | 1590 | |
093d3ff1 | 1591 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 1592 | |
093d3ff1 | 1593 | #include <limits.h> |
d14a1e28 RD |
1594 | |
1595 | ||
093d3ff1 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 | } | |
d14a1e28 | 1617 | |
994141e6 | 1618 | |
093d3ff1 RD |
1619 | SWIGINTERN int |
1620 | SWIG_AsVal_long(PyObject* obj, long* val) | |
994141e6 | 1621 | { |
c32bde28 | 1622 | if (PyNumber_Check(obj)) { |
093d3ff1 | 1623 | if (val) *val = PyInt_AsLong(obj); |
c32bde28 RD |
1624 | return 1; |
1625 | } | |
69223c70 | 1626 | else { |
093d3ff1 | 1627 | SWIG_type_error("number", obj); |
69223c70 | 1628 | } |
c32bde28 | 1629 | return 0; |
15afbcd0 RD |
1630 | } |
1631 | ||
1632 | ||
093d3ff1 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); |
093d3ff1 RD |
1642 | return 1; |
1643 | } else { | |
1644 | return 0; | |
1645 | } | |
1646 | } else { | |
1647 | PyErr_Clear(); | |
15afbcd0 | 1648 | } |
093d3ff1 RD |
1649 | if (val) { |
1650 | SWIG_type_error(errmsg, obj); | |
1651 | } | |
1652 | return 0; | |
c32bde28 | 1653 | } |
093d3ff1 | 1654 | #else |
32fe5131 | 1655 | SWIGINTERNINLINE int |
093d3ff1 | 1656 | SWIG_AsVal_int(PyObject *obj, int *val) |
c32bde28 | 1657 | { |
093d3ff1 | 1658 | return SWIG_AsVal_long(obj,(long*)val); |
994141e6 | 1659 | } |
093d3ff1 | 1660 | #endif |
994141e6 | 1661 | |
c32bde28 | 1662 | |
093d3ff1 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 | } | |
c32bde28 | 1686 | |
d14a1e28 | 1687 | |
32fe5131 | 1688 | SWIGINTERNINLINE bool |
093d3ff1 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; | |
d14a1e28 RD |
1699 | } |
1700 | ||
093d3ff1 | 1701 | |
32fe5131 | 1702 | SWIGINTERNINLINE int |
093d3ff1 RD |
1703 | SWIG_Check_bool(PyObject* obj) |
1704 | { | |
1705 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1706 | } | |
b88bce5f | 1707 | |
b88bce5f | 1708 | |
093d3ff1 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 | } | |
d14a1e28 RD |
1720 | |
1721 | ||
32fe5131 | 1722 | SWIGINTERNINLINE int |
093d3ff1 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 | } | |
d14a1e28 | 1737 | |
d14a1e28 | 1738 | |
093d3ff1 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); |
093d3ff1 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 | } | |
d14a1e28 RD |
1759 | |
1760 | ||
32fe5131 | 1761 | SWIGINTERNINLINE unsigned char |
093d3ff1 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 | } | |
33b885b9 | 1773 | |
093d3ff1 | 1774 | |
32fe5131 | 1775 | SWIGINTERNINLINE int |
093d3ff1 RD |
1776 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
1777 | { | |
1778 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
1779 | } | |
d14a1e28 RD |
1780 | |
1781 | ||
32fe5131 | 1782 | SWIGINTERNINLINE unsigned long |
093d3ff1 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; | |
1793 | } | |
d14a1e28 | 1794 | |
093d3ff1 | 1795 | |
32fe5131 | 1796 | SWIGINTERNINLINE int |
093d3ff1 RD |
1797 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1798 | { | |
1799 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1800 | } | |
d14a1e28 | 1801 | |
d14a1e28 | 1802 | |
32fe5131 | 1803 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1804 | #define SWIG_From_unsigned_SS_char PyInt_FromLong |
1805 | /*@@*/ | |
d14a1e28 RD |
1806 | |
1807 | ||
32fe5131 | 1808 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1809 | #define SWIG_From_long PyInt_FromLong |
1810 | /*@@*/ | |
d14a1e28 | 1811 | |
093d3ff1 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 | } | |
d14a1e28 | 1830 | |
32fe5131 | 1831 | SWIGINTERNINLINE PyObject* |
093d3ff1 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)); |
d14a1e28 RD |
1837 | } |
1838 | ||
1839 | ||
32fe5131 | 1840 | SWIGINTERNINLINE int |
093d3ff1 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; | |
d14a1e28 RD |
1851 | } |
1852 | ||
093d3ff1 | 1853 | |
32fe5131 | 1854 | SWIGINTERNINLINE int |
093d3ff1 RD |
1855 | SWIG_Check_int(PyObject* obj) |
1856 | { | |
1857 | return SWIG_AsVal_int(obj, (int*)0); | |
d14a1e28 RD |
1858 | } |
1859 | ||
1860 | ||
32fe5131 | 1861 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1862 | #define SWIG_From_int PyInt_FromLong |
1863 | /*@@*/ | |
d14a1e28 RD |
1864 | |
1865 | ||
093d3ff1 RD |
1866 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1867 | PyObject* o2; | |
1868 | PyObject* o3; | |
d14a1e28 | 1869 | |
093d3ff1 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); | |
1883 | ||
1884 | o2 = target; | |
1885 | target = PySequence_Concat(o2, o3); | |
1886 | Py_DECREF(o2); | |
1887 | Py_DECREF(o3); | |
d14a1e28 | 1888 | } |
093d3ff1 RD |
1889 | return target; |
1890 | } | |
d14a1e28 RD |
1891 | |
1892 | ||
093d3ff1 RD |
1893 | static PyObject *wxPen_GetDashes(wxPen *self){ |
1894 | wxDash* dashes; | |
1895 | int count = self->GetDashes(&dashes); | |
5a446332 | 1896 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 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(); |
093d3ff1 RD |
1908 | int size = PyList_Size(pyDashes); |
1909 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 1910 | |
093d3ff1 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; } | |
d14a1e28 | 1927 | |
093d3ff1 | 1928 | #include <wx/image.h> |
b88bce5f | 1929 | |
093d3ff1 RD |
1930 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
1931 | char** cArray = NULL; | |
1932 | int count; | |
1933 | ||
1934 | if (!PyList_Check(listOfStrings)) { | |
1935 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
1936 | return NULL; | |
1937 | } | |
1938 | count = PyList_Size(listOfStrings); | |
1939 | cArray = new char*[count]; | |
1940 | ||
1941 | for(int x=0; x<count; x++) { | |
1942 | // TODO: Need some validation and error checking here | |
1943 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
1944 | } | |
1945 | return cArray; | |
b88bce5f | 1946 | } |
b88bce5f RD |
1947 | |
1948 | ||
093d3ff1 RD |
1949 | static wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
1950 | char** cArray = NULL; | |
1951 | wxBitmap* bmp; | |
d14a1e28 | 1952 | |
093d3ff1 RD |
1953 | cArray = ConvertListOfStrings(listOfStrings); |
1954 | if (! cArray) | |
1955 | return NULL; | |
1956 | bmp = new wxBitmap(cArray); | |
1957 | delete [] cArray; | |
1958 | return bmp; | |
1959 | } | |
1960 | static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ | |
1961 | char* buf; | |
1962 | int length; | |
1963 | PyString_AsStringAndSize(bits, &buf, &length); | |
1964 | return new wxBitmap(buf, width, height, depth); | |
1965 | } | |
1966 | static wxSize wxBitmap_GetSize(wxBitmap *self){ | |
1967 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1968 | return size; | |
1969 | } | |
1970 | static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
1971 | wxMask *mask = new wxMask(*self, colour); | |
1972 | self->SetMask(mask); | |
1973 | } | |
1974 | static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
1975 | self->SetWidth(size.x); | |
1976 | self->SetHeight(size.y); | |
1977 | } | |
1978 | static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } | |
1979 | static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
1980 | static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
1981 | if ( !colour.Ok() ) | |
1982 | return new wxMask(bitmap, *wxBLACK); | |
1983 | else | |
1984 | return new wxMask(bitmap, colour); | |
1985 | } | |
d14a1e28 | 1986 | |
093d3ff1 | 1987 | #include <wx/iconbndl.h> |
d14a1e28 | 1988 | |
093d3ff1 RD |
1989 | static wxIcon *new_wxIcon(wxBitmap const &bmp){ |
1990 | wxIcon* icon = new wxIcon(); | |
1991 | icon->CopyFromBitmap(bmp); | |
1992 | return icon; | |
1993 | } | |
1994 | static wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
1995 | char** cArray = NULL; | |
1996 | wxIcon* icon; | |
d14a1e28 | 1997 | |
093d3ff1 RD |
1998 | cArray = ConvertListOfStrings(listOfStrings); |
1999 | if (! cArray) | |
2000 | return NULL; | |
2001 | icon = new wxIcon(cArray); | |
2002 | delete [] cArray; | |
2003 | return icon; | |
2004 | } | |
2005 | static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d14a1e28 RD |
2006 | |
2007 | ||
d14a1e28 | 2008 | |
093d3ff1 | 2009 | return new wxIconLocation(*filename); |
d14a1e28 | 2010 | |
093d3ff1 RD |
2011 | } |
2012 | static void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
d14a1e28 RD |
2013 | |
2014 | ||
d14a1e28 | 2015 | |
093d3ff1 | 2016 | // do nothing |
d14a1e28 | 2017 | |
093d3ff1 RD |
2018 | } |
2019 | static int wxIconLocation_GetIndex(wxIconLocation *self){ | |
b88bce5f RD |
2020 | |
2021 | ||
093d3ff1 RD |
2022 | |
2023 | return -1; | |
2024 | ||
2025 | } | |
2026 | ||
32fe5131 | 2027 | SWIGINTERNINLINE long |
093d3ff1 RD |
2028 | SWIG_As_long(PyObject* obj) |
2029 | { | |
2030 | long v; | |
2031 | if (!SWIG_AsVal_long(obj, &v)) { | |
2032 | /* | |
2033 | this is needed to make valgrind/purify happier. | |
2034 | */ | |
2035 | memset((void*)&v, 0, sizeof(long)); | |
2036 | } | |
2037 | return v; | |
b88bce5f RD |
2038 | } |
2039 | ||
093d3ff1 | 2040 | |
32fe5131 | 2041 | SWIGINTERNINLINE int |
093d3ff1 RD |
2042 | SWIG_Check_long(PyObject* obj) |
2043 | { | |
2044 | return SWIG_AsVal_long(obj, (long*)0); | |
2045 | } | |
b88bce5f | 2046 | |
7557b9b5 | 2047 | static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 2048 | #ifdef __WXGTK__ |
7557b9b5 RD |
2049 | wxImage img(cursorName, type); |
2050 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
2051 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
2052 | return new wxCursor(img); | |
093d3ff1 | 2053 | #else |
7557b9b5 | 2054 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
2055 | #endif |
2056 | } | |
2057 | ||
2058 | ||
2059 | static void wxRegionIterator_Next(wxRegionIterator *self){ | |
2060 | (*self) ++; | |
2061 | } | |
2062 | static bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
2063 | return self->operator bool(); | |
2064 | } | |
2065 | ||
2066 | #include <wx/fontutil.h> | |
2067 | #include <wx/fontmap.h> | |
2068 | #include <wx/fontenum.h> | |
2069 | ||
2070 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
2071 | return self->ToString(); | |
2072 | } | |
2073 | ||
2074 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
2075 | static wxNativeEncodingInfo info; | |
2076 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
2077 | return &info; | |
2078 | else | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
2083 | wxFontEncoding alt_enc; | |
2084 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2085 | return PyInt_FromLong(alt_enc); | |
2086 | else { | |
2087 | Py_INCREF(Py_None); | |
2088 | return Py_None; | |
2089 | } | |
2090 | } | |
2091 | static wxFont *new_wxFont(wxString const &info){ | |
a97cefba RD |
2092 | wxNativeFontInfo nfi; |
2093 | nfi.FromString(info); | |
2094 | return new wxFont(nfi); | |
2095 | } | |
093d3ff1 | 2096 | static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
2097 | return wxFont::New(pointSize, family, flags, face, encoding); |
2098 | } | |
093d3ff1 | 2099 | 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 |
2100 | return wxFontBase::New(pixelSize, family, |
2101 | style, weight, underlined, | |
2102 | face, encoding); | |
2103 | } | |
73c8ef6a | 2104 | static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
2105 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
2106 | } | |
093d3ff1 RD |
2107 | static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
2108 | static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
2109 | ||
2110 | class wxPyFontEnumerator : public wxFontEnumerator { | |
2111 | public: | |
2112 | wxPyFontEnumerator() {} | |
2113 | ~wxPyFontEnumerator() {} | |
2114 | ||
2115 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
2116 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
2117 | ||
2118 | PYPRIVATE; | |
2119 | }; | |
2120 | ||
2121 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
2122 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
2123 | ||
2124 | ||
2125 | static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
2126 | wxArrayString* arr = self->GetEncodings(); | |
2127 | if (arr) | |
2128 | return wxArrayString2PyList_helper(*arr); | |
2129 | else | |
2130 | return PyList_New(0); | |
2131 | } | |
2132 | static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
2133 | wxArrayString* arr = self->GetFacenames(); | |
2134 | if (arr) | |
2135 | return wxArrayString2PyList_helper(*arr); | |
2136 | else | |
2137 | return PyList_New(0); | |
2138 | } | |
2139 | ||
2140 | #include <locale.h> | |
2141 | ||
2142 | static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
2143 | wxLocale* loc; | |
2144 | if (language == -1) | |
2145 | loc = new wxLocale(); | |
2146 | else | |
2147 | loc = new wxLocale(language, flags); | |
2148 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2149 | // for the floating point conversions and such to work right. | |
2150 | #if PY_VERSION_HEX < 0x02040000 | |
2151 | setlocale(LC_NUMERIC, "C"); | |
2152 | #endif | |
2153 | return loc; | |
2154 | } | |
2155 | static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ | |
2156 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
2157 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2158 | // for the floating point conversions and such to work right. | |
2159 | #if PY_VERSION_HEX < 0x02040000 | |
2160 | setlocale(LC_NUMERIC, "C"); | |
2161 | #endif | |
2162 | return rc; | |
2163 | } | |
2164 | static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
2165 | bool rc = self->Init(language, flags); | |
2166 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
2167 | // for the floating point conversions and such to work right. | |
2168 | #if PY_VERSION_HEX < 0x02040000 | |
2169 | setlocale(LC_NUMERIC, "C"); | |
2170 | #endif | |
2171 | return rc; | |
2172 | } | |
2173 | ||
2174 | #include "wx/wxPython/pydrawxxx.h" | |
2175 | ||
2176 | static wxColour wxDC_GetPixel(wxDC *self,int x,int y){ | |
2177 | wxColour col; | |
2178 | self->GetPixel(x, y, &col); | |
2179 | return col; | |
2180 | } | |
2181 | static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ | |
2182 | wxColour col; | |
2183 | self->GetPixel(pt, &col); | |
2184 | return col; | |
2185 | } | |
2186 | ||
2187 | SWIGINTERN int | |
2188 | SWIG_AsVal_double(PyObject *obj, double* val) | |
2189 | { | |
2190 | if (PyNumber_Check(obj)) { | |
2191 | if (val) *val = PyFloat_AsDouble(obj); | |
2192 | return 1; | |
d14a1e28 | 2193 | } |
093d3ff1 RD |
2194 | else { |
2195 | SWIG_type_error("number", obj); | |
2196 | } | |
2197 | return 0; | |
2198 | } | |
2199 | ||
2200 | ||
32fe5131 | 2201 | SWIGINTERNINLINE double |
093d3ff1 RD |
2202 | SWIG_As_double(PyObject* obj) |
2203 | { | |
2204 | double v; | |
2205 | if (!SWIG_AsVal_double(obj, &v)) { | |
2206 | /* | |
2207 | this is needed to make valgrind/purify happier. | |
2208 | */ | |
2209 | memset((void*)&v, 0, sizeof(double)); | |
2210 | } | |
2211 | return v; | |
2212 | } | |
2213 | ||
2214 | ||
32fe5131 | 2215 | SWIGINTERNINLINE int |
093d3ff1 RD |
2216 | SWIG_Check_double(PyObject* obj) |
2217 | { | |
2218 | return SWIG_AsVal_double(obj, (double*)0); | |
2219 | } | |
2220 | ||
2221 | static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ | |
2222 | wxRect rv; | |
2223 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
2224 | return rv; | |
2225 | } | |
2226 | ||
2227 | static wxRect wxDC_GetClippingRect(wxDC *self){ | |
2228 | wxRect rect; | |
2229 | self->GetClippingBox(rect); | |
2230 | return rect; | |
2231 | } | |
2232 | static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
2233 | wxArrayInt widths; | |
2234 | self->GetPartialTextExtents(text, widths); | |
2235 | return widths; | |
2236 | } | |
2237 | ||
32fe5131 | 2238 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
2239 | #define SWIG_From_double PyFloat_FromDouble |
2240 | /*@@*/ | |
2241 | ||
2242 | ||
2243 | static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ | |
2244 | self->SetLogicalOrigin(point.x, point.y); | |
2245 | } | |
2246 | static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
2247 | self->SetDeviceOrigin(point.x, point.y); | |
2248 | } | |
2249 | static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
2250 | self->CalcBoundingBox(point.x, point.y); | |
2251 | } | |
2252 | static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2253 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
2254 | } | |
2255 | static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2256 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
2257 | } | |
2258 | static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2259 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
2260 | } | |
2261 | static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2262 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
2263 | } | |
2264 | static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
2265 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
2266 | } | |
2267 | static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
2268 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
2269 | } | |
2270 | ||
2271 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
2272 | *x1 = dc->MinX(); | |
2273 | *y1 = dc->MinY(); | |
2274 | *x2 = dc->MaxX(); | |
2275 | *y2 = dc->MaxY(); | |
2276 | } | |
2277 | ||
2278 | ||
2279 | #include <wx/dcbuffer.h> | |
2280 | ||
2281 | ||
2282 | #include <wx/dcps.h> | |
2283 | ||
2284 | ||
2285 | class wxMetaFile : public wxObject { | |
2286 | public: | |
2287 | wxMetaFile(const wxString&) | |
2288 | { wxPyRaiseNotImplemented(); } | |
2289 | }; | |
2290 | ||
2291 | class wxMetaFileDC : public wxClientDC { | |
2292 | public: | |
2293 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
2294 | { wxPyRaiseNotImplemented(); } | |
2295 | }; | |
2296 | ||
2297 | ||
2298 | ||
2299 | class wxPrinterDC : public wxClientDC { | |
2300 | public: | |
2301 | wxPrinterDC(const wxPrintData&) | |
2302 | { wxPyRaiseNotImplemented(); } | |
2303 | ||
2304 | }; | |
2305 | ||
2306 | ||
2307 | ||
2308 | static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
2309 | self->AddColour(name, wxColour(red, green, blue)); | |
2310 | } | |
2311 | ||
2312 | #include <wx/effects.h> | |
2313 | ||
8d38bd1d RD |
2314 | |
2315 | #include "wx/renderer.h" | |
2316 | ||
2317 | ||
32fe5131 | 2318 | SWIGINTERNINLINE PyObject* |
8d38bd1d RD |
2319 | SWIG_From_bool(bool value) |
2320 | { | |
2321 | PyObject *obj = value ? Py_True : Py_False; | |
2322 | Py_INCREF(obj); | |
2323 | return obj; | |
2324 | } | |
2325 | ||
093d3ff1 RD |
2326 | #ifdef __cplusplus |
2327 | extern "C" { | |
2328 | #endif | |
2329 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2330 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2331 | wxGDIObject *result; |
2332 | char *kwnames[] = { | |
2333 | NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
d14a1e28 | 2337 | { |
093d3ff1 | 2338 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 2340 | result = (wxGDIObject *)new wxGDIObject(); |
d14a1e28 RD |
2341 | |
2342 | wxPyEndAllowThreads(__tstate); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | } | |
093d3ff1 | 2345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
2346 | return resultobj; |
2347 | fail: | |
2348 | return NULL; | |
2349 | } | |
2350 | ||
2351 | ||
093d3ff1 | 2352 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2353 | PyObject *resultobj = NULL; |
093d3ff1 | 2354 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
d14a1e28 | 2355 | PyObject * obj0 = 0 ; |
d14a1e28 | 2356 | char *kwnames[] = { |
093d3ff1 | 2357 | (char *) "self", NULL |
d14a1e28 RD |
2358 | }; |
2359 | ||
093d3ff1 RD |
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; |
2361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2363 | { |
093d3ff1 RD |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2365 | delete arg1; | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 2369 | } |
093d3ff1 RD |
2370 | Py_INCREF(Py_None); resultobj = Py_None; |
2371 | return resultobj; | |
2372 | fail: | |
2373 | return NULL; | |
2374 | } | |
2375 | ||
2376 | ||
2377 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2378 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2379 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2380 | bool result; | |
2381 | PyObject * obj0 = 0 ; | |
2382 | char *kwnames[] = { | |
2383 | (char *) "self", NULL | |
2384 | }; | |
2385 | ||
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
2387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2389 | { |
2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2391 | result = (bool)(arg1)->GetVisible(); |
d14a1e28 RD |
2392 | |
2393 | wxPyEndAllowThreads(__tstate); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | } | |
4f89f6a3 RD |
2396 | { |
2397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2398 | } | |
d14a1e28 RD |
2399 | return resultobj; |
2400 | fail: | |
2401 | return NULL; | |
2402 | } | |
2403 | ||
2404 | ||
093d3ff1 | 2405 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2406 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2407 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2408 | bool arg2 ; | |
c9c7117a | 2409 | PyObject * obj0 = 0 ; |
093d3ff1 | 2410 | PyObject * obj1 = 0 ; |
c9c7117a | 2411 | char *kwnames[] = { |
093d3ff1 | 2412 | (char *) "self",(char *) "visible", NULL |
c9c7117a RD |
2413 | }; |
2414 | ||
093d3ff1 RD |
2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; |
2416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2418 | { | |
32fe5131 | 2419 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
2420 | if (SWIG_arg_fail(2)) SWIG_fail; |
2421 | } | |
c9c7117a RD |
2422 | { |
2423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2424 | (arg1)->SetVisible(arg2); |
c9c7117a RD |
2425 | |
2426 | wxPyEndAllowThreads(__tstate); | |
2427 | if (PyErr_Occurred()) SWIG_fail; | |
2428 | } | |
093d3ff1 | 2429 | Py_INCREF(Py_None); resultobj = Py_None; |
c9c7117a RD |
2430 | return resultobj; |
2431 | fail: | |
c9c7117a RD |
2432 | return NULL; |
2433 | } | |
2434 | ||
2435 | ||
093d3ff1 | 2436 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2437 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2438 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; |
2439 | bool result; | |
d14a1e28 RD |
2440 | PyObject * obj0 = 0 ; |
2441 | char *kwnames[] = { | |
2442 | (char *) "self", NULL | |
2443 | }; | |
2444 | ||
093d3ff1 RD |
2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; |
2446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0); | |
2447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2448 | { |
2449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2450 | result = (bool)(arg1)->IsNull(); |
d14a1e28 RD |
2451 | |
2452 | wxPyEndAllowThreads(__tstate); | |
2453 | if (PyErr_Occurred()) SWIG_fail; | |
2454 | } | |
093d3ff1 RD |
2455 | { |
2456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2457 | } | |
d14a1e28 RD |
2458 | return resultobj; |
2459 | fail: | |
2460 | return NULL; | |
2461 | } | |
2462 | ||
2463 | ||
093d3ff1 | 2464 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2465 | PyObject *obj; |
2466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 2467 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); |
d14a1e28 RD |
2468 | Py_INCREF(obj); |
2469 | return Py_BuildValue((char *)""); | |
2470 | } | |
093d3ff1 | 2471 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2472 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2473 | byte arg1 = (byte) 0 ; |
2474 | byte arg2 = (byte) 0 ; | |
2475 | byte arg3 = (byte) 0 ; | |
2476 | wxColour *result; | |
994141e6 | 2477 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2478 | PyObject * obj1 = 0 ; |
2479 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2480 | char *kwnames[] = { |
093d3ff1 | 2481 | (char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2482 | }; |
2483 | ||
093d3ff1 RD |
2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2485 | if (obj0) { | |
2486 | { | |
32fe5131 | 2487 | arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0)); |
093d3ff1 RD |
2488 | if (SWIG_arg_fail(1)) SWIG_fail; |
2489 | } | |
2490 | } | |
2491 | if (obj1) { | |
2492 | { | |
32fe5131 | 2493 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
093d3ff1 RD |
2494 | if (SWIG_arg_fail(2)) SWIG_fail; |
2495 | } | |
2496 | } | |
2497 | if (obj2) { | |
2498 | { | |
32fe5131 | 2499 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
093d3ff1 RD |
2500 | if (SWIG_arg_fail(3)) SWIG_fail; |
2501 | } | |
2502 | } | |
d14a1e28 RD |
2503 | { |
2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2505 | result = (wxColour *)new wxColour(arg1,arg2,arg3); |
d14a1e28 RD |
2506 | |
2507 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2508 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2509 | } |
093d3ff1 | 2510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2511 | return resultobj; |
2512 | fail: | |
2513 | return NULL; | |
2514 | } | |
2515 | ||
2516 | ||
093d3ff1 | 2517 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2518 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2519 | wxString *arg1 = 0 ; |
2520 | wxColour *result; | |
2521 | bool temp1 = false ; | |
d14a1e28 RD |
2522 | PyObject * obj0 = 0 ; |
2523 | char *kwnames[] = { | |
093d3ff1 | 2524 | (char *) "colorName", NULL |
d14a1e28 RD |
2525 | }; |
2526 | ||
093d3ff1 RD |
2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; |
2528 | { | |
2529 | arg1 = wxString_in_helper(obj0); | |
2530 | if (arg1 == NULL) SWIG_fail; | |
2531 | temp1 = true; | |
2532 | } | |
d14a1e28 | 2533 | { |
093d3ff1 | 2534 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 2536 | result = (wxColour *)new wxColour((wxString const &)*arg1); |
d14a1e28 RD |
2537 | |
2538 | wxPyEndAllowThreads(__tstate); | |
2539 | if (PyErr_Occurred()) SWIG_fail; | |
2540 | } | |
093d3ff1 RD |
2541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
2542 | { | |
2543 | if (temp1) | |
2544 | delete arg1; | |
2545 | } | |
d14a1e28 RD |
2546 | return resultobj; |
2547 | fail: | |
093d3ff1 RD |
2548 | { |
2549 | if (temp1) | |
2550 | delete arg1; | |
2551 | } | |
d14a1e28 RD |
2552 | return NULL; |
2553 | } | |
2554 | ||
2555 | ||
093d3ff1 | 2556 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2557 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2558 | unsigned long arg1 ; |
2559 | wxColour *result; | |
d14a1e28 | 2560 | PyObject * obj0 = 0 ; |
d14a1e28 | 2561 | char *kwnames[] = { |
093d3ff1 | 2562 | (char *) "colRGB", NULL |
d14a1e28 RD |
2563 | }; |
2564 | ||
093d3ff1 RD |
2565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; |
2566 | { | |
32fe5131 | 2567 | arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 RD |
2568 | if (SWIG_arg_fail(1)) SWIG_fail; |
2569 | } | |
d14a1e28 RD |
2570 | { |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2572 | result = (wxColour *)new wxColour(arg1); |
d14a1e28 RD |
2573 | |
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
2576 | } | |
093d3ff1 | 2577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2578 | return resultobj; |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
093d3ff1 | 2584 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2585 | PyObject *resultobj = NULL; |
093d3ff1 | 2586 | wxColour *arg1 = (wxColour *) 0 ; |
d14a1e28 RD |
2587 | PyObject * obj0 = 0 ; |
2588 | char *kwnames[] = { | |
093d3ff1 | 2589 | (char *) "self", NULL |
d14a1e28 RD |
2590 | }; |
2591 | ||
093d3ff1 RD |
2592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; |
2593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2595 | { |
2596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2597 | delete arg1; |
d14a1e28 RD |
2598 | |
2599 | wxPyEndAllowThreads(__tstate); | |
2600 | if (PyErr_Occurred()) SWIG_fail; | |
2601 | } | |
093d3ff1 | 2602 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2603 | return resultobj; |
2604 | fail: | |
2605 | return NULL; | |
2606 | } | |
2607 | ||
2608 | ||
093d3ff1 | 2609 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2610 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2611 | wxColour *arg1 = (wxColour *) 0 ; |
2612 | byte result; | |
5cbf236d RD |
2613 | PyObject * obj0 = 0 ; |
2614 | char *kwnames[] = { | |
2615 | (char *) "self", NULL | |
2616 | }; | |
2617 | ||
093d3ff1 RD |
2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; |
2619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
2621 | { |
2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2623 | result = (byte)(arg1)->Red(); |
5cbf236d RD |
2624 | |
2625 | wxPyEndAllowThreads(__tstate); | |
2626 | if (PyErr_Occurred()) SWIG_fail; | |
2627 | } | |
093d3ff1 | 2628 | { |
32fe5131 | 2629 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
093d3ff1 | 2630 | } |
5cbf236d RD |
2631 | return resultobj; |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
093d3ff1 | 2637 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2638 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2639 | wxColour *arg1 = (wxColour *) 0 ; |
2640 | byte result; | |
d14a1e28 RD |
2641 | PyObject * obj0 = 0 ; |
2642 | char *kwnames[] = { | |
2643 | (char *) "self", NULL | |
2644 | }; | |
2645 | ||
093d3ff1 RD |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; |
2647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2649 | { |
2650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2651 | result = (byte)(arg1)->Green(); |
d14a1e28 RD |
2652 | |
2653 | wxPyEndAllowThreads(__tstate); | |
2654 | if (PyErr_Occurred()) SWIG_fail; | |
2655 | } | |
4f89f6a3 | 2656 | { |
32fe5131 | 2657 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
4f89f6a3 | 2658 | } |
d14a1e28 RD |
2659 | return resultobj; |
2660 | fail: | |
2661 | return NULL; | |
2662 | } | |
2663 | ||
2664 | ||
093d3ff1 | 2665 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2666 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2667 | wxColour *arg1 = (wxColour *) 0 ; |
2668 | byte result; | |
d14a1e28 RD |
2669 | PyObject * obj0 = 0 ; |
2670 | char *kwnames[] = { | |
093d3ff1 | 2671 | (char *) "self", NULL |
d14a1e28 RD |
2672 | }; |
2673 | ||
093d3ff1 RD |
2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; |
2675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2677 | { |
2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2679 | result = (byte)(arg1)->Blue(); |
d14a1e28 RD |
2680 | |
2681 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2682 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2683 | } |
093d3ff1 | 2684 | { |
32fe5131 | 2685 | resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result)); |
093d3ff1 | 2686 | } |
d14a1e28 RD |
2687 | return resultobj; |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
093d3ff1 | 2693 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2694 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2695 | wxColour *arg1 = (wxColour *) 0 ; |
2696 | bool result; | |
d14a1e28 RD |
2697 | PyObject * obj0 = 0 ; |
2698 | char *kwnames[] = { | |
2699 | (char *) "self", NULL | |
2700 | }; | |
2701 | ||
093d3ff1 RD |
2702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; |
2703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2705 | { |
2706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2707 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
2708 | |
2709 | wxPyEndAllowThreads(__tstate); | |
2710 | if (PyErr_Occurred()) SWIG_fail; | |
2711 | } | |
093d3ff1 RD |
2712 | { |
2713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2714 | } | |
d14a1e28 RD |
2715 | return resultobj; |
2716 | fail: | |
2717 | return NULL; | |
2718 | } | |
2719 | ||
2720 | ||
093d3ff1 | 2721 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2722 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2723 | wxColour *arg1 = (wxColour *) 0 ; |
2724 | byte arg2 ; | |
2725 | byte arg3 ; | |
2726 | byte arg4 ; | |
d14a1e28 | 2727 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
2728 | PyObject * obj1 = 0 ; |
2729 | PyObject * obj2 = 0 ; | |
2730 | PyObject * obj3 = 0 ; | |
d14a1e28 | 2731 | char *kwnames[] = { |
093d3ff1 | 2732 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
2733 | }; |
2734 | ||
093d3ff1 RD |
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2738 | { | |
32fe5131 | 2739 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
093d3ff1 RD |
2740 | if (SWIG_arg_fail(2)) SWIG_fail; |
2741 | } | |
2742 | { | |
32fe5131 | 2743 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
093d3ff1 RD |
2744 | if (SWIG_arg_fail(3)) SWIG_fail; |
2745 | } | |
2746 | { | |
32fe5131 | 2747 | arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3)); |
093d3ff1 RD |
2748 | if (SWIG_arg_fail(4)) SWIG_fail; |
2749 | } | |
d14a1e28 RD |
2750 | { |
2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2752 | (arg1)->Set(arg2,arg3,arg4); |
d14a1e28 RD |
2753 | |
2754 | wxPyEndAllowThreads(__tstate); | |
2755 | if (PyErr_Occurred()) SWIG_fail; | |
2756 | } | |
093d3ff1 | 2757 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2758 | return resultobj; |
2759 | fail: | |
2760 | return NULL; | |
2761 | } | |
2762 | ||
2763 | ||
093d3ff1 | 2764 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2765 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2766 | wxColour *arg1 = (wxColour *) 0 ; |
2767 | unsigned long arg2 ; | |
d14a1e28 | 2768 | PyObject * obj0 = 0 ; |
093d3ff1 | 2769 | PyObject * obj1 = 0 ; |
d14a1e28 | 2770 | char *kwnames[] = { |
093d3ff1 | 2771 | (char *) "self",(char *) "colRGB", NULL |
d14a1e28 RD |
2772 | }; |
2773 | ||
093d3ff1 RD |
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
2775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2777 | { | |
32fe5131 | 2778 | arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
2779 | if (SWIG_arg_fail(2)) SWIG_fail; |
2780 | } | |
d14a1e28 RD |
2781 | { |
2782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2783 | (arg1)->Set(arg2); |
d14a1e28 RD |
2784 | |
2785 | wxPyEndAllowThreads(__tstate); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | } | |
093d3ff1 | 2788 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
2789 | return resultobj; |
2790 | fail: | |
2791 | return NULL; | |
2792 | } | |
2793 | ||
2794 | ||
093d3ff1 | 2795 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2796 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2797 | wxColour *arg1 = (wxColour *) 0 ; |
2798 | wxString *arg2 = 0 ; | |
2799 | bool temp2 = false ; | |
d14a1e28 | 2800 | PyObject * obj0 = 0 ; |
093d3ff1 | 2801 | PyObject * obj1 = 0 ; |
d14a1e28 | 2802 | char *kwnames[] = { |
093d3ff1 | 2803 | (char *) "self",(char *) "colourName", NULL |
d14a1e28 RD |
2804 | }; |
2805 | ||
093d3ff1 RD |
2806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; |
2807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2809 | { | |
2810 | arg2 = wxString_in_helper(obj1); | |
2811 | if (arg2 == NULL) SWIG_fail; | |
2812 | temp2 = true; | |
2813 | } | |
d14a1e28 RD |
2814 | { |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2816 | (arg1)->InitFromName((wxString const &)*arg2); |
d14a1e28 RD |
2817 | |
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) SWIG_fail; | |
2820 | } | |
093d3ff1 RD |
2821 | Py_INCREF(Py_None); resultobj = Py_None; |
2822 | { | |
2823 | if (temp2) | |
2824 | delete arg2; | |
2825 | } | |
d14a1e28 RD |
2826 | return resultobj; |
2827 | fail: | |
093d3ff1 RD |
2828 | { |
2829 | if (temp2) | |
2830 | delete arg2; | |
2831 | } | |
d14a1e28 RD |
2832 | return NULL; |
2833 | } | |
2834 | ||
2835 | ||
093d3ff1 | 2836 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2837 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2838 | wxColour *arg1 = (wxColour *) 0 ; |
2839 | long result; | |
d14a1e28 RD |
2840 | PyObject * obj0 = 0 ; |
2841 | char *kwnames[] = { | |
2842 | (char *) "self", NULL | |
2843 | }; | |
2844 | ||
093d3ff1 RD |
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; |
2846 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2847 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2848 | { |
2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2850 | result = (long)((wxColour const *)arg1)->GetPixel(); |
d14a1e28 RD |
2851 | |
2852 | wxPyEndAllowThreads(__tstate); | |
2853 | if (PyErr_Occurred()) SWIG_fail; | |
2854 | } | |
093d3ff1 | 2855 | { |
32fe5131 | 2856 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 2857 | } |
d14a1e28 RD |
2858 | return resultobj; |
2859 | fail: | |
2860 | return NULL; | |
2861 | } | |
2862 | ||
2863 | ||
093d3ff1 | 2864 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2865 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2866 | wxColour *arg1 = (wxColour *) 0 ; |
2867 | wxColour *arg2 = 0 ; | |
2868 | bool result; | |
2869 | wxColour temp2 ; | |
d14a1e28 | 2870 | PyObject * obj0 = 0 ; |
093d3ff1 | 2871 | PyObject * obj1 = 0 ; |
d14a1e28 | 2872 | char *kwnames[] = { |
093d3ff1 | 2873 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
2874 | }; |
2875 | ||
093d3ff1 RD |
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; |
2877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2879 | { | |
2880 | arg2 = &temp2; | |
2881 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2882 | } | |
d14a1e28 RD |
2883 | { |
2884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2885 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); |
d14a1e28 RD |
2886 | |
2887 | wxPyEndAllowThreads(__tstate); | |
2888 | if (PyErr_Occurred()) SWIG_fail; | |
2889 | } | |
093d3ff1 RD |
2890 | { |
2891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2892 | } | |
d14a1e28 RD |
2893 | return resultobj; |
2894 | fail: | |
2895 | return NULL; | |
2896 | } | |
2897 | ||
2898 | ||
093d3ff1 | 2899 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2900 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2901 | wxColour *arg1 = (wxColour *) 0 ; |
2902 | wxColour *arg2 = 0 ; | |
d14a1e28 | 2903 | bool result; |
093d3ff1 | 2904 | wxColour temp2 ; |
d14a1e28 | 2905 | PyObject * obj0 = 0 ; |
093d3ff1 | 2906 | PyObject * obj1 = 0 ; |
d14a1e28 | 2907 | char *kwnames[] = { |
093d3ff1 | 2908 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
2909 | }; |
2910 | ||
093d3ff1 RD |
2911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; |
2912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2914 | { | |
2915 | arg2 = &temp2; | |
2916 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2917 | } | |
d14a1e28 RD |
2918 | { |
2919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2920 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); |
d14a1e28 RD |
2921 | |
2922 | wxPyEndAllowThreads(__tstate); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
4f89f6a3 RD |
2925 | { |
2926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2927 | } | |
d14a1e28 RD |
2928 | return resultobj; |
2929 | fail: | |
2930 | return NULL; | |
2931 | } | |
2932 | ||
2933 | ||
093d3ff1 | 2934 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2935 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2936 | wxColour *arg1 = (wxColour *) 0 ; |
2937 | PyObject *result; | |
d14a1e28 RD |
2938 | PyObject * obj0 = 0 ; |
2939 | char *kwnames[] = { | |
093d3ff1 | 2940 | (char *) "self", NULL |
d14a1e28 RD |
2941 | }; |
2942 | ||
093d3ff1 RD |
2943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
2944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2946 | { |
2947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2948 | result = (PyObject *)wxColour_Get(arg1); |
d14a1e28 RD |
2949 | |
2950 | wxPyEndAllowThreads(__tstate); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | } | |
093d3ff1 | 2953 | resultobj = result; |
d14a1e28 RD |
2954 | return resultobj; |
2955 | fail: | |
2956 | return NULL; | |
2957 | } | |
2958 | ||
2959 | ||
093d3ff1 | 2960 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2961 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2962 | wxColour *arg1 = (wxColour *) 0 ; |
2963 | unsigned long result; | |
d14a1e28 | 2964 | PyObject * obj0 = 0 ; |
d14a1e28 | 2965 | char *kwnames[] = { |
093d3ff1 | 2966 | (char *) "self", NULL |
d14a1e28 RD |
2967 | }; |
2968 | ||
093d3ff1 RD |
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
2970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
2971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2972 | { |
2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2974 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
2975 | |
2976 | wxPyEndAllowThreads(__tstate); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | } | |
093d3ff1 | 2979 | { |
32fe5131 | 2980 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 2981 | } |
d14a1e28 RD |
2982 | return resultobj; |
2983 | fail: | |
2984 | return NULL; | |
2985 | } | |
2986 | ||
2987 | ||
093d3ff1 RD |
2988 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
2989 | PyObject *obj; | |
2990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2991 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
2992 | Py_INCREF(obj); | |
2993 | return Py_BuildValue((char *)""); | |
2994 | } | |
2995 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2996 | PyObject *resultobj = NULL; |
093d3ff1 RD |
2997 | int arg1 ; |
2998 | unsigned char *arg2 = (unsigned char *) 0 ; | |
2999 | unsigned char *arg3 = (unsigned char *) 0 ; | |
3000 | unsigned char *arg4 = (unsigned char *) 0 ; | |
3001 | wxPalette *result; | |
d14a1e28 | 3002 | PyObject * obj0 = 0 ; |
994141e6 | 3003 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
3004 | PyObject * obj2 = 0 ; |
3005 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3006 | char *kwnames[] = { |
093d3ff1 | 3007 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
3008 | }; |
3009 | ||
093d3ff1 RD |
3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3011 | { | |
32fe5131 | 3012 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3013 | if (SWIG_arg_fail(1)) SWIG_fail; |
3014 | } | |
3015 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3017 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3018 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3019 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
3020 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 | 3021 | { |
093d3ff1 | 3022 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3024 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); |
d14a1e28 RD |
3025 | |
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
093d3ff1 | 3029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
3030 | return resultobj; |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
093d3ff1 | 3036 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3037 | PyObject *resultobj = NULL; |
093d3ff1 | 3038 | wxPalette *arg1 = (wxPalette *) 0 ; |
d14a1e28 RD |
3039 | PyObject * obj0 = 0 ; |
3040 | char *kwnames[] = { | |
093d3ff1 | 3041 | (char *) "self", NULL |
d14a1e28 RD |
3042 | }; |
3043 | ||
093d3ff1 RD |
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; |
3045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3047 | { |
3048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3049 | delete arg1; |
d14a1e28 RD |
3050 | |
3051 | wxPyEndAllowThreads(__tstate); | |
3052 | if (PyErr_Occurred()) SWIG_fail; | |
3053 | } | |
3054 | Py_INCREF(Py_None); resultobj = Py_None; | |
3055 | return resultobj; | |
3056 | fail: | |
3057 | return NULL; | |
3058 | } | |
3059 | ||
3060 | ||
093d3ff1 | 3061 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3062 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3063 | wxPalette *arg1 = (wxPalette *) 0 ; |
3064 | byte arg2 ; | |
3065 | byte arg3 ; | |
3066 | byte arg4 ; | |
3067 | int result; | |
d14a1e28 | 3068 | PyObject * obj0 = 0 ; |
994141e6 | 3069 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
3070 | PyObject * obj2 = 0 ; |
3071 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3072 | char *kwnames[] = { |
093d3ff1 | 3073 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL |
d14a1e28 RD |
3074 | }; |
3075 | ||
093d3ff1 RD |
3076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3079 | { | |
32fe5131 | 3080 | arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1)); |
093d3ff1 RD |
3081 | if (SWIG_arg_fail(2)) SWIG_fail; |
3082 | } | |
3083 | { | |
32fe5131 | 3084 | arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2)); |
093d3ff1 RD |
3085 | if (SWIG_arg_fail(3)) SWIG_fail; |
3086 | } | |
3087 | { | |
32fe5131 | 3088 | arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3)); |
093d3ff1 RD |
3089 | if (SWIG_arg_fail(4)) SWIG_fail; |
3090 | } | |
d14a1e28 RD |
3091 | { |
3092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3093 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); |
d14a1e28 RD |
3094 | |
3095 | wxPyEndAllowThreads(__tstate); | |
3096 | if (PyErr_Occurred()) SWIG_fail; | |
3097 | } | |
093d3ff1 | 3098 | { |
32fe5131 | 3099 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3100 | } |
d14a1e28 RD |
3101 | return resultobj; |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
093d3ff1 | 3107 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3108 | PyObject *resultobj = NULL; |
093d3ff1 | 3109 | wxPalette *arg1 = (wxPalette *) 0 ; |
d14a1e28 | 3110 | int arg2 ; |
093d3ff1 RD |
3111 | byte *arg3 = (byte *) 0 ; |
3112 | byte *arg4 = (byte *) 0 ; | |
3113 | byte *arg5 = (byte *) 0 ; | |
3114 | bool result; | |
3115 | byte temp3 ; | |
3116 | int res3 = 0 ; | |
3117 | byte temp4 ; | |
3118 | int res4 = 0 ; | |
3119 | byte temp5 ; | |
3120 | int res5 = 0 ; | |
d14a1e28 RD |
3121 | PyObject * obj0 = 0 ; |
3122 | PyObject * obj1 = 0 ; | |
3123 | char *kwnames[] = { | |
093d3ff1 | 3124 | (char *) "self",(char *) "pixel", NULL |
d14a1e28 RD |
3125 | }; |
3126 | ||
093d3ff1 RD |
3127 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
3128 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
3129 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
3130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
3131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 3133 | { |
32fe5131 | 3134 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 3135 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
3136 | } |
3137 | { | |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3139 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
3140 | |
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
d14a1e28 | 3144 | { |
093d3ff1 | 3145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 3146 | } |
093d3ff1 RD |
3147 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
3148 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
3149 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
3150 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
3151 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
3152 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0))); | |
3adfb63b RD |
3153 | return resultobj; |
3154 | fail: | |
3155 | return NULL; | |
3156 | } | |
3157 | ||
3158 | ||
093d3ff1 | 3159 | static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3160 | PyObject *resultobj = NULL; |
093d3ff1 | 3161 | wxPalette *arg1 = (wxPalette *) 0 ; |
c9c7117a RD |
3162 | int result; |
3163 | PyObject * obj0 = 0 ; | |
3164 | char *kwnames[] = { | |
3165 | (char *) "self", NULL | |
3166 | }; | |
3167 | ||
093d3ff1 RD |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail; |
3169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3171 | { |
3172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3173 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); |
d14a1e28 RD |
3174 | |
3175 | wxPyEndAllowThreads(__tstate); | |
3176 | if (PyErr_Occurred()) SWIG_fail; | |
3177 | } | |
d14a1e28 | 3178 | { |
32fe5131 | 3179 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 | 3180 | } |
d14a1e28 RD |
3181 | return resultobj; |
3182 | fail: | |
3183 | return NULL; | |
3184 | } | |
3185 | ||
3186 | ||
093d3ff1 | 3187 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3188 | PyObject *resultobj = NULL; |
093d3ff1 | 3189 | wxPalette *arg1 = (wxPalette *) 0 ; |
66c033b4 | 3190 | bool result; |
d14a1e28 | 3191 | PyObject * obj0 = 0 ; |
d14a1e28 | 3192 | char *kwnames[] = { |
093d3ff1 | 3193 | (char *) "self", NULL |
d14a1e28 RD |
3194 | }; |
3195 | ||
093d3ff1 RD |
3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; |
3197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
3198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3199 | { |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3201 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
3202 | |
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
d14a1e28 | 3206 | { |
66c033b4 | 3207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3208 | } |
3209 | return resultobj; | |
3210 | fail: | |
d14a1e28 RD |
3211 | return NULL; |
3212 | } | |
3213 | ||
3214 | ||
093d3ff1 | 3215 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3216 | PyObject *obj; |
3217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 3218 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); |
d14a1e28 RD |
3219 | Py_INCREF(obj); |
3220 | return Py_BuildValue((char *)""); | |
3221 | } | |
093d3ff1 | 3222 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3223 | PyObject *resultobj = NULL; |
d14a1e28 | 3224 | wxColour *arg1 = 0 ; |
093d3ff1 RD |
3225 | int arg2 = (int) 1 ; |
3226 | int arg3 = (int) wxSOLID ; | |
3227 | wxPen *result; | |
d14a1e28 RD |
3228 | wxColour temp1 ; |
3229 | PyObject * obj0 = 0 ; | |
994141e6 | 3230 | PyObject * obj1 = 0 ; |
093d3ff1 | 3231 | PyObject * obj2 = 0 ; |
d14a1e28 | 3232 | char *kwnames[] = { |
093d3ff1 | 3233 | (char *) "colour",(char *) "width",(char *) "style", NULL |
d14a1e28 RD |
3234 | }; |
3235 | ||
093d3ff1 | 3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3237 | { |
3238 | arg1 = &temp1; | |
3239 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3240 | } | |
994141e6 | 3241 | if (obj1) { |
093d3ff1 | 3242 | { |
32fe5131 | 3243 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3244 | if (SWIG_arg_fail(2)) SWIG_fail; |
3245 | } | |
3246 | } | |
3247 | if (obj2) { | |
3248 | { | |
32fe5131 | 3249 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
3250 | if (SWIG_arg_fail(3)) SWIG_fail; |
3251 | } | |
994141e6 | 3252 | } |
d14a1e28 | 3253 | { |
e3b71cb8 | 3254 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3256 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); |
d14a1e28 RD |
3257 | |
3258 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3259 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3260 | } |
093d3ff1 | 3261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
3262 | return resultobj; |
3263 | fail: | |
3264 | return NULL; | |
3265 | } | |
3266 | ||
3267 | ||
093d3ff1 | 3268 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3269 | PyObject *resultobj = NULL; |
093d3ff1 | 3270 | wxPen *arg1 = (wxPen *) 0 ; |
d14a1e28 RD |
3271 | PyObject * obj0 = 0 ; |
3272 | char *kwnames[] = { | |
3273 | (char *) "self", NULL | |
3274 | }; | |
3275 | ||
093d3ff1 RD |
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; |
3277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3279 | { |
3280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3281 | delete arg1; | |
3282 | ||
3283 | wxPyEndAllowThreads(__tstate); | |
3284 | if (PyErr_Occurred()) SWIG_fail; | |
3285 | } | |
3286 | Py_INCREF(Py_None); resultobj = Py_None; | |
3287 | return resultobj; | |
3288 | fail: | |
3289 | return NULL; | |
3290 | } | |
3291 | ||
3292 | ||
093d3ff1 | 3293 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3294 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3295 | wxPen *arg1 = (wxPen *) 0 ; |
3296 | int result; | |
d14a1e28 | 3297 | PyObject * obj0 = 0 ; |
d14a1e28 | 3298 | char *kwnames[] = { |
093d3ff1 | 3299 | (char *) "self", NULL |
d14a1e28 RD |
3300 | }; |
3301 | ||
093d3ff1 RD |
3302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; |
3303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3305 | { |
3306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3307 | result = (int)(arg1)->GetCap(); |
d14a1e28 RD |
3308 | |
3309 | wxPyEndAllowThreads(__tstate); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
3311 | } | |
093d3ff1 | 3312 | { |
32fe5131 | 3313 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3314 | } |
d14a1e28 RD |
3315 | return resultobj; |
3316 | fail: | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
093d3ff1 | 3321 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3322 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3323 | wxPen *arg1 = (wxPen *) 0 ; |
3324 | wxColour result; | |
d14a1e28 RD |
3325 | PyObject * obj0 = 0 ; |
3326 | char *kwnames[] = { | |
093d3ff1 | 3327 | (char *) "self", NULL |
d14a1e28 RD |
3328 | }; |
3329 | ||
093d3ff1 RD |
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; |
3331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3333 | { |
3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3335 | result = (arg1)->GetColour(); |
d14a1e28 RD |
3336 | |
3337 | wxPyEndAllowThreads(__tstate); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
3339 | } | |
093d3ff1 RD |
3340 | { |
3341 | wxColour * resultptr; | |
32fe5131 | 3342 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
3343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
3344 | } | |
d14a1e28 RD |
3345 | return resultobj; |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
093d3ff1 | 3351 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3352 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3353 | wxPen *arg1 = (wxPen *) 0 ; |
3354 | int result; | |
d14a1e28 | 3355 | PyObject * obj0 = 0 ; |
d14a1e28 | 3356 | char *kwnames[] = { |
093d3ff1 | 3357 | (char *) "self", NULL |
d14a1e28 RD |
3358 | }; |
3359 | ||
093d3ff1 RD |
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; |
3361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3363 | { |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3365 | result = (int)(arg1)->GetJoin(); |
d14a1e28 RD |
3366 | |
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
093d3ff1 | 3370 | { |
32fe5131 | 3371 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3372 | } |
d14a1e28 RD |
3373 | return resultobj; |
3374 | fail: | |
3375 | return NULL; | |
3376 | } | |
3377 | ||
3378 | ||
093d3ff1 | 3379 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3380 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3381 | wxPen *arg1 = (wxPen *) 0 ; |
3382 | int result; | |
d14a1e28 RD |
3383 | PyObject * obj0 = 0 ; |
3384 | char *kwnames[] = { | |
3385 | (char *) "self", NULL | |
3386 | }; | |
3387 | ||
093d3ff1 RD |
3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; |
3389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3391 | { |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3393 | result = (int)(arg1)->GetStyle(); |
d14a1e28 RD |
3394 | |
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | { | |
32fe5131 | 3399 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
3400 | } |
3401 | return resultobj; | |
3402 | fail: | |
3403 | return NULL; | |
3404 | } | |
3405 | ||
3406 | ||
093d3ff1 | 3407 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3408 | PyObject *resultobj = NULL; |
093d3ff1 | 3409 | wxPen *arg1 = (wxPen *) 0 ; |
d14a1e28 RD |
3410 | int result; |
3411 | PyObject * obj0 = 0 ; | |
3412 | char *kwnames[] = { | |
3413 | (char *) "self", NULL | |
3414 | }; | |
3415 | ||
093d3ff1 RD |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; |
3417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3419 | { |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3421 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
3422 | |
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) SWIG_fail; | |
3425 | } | |
093d3ff1 | 3426 | { |
32fe5131 | 3427 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3428 | } |
d14a1e28 RD |
3429 | return resultobj; |
3430 | fail: | |
3431 | return NULL; | |
3432 | } | |
3433 | ||
3434 | ||
093d3ff1 | 3435 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3436 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3437 | wxPen *arg1 = (wxPen *) 0 ; |
3438 | bool result; | |
d14a1e28 RD |
3439 | PyObject * obj0 = 0 ; |
3440 | char *kwnames[] = { | |
3441 | (char *) "self", NULL | |
3442 | }; | |
3443 | ||
093d3ff1 RD |
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; |
3445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3447 | { |
3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3449 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
3450 | |
3451 | wxPyEndAllowThreads(__tstate); | |
3452 | if (PyErr_Occurred()) SWIG_fail; | |
3453 | } | |
093d3ff1 RD |
3454 | { |
3455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3456 | } | |
d14a1e28 RD |
3457 | return resultobj; |
3458 | fail: | |
3459 | return NULL; | |
3460 | } | |
3461 | ||
3462 | ||
093d3ff1 | 3463 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3464 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3465 | wxPen *arg1 = (wxPen *) 0 ; |
3466 | int arg2 ; | |
f78cc896 | 3467 | PyObject * obj0 = 0 ; |
093d3ff1 | 3468 | PyObject * obj1 = 0 ; |
f78cc896 | 3469 | char *kwnames[] = { |
093d3ff1 | 3470 | (char *) "self",(char *) "cap_style", NULL |
f78cc896 RD |
3471 | }; |
3472 | ||
093d3ff1 RD |
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
3474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3476 | { | |
32fe5131 | 3477 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3478 | if (SWIG_arg_fail(2)) SWIG_fail; |
3479 | } | |
f78cc896 RD |
3480 | { |
3481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3482 | (arg1)->SetCap(arg2); |
f78cc896 RD |
3483 | |
3484 | wxPyEndAllowThreads(__tstate); | |
3485 | if (PyErr_Occurred()) SWIG_fail; | |
3486 | } | |
093d3ff1 | 3487 | Py_INCREF(Py_None); resultobj = Py_None; |
f78cc896 RD |
3488 | return resultobj; |
3489 | fail: | |
3490 | return NULL; | |
3491 | } | |
3492 | ||
3493 | ||
093d3ff1 | 3494 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3495 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3496 | wxPen *arg1 = (wxPen *) 0 ; |
3497 | wxColour *arg2 = 0 ; | |
3498 | wxColour temp2 ; | |
d14a1e28 | 3499 | PyObject * obj0 = 0 ; |
093d3ff1 | 3500 | PyObject * obj1 = 0 ; |
d14a1e28 | 3501 | char *kwnames[] = { |
093d3ff1 | 3502 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
3503 | }; |
3504 | ||
093d3ff1 RD |
3505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3508 | { | |
3509 | arg2 = &temp2; | |
3510 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3511 | } | |
d14a1e28 RD |
3512 | { |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3514 | (arg1)->SetColour(*arg2); |
d14a1e28 RD |
3515 | |
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
093d3ff1 | 3519 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3520 | return resultobj; |
3521 | fail: | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
093d3ff1 | 3526 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3527 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3528 | wxPen *arg1 = (wxPen *) 0 ; |
3529 | int arg2 ; | |
d14a1e28 | 3530 | PyObject * obj0 = 0 ; |
994141e6 | 3531 | PyObject * obj1 = 0 ; |
d14a1e28 | 3532 | char *kwnames[] = { |
093d3ff1 | 3533 | (char *) "self",(char *) "join_style", NULL |
d14a1e28 RD |
3534 | }; |
3535 | ||
093d3ff1 RD |
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
3537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 3539 | { |
32fe5131 | 3540 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 3541 | if (SWIG_arg_fail(2)) SWIG_fail; |
994141e6 | 3542 | } |
d14a1e28 RD |
3543 | { |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3545 | (arg1)->SetJoin(arg2); |
d14a1e28 RD |
3546 | |
3547 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3548 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3549 | } |
093d3ff1 | 3550 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3551 | return resultobj; |
3552 | fail: | |
d14a1e28 RD |
3553 | return NULL; |
3554 | } | |
3555 | ||
3556 | ||
093d3ff1 | 3557 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3558 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3559 | wxPen *arg1 = (wxPen *) 0 ; |
3560 | int arg2 ; | |
d14a1e28 | 3561 | PyObject * obj0 = 0 ; |
093d3ff1 | 3562 | PyObject * obj1 = 0 ; |
d14a1e28 | 3563 | char *kwnames[] = { |
093d3ff1 | 3564 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
3565 | }; |
3566 | ||
093d3ff1 RD |
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3570 | { | |
32fe5131 | 3571 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3572 | if (SWIG_arg_fail(2)) SWIG_fail; |
3573 | } | |
d14a1e28 RD |
3574 | { |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3576 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
3577 | |
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | Py_INCREF(Py_None); resultobj = Py_None; | |
3582 | return resultobj; | |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
093d3ff1 | 3588 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3589 | PyObject *resultobj = NULL; |
093d3ff1 | 3590 | wxPen *arg1 = (wxPen *) 0 ; |
66c033b4 | 3591 | int arg2 ; |
66c033b4 RD |
3592 | PyObject * obj0 = 0 ; |
3593 | PyObject * obj1 = 0 ; | |
66c033b4 | 3594 | char *kwnames[] = { |
093d3ff1 | 3595 | (char *) "self",(char *) "width", NULL |
66c033b4 RD |
3596 | }; |
3597 | ||
093d3ff1 RD |
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
3599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3601 | { | |
32fe5131 | 3602 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 3603 | if (SWIG_arg_fail(2)) SWIG_fail; |
66c033b4 RD |
3604 | } |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3607 | (arg1)->SetWidth(arg2); |
66c033b4 RD |
3608 | |
3609 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3610 | if (PyErr_Occurred()) SWIG_fail; |
66c033b4 | 3611 | } |
093d3ff1 | 3612 | Py_INCREF(Py_None); resultobj = Py_None; |
66c033b4 RD |
3613 | return resultobj; |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
093d3ff1 | 3619 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3620 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3621 | wxPen *arg1 = (wxPen *) 0 ; |
3622 | int arg2 ; | |
3623 | wxDash *arg3 = (wxDash *) 0 ; | |
d14a1e28 | 3624 | PyObject * obj0 = 0 ; |
093d3ff1 | 3625 | PyObject * obj1 = 0 ; |
d14a1e28 | 3626 | char *kwnames[] = { |
093d3ff1 | 3627 | (char *) "self",(char *) "dashes", NULL |
d14a1e28 RD |
3628 | }; |
3629 | ||
093d3ff1 RD |
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; |
3631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3633 | { | |
3634 | arg2 = PyList_Size(obj1); | |
3635 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
3636 | if (arg3 == NULL) SWIG_fail; | |
d14a1e28 RD |
3637 | } |
3638 | { | |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3640 | (arg1)->SetDashes(arg2,arg3); |
d14a1e28 RD |
3641 | |
3642 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3643 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3644 | } |
093d3ff1 RD |
3645 | Py_INCREF(Py_None); resultobj = Py_None; |
3646 | { | |
3647 | if (arg3) delete [] arg3; | |
3648 | } | |
d14a1e28 RD |
3649 | return resultobj; |
3650 | fail: | |
093d3ff1 RD |
3651 | { |
3652 | if (arg3) delete [] arg3; | |
3653 | } | |
d14a1e28 RD |
3654 | return NULL; |
3655 | } | |
3656 | ||
3657 | ||
093d3ff1 | 3658 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3659 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3660 | wxPen *arg1 = (wxPen *) 0 ; |
3661 | PyObject *result; | |
d14a1e28 RD |
3662 | PyObject * obj0 = 0 ; |
3663 | char *kwnames[] = { | |
093d3ff1 | 3664 | (char *) "self", NULL |
d14a1e28 RD |
3665 | }; |
3666 | ||
093d3ff1 RD |
3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; |
3668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3670 | { |
3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3672 | result = (PyObject *)wxPen_GetDashes(arg1); |
d14a1e28 RD |
3673 | |
3674 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3675 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3676 | } |
093d3ff1 | 3677 | resultobj = result; |
d14a1e28 RD |
3678 | return resultobj; |
3679 | fail: | |
3680 | return NULL; | |
3681 | } | |
3682 | ||
3683 | ||
093d3ff1 | 3684 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3685 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3686 | wxPen *arg1 = (wxPen *) 0 ; |
3687 | PyObject *arg2 = (PyObject *) 0 ; | |
3688 | PyObject *arg3 = (PyObject *) 0 ; | |
d14a1e28 | 3689 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
3690 | PyObject * obj1 = 0 ; |
3691 | PyObject * obj2 = 0 ; | |
d14a1e28 | 3692 | char *kwnames[] = { |
093d3ff1 | 3693 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d14a1e28 RD |
3694 | }; |
3695 | ||
093d3ff1 RD |
3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
3697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3699 | arg2 = obj1; | |
3700 | arg3 = obj2; | |
d14a1e28 RD |
3701 | { |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3703 | wxPen__SetDashes(arg1,arg2,arg3); |
d14a1e28 RD |
3704 | |
3705 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3706 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3707 | } |
093d3ff1 | 3708 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3709 | return resultobj; |
3710 | fail: | |
3711 | return NULL; | |
3712 | } | |
3713 | ||
3714 | ||
093d3ff1 | 3715 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3716 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3717 | wxPen *arg1 = (wxPen *) 0 ; |
3718 | int result; | |
d14a1e28 RD |
3719 | PyObject * obj0 = 0 ; |
3720 | char *kwnames[] = { | |
093d3ff1 | 3721 | (char *) "self", NULL |
d14a1e28 RD |
3722 | }; |
3723 | ||
093d3ff1 RD |
3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; |
3725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3727 | { |
3728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3729 | result = (int)((wxPen const *)arg1)->GetDashCount(); |
d14a1e28 RD |
3730 | |
3731 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3732 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3733 | } |
093d3ff1 | 3734 | { |
32fe5131 | 3735 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3736 | } |
d14a1e28 RD |
3737 | return resultobj; |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
093d3ff1 | 3743 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3744 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3745 | wxPen *arg1 = (wxPen *) 0 ; |
3746 | wxPen *arg2 = (wxPen *) 0 ; | |
d14a1e28 RD |
3747 | bool result; |
3748 | PyObject * obj0 = 0 ; | |
093d3ff1 | 3749 | PyObject * obj1 = 0 ; |
d14a1e28 | 3750 | char *kwnames[] = { |
093d3ff1 | 3751 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
3752 | }; |
3753 | ||
093d3ff1 RD |
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
3755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3757 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3758 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3759 | { |
3760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3761 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
3762 | |
3763 | wxPyEndAllowThreads(__tstate); | |
3764 | if (PyErr_Occurred()) SWIG_fail; | |
3765 | } | |
4f89f6a3 RD |
3766 | { |
3767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3768 | } | |
d14a1e28 RD |
3769 | return resultobj; |
3770 | fail: | |
3771 | return NULL; | |
3772 | } | |
3773 | ||
3774 | ||
093d3ff1 | 3775 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3776 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3777 | wxPen *arg1 = (wxPen *) 0 ; |
3778 | wxPen *arg2 = (wxPen *) 0 ; | |
3779 | bool result; | |
d14a1e28 | 3780 | PyObject * obj0 = 0 ; |
093d3ff1 | 3781 | PyObject * obj1 = 0 ; |
d14a1e28 | 3782 | char *kwnames[] = { |
093d3ff1 | 3783 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
3784 | }; |
3785 | ||
093d3ff1 RD |
3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
3787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3789 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
3790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3791 | { |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3793 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
3794 | |
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
093d3ff1 RD |
3798 | { |
3799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3800 | } | |
d14a1e28 RD |
3801 | return resultobj; |
3802 | fail: | |
3803 | return NULL; | |
3804 | } | |
3805 | ||
3806 | ||
093d3ff1 RD |
3807 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
3808 | PyObject *obj; | |
3809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3810 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
3811 | Py_INCREF(obj); | |
3812 | return Py_BuildValue((char *)""); | |
3813 | } | |
3814 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3815 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3816 | wxColour *arg1 = 0 ; |
3817 | int arg2 = (int) wxSOLID ; | |
3818 | wxBrush *result; | |
3819 | wxColour temp1 ; | |
d14a1e28 | 3820 | PyObject * obj0 = 0 ; |
093d3ff1 | 3821 | PyObject * obj1 = 0 ; |
d14a1e28 | 3822 | char *kwnames[] = { |
093d3ff1 | 3823 | (char *) "colour",(char *) "style", NULL |
d14a1e28 RD |
3824 | }; |
3825 | ||
093d3ff1 RD |
3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
3827 | { | |
3828 | arg1 = &temp1; | |
3829 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3830 | } | |
3831 | if (obj1) { | |
3832 | { | |
32fe5131 | 3833 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3834 | if (SWIG_arg_fail(2)) SWIG_fail; |
3835 | } | |
3836 | } | |
d14a1e28 | 3837 | { |
093d3ff1 | 3838 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 3840 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); |
d14a1e28 RD |
3841 | |
3842 | wxPyEndAllowThreads(__tstate); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
093d3ff1 | 3845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
3846 | return resultobj; |
3847 | fail: | |
3848 | return NULL; | |
3849 | } | |
3850 | ||
3851 | ||
d04418a7 | 3852 | static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3853 | PyObject *resultobj = NULL; |
d04418a7 RD |
3854 | wxBitmap *arg1 = 0 ; |
3855 | wxBrush *result; | |
3856 | PyObject * obj0 = 0 ; | |
3857 | char *kwnames[] = { | |
3858 | (char *) "stippleBitmap", NULL | |
3859 | }; | |
3860 | ||
3861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail; | |
3862 | { | |
3863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3865 | if (arg1 == NULL) { | |
3866 | SWIG_null_ref("wxBitmap"); | |
3867 | } | |
3868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3869 | } | |
3870 | { | |
3871 | if (!wxPyCheckForApp()) SWIG_fail; | |
3872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3873 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
3874 | ||
3875 | wxPyEndAllowThreads(__tstate); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | } | |
3878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
3879 | return resultobj; | |
3880 | fail: | |
3881 | return NULL; | |
3882 | } | |
3883 | ||
3884 | ||
093d3ff1 | 3885 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3886 | PyObject *resultobj = NULL; |
093d3ff1 | 3887 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 RD |
3888 | PyObject * obj0 = 0 ; |
3889 | char *kwnames[] = { | |
3890 | (char *) "self", NULL | |
3891 | }; | |
3892 | ||
093d3ff1 RD |
3893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; |
3894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3896 | { |
3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3898 | delete arg1; |
d14a1e28 RD |
3899 | |
3900 | wxPyEndAllowThreads(__tstate); | |
3901 | if (PyErr_Occurred()) SWIG_fail; | |
3902 | } | |
093d3ff1 | 3903 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3904 | return resultobj; |
3905 | fail: | |
3906 | return NULL; | |
3907 | } | |
3908 | ||
3909 | ||
093d3ff1 | 3910 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3911 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3912 | wxBrush *arg1 = (wxBrush *) 0 ; |
3913 | wxColour *arg2 = 0 ; | |
3914 | wxColour temp2 ; | |
b2df227b | 3915 | PyObject * obj0 = 0 ; |
093d3ff1 | 3916 | PyObject * obj1 = 0 ; |
b2df227b | 3917 | char *kwnames[] = { |
093d3ff1 | 3918 | (char *) "self",(char *) "col", NULL |
b2df227b RD |
3919 | }; |
3920 | ||
093d3ff1 RD |
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; |
3922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3924 | { | |
3925 | arg2 = &temp2; | |
3926 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3927 | } | |
b2df227b RD |
3928 | { |
3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3930 | (arg1)->SetColour((wxColour const &)*arg2); |
b2df227b RD |
3931 | |
3932 | wxPyEndAllowThreads(__tstate); | |
3933 | if (PyErr_Occurred()) SWIG_fail; | |
3934 | } | |
093d3ff1 | 3935 | Py_INCREF(Py_None); resultobj = Py_None; |
b2df227b RD |
3936 | return resultobj; |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
093d3ff1 | 3942 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3943 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3944 | wxBrush *arg1 = (wxBrush *) 0 ; |
3945 | int arg2 ; | |
d14a1e28 | 3946 | PyObject * obj0 = 0 ; |
093d3ff1 | 3947 | PyObject * obj1 = 0 ; |
d14a1e28 | 3948 | char *kwnames[] = { |
093d3ff1 | 3949 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
3950 | }; |
3951 | ||
093d3ff1 RD |
3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
3953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3955 | { | |
32fe5131 | 3956 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3957 | if (SWIG_arg_fail(2)) SWIG_fail; |
3958 | } | |
d14a1e28 RD |
3959 | { |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3961 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
3962 | |
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
093d3ff1 | 3966 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
3967 | return resultobj; |
3968 | fail: | |
3969 | return NULL; | |
3970 | } | |
3971 | ||
3972 | ||
093d3ff1 | 3973 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3974 | PyObject *resultobj = NULL; |
093d3ff1 RD |
3975 | wxBrush *arg1 = (wxBrush *) 0 ; |
3976 | wxBitmap *arg2 = 0 ; | |
d14a1e28 | 3977 | PyObject * obj0 = 0 ; |
093d3ff1 | 3978 | PyObject * obj1 = 0 ; |
d14a1e28 | 3979 | char *kwnames[] = { |
093d3ff1 | 3980 | (char *) "self",(char *) "stipple", NULL |
d14a1e28 RD |
3981 | }; |
3982 | ||
093d3ff1 RD |
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; |
3984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
3985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3986 | { | |
3987 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3989 | if (arg2 == NULL) { | |
3990 | SWIG_null_ref("wxBitmap"); | |
3991 | } | |
3992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3993 | } | |
d14a1e28 RD |
3994 | { |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3996 | (arg1)->SetStipple((wxBitmap const &)*arg2); |
d14a1e28 RD |
3997 | |
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
093d3ff1 | 4001 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4002 | return resultobj; |
4003 | fail: | |
4004 | return NULL; | |
4005 | } | |
4006 | ||
4007 | ||
093d3ff1 | 4008 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4009 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4010 | wxBrush *arg1 = (wxBrush *) 0 ; |
4011 | wxColour result; | |
d14a1e28 | 4012 | PyObject * obj0 = 0 ; |
d14a1e28 | 4013 | char *kwnames[] = { |
093d3ff1 | 4014 | (char *) "self", NULL |
d14a1e28 RD |
4015 | }; |
4016 | ||
093d3ff1 RD |
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; |
4018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4020 | { |
4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4022 | result = ((wxBrush const *)arg1)->GetColour(); |
d14a1e28 RD |
4023 | |
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
093d3ff1 RD |
4027 | { |
4028 | wxColour * resultptr; | |
32fe5131 | 4029 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
4030 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
4031 | } | |
d14a1e28 RD |
4032 | return resultobj; |
4033 | fail: | |
4034 | return NULL; | |
4035 | } | |
4036 | ||
4037 | ||
093d3ff1 | 4038 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4039 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4040 | wxBrush *arg1 = (wxBrush *) 0 ; |
4041 | int result; | |
d14a1e28 | 4042 | PyObject * obj0 = 0 ; |
d14a1e28 | 4043 | char *kwnames[] = { |
093d3ff1 | 4044 | (char *) "self", NULL |
d14a1e28 RD |
4045 | }; |
4046 | ||
093d3ff1 RD |
4047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; |
4048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4050 | { |
4051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4052 | result = (int)((wxBrush const *)arg1)->GetStyle(); |
d14a1e28 RD |
4053 | |
4054 | wxPyEndAllowThreads(__tstate); | |
4055 | if (PyErr_Occurred()) SWIG_fail; | |
4056 | } | |
093d3ff1 | 4057 | { |
32fe5131 | 4058 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 4059 | } |
d14a1e28 RD |
4060 | return resultobj; |
4061 | fail: | |
4062 | return NULL; | |
4063 | } | |
4064 | ||
4065 | ||
093d3ff1 | 4066 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4067 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4068 | wxBrush *arg1 = (wxBrush *) 0 ; |
4069 | wxBitmap *result; | |
d14a1e28 | 4070 | PyObject * obj0 = 0 ; |
d14a1e28 | 4071 | char *kwnames[] = { |
093d3ff1 | 4072 | (char *) "self", NULL |
d14a1e28 RD |
4073 | }; |
4074 | ||
093d3ff1 RD |
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; |
4076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4078 | { |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4080 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); |
d14a1e28 RD |
4081 | |
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
093d3ff1 | 4085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
4086 | return resultobj; |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
093d3ff1 | 4092 | static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4093 | PyObject *resultobj = NULL; |
093d3ff1 | 4094 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 | 4095 | bool result; |
d14a1e28 | 4096 | PyObject * obj0 = 0 ; |
d14a1e28 | 4097 | char *kwnames[] = { |
093d3ff1 | 4098 | (char *) "self", NULL |
d14a1e28 RD |
4099 | }; |
4100 | ||
093d3ff1 RD |
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail; |
4102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4104 | { |
4105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4106 | result = (bool)((wxBrush const *)arg1)->IsHatch(); |
d14a1e28 RD |
4107 | |
4108 | wxPyEndAllowThreads(__tstate); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4f89f6a3 RD |
4111 | { |
4112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4113 | } | |
d14a1e28 RD |
4114 | return resultobj; |
4115 | fail: | |
d14a1e28 RD |
4116 | return NULL; |
4117 | } | |
4118 | ||
4119 | ||
093d3ff1 | 4120 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4121 | PyObject *resultobj = NULL; |
093d3ff1 | 4122 | wxBrush *arg1 = (wxBrush *) 0 ; |
d14a1e28 | 4123 | bool result; |
d14a1e28 | 4124 | PyObject * obj0 = 0 ; |
d14a1e28 | 4125 | char *kwnames[] = { |
093d3ff1 | 4126 | (char *) "self", NULL |
d14a1e28 RD |
4127 | }; |
4128 | ||
093d3ff1 RD |
4129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; |
4130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
4131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4132 | { |
4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4134 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
4135 | |
4136 | wxPyEndAllowThreads(__tstate); | |
4137 | if (PyErr_Occurred()) SWIG_fail; | |
4138 | } | |
4f89f6a3 RD |
4139 | { |
4140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4141 | } | |
d14a1e28 RD |
4142 | return resultobj; |
4143 | fail: | |
d14a1e28 RD |
4144 | return NULL; |
4145 | } | |
4146 | ||
4147 | ||
093d3ff1 RD |
4148 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
4149 | PyObject *obj; | |
4150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4151 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
4152 | Py_INCREF(obj); | |
4153 | return Py_BuildValue((char *)""); | |
4154 | } | |
4155 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4156 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4157 | wxString *arg1 = 0 ; |
4158 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
4159 | wxBitmap *result; | |
4160 | bool temp1 = false ; | |
d3b6e4ff | 4161 | PyObject * obj0 = 0 ; |
093d3ff1 | 4162 | PyObject * obj1 = 0 ; |
d3b6e4ff | 4163 | char *kwnames[] = { |
093d3ff1 | 4164 | (char *) "name",(char *) "type", NULL |
d3b6e4ff RD |
4165 | }; |
4166 | ||
093d3ff1 RD |
4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
4168 | { | |
4169 | arg1 = wxString_in_helper(obj0); | |
4170 | if (arg1 == NULL) SWIG_fail; | |
4171 | temp1 = true; | |
4172 | } | |
4173 | if (obj1) { | |
4174 | { | |
32fe5131 | 4175 | arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4176 | if (SWIG_arg_fail(2)) SWIG_fail; |
4177 | } | |
4178 | } | |
d3b6e4ff | 4179 | { |
093d3ff1 | 4180 | if (!wxPyCheckForApp()) SWIG_fail; |
d3b6e4ff | 4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 4182 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); |
d3b6e4ff RD |
4183 | |
4184 | wxPyEndAllowThreads(__tstate); | |
4185 | if (PyErr_Occurred()) SWIG_fail; | |
4186 | } | |
093d3ff1 RD |
4187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
4188 | { | |
4189 | if (temp1) | |
4190 | delete arg1; | |
4191 | } | |
d3b6e4ff RD |
4192 | return resultobj; |
4193 | fail: | |
093d3ff1 RD |
4194 | { |
4195 | if (temp1) | |
4196 | delete arg1; | |
4197 | } | |
d3b6e4ff RD |
4198 | return NULL; |
4199 | } | |
4200 | ||
4201 | ||
093d3ff1 | 4202 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4203 | PyObject *resultobj = NULL; |
d14a1e28 | 4204 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 | 4205 | PyObject * obj0 = 0 ; |
d14a1e28 | 4206 | char *kwnames[] = { |
093d3ff1 | 4207 | (char *) "self", NULL |
d14a1e28 RD |
4208 | }; |
4209 | ||
093d3ff1 RD |
4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; |
4211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4213 | { |
4214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4215 | delete arg1; |
d14a1e28 RD |
4216 | |
4217 | wxPyEndAllowThreads(__tstate); | |
4218 | if (PyErr_Occurred()) SWIG_fail; | |
4219 | } | |
093d3ff1 | 4220 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4221 | return resultobj; |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
093d3ff1 | 4227 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4228 | PyObject *resultobj = NULL; |
093d3ff1 | 4229 | int arg1 ; |
d14a1e28 | 4230 | int arg2 ; |
093d3ff1 RD |
4231 | int arg3 = (int) -1 ; |
4232 | wxBitmap *result; | |
d14a1e28 | 4233 | PyObject * obj0 = 0 ; |
994141e6 | 4234 | PyObject * obj1 = 0 ; |
093d3ff1 | 4235 | PyObject * obj2 = 0 ; |
d14a1e28 | 4236 | char *kwnames[] = { |
093d3ff1 | 4237 | (char *) "width",(char *) "height",(char *) "depth", NULL |
d14a1e28 RD |
4238 | }; |
4239 | ||
093d3ff1 RD |
4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4241 | { | |
32fe5131 | 4242 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
4243 | if (SWIG_arg_fail(1)) SWIG_fail; |
4244 | } | |
4245 | { | |
32fe5131 | 4246 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4247 | if (SWIG_arg_fail(2)) SWIG_fail; |
4248 | } | |
4249 | if (obj2) { | |
4250 | { | |
32fe5131 | 4251 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4252 | if (SWIG_arg_fail(3)) SWIG_fail; |
4253 | } | |
4254 | } | |
d14a1e28 | 4255 | { |
093d3ff1 | 4256 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4258 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); |
d14a1e28 RD |
4259 | |
4260 | wxPyEndAllowThreads(__tstate); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
093d3ff1 | 4263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4264 | return resultobj; |
4265 | fail: | |
4266 | return NULL; | |
4267 | } | |
4268 | ||
4269 | ||
093d3ff1 | 4270 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4271 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4272 | wxIcon *arg1 = 0 ; |
4273 | wxBitmap *result; | |
d14a1e28 RD |
4274 | PyObject * obj0 = 0 ; |
4275 | char *kwnames[] = { | |
093d3ff1 | 4276 | (char *) "icon", NULL |
d14a1e28 RD |
4277 | }; |
4278 | ||
093d3ff1 RD |
4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; |
4280 | { | |
4281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
4282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4283 | if (arg1 == NULL) { | |
4284 | SWIG_null_ref("wxIcon"); | |
4285 | } | |
4286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4287 | } | |
d14a1e28 | 4288 | { |
093d3ff1 | 4289 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4291 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); |
d14a1e28 RD |
4292 | |
4293 | wxPyEndAllowThreads(__tstate); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
093d3ff1 | 4296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4297 | return resultobj; |
4298 | fail: | |
4299 | return NULL; | |
4300 | } | |
4301 | ||
4302 | ||
093d3ff1 | 4303 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4304 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4305 | wxImage *arg1 = 0 ; |
4306 | int arg2 = (int) -1 ; | |
4307 | wxBitmap *result; | |
d14a1e28 | 4308 | PyObject * obj0 = 0 ; |
994141e6 | 4309 | PyObject * obj1 = 0 ; |
d14a1e28 | 4310 | char *kwnames[] = { |
093d3ff1 | 4311 | (char *) "image",(char *) "depth", NULL |
d14a1e28 RD |
4312 | }; |
4313 | ||
093d3ff1 RD |
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
4315 | { | |
4316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
4317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4318 | if (arg1 == NULL) { | |
4319 | SWIG_null_ref("wxImage"); | |
4320 | } | |
4321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4322 | } | |
4323 | if (obj1) { | |
4324 | { | |
32fe5131 | 4325 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4326 | if (SWIG_arg_fail(2)) SWIG_fail; |
4327 | } | |
4328 | } | |
d14a1e28 | 4329 | { |
093d3ff1 | 4330 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4332 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); |
d14a1e28 RD |
4333 | |
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
093d3ff1 | 4337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4338 | return resultobj; |
4339 | fail: | |
4340 | return NULL; | |
4341 | } | |
4342 | ||
4343 | ||
093d3ff1 | 4344 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4345 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4346 | PyObject *arg1 = (PyObject *) 0 ; |
4347 | wxBitmap *result; | |
b2df227b | 4348 | PyObject * obj0 = 0 ; |
b2df227b | 4349 | char *kwnames[] = { |
093d3ff1 | 4350 | (char *) "listOfStrings", NULL |
b2df227b RD |
4351 | }; |
4352 | ||
093d3ff1 RD |
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; |
4354 | arg1 = obj0; | |
b2df227b | 4355 | { |
093d3ff1 | 4356 | if (!wxPyCheckForApp()) SWIG_fail; |
b2df227b | 4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4358 | result = (wxBitmap *)new_wxBitmap(arg1); |
b2df227b RD |
4359 | |
4360 | wxPyEndAllowThreads(__tstate); | |
4361 | if (PyErr_Occurred()) SWIG_fail; | |
4362 | } | |
093d3ff1 | 4363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
b2df227b RD |
4364 | return resultobj; |
4365 | fail: | |
4366 | return NULL; | |
4367 | } | |
4368 | ||
4369 | ||
093d3ff1 | 4370 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4371 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4372 | PyObject *arg1 = (PyObject *) 0 ; |
4373 | int arg2 ; | |
4374 | int arg3 ; | |
4375 | int arg4 = (int) 1 ; | |
4376 | wxBitmap *result; | |
4276dc52 RD |
4377 | PyObject * obj0 = 0 ; |
4378 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
4379 | PyObject * obj2 = 0 ; |
4380 | PyObject * obj3 = 0 ; | |
4276dc52 | 4381 | char *kwnames[] = { |
093d3ff1 | 4382 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL |
4276dc52 RD |
4383 | }; |
4384 | ||
093d3ff1 RD |
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4386 | arg1 = obj0; | |
4276dc52 | 4387 | { |
32fe5131 | 4388 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4389 | if (SWIG_arg_fail(2)) SWIG_fail; |
4390 | } | |
4391 | { | |
32fe5131 | 4392 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4393 | if (SWIG_arg_fail(3)) SWIG_fail; |
4394 | } | |
4395 | if (obj3) { | |
4396 | { | |
32fe5131 | 4397 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
4398 | if (SWIG_arg_fail(4)) SWIG_fail; |
4399 | } | |
4400 | } | |
4401 | { | |
4402 | if (!wxPyCheckForApp()) SWIG_fail; | |
4276dc52 | 4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 4404 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); |
4276dc52 RD |
4405 | |
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
093d3ff1 | 4409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
4276dc52 RD |
4410 | return resultobj; |
4411 | fail: | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
093d3ff1 | 4416 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4417 | PyObject *resultobj = NULL; |
4276dc52 | 4418 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4276dc52 RD |
4419 | bool result; |
4420 | PyObject * obj0 = 0 ; | |
4276dc52 | 4421 | char *kwnames[] = { |
093d3ff1 | 4422 | (char *) "self", NULL |
4276dc52 RD |
4423 | }; |
4424 | ||
093d3ff1 RD |
4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; |
4426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
4428 | { |
4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4430 | result = (bool)(arg1)->Ok(); |
4276dc52 RD |
4431 | |
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
4434 | } | |
4f89f6a3 RD |
4435 | { |
4436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4437 | } | |
4276dc52 RD |
4438 | return resultobj; |
4439 | fail: | |
4440 | return NULL; | |
4441 | } | |
4442 | ||
4443 | ||
093d3ff1 | 4444 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4445 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4446 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4447 | int result; | |
d14a1e28 | 4448 | PyObject * obj0 = 0 ; |
d14a1e28 | 4449 | char *kwnames[] = { |
093d3ff1 | 4450 | (char *) "self", NULL |
d14a1e28 RD |
4451 | }; |
4452 | ||
093d3ff1 RD |
4453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; |
4454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4456 | { |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4458 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
4459 | |
4460 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4461 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4462 | } |
093d3ff1 | 4463 | { |
32fe5131 | 4464 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 4465 | } |
d14a1e28 RD |
4466 | return resultobj; |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
093d3ff1 | 4472 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4473 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4474 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4475 | int result; | |
d14a1e28 RD |
4476 | PyObject * obj0 = 0 ; |
4477 | char *kwnames[] = { | |
093d3ff1 | 4478 | (char *) "self", NULL |
d14a1e28 RD |
4479 | }; |
4480 | ||
093d3ff1 RD |
4481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; |
4482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
4484 | { |
4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4486 | result = (int)(arg1)->GetHeight(); |
994141e6 RD |
4487 | |
4488 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4490 | } |
d14a1e28 | 4491 | { |
32fe5131 | 4492 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
4493 | } |
4494 | return resultobj; | |
4495 | fail: | |
d14a1e28 RD |
4496 | return NULL; |
4497 | } | |
4498 | ||
4499 | ||
093d3ff1 | 4500 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4501 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4502 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4503 | int result; | |
d14a1e28 RD |
4504 | PyObject * obj0 = 0 ; |
4505 | char *kwnames[] = { | |
4506 | (char *) "self", NULL | |
4507 | }; | |
4508 | ||
093d3ff1 RD |
4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; |
4510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4512 | { |
4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4514 | result = (int)(arg1)->GetDepth(); |
d14a1e28 RD |
4515 | |
4516 | wxPyEndAllowThreads(__tstate); | |
4517 | if (PyErr_Occurred()) SWIG_fail; | |
4518 | } | |
093d3ff1 | 4519 | { |
32fe5131 | 4520 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 4521 | } |
d14a1e28 RD |
4522 | return resultobj; |
4523 | fail: | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
093d3ff1 | 4528 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4529 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4530 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4531 | wxSize result; | |
4532 | PyObject * obj0 = 0 ; | |
d14a1e28 | 4533 | char *kwnames[] = { |
093d3ff1 | 4534 | (char *) "self", NULL |
d14a1e28 RD |
4535 | }; |
4536 | ||
093d3ff1 RD |
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; |
4538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4540 | { |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4542 | result = wxBitmap_GetSize(arg1); |
d14a1e28 RD |
4543 | |
4544 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4545 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4546 | } |
093d3ff1 RD |
4547 | { |
4548 | wxSize * resultptr; | |
32fe5131 | 4549 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 RD |
4550 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
4551 | } | |
d14a1e28 RD |
4552 | return resultobj; |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
093d3ff1 | 4558 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4559 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4560 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4561 | SwigValueWrapper<wxImage > result; | |
d14a1e28 RD |
4562 | PyObject * obj0 = 0 ; |
4563 | char *kwnames[] = { | |
093d3ff1 | 4564 | (char *) "self", NULL |
d14a1e28 RD |
4565 | }; |
4566 | ||
093d3ff1 RD |
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; |
4568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4570 | { |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4572 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
d14a1e28 RD |
4573 | |
4574 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4575 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4576 | } |
093d3ff1 RD |
4577 | { |
4578 | wxImage * resultptr; | |
32fe5131 | 4579 | resultptr = new wxImage(static_cast<wxImage & >(result)); |
093d3ff1 RD |
4580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
4581 | } | |
d14a1e28 RD |
4582 | return resultobj; |
4583 | fail: | |
4584 | return NULL; | |
4585 | } | |
4586 | ||
4587 | ||
093d3ff1 | 4588 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4589 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4590 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4591 | wxMask *result; | |
d14a1e28 RD |
4592 | PyObject * obj0 = 0 ; |
4593 | char *kwnames[] = { | |
093d3ff1 | 4594 | (char *) "self", NULL |
d14a1e28 RD |
4595 | }; |
4596 | ||
093d3ff1 RD |
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",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; | |
d14a1e28 RD |
4600 | { |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4602 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
d14a1e28 RD |
4603 | |
4604 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4605 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4606 | } |
093d3ff1 | 4607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
4608 | return resultobj; |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
093d3ff1 | 4614 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4615 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4616 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4617 | wxMask *arg2 = (wxMask *) 0 ; | |
d14a1e28 | 4618 | PyObject * obj0 = 0 ; |
093d3ff1 | 4619 | PyObject * obj1 = 0 ; |
d14a1e28 | 4620 | char *kwnames[] = { |
093d3ff1 | 4621 | (char *) "self",(char *) "mask", NULL |
d14a1e28 RD |
4622 | }; |
4623 | ||
093d3ff1 RD |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; |
4625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0); | |
4628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
4629 | { |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4631 | (arg1)->SetMask(arg2); |
d14a1e28 RD |
4632 | |
4633 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4634 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4635 | } |
093d3ff1 | 4636 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4637 | return resultobj; |
4638 | fail: | |
4639 | return NULL; | |
4640 | } | |
4641 | ||
4642 | ||
093d3ff1 | 4643 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4644 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4645 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4646 | wxColour *arg2 = 0 ; | |
4647 | wxColour temp2 ; | |
4648 | PyObject * obj0 = 0 ; | |
4649 | PyObject * obj1 = 0 ; | |
4650 | char *kwnames[] = { | |
4651 | (char *) "self",(char *) "colour", NULL | |
4652 | }; | |
4653 | ||
4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
4655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4657 | { | |
4658 | arg2 = &temp2; | |
4659 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4660 | } | |
4661 | { | |
4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4663 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
4664 | ||
4665 | wxPyEndAllowThreads(__tstate); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4668 | Py_INCREF(Py_None); resultobj = Py_None; | |
4669 | return resultobj; | |
4670 | fail: | |
4671 | return NULL; | |
4672 | } | |
4673 | ||
4674 | ||
4675 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4676 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4677 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4678 | wxRect *arg2 = 0 ; | |
4679 | SwigValueWrapper<wxBitmap > result; | |
4680 | wxRect temp2 ; | |
4681 | PyObject * obj0 = 0 ; | |
4682 | PyObject * obj1 = 0 ; | |
4683 | char *kwnames[] = { | |
4684 | (char *) "self",(char *) "rect", NULL | |
4685 | }; | |
4686 | ||
4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4690 | { | |
4691 | arg2 = &temp2; | |
4692 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4693 | } | |
4694 | { | |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | { | |
4702 | wxBitmap * resultptr; | |
32fe5131 | 4703 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
093d3ff1 RD |
4704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
4705 | } | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
4712 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4713 | PyObject *resultobj = NULL; |
093d3ff1 | 4714 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 | 4715 | wxString *arg2 = 0 ; |
093d3ff1 RD |
4716 | wxBitmapType arg3 ; |
4717 | wxPalette *arg4 = (wxPalette *) NULL ; | |
d14a1e28 | 4718 | bool result; |
ae8162c8 | 4719 | bool temp2 = false ; |
d14a1e28 RD |
4720 | PyObject * obj0 = 0 ; |
4721 | PyObject * obj1 = 0 ; | |
994141e6 | 4722 | PyObject * obj2 = 0 ; |
093d3ff1 | 4723 | PyObject * obj3 = 0 ; |
d14a1e28 | 4724 | char *kwnames[] = { |
093d3ff1 | 4725 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL |
d14a1e28 RD |
4726 | }; |
4727 | ||
093d3ff1 RD |
4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4731 | { |
4732 | arg2 = wxString_in_helper(obj1); | |
4733 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4734 | temp2 = true; |
d14a1e28 | 4735 | } |
093d3ff1 | 4736 | { |
32fe5131 | 4737 | arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4738 | if (SWIG_arg_fail(3)) SWIG_fail; |
4739 | } | |
4740 | if (obj3) { | |
4741 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
4742 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4743 | } | |
d14a1e28 RD |
4744 | { |
4745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 4746 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
4747 | |
4748 | wxPyEndAllowThreads(__tstate); | |
4749 | if (PyErr_Occurred()) SWIG_fail; | |
4750 | } | |
4f89f6a3 RD |
4751 | { |
4752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4753 | } | |
d14a1e28 RD |
4754 | { |
4755 | if (temp2) | |
4756 | delete arg2; | |
4757 | } | |
4758 | return resultobj; | |
4759 | fail: | |
4760 | { | |
4761 | if (temp2) | |
4762 | delete arg2; | |
4763 | } | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
093d3ff1 | 4768 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4769 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4770 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4771 | wxString *arg2 = 0 ; | |
4772 | wxBitmapType arg3 ; | |
d14a1e28 | 4773 | bool result; |
093d3ff1 | 4774 | bool temp2 = false ; |
d14a1e28 | 4775 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
4776 | PyObject * obj1 = 0 ; |
4777 | PyObject * obj2 = 0 ; | |
d14a1e28 | 4778 | char *kwnames[] = { |
093d3ff1 | 4779 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
4780 | }; |
4781 | ||
093d3ff1 RD |
4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
4783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4785 | { | |
4786 | arg2 = wxString_in_helper(obj1); | |
4787 | if (arg2 == NULL) SWIG_fail; | |
4788 | temp2 = true; | |
4789 | } | |
4790 | { | |
32fe5131 | 4791 | arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4792 | if (SWIG_arg_fail(3)) SWIG_fail; |
4793 | } | |
d14a1e28 RD |
4794 | { |
4795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 4796 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
d14a1e28 RD |
4797 | |
4798 | wxPyEndAllowThreads(__tstate); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
4f89f6a3 RD |
4801 | { |
4802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4803 | } | |
093d3ff1 RD |
4804 | { |
4805 | if (temp2) | |
4806 | delete arg2; | |
4807 | } | |
d14a1e28 RD |
4808 | return resultobj; |
4809 | fail: | |
093d3ff1 RD |
4810 | { |
4811 | if (temp2) | |
4812 | delete arg2; | |
4813 | } | |
d14a1e28 RD |
4814 | return NULL; |
4815 | } | |
4816 | ||
4817 | ||
093d3ff1 | 4818 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4819 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4820 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4821 | wxPalette *result; | |
d14a1e28 RD |
4822 | PyObject * obj0 = 0 ; |
4823 | char *kwnames[] = { | |
4824 | (char *) "self", NULL | |
4825 | }; | |
4826 | ||
093d3ff1 RD |
4827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; |
4828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4830 | { |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4832 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
d14a1e28 RD |
4833 | |
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
093d3ff1 | 4837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
4838 | return resultobj; |
4839 | fail: | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
093d3ff1 | 4844 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4845 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4846 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4847 | wxIcon *arg2 = 0 ; | |
4848 | bool result; | |
d14a1e28 | 4849 | PyObject * obj0 = 0 ; |
093d3ff1 | 4850 | PyObject * obj1 = 0 ; |
d14a1e28 | 4851 | char *kwnames[] = { |
093d3ff1 | 4852 | (char *) "self",(char *) "icon", NULL |
d14a1e28 RD |
4853 | }; |
4854 | ||
093d3ff1 RD |
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; |
4856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4858 | { | |
4859 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
4860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4861 | if (arg2 == NULL) { | |
4862 | SWIG_null_ref("wxIcon"); | |
4863 | } | |
4864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4865 | } | |
d14a1e28 RD |
4866 | { |
4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4868 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
d14a1e28 RD |
4869 | |
4870 | wxPyEndAllowThreads(__tstate); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | } | |
093d3ff1 RD |
4873 | { |
4874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4875 | } | |
d14a1e28 RD |
4876 | return resultobj; |
4877 | fail: | |
4878 | return NULL; | |
4879 | } | |
4880 | ||
4881 | ||
093d3ff1 | 4882 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4883 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4884 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4885 | int arg2 ; | |
d14a1e28 | 4886 | PyObject * obj0 = 0 ; |
093d3ff1 | 4887 | PyObject * obj1 = 0 ; |
d14a1e28 | 4888 | char *kwnames[] = { |
093d3ff1 | 4889 | (char *) "self",(char *) "height", NULL |
d14a1e28 RD |
4890 | }; |
4891 | ||
093d3ff1 RD |
4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
4893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4895 | { | |
32fe5131 | 4896 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4897 | if (SWIG_arg_fail(2)) SWIG_fail; |
4898 | } | |
d14a1e28 RD |
4899 | { |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4901 | (arg1)->SetHeight(arg2); |
d14a1e28 RD |
4902 | |
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
093d3ff1 | 4906 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
4907 | return resultobj; |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
093d3ff1 | 4913 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4914 | PyObject *resultobj = NULL; |
093d3ff1 | 4915 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 RD |
4916 | int arg2 ; |
4917 | PyObject * obj0 = 0 ; | |
994141e6 | 4918 | PyObject * obj1 = 0 ; |
d14a1e28 | 4919 | char *kwnames[] = { |
093d3ff1 | 4920 | (char *) "self",(char *) "width", NULL |
d14a1e28 RD |
4921 | }; |
4922 | ||
093d3ff1 RD |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
4924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4926 | { | |
32fe5131 | 4927 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4928 | if (SWIG_arg_fail(2)) SWIG_fail; |
4929 | } | |
d14a1e28 RD |
4930 | { |
4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4932 | (arg1)->SetWidth(arg2); | |
4933 | ||
4934 | wxPyEndAllowThreads(__tstate); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | Py_INCREF(Py_None); resultobj = Py_None; | |
4938 | return resultobj; | |
4939 | fail: | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
093d3ff1 | 4944 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4945 | PyObject *resultobj = NULL; |
093d3ff1 | 4946 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
d14a1e28 RD |
4947 | int arg2 ; |
4948 | PyObject * obj0 = 0 ; | |
994141e6 | 4949 | PyObject * obj1 = 0 ; |
d14a1e28 | 4950 | char *kwnames[] = { |
093d3ff1 | 4951 | (char *) "self",(char *) "depth", NULL |
d14a1e28 RD |
4952 | }; |
4953 | ||
093d3ff1 RD |
4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
4955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4957 | { | |
32fe5131 | 4958 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4959 | if (SWIG_arg_fail(2)) SWIG_fail; |
4960 | } | |
d14a1e28 RD |
4961 | { |
4962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4963 | (arg1)->SetDepth(arg2); |
d14a1e28 RD |
4964 | |
4965 | wxPyEndAllowThreads(__tstate); | |
4966 | if (PyErr_Occurred()) SWIG_fail; | |
4967 | } | |
4968 | Py_INCREF(Py_None); resultobj = Py_None; | |
4969 | return resultobj; | |
4970 | fail: | |
4971 | return NULL; | |
4972 | } | |
4973 | ||
4974 | ||
093d3ff1 | 4975 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4976 | PyObject *resultobj = NULL; |
093d3ff1 RD |
4977 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
4978 | wxSize *arg2 = 0 ; | |
4979 | wxSize temp2 ; | |
d14a1e28 | 4980 | PyObject * obj0 = 0 ; |
994141e6 | 4981 | PyObject * obj1 = 0 ; |
d14a1e28 | 4982 | char *kwnames[] = { |
093d3ff1 | 4983 | (char *) "self",(char *) "size", NULL |
d14a1e28 RD |
4984 | }; |
4985 | ||
093d3ff1 RD |
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; |
4987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
4988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4989 | { | |
4990 | arg2 = &temp2; | |
4991 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4992 | } | |
d14a1e28 RD |
4993 | { |
4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 4995 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
4996 | |
4997 | wxPyEndAllowThreads(__tstate); | |
4998 | if (PyErr_Occurred()) SWIG_fail; | |
4999 | } | |
5000 | Py_INCREF(Py_None); resultobj = Py_None; | |
5001 | return resultobj; | |
5002 | fail: | |
5003 | return NULL; | |
5004 | } | |
5005 | ||
5006 | ||
093d3ff1 | 5007 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5008 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5009 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5010 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
5011 | bool result; | |
d14a1e28 RD |
5012 | PyObject * obj0 = 0 ; |
5013 | PyObject * obj1 = 0 ; | |
5014 | char *kwnames[] = { | |
093d3ff1 | 5015 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
5016 | }; |
5017 | ||
093d3ff1 RD |
5018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; |
5019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5021 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5022 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
5023 | { |
5024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5025 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
d14a1e28 RD |
5026 | |
5027 | wxPyEndAllowThreads(__tstate); | |
5028 | if (PyErr_Occurred()) SWIG_fail; | |
5029 | } | |
093d3ff1 RD |
5030 | { |
5031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5032 | } | |
d14a1e28 RD |
5033 | return resultobj; |
5034 | fail: | |
5035 | return NULL; | |
5036 | } | |
5037 | ||
5038 | ||
093d3ff1 | 5039 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5040 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5041 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
5042 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
5043 | bool result; | |
d14a1e28 | 5044 | PyObject * obj0 = 0 ; |
994141e6 | 5045 | PyObject * obj1 = 0 ; |
d14a1e28 | 5046 | char *kwnames[] = { |
093d3ff1 | 5047 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
5048 | }; |
5049 | ||
093d3ff1 RD |
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; |
5051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5053 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5054 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
5055 | { |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5057 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); |
d14a1e28 RD |
5058 | |
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
7eae615b | 5062 | { |
093d3ff1 | 5063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7eae615b | 5064 | } |
d14a1e28 RD |
5065 | return resultobj; |
5066 | fail: | |
5067 | return NULL; | |
5068 | } | |
5069 | ||
5070 | ||
093d3ff1 RD |
5071 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
5072 | PyObject *obj; | |
5073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5074 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
5075 | Py_INCREF(obj); | |
5076 | return Py_BuildValue((char *)""); | |
5077 | } | |
5078 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5079 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5080 | wxBitmap *arg1 = 0 ; |
5081 | wxColour const &arg2_defvalue = wxNullColour ; | |
5082 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5083 | wxMask *result; | |
5084 | wxColour temp2 ; | |
d14a1e28 | 5085 | PyObject * obj0 = 0 ; |
093d3ff1 | 5086 | PyObject * obj1 = 0 ; |
d14a1e28 | 5087 | char *kwnames[] = { |
093d3ff1 | 5088 | (char *) "bitmap",(char *) "colour", NULL |
d14a1e28 RD |
5089 | }; |
5090 | ||
093d3ff1 RD |
5091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
5092 | { | |
5093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5095 | if (arg1 == NULL) { | |
5096 | SWIG_null_ref("wxBitmap"); | |
5097 | } | |
5098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5099 | } | |
5100 | if (obj1) { | |
5101 | { | |
5102 | arg2 = &temp2; | |
5103 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5104 | } | |
5105 | } | |
d14a1e28 | 5106 | { |
093d3ff1 | 5107 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5109 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
5110 | |
5111 | wxPyEndAllowThreads(__tstate); | |
5112 | if (PyErr_Occurred()) SWIG_fail; | |
5113 | } | |
093d3ff1 | 5114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
5115 | return resultobj; |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
093d3ff1 RD |
5121 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
5122 | PyObject *obj; | |
5123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5124 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
5125 | Py_INCREF(obj); | |
5126 | return Py_BuildValue((char *)""); | |
5127 | } | |
5128 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5129 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5130 | wxString *arg1 = 0 ; |
5131 | wxBitmapType arg2 ; | |
5132 | int arg3 = (int) -1 ; | |
5133 | int arg4 = (int) -1 ; | |
5134 | wxIcon *result; | |
5135 | bool temp1 = false ; | |
d14a1e28 | 5136 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
5137 | PyObject * obj1 = 0 ; |
5138 | PyObject * obj2 = 0 ; | |
5139 | PyObject * obj3 = 0 ; | |
d14a1e28 | 5140 | char *kwnames[] = { |
093d3ff1 | 5141 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
5142 | }; |
5143 | ||
093d3ff1 | 5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5145 | { |
093d3ff1 RD |
5146 | arg1 = wxString_in_helper(obj0); |
5147 | if (arg1 == NULL) SWIG_fail; | |
5148 | temp1 = true; | |
5149 | } | |
5150 | { | |
32fe5131 | 5151 | arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5152 | if (SWIG_arg_fail(2)) SWIG_fail; |
5153 | } | |
5154 | if (obj2) { | |
5155 | { | |
32fe5131 | 5156 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5157 | if (SWIG_arg_fail(3)) SWIG_fail; |
5158 | } | |
5159 | } | |
5160 | if (obj3) { | |
5161 | { | |
32fe5131 | 5162 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
5163 | if (SWIG_arg_fail(4)) SWIG_fail; |
5164 | } | |
5165 | } | |
5166 | { | |
5167 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 5169 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); |
d14a1e28 RD |
5170 | |
5171 | wxPyEndAllowThreads(__tstate); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
093d3ff1 | 5174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
4f89f6a3 | 5175 | { |
093d3ff1 RD |
5176 | if (temp1) |
5177 | delete arg1; | |
4f89f6a3 | 5178 | } |
d14a1e28 RD |
5179 | return resultobj; |
5180 | fail: | |
093d3ff1 RD |
5181 | { |
5182 | if (temp1) | |
5183 | delete arg1; | |
5184 | } | |
d14a1e28 RD |
5185 | return NULL; |
5186 | } | |
5187 | ||
5188 | ||
093d3ff1 | 5189 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5190 | PyObject *resultobj = NULL; |
093d3ff1 | 5191 | wxIcon *arg1 = (wxIcon *) 0 ; |
d14a1e28 | 5192 | PyObject * obj0 = 0 ; |
d14a1e28 | 5193 | char *kwnames[] = { |
093d3ff1 | 5194 | (char *) "self", NULL |
d14a1e28 RD |
5195 | }; |
5196 | ||
093d3ff1 RD |
5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; |
5198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5200 | { |
5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5202 | delete arg1; |
d14a1e28 RD |
5203 | |
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
5208 | return resultobj; |
5209 | fail: | |
d14a1e28 RD |
5210 | return NULL; |
5211 | } | |
5212 | ||
5213 | ||
093d3ff1 | 5214 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5215 | PyObject *resultobj = NULL; |
093d3ff1 | 5216 | wxIcon *result; |
d14a1e28 | 5217 | char *kwnames[] = { |
093d3ff1 | 5218 | NULL |
d14a1e28 RD |
5219 | }; |
5220 | ||
093d3ff1 | 5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; |
d14a1e28 | 5222 | { |
093d3ff1 | 5223 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5225 | result = (wxIcon *)new wxIcon(); |
d14a1e28 RD |
5226 | |
5227 | wxPyEndAllowThreads(__tstate); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
093d3ff1 | 5230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5231 | return resultobj; |
5232 | fail: | |
5233 | return NULL; | |
5234 | } | |
5235 | ||
5236 | ||
093d3ff1 | 5237 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5238 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5239 | wxIconLocation *arg1 = 0 ; |
5240 | wxIcon *result; | |
d14a1e28 RD |
5241 | PyObject * obj0 = 0 ; |
5242 | char *kwnames[] = { | |
093d3ff1 | 5243 | (char *) "loc", NULL |
d14a1e28 RD |
5244 | }; |
5245 | ||
093d3ff1 RD |
5246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; |
5247 | { | |
5248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5250 | if (arg1 == NULL) { | |
5251 | SWIG_null_ref("wxIconLocation"); | |
5252 | } | |
5253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5254 | } | |
d14a1e28 | 5255 | { |
093d3ff1 | 5256 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5258 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); |
d14a1e28 RD |
5259 | |
5260 | wxPyEndAllowThreads(__tstate); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | } | |
093d3ff1 | 5263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5264 | return resultobj; |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
093d3ff1 | 5270 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5271 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5272 | wxBitmap *arg1 = 0 ; |
5273 | wxIcon *result; | |
d14a1e28 RD |
5274 | PyObject * obj0 = 0 ; |
5275 | char *kwnames[] = { | |
093d3ff1 | 5276 | (char *) "bmp", NULL |
d14a1e28 RD |
5277 | }; |
5278 | ||
093d3ff1 RD |
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; |
5280 | { | |
5281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5283 | if (arg1 == NULL) { | |
5284 | SWIG_null_ref("wxBitmap"); | |
5285 | } | |
5286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5287 | } | |
d14a1e28 | 5288 | { |
093d3ff1 | 5289 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5291 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); |
d14a1e28 RD |
5292 | |
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
093d3ff1 | 5296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5297 | return resultobj; |
5298 | fail: | |
5299 | return NULL; | |
5300 | } | |
5301 | ||
5302 | ||
093d3ff1 | 5303 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5304 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5305 | PyObject *arg1 = (PyObject *) 0 ; |
5306 | wxIcon *result; | |
5307 | PyObject * obj0 = 0 ; | |
d14a1e28 | 5308 | char *kwnames[] = { |
093d3ff1 | 5309 | (char *) "listOfStrings", NULL |
d14a1e28 RD |
5310 | }; |
5311 | ||
093d3ff1 RD |
5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; |
5313 | arg1 = obj0; | |
d14a1e28 | 5314 | { |
093d3ff1 | 5315 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5317 | result = (wxIcon *)new_wxIcon(arg1); |
d14a1e28 RD |
5318 | |
5319 | wxPyEndAllowThreads(__tstate); | |
5320 | if (PyErr_Occurred()) SWIG_fail; | |
5321 | } | |
093d3ff1 | 5322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
5323 | return resultobj; |
5324 | fail: | |
5325 | return NULL; | |
5326 | } | |
5327 | ||
5328 | ||
093d3ff1 | 5329 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5330 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5331 | wxIcon *arg1 = (wxIcon *) 0 ; |
5332 | wxString *arg2 = 0 ; | |
5333 | wxBitmapType arg3 ; | |
5334 | bool result; | |
5335 | bool temp2 = false ; | |
d14a1e28 | 5336 | PyObject * obj0 = 0 ; |
994141e6 | 5337 | PyObject * obj1 = 0 ; |
093d3ff1 | 5338 | PyObject * obj2 = 0 ; |
d14a1e28 | 5339 | char *kwnames[] = { |
093d3ff1 | 5340 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
5341 | }; |
5342 | ||
093d3ff1 RD |
5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
5344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5346 | { |
093d3ff1 RD |
5347 | arg2 = wxString_in_helper(obj1); |
5348 | if (arg2 == NULL) SWIG_fail; | |
5349 | temp2 = true; | |
5350 | } | |
5351 | { | |
32fe5131 | 5352 | arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2)); |
093d3ff1 | 5353 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
5354 | } |
5355 | { | |
5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 5357 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
d14a1e28 RD |
5358 | |
5359 | wxPyEndAllowThreads(__tstate); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
d14a1e28 | 5362 | { |
093d3ff1 RD |
5363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
5364 | } | |
5365 | { | |
5366 | if (temp2) | |
5367 | delete arg2; | |
d14a1e28 RD |
5368 | } |
5369 | return resultobj; | |
5370 | fail: | |
5371 | { | |
093d3ff1 RD |
5372 | if (temp2) |
5373 | delete arg2; | |
d14a1e28 RD |
5374 | } |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
093d3ff1 | 5379 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5380 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5381 | wxIcon *arg1 = (wxIcon *) 0 ; |
5382 | bool result; | |
d14a1e28 RD |
5383 | PyObject * obj0 = 0 ; |
5384 | char *kwnames[] = { | |
093d3ff1 | 5385 | (char *) "self", NULL |
d14a1e28 RD |
5386 | }; |
5387 | ||
093d3ff1 RD |
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; |
5389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5391 | { |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5393 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
5394 | |
5395 | wxPyEndAllowThreads(__tstate); | |
5396 | if (PyErr_Occurred()) SWIG_fail; | |
5397 | } | |
093d3ff1 RD |
5398 | { |
5399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5400 | } | |
d14a1e28 RD |
5401 | return resultobj; |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
093d3ff1 | 5407 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5408 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5409 | wxIcon *arg1 = (wxIcon *) 0 ; |
5410 | int result; | |
d14a1e28 RD |
5411 | PyObject * obj0 = 0 ; |
5412 | char *kwnames[] = { | |
5413 | (char *) "self", NULL | |
5414 | }; | |
5415 | ||
093d3ff1 RD |
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; |
5417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5419 | { |
5420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5421 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5422 | |
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
093d3ff1 | 5426 | { |
32fe5131 | 5427 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5428 | } |
d14a1e28 RD |
5429 | return resultobj; |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
093d3ff1 | 5435 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5436 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5437 | wxIcon *arg1 = (wxIcon *) 0 ; |
5438 | int result; | |
d14a1e28 | 5439 | PyObject * obj0 = 0 ; |
d14a1e28 | 5440 | char *kwnames[] = { |
093d3ff1 | 5441 | (char *) "self", NULL |
d14a1e28 RD |
5442 | }; |
5443 | ||
093d3ff1 RD |
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; |
5445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5449 | result = (int)(arg1)->GetHeight(); | |
5450 | ||
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
5454 | { | |
32fe5131 | 5455 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 | 5456 | } |
093d3ff1 RD |
5457 | return resultobj; |
5458 | fail: | |
5459 | return NULL; | |
5460 | } | |
5461 | ||
5462 | ||
5463 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5464 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5465 | wxIcon *arg1 = (wxIcon *) 0 ; |
5466 | int result; | |
5467 | PyObject * obj0 = 0 ; | |
5468 | char *kwnames[] = { | |
5469 | (char *) "self", NULL | |
5470 | }; | |
5471 | ||
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
5473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5475 | { |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5477 | result = (int)(arg1)->GetDepth(); |
d14a1e28 RD |
5478 | |
5479 | wxPyEndAllowThreads(__tstate); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
093d3ff1 | 5482 | { |
32fe5131 | 5483 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5484 | } |
d14a1e28 RD |
5485 | return resultobj; |
5486 | fail: | |
5487 | return NULL; | |
5488 | } | |
5489 | ||
5490 | ||
093d3ff1 | 5491 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5492 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5493 | wxIcon *arg1 = (wxIcon *) 0 ; |
5494 | int arg2 ; | |
d14a1e28 RD |
5495 | PyObject * obj0 = 0 ; |
5496 | PyObject * obj1 = 0 ; | |
5497 | char *kwnames[] = { | |
093d3ff1 | 5498 | (char *) "self",(char *) "w", NULL |
d14a1e28 RD |
5499 | }; |
5500 | ||
093d3ff1 RD |
5501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
5502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5504 | { |
32fe5131 | 5505 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 5506 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
5507 | } |
5508 | { | |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5510 | (arg1)->SetWidth(arg2); |
d14a1e28 RD |
5511 | |
5512 | wxPyEndAllowThreads(__tstate); | |
5513 | if (PyErr_Occurred()) SWIG_fail; | |
5514 | } | |
5515 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
5516 | return resultobj; |
5517 | fail: | |
093d3ff1 RD |
5518 | return NULL; |
5519 | } | |
5520 | ||
5521 | ||
5522 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5523 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5524 | wxIcon *arg1 = (wxIcon *) 0 ; |
5525 | int arg2 ; | |
5526 | PyObject * obj0 = 0 ; | |
5527 | PyObject * obj1 = 0 ; | |
5528 | char *kwnames[] = { | |
5529 | (char *) "self",(char *) "h", NULL | |
5530 | }; | |
5531 | ||
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5535 | { |
32fe5131 | 5536 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 5537 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 | 5538 | } |
093d3ff1 RD |
5539 | { |
5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5541 | (arg1)->SetHeight(arg2); | |
5542 | ||
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
5546 | Py_INCREF(Py_None); resultobj = Py_None; | |
5547 | return resultobj; | |
5548 | fail: | |
d14a1e28 RD |
5549 | return NULL; |
5550 | } | |
5551 | ||
5552 | ||
093d3ff1 | 5553 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5554 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5555 | wxIcon *arg1 = (wxIcon *) 0 ; |
5556 | int arg2 ; | |
d14a1e28 RD |
5557 | PyObject * obj0 = 0 ; |
5558 | PyObject * obj1 = 0 ; | |
5559 | char *kwnames[] = { | |
093d3ff1 | 5560 | (char *) "self",(char *) "d", NULL |
d14a1e28 RD |
5561 | }; |
5562 | ||
093d3ff1 RD |
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
5564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 5566 | { |
32fe5131 | 5567 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 5568 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
5569 | } |
5570 | { | |
5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5572 | (arg1)->SetDepth(arg2); |
d14a1e28 RD |
5573 | |
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
5576 | } | |
093d3ff1 RD |
5577 | Py_INCREF(Py_None); resultobj = Py_None; |
5578 | return resultobj; | |
5579 | fail: | |
5580 | return NULL; | |
5581 | } | |
5582 | ||
5583 | ||
5584 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5585 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5586 | wxIcon *arg1 = (wxIcon *) 0 ; |
5587 | wxBitmap *arg2 = 0 ; | |
5588 | PyObject * obj0 = 0 ; | |
5589 | PyObject * obj1 = 0 ; | |
5590 | char *kwnames[] = { | |
5591 | (char *) "self",(char *) "bmp", NULL | |
5592 | }; | |
5593 | ||
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5597 | { | |
5598 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
5599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5600 | if (arg2 == NULL) { | |
5601 | SWIG_null_ref("wxBitmap"); | |
5602 | } | |
5603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5604 | } | |
4276dc52 | 5605 | { |
093d3ff1 RD |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5607 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
4276dc52 | 5611 | } |
093d3ff1 | 5612 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
5613 | return resultobj; |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
093d3ff1 | 5619 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5620 | PyObject *obj; |
5621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 5622 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); |
d14a1e28 RD |
5623 | Py_INCREF(obj); |
5624 | return Py_BuildValue((char *)""); | |
5625 | } | |
093d3ff1 | 5626 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5627 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5628 | wxString *arg1 = (wxString *) &wxPyEmptyString ; |
5629 | int arg2 = (int) 0 ; | |
5630 | wxIconLocation *result; | |
ae8162c8 | 5631 | bool temp1 = false ; |
d14a1e28 | 5632 | PyObject * obj0 = 0 ; |
994141e6 | 5633 | PyObject * obj1 = 0 ; |
d14a1e28 | 5634 | char *kwnames[] = { |
093d3ff1 | 5635 | (char *) "filename",(char *) "num", NULL |
d14a1e28 RD |
5636 | }; |
5637 | ||
093d3ff1 RD |
5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
5639 | if (obj0) { | |
5640 | { | |
5641 | arg1 = wxString_in_helper(obj0); | |
5642 | if (arg1 == NULL) SWIG_fail; | |
5643 | temp1 = true; | |
5644 | } | |
994141e6 | 5645 | } |
093d3ff1 RD |
5646 | if (obj1) { |
5647 | { | |
32fe5131 | 5648 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5649 | if (SWIG_arg_fail(2)) SWIG_fail; |
5650 | } | |
994141e6 | 5651 | } |
d14a1e28 RD |
5652 | { |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5654 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); |
d14a1e28 RD |
5655 | |
5656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5657 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5658 | } |
093d3ff1 | 5659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
5660 | { |
5661 | if (temp1) | |
5662 | delete arg1; | |
5663 | } | |
d14a1e28 RD |
5664 | return resultobj; |
5665 | fail: | |
7eae615b RD |
5666 | { |
5667 | if (temp1) | |
5668 | delete arg1; | |
5669 | } | |
d14a1e28 RD |
5670 | return NULL; |
5671 | } | |
5672 | ||
5673 | ||
093d3ff1 | 5674 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5675 | PyObject *resultobj = NULL; |
093d3ff1 | 5676 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
d14a1e28 RD |
5677 | PyObject * obj0 = 0 ; |
5678 | char *kwnames[] = { | |
5679 | (char *) "self", NULL | |
5680 | }; | |
5681 | ||
093d3ff1 RD |
5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; |
5683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5685 | { |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | delete arg1; | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
5692 | Py_INCREF(Py_None); resultobj = Py_None; | |
5693 | return resultobj; | |
5694 | fail: | |
5695 | return NULL; | |
5696 | } | |
5697 | ||
5698 | ||
093d3ff1 | 5699 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5700 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5701 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5702 | bool result; | |
994141e6 | 5703 | PyObject * obj0 = 0 ; |
d14a1e28 | 5704 | char *kwnames[] = { |
093d3ff1 | 5705 | (char *) "self", NULL |
d14a1e28 RD |
5706 | }; |
5707 | ||
093d3ff1 RD |
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; |
5709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5711 | { |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5713 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); |
d14a1e28 RD |
5714 | |
5715 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5716 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5717 | } |
093d3ff1 RD |
5718 | { |
5719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5720 | } | |
d14a1e28 RD |
5721 | return resultobj; |
5722 | fail: | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
093d3ff1 | 5727 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5728 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5729 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5730 | wxString *arg2 = 0 ; | |
5731 | bool temp2 = false ; | |
d14a1e28 | 5732 | PyObject * obj0 = 0 ; |
093d3ff1 | 5733 | PyObject * obj1 = 0 ; |
d14a1e28 | 5734 | char *kwnames[] = { |
093d3ff1 | 5735 | (char *) "self",(char *) "filename", NULL |
d14a1e28 RD |
5736 | }; |
5737 | ||
093d3ff1 RD |
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; |
5739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5741 | { | |
5742 | arg2 = wxString_in_helper(obj1); | |
5743 | if (arg2 == NULL) SWIG_fail; | |
5744 | temp2 = true; | |
d14a1e28 RD |
5745 | } |
5746 | { | |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5748 | (arg1)->SetFileName((wxString const &)*arg2); |
d14a1e28 RD |
5749 | |
5750 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5751 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5752 | } |
093d3ff1 RD |
5753 | Py_INCREF(Py_None); resultobj = Py_None; |
5754 | { | |
5755 | if (temp2) | |
5756 | delete arg2; | |
5757 | } | |
d14a1e28 RD |
5758 | return resultobj; |
5759 | fail: | |
093d3ff1 RD |
5760 | { |
5761 | if (temp2) | |
5762 | delete arg2; | |
5763 | } | |
d14a1e28 RD |
5764 | return NULL; |
5765 | } | |
5766 | ||
5767 | ||
093d3ff1 | 5768 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5769 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5770 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5771 | wxString *result; | |
d14a1e28 RD |
5772 | PyObject * obj0 = 0 ; |
5773 | char *kwnames[] = { | |
5774 | (char *) "self", NULL | |
5775 | }; | |
5776 | ||
093d3ff1 RD |
5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; |
5778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5780 | { |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
5782 | { |
5783 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
5784 | result = (wxString *) &_result_ref; | |
5785 | } | |
d14a1e28 RD |
5786 | |
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
4f89f6a3 | 5790 | { |
093d3ff1 RD |
5791 | #if wxUSE_UNICODE |
5792 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5793 | #else | |
5794 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5795 | #endif | |
4f89f6a3 | 5796 | } |
d14a1e28 RD |
5797 | return resultobj; |
5798 | fail: | |
5799 | return NULL; | |
5800 | } | |
5801 | ||
5802 | ||
093d3ff1 | 5803 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5804 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5805 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5806 | int arg2 ; | |
994141e6 RD |
5807 | PyObject * obj0 = 0 ; |
5808 | PyObject * obj1 = 0 ; | |
d14a1e28 | 5809 | char *kwnames[] = { |
093d3ff1 | 5810 | (char *) "self",(char *) "num", NULL |
d14a1e28 RD |
5811 | }; |
5812 | ||
093d3ff1 RD |
5813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
5814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5816 | { | |
32fe5131 | 5817 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 5818 | if (SWIG_arg_fail(2)) SWIG_fail; |
994141e6 | 5819 | } |
d14a1e28 RD |
5820 | { |
5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5822 | wxIconLocation_SetIndex(arg1,arg2); |
d14a1e28 RD |
5823 | |
5824 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5825 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5826 | } |
093d3ff1 | 5827 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
5828 | return resultobj; |
5829 | fail: | |
5830 | return NULL; | |
5831 | } | |
5832 | ||
5833 | ||
093d3ff1 | 5834 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5835 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5836 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; |
5837 | int result; | |
e6ffcedd RD |
5838 | PyObject * obj0 = 0 ; |
5839 | char *kwnames[] = { | |
093d3ff1 | 5840 | (char *) "self", NULL |
e6ffcedd RD |
5841 | }; |
5842 | ||
093d3ff1 RD |
5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; |
5844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0); | |
5845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e6ffcedd | 5846 | { |
e6ffcedd | 5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 5848 | result = (int)wxIconLocation_GetIndex(arg1); |
e6ffcedd RD |
5849 | |
5850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5851 | if (PyErr_Occurred()) SWIG_fail; |
e6ffcedd | 5852 | } |
093d3ff1 | 5853 | { |
32fe5131 | 5854 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5855 | } |
e6ffcedd RD |
5856 | return resultobj; |
5857 | fail: | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
093d3ff1 RD |
5862 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
5863 | PyObject *obj; | |
5864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5865 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
5866 | Py_INCREF(obj); | |
5867 | return Py_BuildValue((char *)""); | |
5868 | } | |
5869 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5870 | PyObject *resultobj = NULL; |
093d3ff1 | 5871 | wxIconBundle *result; |
d14a1e28 | 5872 | char *kwnames[] = { |
093d3ff1 | 5873 | NULL |
d14a1e28 RD |
5874 | }; |
5875 | ||
093d3ff1 | 5876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; |
d14a1e28 RD |
5877 | { |
5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5879 | result = (wxIconBundle *)new wxIconBundle(); |
d14a1e28 RD |
5880 | |
5881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5882 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5883 | } |
093d3ff1 | 5884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
5885 | return resultobj; |
5886 | fail: | |
5887 | return NULL; | |
5888 | } | |
5889 | ||
5890 | ||
093d3ff1 | 5891 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5892 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5893 | wxString *arg1 = 0 ; |
5894 | long arg2 ; | |
5895 | wxIconBundle *result; | |
5896 | bool temp1 = false ; | |
d14a1e28 | 5897 | PyObject * obj0 = 0 ; |
994141e6 | 5898 | PyObject * obj1 = 0 ; |
d14a1e28 | 5899 | char *kwnames[] = { |
093d3ff1 | 5900 | (char *) "file",(char *) "type", NULL |
d14a1e28 RD |
5901 | }; |
5902 | ||
093d3ff1 | 5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5904 | { |
093d3ff1 RD |
5905 | arg1 = wxString_in_helper(obj0); |
5906 | if (arg1 == NULL) SWIG_fail; | |
5907 | temp1 = true; | |
d14a1e28 | 5908 | } |
093d3ff1 | 5909 | { |
32fe5131 | 5910 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 | 5911 | if (SWIG_arg_fail(2)) SWIG_fail; |
994141e6 | 5912 | } |
d14a1e28 RD |
5913 | { |
5914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5915 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); |
d14a1e28 RD |
5916 | |
5917 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5918 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5919 | } |
093d3ff1 | 5920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 | 5921 | { |
093d3ff1 RD |
5922 | if (temp1) |
5923 | delete arg1; | |
d14a1e28 RD |
5924 | } |
5925 | return resultobj; | |
5926 | fail: | |
5927 | { | |
093d3ff1 RD |
5928 | if (temp1) |
5929 | delete arg1; | |
d14a1e28 RD |
5930 | } |
5931 | return NULL; | |
5932 | } | |
5933 | ||
5934 | ||
093d3ff1 | 5935 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5936 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5937 | wxIcon *arg1 = 0 ; |
5938 | wxIconBundle *result; | |
d14a1e28 RD |
5939 | PyObject * obj0 = 0 ; |
5940 | char *kwnames[] = { | |
093d3ff1 | 5941 | (char *) "icon", NULL |
d14a1e28 RD |
5942 | }; |
5943 | ||
093d3ff1 RD |
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; |
5945 | { | |
5946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
5947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5948 | if (arg1 == NULL) { | |
5949 | SWIG_null_ref("wxIcon"); | |
5950 | } | |
5951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5952 | } | |
d14a1e28 RD |
5953 | { |
5954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5955 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); |
d14a1e28 RD |
5956 | |
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
093d3ff1 | 5960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
5961 | return resultobj; |
5962 | fail: | |
5963 | return NULL; | |
5964 | } | |
5965 | ||
5966 | ||
093d3ff1 | 5967 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5968 | PyObject *resultobj = NULL; |
093d3ff1 | 5969 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
d14a1e28 RD |
5970 | PyObject * obj0 = 0 ; |
5971 | char *kwnames[] = { | |
5972 | (char *) "self", NULL | |
5973 | }; | |
5974 | ||
093d3ff1 RD |
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; |
5976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
5977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5978 | { |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 5980 | delete arg1; |
d14a1e28 RD |
5981 | |
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | Py_INCREF(Py_None); resultobj = Py_None; | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
093d3ff1 | 5992 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5993 | PyObject *resultobj = NULL; |
093d3ff1 RD |
5994 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
5995 | wxIcon *arg2 = 0 ; | |
d14a1e28 | 5996 | PyObject * obj0 = 0 ; |
994141e6 | 5997 | PyObject * obj1 = 0 ; |
d14a1e28 | 5998 | char *kwnames[] = { |
093d3ff1 | 5999 | (char *) "self",(char *) "icon", NULL |
d14a1e28 RD |
6000 | }; |
6001 | ||
093d3ff1 RD |
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
6003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6005 | { | |
6006 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
6007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6008 | if (arg2 == NULL) { | |
6009 | SWIG_null_ref("wxIcon"); | |
6010 | } | |
6011 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6012 | } | |
d14a1e28 RD |
6013 | { |
6014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6015 | (arg1)->AddIcon((wxIcon const &)*arg2); |
d14a1e28 RD |
6016 | |
6017 | wxPyEndAllowThreads(__tstate); | |
6018 | if (PyErr_Occurred()) SWIG_fail; | |
6019 | } | |
093d3ff1 | 6020 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6021 | return resultobj; |
6022 | fail: | |
6023 | return NULL; | |
6024 | } | |
6025 | ||
6026 | ||
093d3ff1 | 6027 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6028 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6029 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
6030 | wxString *arg2 = 0 ; | |
6031 | long arg3 ; | |
6032 | bool temp2 = false ; | |
d14a1e28 | 6033 | PyObject * obj0 = 0 ; |
994141e6 RD |
6034 | PyObject * obj1 = 0 ; |
6035 | PyObject * obj2 = 0 ; | |
d14a1e28 | 6036 | char *kwnames[] = { |
093d3ff1 | 6037 | (char *) "self",(char *) "file",(char *) "type", NULL |
d14a1e28 RD |
6038 | }; |
6039 | ||
093d3ff1 RD |
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6043 | { | |
6044 | arg2 = wxString_in_helper(obj1); | |
6045 | if (arg2 == NULL) SWIG_fail; | |
6046 | temp2 = true; | |
6047 | } | |
6048 | { | |
32fe5131 | 6049 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
6050 | if (SWIG_arg_fail(3)) SWIG_fail; |
6051 | } | |
d14a1e28 RD |
6052 | { |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6054 | (arg1)->AddIcon((wxString const &)*arg2,arg3); |
d14a1e28 RD |
6055 | |
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
093d3ff1 RD |
6059 | Py_INCREF(Py_None); resultobj = Py_None; |
6060 | { | |
6061 | if (temp2) | |
6062 | delete arg2; | |
6063 | } | |
d14a1e28 RD |
6064 | return resultobj; |
6065 | fail: | |
093d3ff1 RD |
6066 | { |
6067 | if (temp2) | |
6068 | delete arg2; | |
6069 | } | |
d14a1e28 RD |
6070 | return NULL; |
6071 | } | |
6072 | ||
6073 | ||
093d3ff1 | 6074 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6075 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6076 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; |
6077 | wxSize *arg2 = 0 ; | |
6078 | wxIcon *result; | |
6079 | wxSize temp2 ; | |
d14a1e28 RD |
6080 | PyObject * obj0 = 0 ; |
6081 | PyObject * obj1 = 0 ; | |
6082 | char *kwnames[] = { | |
093d3ff1 | 6083 | (char *) "self",(char *) "size", NULL |
d14a1e28 RD |
6084 | }; |
6085 | ||
093d3ff1 RD |
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; |
6087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0); | |
6088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6089 | { |
6090 | arg2 = &temp2; | |
093d3ff1 | 6091 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
6092 | } |
6093 | { | |
6094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
6095 | { |
6096 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
6097 | result = (wxIcon *) &_result_ref; | |
6098 | } | |
d14a1e28 RD |
6099 | |
6100 | wxPyEndAllowThreads(__tstate); | |
6101 | if (PyErr_Occurred()) SWIG_fail; | |
6102 | } | |
093d3ff1 RD |
6103 | { |
6104 | wxIcon* resultptr = new wxIcon(*result); | |
6105 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
6106 | } | |
d14a1e28 RD |
6107 | return resultobj; |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
093d3ff1 RD |
6113 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
6114 | PyObject *obj; | |
6115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6116 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
6117 | Py_INCREF(obj); | |
6118 | return Py_BuildValue((char *)""); | |
6119 | } | |
6120 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 6121 | PyObject *resultobj = NULL; |
7557b9b5 | 6122 | wxString *arg1 = 0 ; |
093d3ff1 RD |
6123 | long arg2 ; |
6124 | int arg3 = (int) 0 ; | |
6125 | int arg4 = (int) 0 ; | |
6126 | wxCursor *result; | |
6127 | bool temp1 = false ; | |
d14a1e28 RD |
6128 | PyObject * obj0 = 0 ; |
6129 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6130 | PyObject * obj2 = 0 ; |
6131 | PyObject * obj3 = 0 ; | |
d14a1e28 | 6132 | char *kwnames[] = { |
093d3ff1 | 6133 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
6134 | }; |
6135 | ||
093d3ff1 | 6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6137 | { |
093d3ff1 RD |
6138 | arg1 = wxString_in_helper(obj0); |
6139 | if (arg1 == NULL) SWIG_fail; | |
6140 | temp1 = true; | |
6141 | } | |
6142 | { | |
32fe5131 | 6143 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
6144 | if (SWIG_arg_fail(2)) SWIG_fail; |
6145 | } | |
6146 | if (obj2) { | |
6147 | { | |
32fe5131 | 6148 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6149 | if (SWIG_arg_fail(3)) SWIG_fail; |
6150 | } | |
6151 | } | |
6152 | if (obj3) { | |
6153 | { | |
32fe5131 | 6154 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
6155 | if (SWIG_arg_fail(4)) SWIG_fail; |
6156 | } | |
d14a1e28 RD |
6157 | } |
6158 | { | |
093d3ff1 | 6159 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7557b9b5 | 6161 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); |
d14a1e28 RD |
6162 | |
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
093d3ff1 RD |
6166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
6167 | { | |
6168 | if (temp1) | |
6169 | delete arg1; | |
6170 | } | |
d14a1e28 RD |
6171 | return resultobj; |
6172 | fail: | |
093d3ff1 RD |
6173 | { |
6174 | if (temp1) | |
6175 | delete arg1; | |
6176 | } | |
d14a1e28 RD |
6177 | return NULL; |
6178 | } | |
6179 | ||
6180 | ||
093d3ff1 | 6181 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6182 | PyObject *resultobj = NULL; |
093d3ff1 | 6183 | wxCursor *arg1 = (wxCursor *) 0 ; |
d14a1e28 RD |
6184 | PyObject * obj0 = 0 ; |
6185 | char *kwnames[] = { | |
093d3ff1 | 6186 | (char *) "self", NULL |
d14a1e28 RD |
6187 | }; |
6188 | ||
093d3ff1 RD |
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; |
6190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6192 | { |
6193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6194 | delete arg1; |
d14a1e28 RD |
6195 | |
6196 | wxPyEndAllowThreads(__tstate); | |
6197 | if (PyErr_Occurred()) SWIG_fail; | |
6198 | } | |
093d3ff1 | 6199 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6200 | return resultobj; |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
093d3ff1 | 6206 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6207 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6208 | int arg1 ; |
6209 | wxCursor *result; | |
d14a1e28 RD |
6210 | PyObject * obj0 = 0 ; |
6211 | char *kwnames[] = { | |
093d3ff1 | 6212 | (char *) "id", NULL |
d14a1e28 RD |
6213 | }; |
6214 | ||
093d3ff1 RD |
6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
6216 | { | |
32fe5131 | 6217 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6218 | if (SWIG_arg_fail(1)) SWIG_fail; |
6219 | } | |
d14a1e28 | 6220 | { |
093d3ff1 | 6221 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6223 | result = (wxCursor *)new wxCursor(arg1); |
d14a1e28 RD |
6224 | |
6225 | wxPyEndAllowThreads(__tstate); | |
6226 | if (PyErr_Occurred()) SWIG_fail; | |
6227 | } | |
093d3ff1 | 6228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
6229 | return resultobj; |
6230 | fail: | |
6231 | return NULL; | |
6232 | } | |
6233 | ||
6234 | ||
093d3ff1 | 6235 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6236 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6237 | wxImage *arg1 = 0 ; |
6238 | wxCursor *result; | |
d14a1e28 RD |
6239 | PyObject * obj0 = 0 ; |
6240 | char *kwnames[] = { | |
093d3ff1 | 6241 | (char *) "image", NULL |
d14a1e28 RD |
6242 | }; |
6243 | ||
093d3ff1 RD |
6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; |
6245 | { | |
6246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
6247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6248 | if (arg1 == NULL) { | |
6249 | SWIG_null_ref("wxImage"); | |
6250 | } | |
6251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6252 | } | |
d14a1e28 | 6253 | { |
093d3ff1 | 6254 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6256 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); |
d14a1e28 RD |
6257 | |
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) SWIG_fail; | |
6260 | } | |
093d3ff1 | 6261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
6262 | return resultobj; |
6263 | fail: | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
093d3ff1 | 6268 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6269 | PyObject *resultobj = NULL; |
093d3ff1 | 6270 | wxCursor *arg1 = (wxCursor *) 0 ; |
d14a1e28 | 6271 | bool result; |
d14a1e28 | 6272 | PyObject * obj0 = 0 ; |
d14a1e28 | 6273 | char *kwnames[] = { |
093d3ff1 | 6274 | (char *) "self", NULL |
d14a1e28 RD |
6275 | }; |
6276 | ||
093d3ff1 RD |
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; |
6278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
6279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6280 | { |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6282 | result = (bool)(arg1)->Ok(); |
d14a1e28 RD |
6283 | |
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
4f89f6a3 RD |
6287 | { |
6288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6289 | } | |
d14a1e28 RD |
6290 | return resultobj; |
6291 | fail: | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
093d3ff1 RD |
6296 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
6297 | PyObject *obj; | |
6298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6299 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
6300 | Py_INCREF(obj); | |
6301 | return Py_BuildValue((char *)""); | |
6302 | } | |
6303 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 6304 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6305 | int arg1 = (int) 0 ; |
6306 | int arg2 = (int) 0 ; | |
6307 | int arg3 = (int) 0 ; | |
6308 | int arg4 = (int) 0 ; | |
6309 | wxRegion *result; | |
d14a1e28 RD |
6310 | PyObject * obj0 = 0 ; |
6311 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6312 | PyObject * obj2 = 0 ; |
6313 | PyObject * obj3 = 0 ; | |
d14a1e28 | 6314 | char *kwnames[] = { |
093d3ff1 | 6315 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
6316 | }; |
6317 | ||
093d3ff1 RD |
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
6319 | if (obj0) { | |
6320 | { | |
32fe5131 | 6321 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6322 | if (SWIG_arg_fail(1)) SWIG_fail; |
6323 | } | |
6324 | } | |
6325 | if (obj1) { | |
6326 | { | |
32fe5131 | 6327 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6328 | if (SWIG_arg_fail(2)) SWIG_fail; |
6329 | } | |
6330 | } | |
6331 | if (obj2) { | |
6332 | { | |
32fe5131 | 6333 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6334 | if (SWIG_arg_fail(3)) SWIG_fail; |
6335 | } | |
6336 | } | |
6337 | if (obj3) { | |
6338 | { | |
32fe5131 | 6339 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
6340 | if (SWIG_arg_fail(4)) SWIG_fail; |
6341 | } | |
d14a1e28 RD |
6342 | } |
6343 | { | |
093d3ff1 | 6344 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6346 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
6347 | |
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
093d3ff1 | 6351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6352 | return resultobj; |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
093d3ff1 | 6358 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6359 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6360 | wxBitmap *arg1 = 0 ; |
6361 | wxRegion *result; | |
d14a1e28 RD |
6362 | PyObject * obj0 = 0 ; |
6363 | char *kwnames[] = { | |
093d3ff1 | 6364 | (char *) "bmp", NULL |
d14a1e28 RD |
6365 | }; |
6366 | ||
093d3ff1 RD |
6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; |
6368 | { | |
6369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6371 | if (arg1 == NULL) { | |
6372 | SWIG_null_ref("wxBitmap"); | |
6373 | } | |
6374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6375 | } | |
d14a1e28 | 6376 | { |
093d3ff1 | 6377 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6379 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); |
d14a1e28 RD |
6380 | |
6381 | wxPyEndAllowThreads(__tstate); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
093d3ff1 | 6384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6385 | return resultobj; |
6386 | fail: | |
6387 | return NULL; | |
6388 | } | |
6389 | ||
6390 | ||
093d3ff1 | 6391 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6392 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6393 | wxBitmap *arg1 = 0 ; |
6394 | wxColour *arg2 = 0 ; | |
6395 | int arg3 = (int) 0 ; | |
6396 | wxRegion *result; | |
6397 | wxColour temp2 ; | |
d14a1e28 | 6398 | PyObject * obj0 = 0 ; |
994141e6 RD |
6399 | PyObject * obj1 = 0 ; |
6400 | PyObject * obj2 = 0 ; | |
d14a1e28 | 6401 | char *kwnames[] = { |
093d3ff1 | 6402 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d14a1e28 RD |
6403 | }; |
6404 | ||
093d3ff1 RD |
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6406 | { | |
6407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6409 | if (arg1 == NULL) { | |
6410 | SWIG_null_ref("wxBitmap"); | |
6411 | } | |
6412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6413 | } | |
6414 | { | |
6415 | arg2 = &temp2; | |
6416 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6417 | } | |
6418 | if (obj2) { | |
6419 | { | |
32fe5131 | 6420 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6421 | if (SWIG_arg_fail(3)) SWIG_fail; |
6422 | } | |
6423 | } | |
d14a1e28 | 6424 | { |
093d3ff1 | 6425 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6427 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); |
d14a1e28 RD |
6428 | |
6429 | wxPyEndAllowThreads(__tstate); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
093d3ff1 | 6432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
6433 | return resultobj; |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
093d3ff1 | 6439 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6440 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6441 | int arg1 ; |
6442 | wxPoint *arg2 = (wxPoint *) 0 ; | |
6443 | int arg3 = (int) wxWINDING_RULE ; | |
6444 | wxRegion *result; | |
d14a1e28 RD |
6445 | PyObject * obj0 = 0 ; |
6446 | PyObject * obj1 = 0 ; | |
6447 | char *kwnames[] = { | |
093d3ff1 | 6448 | (char *) "points",(char *) "fillStyle", NULL |
d14a1e28 RD |
6449 | }; |
6450 | ||
093d3ff1 | 6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6452 | { |
093d3ff1 RD |
6453 | arg2 = wxPoint_LIST_helper(obj0, &arg1); |
6454 | if (arg2 == NULL) SWIG_fail; | |
6455 | } | |
6456 | if (obj1) { | |
6457 | { | |
32fe5131 | 6458 | arg3 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6459 | if (SWIG_arg_fail(3)) SWIG_fail; |
6460 | } | |
d14a1e28 RD |
6461 | } |
6462 | { | |
093d3ff1 | 6463 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 6465 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); |
d14a1e28 RD |
6466 | |
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
093d3ff1 | 6470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
4f89f6a3 | 6471 | { |
093d3ff1 | 6472 | if (arg2) delete [] arg2; |
4f89f6a3 | 6473 | } |
d14a1e28 RD |
6474 | return resultobj; |
6475 | fail: | |
093d3ff1 RD |
6476 | { |
6477 | if (arg2) delete [] arg2; | |
6478 | } | |
d14a1e28 RD |
6479 | return NULL; |
6480 | } | |
6481 | ||
6482 | ||
093d3ff1 | 6483 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6484 | PyObject *resultobj = NULL; |
d14a1e28 | 6485 | wxRegion *arg1 = (wxRegion *) 0 ; |
d14a1e28 | 6486 | PyObject * obj0 = 0 ; |
d14a1e28 | 6487 | char *kwnames[] = { |
093d3ff1 | 6488 | (char *) "self", NULL |
d14a1e28 RD |
6489 | }; |
6490 | ||
093d3ff1 RD |
6491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; |
6492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6494 | { |
6495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6496 | delete arg1; |
d14a1e28 RD |
6497 | |
6498 | wxPyEndAllowThreads(__tstate); | |
6499 | if (PyErr_Occurred()) SWIG_fail; | |
6500 | } | |
093d3ff1 | 6501 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6502 | return resultobj; |
6503 | fail: | |
6504 | return NULL; | |
6505 | } | |
6506 | ||
6507 | ||
093d3ff1 | 6508 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6509 | PyObject *resultobj = NULL; |
d14a1e28 | 6510 | wxRegion *arg1 = (wxRegion *) 0 ; |
d14a1e28 RD |
6511 | PyObject * obj0 = 0 ; |
6512 | char *kwnames[] = { | |
093d3ff1 | 6513 | (char *) "self", NULL |
d14a1e28 RD |
6514 | }; |
6515 | ||
093d3ff1 RD |
6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; |
6517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6519 | { |
6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6521 | (arg1)->Clear(); |
d14a1e28 RD |
6522 | |
6523 | wxPyEndAllowThreads(__tstate); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
093d3ff1 | 6526 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
6527 | return resultobj; |
6528 | fail: | |
6529 | return NULL; | |
6530 | } | |
6531 | ||
6532 | ||
093d3ff1 | 6533 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6534 | PyObject *resultobj = NULL; |
d14a1e28 | 6535 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 RD |
6536 | int arg2 ; |
6537 | int arg3 ; | |
d14a1e28 | 6538 | bool result; |
d14a1e28 RD |
6539 | PyObject * obj0 = 0 ; |
6540 | PyObject * obj1 = 0 ; | |
093d3ff1 | 6541 | PyObject * obj2 = 0 ; |
d14a1e28 | 6542 | char *kwnames[] = { |
093d3ff1 | 6543 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
6544 | }; |
6545 | ||
093d3ff1 RD |
6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 6549 | { |
32fe5131 | 6550 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6551 | if (SWIG_arg_fail(2)) SWIG_fail; |
6552 | } | |
6553 | { | |
32fe5131 | 6554 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 6555 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
6556 | } |
6557 | { | |
6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6559 | result = (bool)(arg1)->Offset(arg2,arg3); |
d14a1e28 RD |
6560 | |
6561 | wxPyEndAllowThreads(__tstate); | |
6562 | if (PyErr_Occurred()) SWIG_fail; | |
6563 | } | |
4f89f6a3 RD |
6564 | { |
6565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6566 | } | |
d14a1e28 RD |
6567 | return resultobj; |
6568 | fail: | |
6569 | return NULL; | |
6570 | } | |
6571 | ||
6572 | ||
093d3ff1 | 6573 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6574 | PyObject *resultobj = NULL; |
d14a1e28 | 6575 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 RD |
6576 | int arg2 ; |
6577 | int arg3 ; | |
6578 | wxRegionContain result; | |
d14a1e28 RD |
6579 | PyObject * obj0 = 0 ; |
6580 | PyObject * obj1 = 0 ; | |
093d3ff1 | 6581 | PyObject * obj2 = 0 ; |
d14a1e28 | 6582 | char *kwnames[] = { |
093d3ff1 | 6583 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
6584 | }; |
6585 | ||
093d3ff1 RD |
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
6587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6589 | { | |
32fe5131 | 6590 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6591 | if (SWIG_arg_fail(2)) SWIG_fail; |
6592 | } | |
6593 | { | |
32fe5131 | 6594 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 6595 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
6596 | } |
6597 | { | |
6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6599 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); |
d14a1e28 RD |
6600 | |
6601 | wxPyEndAllowThreads(__tstate); | |
6602 | if (PyErr_Occurred()) SWIG_fail; | |
6603 | } | |
093d3ff1 | 6604 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6605 | return resultobj; |
6606 | fail: | |
6607 | return NULL; | |
6608 | } | |
6609 | ||
6610 | ||
093d3ff1 | 6611 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6612 | PyObject *resultobj = NULL; |
d14a1e28 | 6613 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 RD |
6614 | wxPoint *arg2 = 0 ; |
6615 | wxRegionContain result; | |
6616 | wxPoint temp2 ; | |
d14a1e28 | 6617 | PyObject * obj0 = 0 ; |
994141e6 | 6618 | PyObject * obj1 = 0 ; |
d14a1e28 | 6619 | char *kwnames[] = { |
093d3ff1 | 6620 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
6621 | }; |
6622 | ||
093d3ff1 RD |
6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; |
6624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6626 | { | |
6627 | arg2 = &temp2; | |
6628 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6629 | } | |
d14a1e28 RD |
6630 | { |
6631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6632 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); |
d14a1e28 RD |
6633 | |
6634 | wxPyEndAllowThreads(__tstate); | |
6635 | if (PyErr_Occurred()) SWIG_fail; | |
6636 | } | |
093d3ff1 | 6637 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6638 | return resultobj; |
6639 | fail: | |
6640 | return NULL; | |
6641 | } | |
6642 | ||
6643 | ||
093d3ff1 | 6644 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6645 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6646 | wxRegion *arg1 = (wxRegion *) 0 ; |
6647 | wxRect *arg2 = 0 ; | |
093d3ff1 | 6648 | wxRegionContain result; |
d14a1e28 RD |
6649 | wxRect temp2 ; |
6650 | PyObject * obj0 = 0 ; | |
6651 | PyObject * obj1 = 0 ; | |
6652 | char *kwnames[] = { | |
6653 | (char *) "self",(char *) "rect", NULL | |
6654 | }; | |
6655 | ||
093d3ff1 RD |
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; |
6657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6659 | { |
6660 | arg2 = &temp2; | |
6661 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6662 | } | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6665 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); |
d14a1e28 RD |
6666 | |
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
093d3ff1 | 6670 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6671 | return resultobj; |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
093d3ff1 | 6677 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6678 | PyObject *resultobj = NULL; |
d14a1e28 | 6679 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 RD |
6680 | int arg2 ; |
6681 | int arg3 ; | |
6682 | int arg4 ; | |
6683 | int arg5 ; | |
6684 | wxRegionContain result; | |
d14a1e28 RD |
6685 | PyObject * obj0 = 0 ; |
6686 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6687 | PyObject * obj2 = 0 ; |
6688 | PyObject * obj3 = 0 ; | |
6689 | PyObject * obj4 = 0 ; | |
d14a1e28 | 6690 | char *kwnames[] = { |
093d3ff1 | 6691 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
6692 | }; |
6693 | ||
093d3ff1 RD |
6694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6697 | { | |
32fe5131 | 6698 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6699 | if (SWIG_arg_fail(2)) SWIG_fail; |
6700 | } | |
6701 | { | |
32fe5131 | 6702 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6703 | if (SWIG_arg_fail(3)) SWIG_fail; |
6704 | } | |
6705 | { | |
32fe5131 | 6706 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
6707 | if (SWIG_arg_fail(4)) SWIG_fail; |
6708 | } | |
6709 | { | |
32fe5131 | 6710 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 6711 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
6712 | } |
6713 | { | |
6714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6715 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
6716 | |
6717 | wxPyEndAllowThreads(__tstate); | |
6718 | if (PyErr_Occurred()) SWIG_fail; | |
6719 | } | |
093d3ff1 | 6720 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
6721 | return resultobj; |
6722 | fail: | |
6723 | return NULL; | |
6724 | } | |
6725 | ||
6726 | ||
093d3ff1 | 6727 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6728 | PyObject *resultobj = NULL; |
d14a1e28 | 6729 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 | 6730 | wxRect result; |
d14a1e28 RD |
6731 | PyObject * obj0 = 0 ; |
6732 | char *kwnames[] = { | |
6733 | (char *) "self", NULL | |
6734 | }; | |
6735 | ||
093d3ff1 RD |
6736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; |
6737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6739 | { |
6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6741 | result = (arg1)->GetBox(); |
d14a1e28 RD |
6742 | |
6743 | wxPyEndAllowThreads(__tstate); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | { | |
093d3ff1 | 6747 | wxRect * resultptr; |
32fe5131 | 6748 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
093d3ff1 | 6749 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
6750 | } |
6751 | return resultobj; | |
6752 | fail: | |
6753 | return NULL; | |
6754 | } | |
6755 | ||
6756 | ||
093d3ff1 | 6757 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6758 | PyObject *resultobj = NULL; |
d14a1e28 | 6759 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 RD |
6760 | int arg2 ; |
6761 | int arg3 ; | |
6762 | int arg4 ; | |
6763 | int arg5 ; | |
e6ffcedd RD |
6764 | bool result; |
6765 | PyObject * obj0 = 0 ; | |
6766 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
6767 | PyObject * obj2 = 0 ; |
6768 | PyObject * obj3 = 0 ; | |
6769 | PyObject * obj4 = 0 ; | |
e6ffcedd | 6770 | char *kwnames[] = { |
093d3ff1 | 6771 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
e6ffcedd RD |
6772 | }; |
6773 | ||
093d3ff1 RD |
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6777 | { | |
32fe5131 | 6778 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6779 | if (SWIG_arg_fail(2)) SWIG_fail; |
6780 | } | |
6781 | { | |
32fe5131 | 6782 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6783 | if (SWIG_arg_fail(3)) SWIG_fail; |
6784 | } | |
6785 | { | |
32fe5131 | 6786 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
6787 | if (SWIG_arg_fail(4)) SWIG_fail; |
6788 | } | |
6789 | { | |
32fe5131 | 6790 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 6791 | if (SWIG_arg_fail(5)) SWIG_fail; |
e6ffcedd RD |
6792 | } |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6795 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); |
e6ffcedd RD |
6796 | |
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
6800 | { | |
6801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6802 | } | |
6803 | return resultobj; | |
6804 | fail: | |
6805 | return NULL; | |
6806 | } | |
6807 | ||
6808 | ||
093d3ff1 | 6809 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6810 | PyObject *resultobj = NULL; |
e6ffcedd | 6811 | wxRegion *arg1 = (wxRegion *) 0 ; |
093d3ff1 | 6812 | wxRect *arg2 = 0 ; |
d14a1e28 | 6813 | bool result; |
093d3ff1 | 6814 | wxRect temp2 ; |
d14a1e28 RD |
6815 | PyObject * obj0 = 0 ; |
6816 | PyObject * obj1 = 0 ; | |
d14a1e28 | 6817 | char *kwnames[] = { |
093d3ff1 | 6818 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
6819 | }; |
6820 | ||
093d3ff1 RD |
6821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; |
6822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e6ffcedd | 6824 | { |
093d3ff1 RD |
6825 | arg2 = &temp2; |
6826 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 6827 | } |
d14a1e28 RD |
6828 | { |
6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6830 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); |
d14a1e28 RD |
6831 | |
6832 | wxPyEndAllowThreads(__tstate); | |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
6834 | } | |
4f89f6a3 RD |
6835 | { |
6836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6837 | } | |
d14a1e28 RD |
6838 | return resultobj; |
6839 | fail: | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
093d3ff1 | 6844 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6845 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6846 | wxRegion *arg1 = (wxRegion *) 0 ; |
6847 | wxRegion *arg2 = 0 ; | |
6848 | bool result; | |
d14a1e28 | 6849 | PyObject * obj0 = 0 ; |
093d3ff1 | 6850 | PyObject * obj1 = 0 ; |
d14a1e28 | 6851 | char *kwnames[] = { |
093d3ff1 | 6852 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
6853 | }; |
6854 | ||
093d3ff1 RD |
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; |
6856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6858 | { | |
6859 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6861 | if (arg2 == NULL) { | |
6862 | SWIG_null_ref("wxRegion"); | |
6863 | } | |
6864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
6865 | } |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6868 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); |
d14a1e28 RD |
6869 | |
6870 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6871 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6872 | } |
093d3ff1 RD |
6873 | { |
6874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6875 | } | |
d14a1e28 RD |
6876 | return resultobj; |
6877 | fail: | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
093d3ff1 | 6882 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6883 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6884 | wxRegion *arg1 = (wxRegion *) 0 ; |
6885 | bool result; | |
d14a1e28 RD |
6886 | PyObject * obj0 = 0 ; |
6887 | char *kwnames[] = { | |
6888 | (char *) "self", NULL | |
6889 | }; | |
6890 | ||
093d3ff1 RD |
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; |
6892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6894 | { |
6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6896 | result = (bool)(arg1)->IsEmpty(); |
d14a1e28 RD |
6897 | |
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
093d3ff1 RD |
6901 | { |
6902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6903 | } | |
d14a1e28 RD |
6904 | return resultobj; |
6905 | fail: | |
6906 | return NULL; | |
6907 | } | |
6908 | ||
6909 | ||
093d3ff1 | 6910 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6911 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6912 | wxRegion *arg1 = (wxRegion *) 0 ; |
6913 | int arg2 ; | |
6914 | int arg3 ; | |
6915 | int arg4 ; | |
6916 | int arg5 ; | |
6917 | bool result; | |
d14a1e28 | 6918 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
6919 | PyObject * obj1 = 0 ; |
6920 | PyObject * obj2 = 0 ; | |
6921 | PyObject * obj3 = 0 ; | |
6922 | PyObject * obj4 = 0 ; | |
d14a1e28 | 6923 | char *kwnames[] = { |
093d3ff1 | 6924 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
6925 | }; |
6926 | ||
093d3ff1 RD |
6927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6930 | { | |
32fe5131 | 6931 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6932 | if (SWIG_arg_fail(2)) SWIG_fail; |
6933 | } | |
6934 | { | |
32fe5131 | 6935 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6936 | if (SWIG_arg_fail(3)) SWIG_fail; |
6937 | } | |
6938 | { | |
32fe5131 | 6939 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
6940 | if (SWIG_arg_fail(4)) SWIG_fail; |
6941 | } | |
6942 | { | |
32fe5131 | 6943 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
6944 | if (SWIG_arg_fail(5)) SWIG_fail; |
6945 | } | |
d14a1e28 RD |
6946 | { |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6948 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
6949 | |
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
093d3ff1 RD |
6953 | { |
6954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6955 | } | |
d14a1e28 RD |
6956 | return resultobj; |
6957 | fail: | |
6958 | return NULL; | |
6959 | } | |
6960 | ||
6961 | ||
093d3ff1 | 6962 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6963 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6964 | wxRegion *arg1 = (wxRegion *) 0 ; |
6965 | wxRect *arg2 = 0 ; | |
6966 | bool result; | |
6967 | wxRect temp2 ; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | PyObject * obj1 = 0 ; | |
6970 | char *kwnames[] = { | |
6971 | (char *) "self",(char *) "rect", NULL | |
d14a1e28 RD |
6972 | }; |
6973 | ||
093d3ff1 RD |
6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; |
6975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
6976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6977 | { | |
6978 | arg2 = &temp2; | |
6979 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6980 | } | |
d14a1e28 RD |
6981 | { |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 6983 | result = (bool)(arg1)->Union((wxRect const &)*arg2); |
d14a1e28 RD |
6984 | |
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
093d3ff1 RD |
6988 | { |
6989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6990 | } | |
d14a1e28 RD |
6991 | return resultobj; |
6992 | fail: | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
093d3ff1 | 6997 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6998 | PyObject *resultobj = NULL; |
093d3ff1 RD |
6999 | wxRegion *arg1 = (wxRegion *) 0 ; |
7000 | wxRegion *arg2 = 0 ; | |
7001 | bool result; | |
d14a1e28 | 7002 | PyObject * obj0 = 0 ; |
093d3ff1 | 7003 | PyObject * obj1 = 0 ; |
d14a1e28 | 7004 | char *kwnames[] = { |
093d3ff1 | 7005 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
7006 | }; |
7007 | ||
093d3ff1 RD |
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; |
7009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7011 | { | |
7012 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7014 | if (arg2 == NULL) { | |
7015 | SWIG_null_ref("wxRegion"); | |
7016 | } | |
7017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7018 | } | |
d14a1e28 RD |
7019 | { |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7021 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); |
d14a1e28 RD |
7022 | |
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
093d3ff1 RD |
7026 | { |
7027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7028 | } | |
d14a1e28 RD |
7029 | return resultobj; |
7030 | fail: | |
7031 | return NULL; | |
7032 | } | |
7033 | ||
7034 | ||
093d3ff1 | 7035 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7036 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7037 | wxRegion *arg1 = (wxRegion *) 0 ; |
7038 | int arg2 ; | |
7039 | int arg3 ; | |
7040 | int arg4 ; | |
7041 | int arg5 ; | |
7042 | bool result; | |
d14a1e28 | 7043 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
7044 | PyObject * obj1 = 0 ; |
7045 | PyObject * obj2 = 0 ; | |
7046 | PyObject * obj3 = 0 ; | |
7047 | PyObject * obj4 = 0 ; | |
d14a1e28 | 7048 | char *kwnames[] = { |
093d3ff1 | 7049 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
7050 | }; |
7051 | ||
093d3ff1 RD |
7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7055 | { | |
32fe5131 | 7056 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7057 | if (SWIG_arg_fail(2)) SWIG_fail; |
7058 | } | |
7059 | { | |
32fe5131 | 7060 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7061 | if (SWIG_arg_fail(3)) SWIG_fail; |
7062 | } | |
7063 | { | |
32fe5131 | 7064 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
7065 | if (SWIG_arg_fail(4)) SWIG_fail; |
7066 | } | |
7067 | { | |
32fe5131 | 7068 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
7069 | if (SWIG_arg_fail(5)) SWIG_fail; |
7070 | } | |
d14a1e28 RD |
7071 | { |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7073 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
7074 | |
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
093d3ff1 RD |
7078 | { |
7079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7080 | } | |
d14a1e28 RD |
7081 | return resultobj; |
7082 | fail: | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
093d3ff1 | 7087 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7088 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7089 | wxRegion *arg1 = (wxRegion *) 0 ; |
7090 | wxRect *arg2 = 0 ; | |
7091 | bool result; | |
7092 | wxRect temp2 ; | |
d14a1e28 | 7093 | PyObject * obj0 = 0 ; |
093d3ff1 | 7094 | PyObject * obj1 = 0 ; |
d14a1e28 | 7095 | char *kwnames[] = { |
093d3ff1 | 7096 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
7097 | }; |
7098 | ||
093d3ff1 RD |
7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; |
7100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7102 | { | |
7103 | arg2 = &temp2; | |
7104 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7105 | } | |
d14a1e28 RD |
7106 | { |
7107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7108 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); |
d14a1e28 RD |
7109 | |
7110 | wxPyEndAllowThreads(__tstate); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | } | |
093d3ff1 RD |
7113 | { |
7114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7115 | } | |
d14a1e28 RD |
7116 | return resultobj; |
7117 | fail: | |
7118 | return NULL; | |
7119 | } | |
7120 | ||
7121 | ||
093d3ff1 | 7122 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7123 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7124 | wxRegion *arg1 = (wxRegion *) 0 ; |
7125 | wxRegion *arg2 = 0 ; | |
7126 | bool result; | |
d14a1e28 | 7127 | PyObject * obj0 = 0 ; |
093d3ff1 | 7128 | PyObject * obj1 = 0 ; |
d14a1e28 | 7129 | char *kwnames[] = { |
093d3ff1 | 7130 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
7131 | }; |
7132 | ||
093d3ff1 RD |
7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; |
7134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7136 | { | |
7137 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7138 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7139 | if (arg2 == NULL) { | |
7140 | SWIG_null_ref("wxRegion"); | |
7141 | } | |
7142 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7143 | } | |
d14a1e28 RD |
7144 | { |
7145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7146 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); |
d14a1e28 RD |
7147 | |
7148 | wxPyEndAllowThreads(__tstate); | |
7149 | if (PyErr_Occurred()) SWIG_fail; | |
7150 | } | |
093d3ff1 RD |
7151 | { |
7152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7153 | } | |
d14a1e28 RD |
7154 | return resultobj; |
7155 | fail: | |
7156 | return NULL; | |
7157 | } | |
7158 | ||
7159 | ||
093d3ff1 | 7160 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7161 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7162 | wxRegion *arg1 = (wxRegion *) 0 ; |
7163 | int arg2 ; | |
7164 | int arg3 ; | |
7165 | int arg4 ; | |
7166 | int arg5 ; | |
7167 | bool result; | |
d14a1e28 | 7168 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
7169 | PyObject * obj1 = 0 ; |
7170 | PyObject * obj2 = 0 ; | |
7171 | PyObject * obj3 = 0 ; | |
7172 | PyObject * obj4 = 0 ; | |
d14a1e28 | 7173 | char *kwnames[] = { |
093d3ff1 | 7174 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
7175 | }; |
7176 | ||
093d3ff1 RD |
7177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7180 | { | |
32fe5131 | 7181 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7182 | if (SWIG_arg_fail(2)) SWIG_fail; |
7183 | } | |
7184 | { | |
32fe5131 | 7185 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7186 | if (SWIG_arg_fail(3)) SWIG_fail; |
7187 | } | |
7188 | { | |
32fe5131 | 7189 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
7190 | if (SWIG_arg_fail(4)) SWIG_fail; |
7191 | } | |
7192 | { | |
32fe5131 | 7193 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
7194 | if (SWIG_arg_fail(5)) SWIG_fail; |
7195 | } | |
d14a1e28 RD |
7196 | { |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7198 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
7199 | |
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | { | |
093d3ff1 | 7204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7205 | } |
7206 | return resultobj; | |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
093d3ff1 | 7212 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7213 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7214 | wxRegion *arg1 = (wxRegion *) 0 ; |
7215 | wxRect *arg2 = 0 ; | |
d14a1e28 | 7216 | bool result; |
093d3ff1 | 7217 | wxRect temp2 ; |
d14a1e28 | 7218 | PyObject * obj0 = 0 ; |
093d3ff1 | 7219 | PyObject * obj1 = 0 ; |
d14a1e28 | 7220 | char *kwnames[] = { |
093d3ff1 | 7221 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
7222 | }; |
7223 | ||
093d3ff1 RD |
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; |
7225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7227 | { | |
7228 | arg2 = &temp2; | |
7229 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7230 | } | |
d14a1e28 RD |
7231 | { |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7233 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); |
d14a1e28 RD |
7234 | |
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
4f89f6a3 RD |
7238 | { |
7239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7240 | } | |
d14a1e28 RD |
7241 | return resultobj; |
7242 | fail: | |
7243 | return NULL; | |
7244 | } | |
7245 | ||
7246 | ||
093d3ff1 | 7247 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7248 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7249 | wxRegion *arg1 = (wxRegion *) 0 ; |
7250 | wxRegion *arg2 = 0 ; | |
7251 | bool result; | |
d14a1e28 | 7252 | PyObject * obj0 = 0 ; |
093d3ff1 | 7253 | PyObject * obj1 = 0 ; |
d14a1e28 | 7254 | char *kwnames[] = { |
093d3ff1 | 7255 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
7256 | }; |
7257 | ||
093d3ff1 RD |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; |
7259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7261 | { | |
7262 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7264 | if (arg2 == NULL) { | |
7265 | SWIG_null_ref("wxRegion"); | |
7266 | } | |
7267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7268 | } | |
d14a1e28 RD |
7269 | { |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7271 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); |
d14a1e28 RD |
7272 | |
7273 | wxPyEndAllowThreads(__tstate); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
093d3ff1 RD |
7276 | { |
7277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7278 | } | |
d14a1e28 RD |
7279 | return resultobj; |
7280 | fail: | |
7281 | return NULL; | |
7282 | } | |
7283 | ||
7284 | ||
093d3ff1 | 7285 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7286 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7287 | wxRegion *arg1 = (wxRegion *) 0 ; |
7288 | SwigValueWrapper<wxBitmap > result; | |
d14a1e28 RD |
7289 | PyObject * obj0 = 0 ; |
7290 | char *kwnames[] = { | |
7291 | (char *) "self", NULL | |
7292 | }; | |
7293 | ||
093d3ff1 RD |
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; |
7295 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7296 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7297 | { |
7298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7299 | result = (arg1)->ConvertToBitmap(); |
d14a1e28 RD |
7300 | |
7301 | wxPyEndAllowThreads(__tstate); | |
7302 | if (PyErr_Occurred()) SWIG_fail; | |
7303 | } | |
093d3ff1 RD |
7304 | { |
7305 | wxBitmap * resultptr; | |
32fe5131 | 7306 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
093d3ff1 RD |
7307 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
7308 | } | |
d14a1e28 RD |
7309 | return resultobj; |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
093d3ff1 | 7315 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7316 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7317 | wxRegion *arg1 = (wxRegion *) 0 ; |
7318 | wxBitmap *arg2 = 0 ; | |
d14a1e28 RD |
7319 | bool result; |
7320 | PyObject * obj0 = 0 ; | |
093d3ff1 | 7321 | PyObject * obj1 = 0 ; |
d14a1e28 | 7322 | char *kwnames[] = { |
093d3ff1 | 7323 | (char *) "self",(char *) "bmp", NULL |
d14a1e28 RD |
7324 | }; |
7325 | ||
093d3ff1 RD |
7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; |
7327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7329 | { | |
7330 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7332 | if (arg2 == NULL) { | |
7333 | SWIG_null_ref("wxBitmap"); | |
7334 | } | |
7335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7336 | } | |
d14a1e28 RD |
7337 | { |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7339 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); |
d14a1e28 RD |
7340 | |
7341 | wxPyEndAllowThreads(__tstate); | |
7342 | if (PyErr_Occurred()) SWIG_fail; | |
7343 | } | |
4f89f6a3 RD |
7344 | { |
7345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7346 | } | |
d14a1e28 RD |
7347 | return resultobj; |
7348 | fail: | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
093d3ff1 | 7353 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7354 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7355 | wxRegion *arg1 = (wxRegion *) 0 ; |
7356 | wxBitmap *arg2 = 0 ; | |
7357 | wxColour *arg3 = 0 ; | |
7358 | int arg4 = (int) 0 ; | |
7359 | bool result; | |
7360 | wxColour temp3 ; | |
7361 | PyObject * obj0 = 0 ; | |
7362 | PyObject * obj1 = 0 ; | |
7363 | PyObject * obj2 = 0 ; | |
7364 | PyObject * obj3 = 0 ; | |
d14a1e28 | 7365 | char *kwnames[] = { |
093d3ff1 | 7366 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL |
d14a1e28 RD |
7367 | }; |
7368 | ||
093d3ff1 RD |
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
7371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7372 | { | |
7373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7375 | if (arg2 == NULL) { | |
7376 | SWIG_null_ref("wxBitmap"); | |
7377 | } | |
7378 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7379 | } | |
7380 | { | |
7381 | arg3 = &temp3; | |
7382 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
7383 | } | |
7384 | if (obj3) { | |
7385 | { | |
32fe5131 | 7386 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
7387 | if (SWIG_arg_fail(4)) SWIG_fail; |
7388 | } | |
7389 | } | |
d14a1e28 RD |
7390 | { |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7392 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); |
d14a1e28 RD |
7393 | |
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
093d3ff1 RD |
7397 | { |
7398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7399 | } | |
d14a1e28 RD |
7400 | return resultobj; |
7401 | fail: | |
7402 | return NULL; | |
7403 | } | |
7404 | ||
7405 | ||
093d3ff1 RD |
7406 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
7407 | PyObject *obj; | |
7408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7409 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
7410 | Py_INCREF(obj); | |
7411 | return Py_BuildValue((char *)""); | |
7412 | } | |
7413 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 7414 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7415 | wxRegion *arg1 = 0 ; |
7416 | wxRegionIterator *result; | |
d14a1e28 RD |
7417 | PyObject * obj0 = 0 ; |
7418 | char *kwnames[] = { | |
093d3ff1 | 7419 | (char *) "region", NULL |
d14a1e28 RD |
7420 | }; |
7421 | ||
093d3ff1 | 7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; |
d14a1e28 | 7423 | { |
093d3ff1 RD |
7424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); |
7425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7426 | if (arg1 == NULL) { | |
7427 | SWIG_null_ref("wxRegion"); | |
7428 | } | |
7429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7430 | } | |
7431 | { | |
7432 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 7434 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); |
d14a1e28 RD |
7435 | |
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
093d3ff1 | 7439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
7440 | return resultobj; |
7441 | fail: | |
7442 | return NULL; | |
7443 | } | |
7444 | ||
7445 | ||
093d3ff1 | 7446 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7447 | PyObject *resultobj = NULL; |
093d3ff1 | 7448 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7449 | PyObject * obj0 = 0 ; |
7450 | char *kwnames[] = { | |
7451 | (char *) "self", NULL | |
7452 | }; | |
7453 | ||
093d3ff1 RD |
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; |
7455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7457 | { |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7459 | delete arg1; |
d14a1e28 RD |
7460 | |
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | Py_INCREF(Py_None); resultobj = Py_None; | |
7465 | return resultobj; | |
7466 | fail: | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
093d3ff1 | 7471 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7472 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7473 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7474 | int result; | |
d14a1e28 | 7475 | PyObject * obj0 = 0 ; |
d14a1e28 | 7476 | char *kwnames[] = { |
093d3ff1 | 7477 | (char *) "self", NULL |
d14a1e28 RD |
7478 | }; |
7479 | ||
093d3ff1 RD |
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; |
7481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7483 | { |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7485 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
7486 | |
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
093d3ff1 | 7490 | { |
32fe5131 | 7491 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7492 | } |
d14a1e28 RD |
7493 | return resultobj; |
7494 | fail: | |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
093d3ff1 | 7499 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7500 | PyObject *resultobj = NULL; |
093d3ff1 | 7501 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7502 | int result; |
7503 | PyObject * obj0 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self", NULL | |
7506 | }; | |
7507 | ||
093d3ff1 RD |
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; |
7509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7511 | { |
7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7513 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
7514 | |
7515 | wxPyEndAllowThreads(__tstate); | |
7516 | if (PyErr_Occurred()) SWIG_fail; | |
7517 | } | |
093d3ff1 | 7518 | { |
32fe5131 | 7519 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7520 | } |
d14a1e28 RD |
7521 | return resultobj; |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
093d3ff1 | 7527 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7528 | PyObject *resultobj = NULL; |
093d3ff1 | 7529 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7530 | int result; |
7531 | PyObject * obj0 = 0 ; | |
7532 | char *kwnames[] = { | |
7533 | (char *) "self", NULL | |
7534 | }; | |
7535 | ||
093d3ff1 RD |
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; |
7537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7539 | { |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7541 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
7542 | |
7543 | wxPyEndAllowThreads(__tstate); | |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
7545 | } | |
093d3ff1 | 7546 | { |
32fe5131 | 7547 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7548 | } |
d14a1e28 RD |
7549 | return resultobj; |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
093d3ff1 | 7555 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7556 | PyObject *resultobj = NULL; |
093d3ff1 | 7557 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7558 | int result; |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "self", NULL | |
7562 | }; | |
7563 | ||
093d3ff1 RD |
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; |
7565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7567 | { |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7569 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
7570 | |
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
093d3ff1 | 7574 | { |
32fe5131 | 7575 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 7576 | } |
d14a1e28 RD |
7577 | return resultobj; |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
093d3ff1 | 7583 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7584 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7585 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7586 | int result; | |
d14a1e28 RD |
7587 | PyObject * obj0 = 0 ; |
7588 | char *kwnames[] = { | |
7589 | (char *) "self", NULL | |
7590 | }; | |
7591 | ||
093d3ff1 RD |
7592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; |
7593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7595 | { |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7597 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
7598 | |
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
4f89f6a3 | 7602 | { |
32fe5131 | 7603 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 7604 | } |
d14a1e28 RD |
7605 | return resultobj; |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
093d3ff1 | 7611 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7612 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7613 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7614 | int result; | |
d14a1e28 RD |
7615 | PyObject * obj0 = 0 ; |
7616 | char *kwnames[] = { | |
7617 | (char *) "self", NULL | |
7618 | }; | |
7619 | ||
093d3ff1 RD |
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; |
7621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7623 | { |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7625 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
7626 | |
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
7630 | { | |
32fe5131 | 7631 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
7632 | } |
7633 | return resultobj; | |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
093d3ff1 | 7639 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7640 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7641 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7642 | wxRect result; | |
d14a1e28 RD |
7643 | PyObject * obj0 = 0 ; |
7644 | char *kwnames[] = { | |
7645 | (char *) "self", NULL | |
7646 | }; | |
7647 | ||
093d3ff1 RD |
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; |
7649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7651 | { |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7653 | result = (arg1)->GetRect(); |
d14a1e28 RD |
7654 | |
7655 | wxPyEndAllowThreads(__tstate); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
093d3ff1 RD |
7658 | { |
7659 | wxRect * resultptr; | |
32fe5131 | 7660 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
093d3ff1 RD |
7661 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
7662 | } | |
d14a1e28 RD |
7663 | return resultobj; |
7664 | fail: | |
7665 | return NULL; | |
7666 | } | |
7667 | ||
7668 | ||
093d3ff1 | 7669 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7670 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7671 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7672 | bool result; | |
d14a1e28 RD |
7673 | PyObject * obj0 = 0 ; |
7674 | char *kwnames[] = { | |
7675 | (char *) "self", NULL | |
7676 | }; | |
7677 | ||
093d3ff1 RD |
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; |
7679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7681 | { |
7682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7683 | result = (bool)(arg1)->HaveRects(); |
d14a1e28 RD |
7684 | |
7685 | wxPyEndAllowThreads(__tstate); | |
7686 | if (PyErr_Occurred()) SWIG_fail; | |
7687 | } | |
093d3ff1 RD |
7688 | { |
7689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7690 | } | |
d14a1e28 RD |
7691 | return resultobj; |
7692 | fail: | |
7693 | return NULL; | |
7694 | } | |
7695 | ||
7696 | ||
093d3ff1 | 7697 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7698 | PyObject *resultobj = NULL; |
093d3ff1 | 7699 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7700 | PyObject * obj0 = 0 ; |
7701 | char *kwnames[] = { | |
093d3ff1 | 7702 | (char *) "self", NULL |
d14a1e28 RD |
7703 | }; |
7704 | ||
093d3ff1 RD |
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; |
7706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7708 | { |
7709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7710 | (arg1)->Reset(); |
d14a1e28 RD |
7711 | |
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | Py_INCREF(Py_None); resultobj = Py_None; | |
7716 | return resultobj; | |
7717 | fail: | |
7718 | return NULL; | |
7719 | } | |
7720 | ||
7721 | ||
093d3ff1 | 7722 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7723 | PyObject *resultobj = NULL; |
093d3ff1 | 7724 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
d14a1e28 RD |
7725 | PyObject * obj0 = 0 ; |
7726 | char *kwnames[] = { | |
093d3ff1 | 7727 | (char *) "self", NULL |
d14a1e28 RD |
7728 | }; |
7729 | ||
093d3ff1 RD |
7730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; |
7731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7733 | { |
7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7735 | wxRegionIterator_Next(arg1); |
d14a1e28 RD |
7736 | |
7737 | wxPyEndAllowThreads(__tstate); | |
7738 | if (PyErr_Occurred()) SWIG_fail; | |
7739 | } | |
7740 | Py_INCREF(Py_None); resultobj = Py_None; | |
7741 | return resultobj; | |
7742 | fail: | |
7743 | return NULL; | |
7744 | } | |
7745 | ||
7746 | ||
093d3ff1 | 7747 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7748 | PyObject *resultobj = NULL; |
093d3ff1 RD |
7749 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; |
7750 | bool result; | |
d14a1e28 RD |
7751 | PyObject * obj0 = 0 ; |
7752 | char *kwnames[] = { | |
093d3ff1 | 7753 | (char *) "self", NULL |
d14a1e28 RD |
7754 | }; |
7755 | ||
093d3ff1 RD |
7756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; |
7757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0); | |
7758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7759 | { |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7761 | result = (bool)wxRegionIterator___nonzero__(arg1); |
d14a1e28 RD |
7762 | |
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
093d3ff1 RD |
7766 | { |
7767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7768 | } | |
d14a1e28 RD |
7769 | return resultobj; |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
093d3ff1 RD |
7775 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
7776 | PyObject *obj; | |
7777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7778 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
7779 | Py_INCREF(obj); | |
7780 | return Py_BuildValue((char *)""); | |
7781 | } | |
7782 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 7783 | PyObject *resultobj = NULL; |
093d3ff1 | 7784 | wxNativeFontInfo *result; |
d14a1e28 | 7785 | char *kwnames[] = { |
093d3ff1 | 7786 | NULL |
d14a1e28 RD |
7787 | }; |
7788 | ||
093d3ff1 | 7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; |
d14a1e28 RD |
7790 | { |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7792 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); |
d14a1e28 RD |
7793 | |
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
093d3ff1 | 7797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
7798 | return resultobj; |
7799 | fail: | |
7800 | return NULL; | |
7801 | } | |
7802 | ||
7803 | ||
093d3ff1 | 7804 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7805 | PyObject *resultobj = NULL; |
d14a1e28 | 7806 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 | 7807 | PyObject * obj0 = 0 ; |
d14a1e28 | 7808 | char *kwnames[] = { |
093d3ff1 | 7809 | (char *) "self", NULL |
d14a1e28 RD |
7810 | }; |
7811 | ||
093d3ff1 RD |
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; |
7813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7815 | { |
7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7817 | delete arg1; |
d14a1e28 RD |
7818 | |
7819 | wxPyEndAllowThreads(__tstate); | |
7820 | if (PyErr_Occurred()) SWIG_fail; | |
7821 | } | |
7822 | Py_INCREF(Py_None); resultobj = Py_None; | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
093d3ff1 | 7829 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7830 | PyObject *resultobj = NULL; |
d14a1e28 | 7831 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 RD |
7832 | PyObject * obj0 = 0 ; |
7833 | char *kwnames[] = { | |
093d3ff1 | 7834 | (char *) "self", NULL |
d14a1e28 RD |
7835 | }; |
7836 | ||
093d3ff1 RD |
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; |
7838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7840 | { |
7841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7842 | (arg1)->Init(); |
d14a1e28 RD |
7843 | |
7844 | wxPyEndAllowThreads(__tstate); | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | Py_INCREF(Py_None); resultobj = Py_None; | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
093d3ff1 | 7854 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7855 | PyObject *resultobj = NULL; |
d14a1e28 | 7856 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
093d3ff1 | 7857 | wxFont *arg2 = 0 ; |
d14a1e28 | 7858 | PyObject * obj0 = 0 ; |
994141e6 | 7859 | PyObject * obj1 = 0 ; |
d14a1e28 | 7860 | char *kwnames[] = { |
093d3ff1 | 7861 | (char *) "self",(char *) "font", NULL |
d14a1e28 RD |
7862 | }; |
7863 | ||
093d3ff1 RD |
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; |
7865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7867 | { | |
7868 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
7869 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7870 | if (arg2 == NULL) { | |
7871 | SWIG_null_ref("wxFont"); | |
7872 | } | |
7873 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7874 | } | |
d14a1e28 RD |
7875 | { |
7876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7877 | (arg1)->InitFromFont((wxFont const &)*arg2); |
d14a1e28 RD |
7878 | |
7879 | wxPyEndAllowThreads(__tstate); | |
7880 | if (PyErr_Occurred()) SWIG_fail; | |
7881 | } | |
7882 | Py_INCREF(Py_None); resultobj = Py_None; | |
7883 | return resultobj; | |
7884 | fail: | |
7885 | return NULL; | |
7886 | } | |
7887 | ||
7888 | ||
093d3ff1 | 7889 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7890 | PyObject *resultobj = NULL; |
d14a1e28 | 7891 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
093d3ff1 | 7892 | int result; |
d14a1e28 | 7893 | PyObject * obj0 = 0 ; |
d14a1e28 | 7894 | char *kwnames[] = { |
093d3ff1 | 7895 | (char *) "self", NULL |
d14a1e28 RD |
7896 | }; |
7897 | ||
093d3ff1 RD |
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; |
7899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7901 | { |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7903 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); |
d14a1e28 RD |
7904 | |
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
4f89f6a3 | 7908 | { |
32fe5131 | 7909 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
7910 | } |
7911 | return resultobj; | |
7912 | fail: | |
d14a1e28 RD |
7913 | return NULL; |
7914 | } | |
7915 | ||
7916 | ||
093d3ff1 | 7917 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7918 | PyObject *resultobj = NULL; |
d14a1e28 | 7919 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
093d3ff1 | 7920 | wxFontStyle result; |
d14a1e28 RD |
7921 | PyObject * obj0 = 0 ; |
7922 | char *kwnames[] = { | |
7923 | (char *) "self", NULL | |
7924 | }; | |
7925 | ||
093d3ff1 RD |
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; |
7927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7929 | { |
7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7931 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); |
d14a1e28 RD |
7932 | |
7933 | wxPyEndAllowThreads(__tstate); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
093d3ff1 | 7936 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7937 | return resultobj; |
7938 | fail: | |
7939 | return NULL; | |
7940 | } | |
7941 | ||
7942 | ||
093d3ff1 | 7943 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7944 | PyObject *resultobj = NULL; |
d14a1e28 | 7945 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
093d3ff1 | 7946 | wxFontWeight result; |
d14a1e28 RD |
7947 | PyObject * obj0 = 0 ; |
7948 | char *kwnames[] = { | |
7949 | (char *) "self", NULL | |
7950 | }; | |
7951 | ||
093d3ff1 RD |
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; |
7953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7955 | { |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7957 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); |
d14a1e28 RD |
7958 | |
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
093d3ff1 | 7962 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
7963 | return resultobj; |
7964 | fail: | |
7965 | return NULL; | |
7966 | } | |
7967 | ||
7968 | ||
093d3ff1 | 7969 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7970 | PyObject *resultobj = NULL; |
d14a1e28 | 7971 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 | 7972 | bool result; |
d14a1e28 | 7973 | PyObject * obj0 = 0 ; |
d14a1e28 | 7974 | char *kwnames[] = { |
093d3ff1 | 7975 | (char *) "self", NULL |
d14a1e28 RD |
7976 | }; |
7977 | ||
093d3ff1 RD |
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; |
7979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
7980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7981 | { |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7983 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); |
d14a1e28 RD |
7984 | |
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
4f89f6a3 RD |
7988 | { |
7989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7990 | } | |
d14a1e28 RD |
7991 | return resultobj; |
7992 | fail: | |
d14a1e28 RD |
7993 | return NULL; |
7994 | } | |
7995 | ||
7996 | ||
093d3ff1 | 7997 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7998 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7999 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8000 | wxString result; | |
8001 | PyObject * obj0 = 0 ; | |
8002 | char *kwnames[] = { | |
8003 | (char *) "self", NULL | |
8004 | }; | |
8005 | ||
093d3ff1 RD |
8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; |
8007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8009 | { |
8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8011 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); |
d14a1e28 RD |
8012 | |
8013 | wxPyEndAllowThreads(__tstate); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | { | |
8017 | #if wxUSE_UNICODE | |
8018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8019 | #else | |
8020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8021 | #endif | |
8022 | } | |
8023 | return resultobj; | |
8024 | fail: | |
8025 | return NULL; | |
8026 | } | |
8027 | ||
8028 | ||
093d3ff1 | 8029 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8030 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8031 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8032 | wxFontFamily result; | |
d14a1e28 | 8033 | PyObject * obj0 = 0 ; |
d14a1e28 | 8034 | char *kwnames[] = { |
093d3ff1 | 8035 | (char *) "self", NULL |
d14a1e28 RD |
8036 | }; |
8037 | ||
093d3ff1 RD |
8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; |
8039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b | 8041 | { |
093d3ff1 RD |
8042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8043 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
8044 | ||
8045 | wxPyEndAllowThreads(__tstate); | |
8046 | if (PyErr_Occurred()) SWIG_fail; | |
7eae615b | 8047 | } |
093d3ff1 | 8048 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
8049 | return resultobj; |
8050 | fail: | |
8051 | return NULL; | |
8052 | } | |
8053 | ||
8054 | ||
093d3ff1 | 8055 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8056 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8057 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8058 | wxFontEncoding result; | |
d14a1e28 RD |
8059 | PyObject * obj0 = 0 ; |
8060 | char *kwnames[] = { | |
8061 | (char *) "self", NULL | |
8062 | }; | |
8063 | ||
093d3ff1 RD |
8064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; |
8065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8067 | { |
093d3ff1 RD |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8069 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
8070 | ||
8071 | wxPyEndAllowThreads(__tstate); | |
8072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8073 | } |
093d3ff1 | 8074 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
8075 | return resultobj; |
8076 | fail: | |
8077 | return NULL; | |
8078 | } | |
8079 | ||
8080 | ||
093d3ff1 | 8081 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8082 | PyObject *resultobj = NULL; |
093d3ff1 | 8083 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 RD |
8084 | int arg2 ; |
8085 | PyObject * obj0 = 0 ; | |
994141e6 | 8086 | PyObject * obj1 = 0 ; |
d14a1e28 | 8087 | char *kwnames[] = { |
093d3ff1 | 8088 | (char *) "self",(char *) "pointsize", NULL |
d14a1e28 RD |
8089 | }; |
8090 | ||
093d3ff1 RD |
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
8092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8094 | { | |
32fe5131 | 8095 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8096 | if (SWIG_arg_fail(2)) SWIG_fail; |
8097 | } | |
8098 | { | |
8099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8100 | (arg1)->SetPointSize(arg2); | |
8101 | ||
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
d14a1e28 RD |
8105 | Py_INCREF(Py_None); resultobj = Py_None; |
8106 | return resultobj; | |
8107 | fail: | |
8108 | return NULL; | |
8109 | } | |
8110 | ||
8111 | ||
093d3ff1 | 8112 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8113 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8114 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8115 | wxFontStyle arg2 ; | |
d14a1e28 | 8116 | PyObject * obj0 = 0 ; |
093d3ff1 | 8117 | PyObject * obj1 = 0 ; |
d14a1e28 | 8118 | char *kwnames[] = { |
093d3ff1 | 8119 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
8120 | }; |
8121 | ||
093d3ff1 RD |
8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
8123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8125 | { | |
32fe5131 | 8126 | arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8127 | if (SWIG_arg_fail(2)) SWIG_fail; |
8128 | } | |
d14a1e28 RD |
8129 | { |
8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8131 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
8132 | |
8133 | wxPyEndAllowThreads(__tstate); | |
8134 | if (PyErr_Occurred()) SWIG_fail; | |
8135 | } | |
093d3ff1 | 8136 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8137 | return resultobj; |
8138 | fail: | |
8139 | return NULL; | |
8140 | } | |
8141 | ||
8142 | ||
093d3ff1 | 8143 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8144 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8145 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8146 | wxFontWeight arg2 ; | |
d14a1e28 | 8147 | PyObject * obj0 = 0 ; |
093d3ff1 | 8148 | PyObject * obj1 = 0 ; |
d14a1e28 | 8149 | char *kwnames[] = { |
093d3ff1 | 8150 | (char *) "self",(char *) "weight", NULL |
d14a1e28 RD |
8151 | }; |
8152 | ||
093d3ff1 RD |
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
8154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8156 | { | |
32fe5131 | 8157 | arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8158 | if (SWIG_arg_fail(2)) SWIG_fail; |
8159 | } | |
d14a1e28 RD |
8160 | { |
8161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8162 | (arg1)->SetWeight(arg2); |
d14a1e28 RD |
8163 | |
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | Py_INCREF(Py_None); resultobj = Py_None; | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | return NULL; | |
8171 | } | |
8172 | ||
8173 | ||
093d3ff1 | 8174 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8175 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8176 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8177 | bool arg2 ; | |
d14a1e28 RD |
8178 | PyObject * obj0 = 0 ; |
8179 | PyObject * obj1 = 0 ; | |
8180 | char *kwnames[] = { | |
093d3ff1 | 8181 | (char *) "self",(char *) "underlined", NULL |
d14a1e28 RD |
8182 | }; |
8183 | ||
093d3ff1 RD |
8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
8185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8187 | { |
32fe5131 | 8188 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 | 8189 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
8190 | } |
8191 | { | |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8193 | (arg1)->SetUnderlined(arg2); |
d14a1e28 RD |
8194 | |
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
093d3ff1 | 8198 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8199 | return resultobj; |
8200 | fail: | |
d14a1e28 RD |
8201 | return NULL; |
8202 | } | |
8203 | ||
8204 | ||
093d3ff1 | 8205 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8206 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8207 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8208 | wxString arg2 ; | |
d14a1e28 | 8209 | PyObject * obj0 = 0 ; |
093d3ff1 | 8210 | PyObject * obj1 = 0 ; |
d14a1e28 | 8211 | char *kwnames[] = { |
093d3ff1 | 8212 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
8213 | }; |
8214 | ||
093d3ff1 RD |
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
8216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8218 | { | |
8219 | wxString* sptr = wxString_in_helper(obj1); | |
8220 | if (sptr == NULL) SWIG_fail; | |
8221 | arg2 = *sptr; | |
8222 | delete sptr; | |
8223 | } | |
d14a1e28 RD |
8224 | { |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8226 | (arg1)->SetFaceName(arg2); |
d14a1e28 RD |
8227 | |
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
093d3ff1 | 8231 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8232 | return resultobj; |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
093d3ff1 | 8238 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8239 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8240 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8241 | wxFontFamily arg2 ; | |
994141e6 | 8242 | PyObject * obj0 = 0 ; |
093d3ff1 | 8243 | PyObject * obj1 = 0 ; |
d14a1e28 | 8244 | char *kwnames[] = { |
093d3ff1 | 8245 | (char *) "self",(char *) "family", NULL |
d14a1e28 RD |
8246 | }; |
8247 | ||
093d3ff1 RD |
8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
8249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8251 | { | |
32fe5131 | 8252 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8253 | if (SWIG_arg_fail(2)) SWIG_fail; |
8254 | } | |
994141e6 RD |
8255 | { |
8256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8257 | (arg1)->SetFamily(arg2); |
d14a1e28 RD |
8258 | |
8259 | wxPyEndAllowThreads(__tstate); | |
8260 | if (PyErr_Occurred()) SWIG_fail; | |
8261 | } | |
093d3ff1 | 8262 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8263 | return resultobj; |
8264 | fail: | |
8265 | return NULL; | |
8266 | } | |
8267 | ||
8268 | ||
093d3ff1 | 8269 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8270 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8271 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8272 | wxFontEncoding arg2 ; | |
d14a1e28 | 8273 | PyObject * obj0 = 0 ; |
093d3ff1 | 8274 | PyObject * obj1 = 0 ; |
d14a1e28 | 8275 | char *kwnames[] = { |
093d3ff1 | 8276 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
8277 | }; |
8278 | ||
093d3ff1 RD |
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
8280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8282 | { | |
32fe5131 | 8283 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 | 8284 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
8285 | } |
8286 | { | |
8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8288 | (arg1)->SetEncoding(arg2); |
d14a1e28 RD |
8289 | |
8290 | wxPyEndAllowThreads(__tstate); | |
8291 | if (PyErr_Occurred()) SWIG_fail; | |
8292 | } | |
093d3ff1 | 8293 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
8294 | return resultobj; |
8295 | fail: | |
8296 | return NULL; | |
8297 | } | |
8298 | ||
8299 | ||
093d3ff1 | 8300 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8301 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8302 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8303 | wxString *arg2 = 0 ; | |
8304 | bool result; | |
8305 | bool temp2 = false ; | |
8306 | PyObject * obj0 = 0 ; | |
8307 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8308 | char *kwnames[] = { |
093d3ff1 | 8309 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8310 | }; |
8311 | ||
093d3ff1 RD |
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8315 | { | |
8316 | arg2 = wxString_in_helper(obj1); | |
8317 | if (arg2 == NULL) SWIG_fail; | |
8318 | temp2 = true; | |
8319 | } | |
d14a1e28 RD |
8320 | { |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8322 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d14a1e28 RD |
8323 | |
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
093d3ff1 RD |
8327 | { |
8328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8329 | } | |
8330 | { | |
8331 | if (temp2) | |
8332 | delete arg2; | |
8333 | } | |
d14a1e28 RD |
8334 | return resultobj; |
8335 | fail: | |
093d3ff1 RD |
8336 | { |
8337 | if (temp2) | |
8338 | delete arg2; | |
8339 | } | |
d14a1e28 RD |
8340 | return NULL; |
8341 | } | |
8342 | ||
8343 | ||
093d3ff1 | 8344 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8345 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8346 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8347 | wxString result; | |
d14a1e28 RD |
8348 | PyObject * obj0 = 0 ; |
8349 | char *kwnames[] = { | |
8350 | (char *) "self", NULL | |
8351 | }; | |
8352 | ||
093d3ff1 RD |
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; |
8354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8356 | { |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8358 | result = ((wxNativeFontInfo const *)arg1)->ToString(); |
d14a1e28 RD |
8359 | |
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
d14a1e28 | 8363 | { |
093d3ff1 RD |
8364 | #if wxUSE_UNICODE |
8365 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8366 | #else | |
8367 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8368 | #endif | |
d14a1e28 | 8369 | } |
d14a1e28 RD |
8370 | return resultobj; |
8371 | fail: | |
8372 | return NULL; | |
8373 | } | |
8374 | ||
8375 | ||
093d3ff1 | 8376 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8377 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8378 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8379 | wxString result; | |
d14a1e28 RD |
8380 | PyObject * obj0 = 0 ; |
8381 | char *kwnames[] = { | |
093d3ff1 | 8382 | (char *) "self", NULL |
d14a1e28 RD |
8383 | }; |
8384 | ||
093d3ff1 RD |
8385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; |
8386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8388 | { |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8390 | result = wxNativeFontInfo___str__(arg1); |
d14a1e28 RD |
8391 | |
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) SWIG_fail; | |
8394 | } | |
093d3ff1 RD |
8395 | { |
8396 | #if wxUSE_UNICODE | |
8397 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8398 | #else | |
8399 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8400 | #endif | |
8401 | } | |
d14a1e28 RD |
8402 | return resultobj; |
8403 | fail: | |
8404 | return NULL; | |
8405 | } | |
8406 | ||
8407 | ||
093d3ff1 | 8408 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8409 | PyObject *resultobj = NULL; |
093d3ff1 | 8410 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
d14a1e28 | 8411 | wxString *arg2 = 0 ; |
093d3ff1 | 8412 | bool result; |
ae8162c8 | 8413 | bool temp2 = false ; |
d14a1e28 RD |
8414 | PyObject * obj0 = 0 ; |
8415 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8416 | char *kwnames[] = { |
093d3ff1 | 8417 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8418 | }; |
8419 | ||
093d3ff1 RD |
8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; |
8421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8423 | { |
8424 | arg2 = wxString_in_helper(obj1); | |
8425 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8426 | temp2 = true; |
d14a1e28 | 8427 | } |
d14a1e28 RD |
8428 | { |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8430 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); |
d14a1e28 RD |
8431 | |
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
093d3ff1 RD |
8435 | { |
8436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8437 | } | |
d14a1e28 RD |
8438 | { |
8439 | if (temp2) | |
8440 | delete arg2; | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | { | |
8445 | if (temp2) | |
8446 | delete arg2; | |
8447 | } | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
093d3ff1 | 8452 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8453 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8454 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; |
8455 | wxString result; | |
8456 | PyObject * obj0 = 0 ; | |
d14a1e28 | 8457 | char *kwnames[] = { |
093d3ff1 | 8458 | (char *) "self", NULL |
d14a1e28 RD |
8459 | }; |
8460 | ||
093d3ff1 RD |
8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; |
8462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
8463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8464 | { |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8466 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); |
d14a1e28 RD |
8467 | |
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
093d3ff1 RD |
8471 | { |
8472 | #if wxUSE_UNICODE | |
8473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8474 | #else | |
8475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8476 | #endif | |
8477 | } | |
d14a1e28 RD |
8478 | return resultobj; |
8479 | fail: | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
093d3ff1 RD |
8484 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
8485 | PyObject *obj; | |
8486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8487 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
8488 | Py_INCREF(obj); | |
8489 | return Py_BuildValue((char *)""); | |
8490 | } | |
8491 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 8492 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8493 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8494 | wxString *arg2 = (wxString *) 0 ; | |
8495 | bool temp2 = false ; | |
d14a1e28 | 8496 | PyObject * obj0 = 0 ; |
093d3ff1 | 8497 | PyObject * obj1 = 0 ; |
d14a1e28 | 8498 | char *kwnames[] = { |
093d3ff1 | 8499 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
8500 | }; |
8501 | ||
093d3ff1 RD |
8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; |
8503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8505 | { |
093d3ff1 RD |
8506 | arg2 = wxString_in_helper(obj1); |
8507 | if (arg2 == NULL) SWIG_fail; | |
8508 | temp2 = true; | |
8509 | } | |
8510 | if (arg1) (arg1)->facename = *arg2; | |
8511 | ||
8512 | Py_INCREF(Py_None); resultobj = Py_None; | |
8513 | { | |
8514 | if (temp2) | |
8515 | delete arg2; | |
d14a1e28 | 8516 | } |
d14a1e28 RD |
8517 | return resultobj; |
8518 | fail: | |
093d3ff1 RD |
8519 | { |
8520 | if (temp2) | |
8521 | delete arg2; | |
8522 | } | |
d14a1e28 RD |
8523 | return NULL; |
8524 | } | |
8525 | ||
8526 | ||
093d3ff1 | 8527 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8528 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8529 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8530 | wxString *result; | |
994141e6 | 8531 | PyObject * obj0 = 0 ; |
d14a1e28 | 8532 | char *kwnames[] = { |
093d3ff1 | 8533 | (char *) "self", NULL |
d14a1e28 RD |
8534 | }; |
8535 | ||
093d3ff1 RD |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; |
8537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8539 | result = (wxString *)& ((arg1)->facename); | |
8540 | ||
d14a1e28 RD |
8541 | { |
8542 | #if wxUSE_UNICODE | |
093d3ff1 | 8543 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8544 | #else |
093d3ff1 | 8545 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8546 | #endif |
8547 | } | |
8548 | return resultobj; | |
8549 | fail: | |
8550 | return NULL; | |
8551 | } | |
8552 | ||
8553 | ||
093d3ff1 | 8554 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8555 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8556 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8557 | wxFontEncoding arg2 ; | |
994141e6 | 8558 | PyObject * obj0 = 0 ; |
093d3ff1 | 8559 | PyObject * obj1 = 0 ; |
d14a1e28 | 8560 | char *kwnames[] = { |
093d3ff1 | 8561 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
8562 | }; |
8563 | ||
093d3ff1 RD |
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
8565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 8567 | { |
32fe5131 | 8568 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 | 8569 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 | 8570 | } |
32fe5131 | 8571 | if (arg1) (arg1)->encoding = arg2; |
093d3ff1 RD |
8572 | |
8573 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
8574 | return resultobj; |
8575 | fail: | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
093d3ff1 | 8580 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8581 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8582 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
8583 | wxFontEncoding result; | |
b2df227b RD |
8584 | PyObject * obj0 = 0 ; |
8585 | char *kwnames[] = { | |
093d3ff1 | 8586 | (char *) "self", NULL |
b2df227b RD |
8587 | }; |
8588 | ||
093d3ff1 RD |
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; |
8590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8592 | result = (wxFontEncoding) ((arg1)->encoding); | |
8593 | ||
8594 | resultobj = SWIG_From_int((result)); | |
b2df227b RD |
8595 | return resultobj; |
8596 | fail: | |
b2df227b RD |
8597 | return NULL; |
8598 | } | |
8599 | ||
8600 | ||
093d3ff1 | 8601 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8602 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8603 | wxNativeEncodingInfo *result; |
8604 | char *kwnames[] = { | |
8605 | NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
8623 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 8624 | PyObject *resultobj = NULL; |
093d3ff1 | 8625 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d14a1e28 | 8626 | PyObject * obj0 = 0 ; |
d14a1e28 | 8627 | char *kwnames[] = { |
093d3ff1 | 8628 | (char *) "self", NULL |
d14a1e28 RD |
8629 | }; |
8630 | ||
093d3ff1 RD |
8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; |
8632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8634 | { |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8636 | delete arg1; |
d14a1e28 RD |
8637 | |
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | Py_INCREF(Py_None); resultobj = Py_None; | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | return NULL; | |
8645 | } | |
8646 | ||
8647 | ||
093d3ff1 | 8648 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8649 | PyObject *resultobj = NULL; |
093d3ff1 | 8650 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d14a1e28 | 8651 | wxString *arg2 = 0 ; |
093d3ff1 | 8652 | bool result; |
ae8162c8 | 8653 | bool temp2 = false ; |
d14a1e28 RD |
8654 | PyObject * obj0 = 0 ; |
8655 | PyObject * obj1 = 0 ; | |
8656 | char *kwnames[] = { | |
093d3ff1 | 8657 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
8658 | }; |
8659 | ||
093d3ff1 RD |
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; |
8661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8663 | { |
8664 | arg2 = wxString_in_helper(obj1); | |
8665 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8666 | temp2 = true; |
d14a1e28 RD |
8667 | } |
8668 | { | |
8669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8670 | result = (bool)(arg1)->FromString((wxString const &)*arg2); |
d14a1e28 RD |
8671 | |
8672 | wxPyEndAllowThreads(__tstate); | |
8673 | if (PyErr_Occurred()) SWIG_fail; | |
8674 | } | |
093d3ff1 RD |
8675 | { |
8676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8677 | } | |
d14a1e28 RD |
8678 | { |
8679 | if (temp2) | |
8680 | delete arg2; | |
8681 | } | |
8682 | return resultobj; | |
8683 | fail: | |
8684 | { | |
8685 | if (temp2) | |
8686 | delete arg2; | |
8687 | } | |
8688 | return NULL; | |
8689 | } | |
8690 | ||
8691 | ||
093d3ff1 | 8692 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8693 | PyObject *resultobj = NULL; |
093d3ff1 | 8694 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; |
d14a1e28 | 8695 | wxString result; |
093d3ff1 | 8696 | PyObject * obj0 = 0 ; |
d14a1e28 | 8697 | char *kwnames[] = { |
093d3ff1 | 8698 | (char *) "self", NULL |
d14a1e28 RD |
8699 | }; |
8700 | ||
093d3ff1 RD |
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; |
8702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8704 | { |
8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8706 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); |
d14a1e28 RD |
8707 | |
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | { | |
8712 | #if wxUSE_UNICODE | |
8713 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8714 | #else | |
8715 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8716 | #endif | |
8717 | } | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
093d3ff1 RD |
8724 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
8725 | PyObject *obj; | |
8726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8727 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
8728 | Py_INCREF(obj); | |
8729 | return Py_BuildValue((char *)""); | |
8730 | } | |
8731 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 8732 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8733 | wxFontEncoding arg1 ; |
8734 | wxNativeEncodingInfo *result; | |
d14a1e28 | 8735 | PyObject * obj0 = 0 ; |
d14a1e28 | 8736 | char *kwnames[] = { |
093d3ff1 | 8737 | (char *) "encoding", NULL |
d14a1e28 RD |
8738 | }; |
8739 | ||
093d3ff1 RD |
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
8741 | { | |
32fe5131 | 8742 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 | 8743 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
8744 | } |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8747 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); |
d14a1e28 RD |
8748 | |
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
093d3ff1 | 8752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
8753 | return resultobj; |
8754 | fail: | |
d14a1e28 RD |
8755 | return NULL; |
8756 | } | |
8757 | ||
8758 | ||
093d3ff1 | 8759 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8760 | PyObject *resultobj = NULL; |
093d3ff1 | 8761 | wxNativeEncodingInfo *arg1 = 0 ; |
d14a1e28 | 8762 | bool result; |
d14a1e28 | 8763 | PyObject * obj0 = 0 ; |
d14a1e28 | 8764 | char *kwnames[] = { |
093d3ff1 | 8765 | (char *) "info", NULL |
d14a1e28 RD |
8766 | }; |
8767 | ||
093d3ff1 RD |
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; |
8769 | { | |
8770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0); | |
8771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8772 | if (arg1 == NULL) { | |
8773 | SWIG_null_ref("wxNativeEncodingInfo"); | |
d14a1e28 | 8774 | } |
093d3ff1 | 8775 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
8776 | } |
8777 | { | |
8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8779 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); |
d14a1e28 RD |
8780 | |
8781 | wxPyEndAllowThreads(__tstate); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
4f89f6a3 RD |
8784 | { |
8785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8786 | } | |
d14a1e28 RD |
8787 | return resultobj; |
8788 | fail: | |
d14a1e28 RD |
8789 | return NULL; |
8790 | } | |
8791 | ||
8792 | ||
093d3ff1 | 8793 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8794 | PyObject *resultobj = NULL; |
093d3ff1 | 8795 | wxFontMapper *result; |
d14a1e28 | 8796 | char *kwnames[] = { |
093d3ff1 | 8797 | NULL |
d14a1e28 RD |
8798 | }; |
8799 | ||
093d3ff1 | 8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; |
d14a1e28 RD |
8801 | { |
8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8803 | result = (wxFontMapper *)new wxFontMapper(); |
d14a1e28 RD |
8804 | |
8805 | wxPyEndAllowThreads(__tstate); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | } | |
093d3ff1 | 8808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
8809 | return resultobj; |
8810 | fail: | |
8811 | return NULL; | |
8812 | } | |
8813 | ||
8814 | ||
093d3ff1 | 8815 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8816 | PyObject *resultobj = NULL; |
d14a1e28 | 8817 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
d14a1e28 | 8818 | PyObject * obj0 = 0 ; |
d14a1e28 | 8819 | char *kwnames[] = { |
093d3ff1 | 8820 | (char *) "self", NULL |
d14a1e28 RD |
8821 | }; |
8822 | ||
093d3ff1 RD |
8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; |
8824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8826 | { |
8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8828 | delete arg1; |
d14a1e28 RD |
8829 | |
8830 | wxPyEndAllowThreads(__tstate); | |
8831 | if (PyErr_Occurred()) SWIG_fail; | |
8832 | } | |
8833 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
8834 | return resultobj; |
8835 | fail: | |
d14a1e28 RD |
8836 | return NULL; |
8837 | } | |
8838 | ||
8839 | ||
093d3ff1 | 8840 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8841 | PyObject *resultobj = NULL; |
093d3ff1 | 8842 | wxFontMapper *result; |
d14a1e28 | 8843 | char *kwnames[] = { |
093d3ff1 | 8844 | NULL |
d14a1e28 RD |
8845 | }; |
8846 | ||
093d3ff1 | 8847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; |
d14a1e28 RD |
8848 | { |
8849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8850 | result = (wxFontMapper *)wxFontMapper::Get(); |
d14a1e28 RD |
8851 | |
8852 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8853 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8854 | } |
093d3ff1 | 8855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
8856 | return resultobj; |
8857 | fail: | |
d14a1e28 RD |
8858 | return NULL; |
8859 | } | |
8860 | ||
8861 | ||
093d3ff1 | 8862 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8863 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8864 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8865 | wxFontMapper *result; | |
d14a1e28 RD |
8866 | PyObject * obj0 = 0 ; |
8867 | char *kwnames[] = { | |
093d3ff1 | 8868 | (char *) "mapper", NULL |
d14a1e28 RD |
8869 | }; |
8870 | ||
093d3ff1 RD |
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; |
8872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8874 | { |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8876 | result = (wxFontMapper *)wxFontMapper::Set(arg1); |
d14a1e28 RD |
8877 | |
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
093d3ff1 | 8881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
8882 | return resultobj; |
8883 | fail: | |
8884 | return NULL; | |
8885 | } | |
8886 | ||
8887 | ||
093d3ff1 | 8888 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8889 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8890 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
8891 | wxString *arg2 = 0 ; | |
8892 | bool arg3 = (bool) true ; | |
8893 | wxFontEncoding result; | |
8894 | bool temp2 = false ; | |
d14a1e28 | 8895 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
8896 | PyObject * obj1 = 0 ; |
8897 | PyObject * obj2 = 0 ; | |
d14a1e28 | 8898 | char *kwnames[] = { |
093d3ff1 | 8899 | (char *) "self",(char *) "charset",(char *) "interactive", NULL |
d14a1e28 RD |
8900 | }; |
8901 | ||
093d3ff1 RD |
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
8904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8905 | { | |
8906 | arg2 = wxString_in_helper(obj1); | |
8907 | if (arg2 == NULL) SWIG_fail; | |
8908 | temp2 = true; | |
8909 | } | |
8910 | if (obj2) { | |
8911 | { | |
32fe5131 | 8912 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
8913 | if (SWIG_arg_fail(3)) SWIG_fail; |
8914 | } | |
8915 | } | |
d14a1e28 RD |
8916 | { |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8918 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); |
d14a1e28 RD |
8919 | |
8920 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8921 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8922 | } |
093d3ff1 RD |
8923 | resultobj = SWIG_From_int((result)); |
8924 | { | |
8925 | if (temp2) | |
8926 | delete arg2; | |
8927 | } | |
d14a1e28 RD |
8928 | return resultobj; |
8929 | fail: | |
093d3ff1 RD |
8930 | { |
8931 | if (temp2) | |
8932 | delete arg2; | |
8933 | } | |
d14a1e28 RD |
8934 | return NULL; |
8935 | } | |
8936 | ||
8937 | ||
093d3ff1 | 8938 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8939 | PyObject *resultobj = NULL; |
093d3ff1 | 8940 | size_t result; |
d14a1e28 | 8941 | char *kwnames[] = { |
093d3ff1 | 8942 | NULL |
d14a1e28 RD |
8943 | }; |
8944 | ||
093d3ff1 | 8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; |
d14a1e28 RD |
8946 | { |
8947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8948 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); |
d14a1e28 RD |
8949 | |
8950 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8951 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8952 | } |
d14a1e28 | 8953 | { |
32fe5131 | 8954 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
d14a1e28 RD |
8955 | } |
8956 | return resultobj; | |
8957 | fail: | |
d14a1e28 RD |
8958 | return NULL; |
8959 | } | |
8960 | ||
8961 | ||
093d3ff1 | 8962 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8963 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8964 | size_t arg1 ; |
8965 | wxFontEncoding result; | |
994141e6 | 8966 | PyObject * obj0 = 0 ; |
d14a1e28 | 8967 | char *kwnames[] = { |
093d3ff1 | 8968 | (char *) "n", NULL |
d14a1e28 RD |
8969 | }; |
8970 | ||
093d3ff1 RD |
8971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; |
8972 | { | |
32fe5131 | 8973 | arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0)); |
093d3ff1 | 8974 | if (SWIG_arg_fail(1)) SWIG_fail; |
994141e6 | 8975 | } |
d14a1e28 RD |
8976 | { |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 8978 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); |
d14a1e28 RD |
8979 | |
8980 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8981 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8982 | } |
093d3ff1 | 8983 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
8984 | return resultobj; |
8985 | fail: | |
d14a1e28 RD |
8986 | return NULL; |
8987 | } | |
8988 | ||
8989 | ||
093d3ff1 | 8990 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8991 | PyObject *resultobj = NULL; |
093d3ff1 RD |
8992 | wxFontEncoding arg1 ; |
8993 | wxString result; | |
b6294124 | 8994 | PyObject * obj0 = 0 ; |
b6294124 | 8995 | char *kwnames[] = { |
093d3ff1 | 8996 | (char *) "encoding", NULL |
b6294124 RD |
8997 | }; |
8998 | ||
093d3ff1 | 8999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
b6294124 | 9000 | { |
32fe5131 | 9001 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 | 9002 | if (SWIG_arg_fail(1)) SWIG_fail; |
b6294124 RD |
9003 | } |
9004 | { | |
b6294124 | 9005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9006 | result = wxFontMapper::GetEncodingName(arg1); |
b6294124 RD |
9007 | |
9008 | wxPyEndAllowThreads(__tstate); | |
9009 | if (PyErr_Occurred()) SWIG_fail; | |
9010 | } | |
b6294124 | 9011 | { |
093d3ff1 RD |
9012 | #if wxUSE_UNICODE |
9013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9014 | #else | |
9015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9016 | #endif | |
b6294124 RD |
9017 | } |
9018 | return resultobj; | |
9019 | fail: | |
b6294124 RD |
9020 | return NULL; |
9021 | } | |
9022 | ||
9023 | ||
093d3ff1 | 9024 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9025 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9026 | wxFontEncoding arg1 ; |
9027 | wxString result; | |
d14a1e28 RD |
9028 | PyObject * obj0 = 0 ; |
9029 | char *kwnames[] = { | |
093d3ff1 | 9030 | (char *) "encoding", NULL |
d14a1e28 RD |
9031 | }; |
9032 | ||
093d3ff1 RD |
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
9034 | { | |
32fe5131 | 9035 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 RD |
9036 | if (SWIG_arg_fail(1)) SWIG_fail; |
9037 | } | |
d14a1e28 RD |
9038 | { |
9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9040 | result = wxFontMapper::GetEncodingDescription(arg1); |
d14a1e28 RD |
9041 | |
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
4f89f6a3 | 9045 | { |
093d3ff1 RD |
9046 | #if wxUSE_UNICODE |
9047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9048 | #else | |
9049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9050 | #endif | |
4f89f6a3 | 9051 | } |
d14a1e28 RD |
9052 | return resultobj; |
9053 | fail: | |
9054 | return NULL; | |
9055 | } | |
9056 | ||
9057 | ||
093d3ff1 | 9058 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9059 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9060 | wxString *arg1 = 0 ; |
9061 | wxFontEncoding result; | |
9062 | bool temp1 = false ; | |
d14a1e28 | 9063 | PyObject * obj0 = 0 ; |
d14a1e28 | 9064 | char *kwnames[] = { |
093d3ff1 | 9065 | (char *) "name", NULL |
d14a1e28 RD |
9066 | }; |
9067 | ||
093d3ff1 RD |
9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; |
9069 | { | |
9070 | arg1 = wxString_in_helper(obj0); | |
9071 | if (arg1 == NULL) SWIG_fail; | |
9072 | temp1 = true; | |
9073 | } | |
d14a1e28 RD |
9074 | { |
9075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9076 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); |
d14a1e28 RD |
9077 | |
9078 | wxPyEndAllowThreads(__tstate); | |
9079 | if (PyErr_Occurred()) SWIG_fail; | |
9080 | } | |
093d3ff1 | 9081 | resultobj = SWIG_From_int((result)); |
4f89f6a3 | 9082 | { |
093d3ff1 RD |
9083 | if (temp1) |
9084 | delete arg1; | |
4f89f6a3 | 9085 | } |
d14a1e28 RD |
9086 | return resultobj; |
9087 | fail: | |
093d3ff1 RD |
9088 | { |
9089 | if (temp1) | |
9090 | delete arg1; | |
9091 | } | |
d14a1e28 RD |
9092 | return NULL; |
9093 | } | |
9094 | ||
9095 | ||
093d3ff1 | 9096 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9097 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9098 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9099 | wxString *arg2 = 0 ; | |
9100 | bool temp2 = false ; | |
d14a1e28 | 9101 | PyObject * obj0 = 0 ; |
093d3ff1 | 9102 | PyObject * obj1 = 0 ; |
d14a1e28 | 9103 | char *kwnames[] = { |
093d3ff1 | 9104 | (char *) "self",(char *) "prefix", NULL |
d14a1e28 RD |
9105 | }; |
9106 | ||
093d3ff1 RD |
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; |
9108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9110 | { | |
9111 | arg2 = wxString_in_helper(obj1); | |
9112 | if (arg2 == NULL) SWIG_fail; | |
9113 | temp2 = true; | |
9114 | } | |
d14a1e28 RD |
9115 | { |
9116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9117 | (arg1)->SetConfigPath((wxString const &)*arg2); |
d14a1e28 RD |
9118 | |
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
093d3ff1 RD |
9122 | Py_INCREF(Py_None); resultobj = Py_None; |
9123 | { | |
9124 | if (temp2) | |
9125 | delete arg2; | |
9126 | } | |
d14a1e28 RD |
9127 | return resultobj; |
9128 | fail: | |
093d3ff1 RD |
9129 | { |
9130 | if (temp2) | |
9131 | delete arg2; | |
9132 | } | |
d14a1e28 RD |
9133 | return NULL; |
9134 | } | |
9135 | ||
9136 | ||
093d3ff1 | 9137 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9138 | PyObject *resultobj = NULL; |
093d3ff1 | 9139 | wxString result; |
b6294124 | 9140 | char *kwnames[] = { |
093d3ff1 | 9141 | NULL |
b6294124 RD |
9142 | }; |
9143 | ||
093d3ff1 | 9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; |
b6294124 RD |
9145 | { |
9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9147 | result = wxFontMapper::GetDefaultConfigPath(); |
b6294124 RD |
9148 | |
9149 | wxPyEndAllowThreads(__tstate); | |
9150 | if (PyErr_Occurred()) SWIG_fail; | |
9151 | } | |
9152 | { | |
093d3ff1 RD |
9153 | #if wxUSE_UNICODE |
9154 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9155 | #else | |
9156 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9157 | #endif | |
b6294124 RD |
9158 | } |
9159 | return resultobj; | |
9160 | fail: | |
9161 | return NULL; | |
9162 | } | |
9163 | ||
9164 | ||
093d3ff1 | 9165 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9166 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9167 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9168 | wxFontEncoding arg2 ; | |
9169 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9170 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9171 | bool arg4 = (bool) true ; | |
9172 | PyObject *result; | |
9173 | bool temp3 = false ; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | PyObject * obj1 = 0 ; | |
9176 | PyObject * obj2 = 0 ; | |
9177 | PyObject * obj3 = 0 ; | |
9178 | char *kwnames[] = { | |
9179 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
b6294124 RD |
9180 | }; |
9181 | ||
093d3ff1 RD |
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9185 | { | |
32fe5131 | 9186 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9187 | if (SWIG_arg_fail(2)) SWIG_fail; |
9188 | } | |
9189 | if (obj2) { | |
9190 | { | |
9191 | arg3 = wxString_in_helper(obj2); | |
9192 | if (arg3 == NULL) SWIG_fail; | |
9193 | temp3 = true; | |
9194 | } | |
9195 | } | |
9196 | if (obj3) { | |
9197 | { | |
32fe5131 | 9198 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
9199 | if (SWIG_arg_fail(4)) SWIG_fail; |
9200 | } | |
9201 | } | |
b6294124 RD |
9202 | { |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9204 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); |
b6294124 RD |
9205 | |
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
093d3ff1 | 9209 | resultobj = result; |
b6294124 | 9210 | { |
093d3ff1 RD |
9211 | if (temp3) |
9212 | delete arg3; | |
b6294124 RD |
9213 | } |
9214 | return resultobj; | |
9215 | fail: | |
d14a1e28 | 9216 | { |
093d3ff1 RD |
9217 | if (temp3) |
9218 | delete arg3; | |
d14a1e28 | 9219 | } |
d14a1e28 RD |
9220 | return NULL; |
9221 | } | |
9222 | ||
9223 | ||
093d3ff1 | 9224 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9225 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9226 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9227 | wxFontEncoding arg2 ; | |
9228 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9229 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9230 | bool result; | |
9231 | bool temp3 = false ; | |
d14a1e28 | 9232 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9233 | PyObject * obj1 = 0 ; |
9234 | PyObject * obj2 = 0 ; | |
d14a1e28 | 9235 | char *kwnames[] = { |
093d3ff1 | 9236 | (char *) "self",(char *) "encoding",(char *) "facename", NULL |
d14a1e28 RD |
9237 | }; |
9238 | ||
093d3ff1 RD |
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9242 | { | |
32fe5131 | 9243 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9244 | if (SWIG_arg_fail(2)) SWIG_fail; |
9245 | } | |
9246 | if (obj2) { | |
9247 | { | |
9248 | arg3 = wxString_in_helper(obj2); | |
9249 | if (arg3 == NULL) SWIG_fail; | |
9250 | temp3 = true; | |
9251 | } | |
9252 | } | |
d14a1e28 RD |
9253 | { |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9255 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); |
d14a1e28 RD |
9256 | |
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
093d3ff1 RD |
9260 | { |
9261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9262 | } | |
9263 | { | |
9264 | if (temp3) | |
9265 | delete arg3; | |
9266 | } | |
d14a1e28 RD |
9267 | return resultobj; |
9268 | fail: | |
093d3ff1 RD |
9269 | { |
9270 | if (temp3) | |
9271 | delete arg3; | |
9272 | } | |
d14a1e28 RD |
9273 | return NULL; |
9274 | } | |
9275 | ||
9276 | ||
093d3ff1 | 9277 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9278 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9279 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9280 | wxWindow *arg2 = (wxWindow *) 0 ; | |
d14a1e28 | 9281 | PyObject * obj0 = 0 ; |
093d3ff1 | 9282 | PyObject * obj1 = 0 ; |
d14a1e28 | 9283 | char *kwnames[] = { |
093d3ff1 | 9284 | (char *) "self",(char *) "parent", NULL |
d14a1e28 RD |
9285 | }; |
9286 | ||
093d3ff1 RD |
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; |
9288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9290 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9291 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9292 | { |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9294 | (arg1)->SetDialogParent(arg2); |
d14a1e28 RD |
9295 | |
9296 | wxPyEndAllowThreads(__tstate); | |
9297 | if (PyErr_Occurred()) SWIG_fail; | |
9298 | } | |
093d3ff1 | 9299 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
9300 | return resultobj; |
9301 | fail: | |
9302 | return NULL; | |
9303 | } | |
9304 | ||
9305 | ||
093d3ff1 | 9306 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9307 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9308 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; |
9309 | wxString *arg2 = 0 ; | |
9310 | bool temp2 = false ; | |
d14a1e28 | 9311 | PyObject * obj0 = 0 ; |
093d3ff1 | 9312 | PyObject * obj1 = 0 ; |
d14a1e28 | 9313 | char *kwnames[] = { |
093d3ff1 | 9314 | (char *) "self",(char *) "title", NULL |
d14a1e28 RD |
9315 | }; |
9316 | ||
093d3ff1 RD |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; |
9318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0); | |
9319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9320 | { | |
9321 | arg2 = wxString_in_helper(obj1); | |
9322 | if (arg2 == NULL) SWIG_fail; | |
9323 | temp2 = true; | |
9324 | } | |
d14a1e28 RD |
9325 | { |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9327 | (arg1)->SetDialogTitle((wxString const &)*arg2); |
d14a1e28 RD |
9328 | |
9329 | wxPyEndAllowThreads(__tstate); | |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
093d3ff1 | 9332 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 9333 | { |
093d3ff1 RD |
9334 | if (temp2) |
9335 | delete arg2; | |
4f89f6a3 | 9336 | } |
d14a1e28 RD |
9337 | return resultobj; |
9338 | fail: | |
093d3ff1 RD |
9339 | { |
9340 | if (temp2) | |
9341 | delete arg2; | |
9342 | } | |
d14a1e28 RD |
9343 | return NULL; |
9344 | } | |
9345 | ||
9346 | ||
093d3ff1 RD |
9347 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
9348 | PyObject *obj; | |
9349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9350 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
9351 | Py_INCREF(obj); | |
9352 | return Py_BuildValue((char *)""); | |
9353 | } | |
9354 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 9355 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9356 | int arg1 ; |
9357 | int arg2 ; | |
9358 | int arg3 ; | |
9359 | int arg4 ; | |
9360 | bool arg5 = (bool) false ; | |
9361 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
9362 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9363 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9364 | wxFont *result; | |
9365 | bool temp6 = false ; | |
d14a1e28 | 9366 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9367 | PyObject * obj1 = 0 ; |
9368 | PyObject * obj2 = 0 ; | |
9369 | PyObject * obj3 = 0 ; | |
9370 | PyObject * obj4 = 0 ; | |
9371 | PyObject * obj5 = 0 ; | |
9372 | PyObject * obj6 = 0 ; | |
d14a1e28 | 9373 | char *kwnames[] = { |
093d3ff1 | 9374 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9375 | }; |
9376 | ||
093d3ff1 RD |
9377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9378 | { | |
32fe5131 | 9379 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
9380 | if (SWIG_arg_fail(1)) SWIG_fail; |
9381 | } | |
9382 | { | |
32fe5131 | 9383 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9384 | if (SWIG_arg_fail(2)) SWIG_fail; |
9385 | } | |
9386 | { | |
32fe5131 | 9387 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9388 | if (SWIG_arg_fail(3)) SWIG_fail; |
9389 | } | |
9390 | { | |
32fe5131 | 9391 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
9392 | if (SWIG_arg_fail(4)) SWIG_fail; |
9393 | } | |
9394 | if (obj4) { | |
9395 | { | |
32fe5131 | 9396 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
9397 | if (SWIG_arg_fail(5)) SWIG_fail; |
9398 | } | |
9399 | } | |
9400 | if (obj5) { | |
9401 | { | |
9402 | arg6 = wxString_in_helper(obj5); | |
9403 | if (arg6 == NULL) SWIG_fail; | |
9404 | temp6 = true; | |
9405 | } | |
9406 | } | |
9407 | if (obj6) { | |
9408 | { | |
32fe5131 | 9409 | arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6)); |
093d3ff1 RD |
9410 | if (SWIG_arg_fail(7)) SWIG_fail; |
9411 | } | |
9412 | } | |
d14a1e28 | 9413 | { |
093d3ff1 | 9414 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9416 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); |
d14a1e28 RD |
9417 | |
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
093d3ff1 | 9421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9422 | { |
093d3ff1 RD |
9423 | if (temp6) |
9424 | delete arg6; | |
d14a1e28 RD |
9425 | } |
9426 | return resultobj; | |
9427 | fail: | |
093d3ff1 RD |
9428 | { |
9429 | if (temp6) | |
9430 | delete arg6; | |
9431 | } | |
d14a1e28 RD |
9432 | return NULL; |
9433 | } | |
9434 | ||
9435 | ||
093d3ff1 | 9436 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9437 | PyObject *resultobj = NULL; |
d14a1e28 | 9438 | wxFont *arg1 = (wxFont *) 0 ; |
d14a1e28 RD |
9439 | PyObject * obj0 = 0 ; |
9440 | char *kwnames[] = { | |
9441 | (char *) "self", NULL | |
9442 | }; | |
9443 | ||
093d3ff1 RD |
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; |
9445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9447 | { |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9449 | delete arg1; |
d14a1e28 RD |
9450 | |
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
093d3ff1 | 9454 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
9455 | return resultobj; |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
093d3ff1 | 9461 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9462 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9463 | wxNativeFontInfo *arg1 = 0 ; |
9464 | wxFont *result; | |
d14a1e28 RD |
9465 | PyObject * obj0 = 0 ; |
9466 | char *kwnames[] = { | |
093d3ff1 | 9467 | (char *) "info", NULL |
d14a1e28 RD |
9468 | }; |
9469 | ||
093d3ff1 | 9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; |
d14a1e28 | 9471 | { |
093d3ff1 RD |
9472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); |
9473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9474 | if (arg1 == NULL) { | |
9475 | SWIG_null_ref("wxNativeFontInfo"); | |
9476 | } | |
9477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9478 | } | |
9479 | { | |
9480 | if (!wxPyCheckForApp()) SWIG_fail; | |
d14a1e28 | 9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9482 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); |
d14a1e28 RD |
9483 | |
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
093d3ff1 | 9487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
9488 | return resultobj; |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
093d3ff1 | 9494 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9495 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9496 | wxString *arg1 = 0 ; |
9497 | wxFont *result; | |
9498 | bool temp1 = false ; | |
d14a1e28 RD |
9499 | PyObject * obj0 = 0 ; |
9500 | char *kwnames[] = { | |
093d3ff1 | 9501 | (char *) "info", NULL |
d14a1e28 RD |
9502 | }; |
9503 | ||
093d3ff1 RD |
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; |
9505 | { | |
9506 | arg1 = wxString_in_helper(obj0); | |
9507 | if (arg1 == NULL) SWIG_fail; | |
9508 | temp1 = true; | |
9509 | } | |
d14a1e28 | 9510 | { |
093d3ff1 | 9511 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 9513 | result = (wxFont *)new_wxFont((wxString const &)*arg1); |
d14a1e28 RD |
9514 | |
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
093d3ff1 | 9518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
4f89f6a3 | 9519 | { |
093d3ff1 RD |
9520 | if (temp1) |
9521 | delete arg1; | |
4f89f6a3 | 9522 | } |
d14a1e28 RD |
9523 | return resultobj; |
9524 | fail: | |
093d3ff1 RD |
9525 | { |
9526 | if (temp1) | |
9527 | delete arg1; | |
9528 | } | |
d14a1e28 RD |
9529 | return NULL; |
9530 | } | |
9531 | ||
9532 | ||
73c8ef6a | 9533 | static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9534 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9535 | int arg1 ; |
9536 | wxFontFamily arg2 ; | |
9537 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9538 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9539 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9540 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9541 | wxFont *result; | |
9542 | bool temp4 = false ; | |
d14a1e28 | 9543 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9544 | PyObject * obj1 = 0 ; |
9545 | PyObject * obj2 = 0 ; | |
9546 | PyObject * obj3 = 0 ; | |
9547 | PyObject * obj4 = 0 ; | |
d14a1e28 | 9548 | char *kwnames[] = { |
093d3ff1 | 9549 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9550 | }; |
9551 | ||
73c8ef6a | 9552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 | 9553 | { |
32fe5131 | 9554 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
9555 | if (SWIG_arg_fail(1)) SWIG_fail; |
9556 | } | |
9557 | { | |
32fe5131 | 9558 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9559 | if (SWIG_arg_fail(2)) SWIG_fail; |
9560 | } | |
9561 | if (obj2) { | |
9562 | { | |
32fe5131 | 9563 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9564 | if (SWIG_arg_fail(3)) SWIG_fail; |
9565 | } | |
9566 | } | |
9567 | if (obj3) { | |
9568 | { | |
9569 | arg4 = wxString_in_helper(obj3); | |
9570 | if (arg4 == NULL) SWIG_fail; | |
9571 | temp4 = true; | |
9572 | } | |
9573 | } | |
9574 | if (obj4) { | |
9575 | { | |
32fe5131 | 9576 | arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4)); |
093d3ff1 RD |
9577 | if (SWIG_arg_fail(5)) SWIG_fail; |
9578 | } | |
9579 | } | |
d14a1e28 | 9580 | { |
093d3ff1 | 9581 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9583 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); |
d14a1e28 RD |
9584 | |
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
093d3ff1 | 9588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9589 | { |
093d3ff1 RD |
9590 | if (temp4) |
9591 | delete arg4; | |
d14a1e28 RD |
9592 | } |
9593 | return resultobj; | |
9594 | fail: | |
093d3ff1 RD |
9595 | { |
9596 | if (temp4) | |
9597 | delete arg4; | |
9598 | } | |
d14a1e28 RD |
9599 | return NULL; |
9600 | } | |
9601 | ||
9602 | ||
093d3ff1 | 9603 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9604 | PyObject *resultobj = NULL; |
093d3ff1 RD |
9605 | wxSize *arg1 = 0 ; |
9606 | int arg2 ; | |
9607 | int arg3 ; | |
9608 | int arg4 ; | |
9609 | bool arg5 = (bool) false ; | |
9610 | wxString const &arg6_defvalue = wxEmptyString ; | |
9611 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9612 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9613 | wxFont *result; | |
9614 | wxSize temp1 ; | |
9615 | bool temp6 = false ; | |
d14a1e28 | 9616 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
9617 | PyObject * obj1 = 0 ; |
9618 | PyObject * obj2 = 0 ; | |
9619 | PyObject * obj3 = 0 ; | |
9620 | PyObject * obj4 = 0 ; | |
9621 | PyObject * obj5 = 0 ; | |
9622 | PyObject * obj6 = 0 ; | |
d14a1e28 | 9623 | char *kwnames[] = { |
093d3ff1 | 9624 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL |
d14a1e28 RD |
9625 | }; |
9626 | ||
093d3ff1 RD |
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
9628 | { | |
9629 | arg1 = &temp1; | |
9630 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9631 | } | |
9632 | { | |
32fe5131 | 9633 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9634 | if (SWIG_arg_fail(2)) SWIG_fail; |
9635 | } | |
9636 | { | |
32fe5131 | 9637 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9638 | if (SWIG_arg_fail(3)) SWIG_fail; |
9639 | } | |
9640 | { | |
32fe5131 | 9641 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
9642 | if (SWIG_arg_fail(4)) SWIG_fail; |
9643 | } | |
9644 | if (obj4) { | |
9645 | { | |
32fe5131 | 9646 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
9647 | if (SWIG_arg_fail(5)) SWIG_fail; |
9648 | } | |
9649 | } | |
9650 | if (obj5) { | |
9651 | { | |
9652 | arg6 = wxString_in_helper(obj5); | |
9653 | if (arg6 == NULL) SWIG_fail; | |
9654 | temp6 = true; | |
9655 | } | |
9656 | } | |
9657 | if (obj6) { | |
9658 | { | |
32fe5131 | 9659 | arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6)); |
093d3ff1 RD |
9660 | if (SWIG_arg_fail(7)) SWIG_fail; |
9661 | } | |
9662 | } | |
d14a1e28 | 9663 | { |
093d3ff1 | 9664 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 9666 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); |
d14a1e28 RD |
9667 | |
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
093d3ff1 | 9671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 | 9672 | { |
093d3ff1 RD |
9673 | if (temp6) |
9674 | delete arg6; | |
d14a1e28 RD |
9675 | } |
9676 | return resultobj; | |
9677 | fail: | |
093d3ff1 RD |
9678 | { |
9679 | if (temp6) | |
9680 | delete arg6; | |
9681 | } | |
d14a1e28 RD |
9682 | return NULL; |
9683 | } | |
9684 | ||
9685 | ||
73c8ef6a | 9686 | static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9687 | PyObject *resultobj = NULL; |
73c8ef6a RD |
9688 | wxSize *arg1 = 0 ; |
9689 | wxFontFamily arg2 ; | |
9690 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
9691 | wxString const &arg4_defvalue = wxEmptyString ; | |
9692 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9693 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
9694 | wxFont *result; | |
9695 | wxSize temp1 ; | |
9696 | bool temp4 = false ; | |
9697 | PyObject * obj0 = 0 ; | |
9698 | PyObject * obj1 = 0 ; | |
9699 | PyObject * obj2 = 0 ; | |
9700 | PyObject * obj3 = 0 ; | |
9701 | PyObject * obj4 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9707 | { | |
9708 | arg1 = &temp1; | |
9709 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
9710 | } | |
9711 | { | |
32fe5131 | 9712 | arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1)); |
73c8ef6a RD |
9713 | if (SWIG_arg_fail(2)) SWIG_fail; |
9714 | } | |
9715 | if (obj2) { | |
9716 | { | |
32fe5131 | 9717 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
73c8ef6a RD |
9718 | if (SWIG_arg_fail(3)) SWIG_fail; |
9719 | } | |
9720 | } | |
9721 | if (obj3) { | |
9722 | { | |
9723 | arg4 = wxString_in_helper(obj3); | |
9724 | if (arg4 == NULL) SWIG_fail; | |
9725 | temp4 = true; | |
9726 | } | |
9727 | } | |
9728 | if (obj4) { | |
9729 | { | |
32fe5131 | 9730 | arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4)); |
73c8ef6a RD |
9731 | if (SWIG_arg_fail(5)) SWIG_fail; |
9732 | } | |
9733 | } | |
9734 | { | |
9735 | if (!wxPyCheckForApp()) SWIG_fail; | |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9737 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); |
73c8ef6a RD |
9738 | |
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
9742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
9743 | { | |
9744 | if (temp4) | |
9745 | delete arg4; | |
9746 | } | |
9747 | return resultobj; | |
9748 | fail: | |
9749 | { | |
9750 | if (temp4) | |
9751 | delete arg4; | |
9752 | } | |
9753 | return NULL; | |
9754 | } | |
9755 | ||
9756 | ||
093d3ff1 | 9757 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9758 | PyObject *resultobj = NULL; |
d14a1e28 | 9759 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9760 | bool result; |
d14a1e28 RD |
9761 | PyObject * obj0 = 0 ; |
9762 | char *kwnames[] = { | |
093d3ff1 | 9763 | (char *) "self", NULL |
d14a1e28 RD |
9764 | }; |
9765 | ||
093d3ff1 RD |
9766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; |
9767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9769 | { |
9770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9771 | result = (bool)((wxFont const *)arg1)->Ok(); |
d14a1e28 RD |
9772 | |
9773 | wxPyEndAllowThreads(__tstate); | |
9774 | if (PyErr_Occurred()) SWIG_fail; | |
9775 | } | |
093d3ff1 RD |
9776 | { |
9777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9778 | } | |
d14a1e28 RD |
9779 | return resultobj; |
9780 | fail: | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
093d3ff1 | 9785 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9786 | PyObject *resultobj = NULL; |
b6294124 | 9787 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 RD |
9788 | wxFont *arg2 = (wxFont *) 0 ; |
9789 | bool result; | |
b6294124 RD |
9790 | PyObject * obj0 = 0 ; |
9791 | PyObject * obj1 = 0 ; | |
9792 | char *kwnames[] = { | |
093d3ff1 | 9793 | (char *) "self",(char *) "other", NULL |
b6294124 RD |
9794 | }; |
9795 | ||
093d3ff1 RD |
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; |
9797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9799 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
b6294124 RD |
9801 | { |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9803 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
b6294124 RD |
9804 | |
9805 | wxPyEndAllowThreads(__tstate); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
9807 | } | |
093d3ff1 RD |
9808 | { |
9809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9810 | } | |
b6294124 RD |
9811 | return resultobj; |
9812 | fail: | |
9813 | return NULL; | |
9814 | } | |
9815 | ||
9816 | ||
093d3ff1 | 9817 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9818 | PyObject *resultobj = NULL; |
d14a1e28 | 9819 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 RD |
9820 | wxFont *arg2 = (wxFont *) 0 ; |
9821 | bool result; | |
d14a1e28 | 9822 | PyObject * obj0 = 0 ; |
994141e6 | 9823 | PyObject * obj1 = 0 ; |
d14a1e28 | 9824 | char *kwnames[] = { |
093d3ff1 | 9825 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
9826 | }; |
9827 | ||
093d3ff1 RD |
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; |
9829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9831 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9832 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9833 | { |
9834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9835 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
9836 | |
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
093d3ff1 RD |
9840 | { |
9841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9842 | } | |
d14a1e28 RD |
9843 | return resultobj; |
9844 | fail: | |
9845 | return NULL; | |
9846 | } | |
9847 | ||
9848 | ||
093d3ff1 | 9849 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9850 | PyObject *resultobj = NULL; |
d14a1e28 | 9851 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9852 | int result; |
d14a1e28 RD |
9853 | PyObject * obj0 = 0 ; |
9854 | char *kwnames[] = { | |
093d3ff1 | 9855 | (char *) "self", NULL |
d14a1e28 RD |
9856 | }; |
9857 | ||
093d3ff1 RD |
9858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; |
9859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9861 | { |
9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9863 | result = (int)((wxFont const *)arg1)->GetPointSize(); |
d14a1e28 RD |
9864 | |
9865 | wxPyEndAllowThreads(__tstate); | |
9866 | if (PyErr_Occurred()) SWIG_fail; | |
9867 | } | |
093d3ff1 | 9868 | { |
32fe5131 | 9869 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9870 | } |
d14a1e28 RD |
9871 | return resultobj; |
9872 | fail: | |
9873 | return NULL; | |
9874 | } | |
9875 | ||
9876 | ||
093d3ff1 | 9877 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9878 | PyObject *resultobj = NULL; |
d14a1e28 | 9879 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9880 | wxSize result; |
d14a1e28 RD |
9881 | PyObject * obj0 = 0 ; |
9882 | char *kwnames[] = { | |
093d3ff1 | 9883 | (char *) "self", NULL |
d14a1e28 RD |
9884 | }; |
9885 | ||
093d3ff1 RD |
9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; |
9887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9889 | { |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9891 | result = ((wxFont const *)arg1)->GetPixelSize(); |
d14a1e28 RD |
9892 | |
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
093d3ff1 RD |
9896 | { |
9897 | wxSize * resultptr; | |
32fe5131 | 9898 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 RD |
9899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
9900 | } | |
d14a1e28 RD |
9901 | return resultobj; |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
093d3ff1 | 9907 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9908 | PyObject *resultobj = NULL; |
d14a1e28 | 9909 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9910 | bool result; |
d14a1e28 | 9911 | PyObject * obj0 = 0 ; |
d14a1e28 | 9912 | char *kwnames[] = { |
093d3ff1 | 9913 | (char *) "self", NULL |
d14a1e28 RD |
9914 | }; |
9915 | ||
093d3ff1 RD |
9916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; |
9917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9919 | { |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9921 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); |
d14a1e28 RD |
9922 | |
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
d14a1e28 | 9926 | { |
093d3ff1 | 9927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9928 | } |
9929 | return resultobj; | |
9930 | fail: | |
d14a1e28 RD |
9931 | return NULL; |
9932 | } | |
9933 | ||
9934 | ||
093d3ff1 | 9935 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9936 | PyObject *resultobj = NULL; |
d14a1e28 | 9937 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9938 | int result; |
d14a1e28 | 9939 | PyObject * obj0 = 0 ; |
d14a1e28 | 9940 | char *kwnames[] = { |
093d3ff1 | 9941 | (char *) "self", NULL |
d14a1e28 RD |
9942 | }; |
9943 | ||
093d3ff1 RD |
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; |
9945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9947 | { |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9949 | result = (int)((wxFont const *)arg1)->GetFamily(); |
d14a1e28 RD |
9950 | |
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
093d3ff1 | 9954 | { |
32fe5131 | 9955 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9956 | } |
d14a1e28 RD |
9957 | return resultobj; |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
093d3ff1 | 9963 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9964 | PyObject *resultobj = NULL; |
d14a1e28 | 9965 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9966 | int result; |
d14a1e28 RD |
9967 | PyObject * obj0 = 0 ; |
9968 | char *kwnames[] = { | |
093d3ff1 | 9969 | (char *) "self", NULL |
d14a1e28 RD |
9970 | }; |
9971 | ||
093d3ff1 RD |
9972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; |
9973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9975 | { |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9977 | result = (int)((wxFont const *)arg1)->GetStyle(); |
d14a1e28 RD |
9978 | |
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
093d3ff1 | 9982 | { |
32fe5131 | 9983 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 9984 | } |
d14a1e28 RD |
9985 | return resultobj; |
9986 | fail: | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
093d3ff1 | 9991 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9992 | PyObject *resultobj = NULL; |
d14a1e28 | 9993 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 9994 | int result; |
d14a1e28 | 9995 | PyObject * obj0 = 0 ; |
d14a1e28 | 9996 | char *kwnames[] = { |
093d3ff1 | 9997 | (char *) "self", NULL |
d14a1e28 RD |
9998 | }; |
9999 | ||
093d3ff1 RD |
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; |
10001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10003 | { |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10005 | result = (int)((wxFont const *)arg1)->GetWeight(); |
d14a1e28 RD |
10006 | |
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
093d3ff1 | 10010 | { |
32fe5131 | 10011 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 10012 | } |
d14a1e28 RD |
10013 | return resultobj; |
10014 | fail: | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
093d3ff1 | 10019 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10020 | PyObject *resultobj = NULL; |
d14a1e28 | 10021 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10022 | bool result; |
d14a1e28 | 10023 | PyObject * obj0 = 0 ; |
d14a1e28 | 10024 | char *kwnames[] = { |
093d3ff1 | 10025 | (char *) "self", NULL |
d14a1e28 RD |
10026 | }; |
10027 | ||
093d3ff1 RD |
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; |
10029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10031 | { |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10033 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); |
d14a1e28 RD |
10034 | |
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
d14a1e28 | 10038 | { |
093d3ff1 | 10039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10040 | } |
10041 | return resultobj; | |
10042 | fail: | |
d14a1e28 RD |
10043 | return NULL; |
10044 | } | |
10045 | ||
10046 | ||
093d3ff1 | 10047 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10048 | PyObject *resultobj = NULL; |
d14a1e28 | 10049 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10050 | wxString result; |
d14a1e28 | 10051 | PyObject * obj0 = 0 ; |
d14a1e28 | 10052 | char *kwnames[] = { |
093d3ff1 | 10053 | (char *) "self", NULL |
d14a1e28 RD |
10054 | }; |
10055 | ||
093d3ff1 RD |
10056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; |
10057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10059 | { |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10061 | result = ((wxFont const *)arg1)->GetFaceName(); |
d14a1e28 RD |
10062 | |
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
d14a1e28 | 10066 | { |
093d3ff1 RD |
10067 | #if wxUSE_UNICODE |
10068 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10069 | #else | |
10070 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10071 | #endif | |
d14a1e28 RD |
10072 | } |
10073 | return resultobj; | |
10074 | fail: | |
d14a1e28 RD |
10075 | return NULL; |
10076 | } | |
10077 | ||
10078 | ||
093d3ff1 | 10079 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10080 | PyObject *resultobj = NULL; |
d14a1e28 | 10081 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10082 | wxFontEncoding result; |
d14a1e28 RD |
10083 | PyObject * obj0 = 0 ; |
10084 | char *kwnames[] = { | |
10085 | (char *) "self", NULL | |
10086 | }; | |
10087 | ||
093d3ff1 RD |
10088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; |
10089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10091 | { |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10093 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); |
d14a1e28 RD |
10094 | |
10095 | wxPyEndAllowThreads(__tstate); | |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
10097 | } | |
093d3ff1 | 10098 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
10099 | return resultobj; |
10100 | fail: | |
10101 | return NULL; | |
10102 | } | |
10103 | ||
10104 | ||
093d3ff1 | 10105 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10106 | PyObject *resultobj = NULL; |
d14a1e28 | 10107 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10108 | wxNativeFontInfo *result; |
d14a1e28 RD |
10109 | PyObject * obj0 = 0 ; |
10110 | char *kwnames[] = { | |
10111 | (char *) "self", NULL | |
10112 | }; | |
10113 | ||
093d3ff1 RD |
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; |
10115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10117 | { |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10119 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); |
d14a1e28 RD |
10120 | |
10121 | wxPyEndAllowThreads(__tstate); | |
10122 | if (PyErr_Occurred()) SWIG_fail; | |
10123 | } | |
093d3ff1 | 10124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
10125 | return resultobj; |
10126 | fail: | |
10127 | return NULL; | |
10128 | } | |
10129 | ||
10130 | ||
093d3ff1 | 10131 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10132 | PyObject *resultobj = NULL; |
d14a1e28 | 10133 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10134 | bool result; |
d14a1e28 RD |
10135 | PyObject * obj0 = 0 ; |
10136 | char *kwnames[] = { | |
10137 | (char *) "self", NULL | |
10138 | }; | |
10139 | ||
093d3ff1 RD |
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; |
10141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10143 | { |
10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10145 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); |
d14a1e28 RD |
10146 | |
10147 | wxPyEndAllowThreads(__tstate); | |
10148 | if (PyErr_Occurred()) SWIG_fail; | |
10149 | } | |
10150 | { | |
093d3ff1 | 10151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10152 | } |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
093d3ff1 | 10159 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10160 | PyObject *resultobj = NULL; |
d14a1e28 | 10161 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10162 | wxString result; |
d14a1e28 | 10163 | PyObject * obj0 = 0 ; |
d14a1e28 | 10164 | char *kwnames[] = { |
093d3ff1 | 10165 | (char *) "self", NULL |
d14a1e28 RD |
10166 | }; |
10167 | ||
093d3ff1 RD |
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; |
10169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10171 | { |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10173 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); |
d14a1e28 RD |
10174 | |
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
093d3ff1 RD |
10178 | { |
10179 | #if wxUSE_UNICODE | |
10180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10181 | #else | |
10182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10183 | #endif | |
10184 | } | |
d14a1e28 RD |
10185 | return resultobj; |
10186 | fail: | |
10187 | return NULL; | |
10188 | } | |
10189 | ||
10190 | ||
093d3ff1 | 10191 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10192 | PyObject *resultobj = NULL; |
d14a1e28 | 10193 | wxFont *arg1 = (wxFont *) 0 ; |
093d3ff1 | 10194 | wxString result; |
d14a1e28 RD |
10195 | PyObject * obj0 = 0 ; |
10196 | char *kwnames[] = { | |
10197 | (char *) "self", NULL | |
10198 | }; | |
10199 | ||
093d3ff1 RD |
10200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; |
10201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10203 | { |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10205 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); |
d14a1e28 RD |
10206 | |
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
4f89f6a3 | 10210 | { |
093d3ff1 RD |
10211 | #if wxUSE_UNICODE |
10212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10213 | #else | |
10214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10215 | #endif | |
4f89f6a3 | 10216 | } |
d14a1e28 RD |
10217 | return resultobj; |
10218 | fail: | |
10219 | return NULL; | |
10220 | } | |
10221 | ||
10222 | ||
093d3ff1 | 10223 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10224 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10225 | wxFont *arg1 = (wxFont *) 0 ; |
10226 | int arg2 ; | |
10227 | PyObject * obj0 = 0 ; | |
10228 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10229 | char *kwnames[] = { |
093d3ff1 | 10230 | (char *) "self",(char *) "pointSize", NULL |
d14a1e28 RD |
10231 | }; |
10232 | ||
093d3ff1 RD |
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
10234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10236 | { | |
32fe5131 | 10237 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10238 | if (SWIG_arg_fail(2)) SWIG_fail; |
10239 | } | |
d14a1e28 RD |
10240 | { |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10242 | (arg1)->SetPointSize(arg2); |
d14a1e28 RD |
10243 | |
10244 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10245 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10246 | } |
093d3ff1 | 10247 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10248 | return resultobj; |
10249 | fail: | |
10250 | return NULL; | |
10251 | } | |
10252 | ||
10253 | ||
093d3ff1 | 10254 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10255 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10256 | wxFont *arg1 = (wxFont *) 0 ; |
10257 | wxSize *arg2 = 0 ; | |
10258 | wxSize temp2 ; | |
994141e6 | 10259 | PyObject * obj0 = 0 ; |
093d3ff1 | 10260 | PyObject * obj1 = 0 ; |
d14a1e28 | 10261 | char *kwnames[] = { |
093d3ff1 | 10262 | (char *) "self",(char *) "pixelSize", NULL |
d14a1e28 RD |
10263 | }; |
10264 | ||
093d3ff1 RD |
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; |
10266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10268 | { | |
10269 | arg2 = &temp2; | |
10270 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10271 | } | |
d14a1e28 RD |
10272 | { |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10274 | (arg1)->SetPixelSize((wxSize const &)*arg2); |
d14a1e28 RD |
10275 | |
10276 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10277 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10278 | } |
10279 | Py_INCREF(Py_None); resultobj = Py_None; | |
10280 | return resultobj; | |
10281 | fail: | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
093d3ff1 | 10286 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10287 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10288 | wxFont *arg1 = (wxFont *) 0 ; |
10289 | int arg2 ; | |
10290 | PyObject * obj0 = 0 ; | |
10291 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10292 | char *kwnames[] = { |
093d3ff1 | 10293 | (char *) "self",(char *) "family", NULL |
d14a1e28 RD |
10294 | }; |
10295 | ||
093d3ff1 RD |
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
10297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10299 | { | |
32fe5131 | 10300 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10301 | if (SWIG_arg_fail(2)) SWIG_fail; |
10302 | } | |
d14a1e28 RD |
10303 | { |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10305 | (arg1)->SetFamily(arg2); |
d14a1e28 RD |
10306 | |
10307 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10308 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10309 | } |
093d3ff1 | 10310 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10311 | return resultobj; |
10312 | fail: | |
10313 | return NULL; | |
10314 | } | |
10315 | ||
10316 | ||
093d3ff1 | 10317 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10318 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10319 | wxFont *arg1 = (wxFont *) 0 ; |
10320 | int arg2 ; | |
d14a1e28 | 10321 | PyObject * obj0 = 0 ; |
093d3ff1 | 10322 | PyObject * obj1 = 0 ; |
d14a1e28 | 10323 | char *kwnames[] = { |
093d3ff1 | 10324 | (char *) "self",(char *) "style", NULL |
d14a1e28 RD |
10325 | }; |
10326 | ||
093d3ff1 RD |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
10328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10330 | { | |
32fe5131 | 10331 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10332 | if (SWIG_arg_fail(2)) SWIG_fail; |
10333 | } | |
d14a1e28 RD |
10334 | { |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10336 | (arg1)->SetStyle(arg2); |
d14a1e28 RD |
10337 | |
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
10341 | Py_INCREF(Py_None); resultobj = Py_None; | |
10342 | return resultobj; | |
10343 | fail: | |
10344 | return NULL; | |
10345 | } | |
10346 | ||
10347 | ||
093d3ff1 | 10348 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10349 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10350 | wxFont *arg1 = (wxFont *) 0 ; |
10351 | int arg2 ; | |
d14a1e28 RD |
10352 | PyObject * obj0 = 0 ; |
10353 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10354 | char *kwnames[] = { |
093d3ff1 | 10355 | (char *) "self",(char *) "weight", NULL |
d14a1e28 RD |
10356 | }; |
10357 | ||
093d3ff1 RD |
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
10359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10361 | { | |
32fe5131 | 10362 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10363 | if (SWIG_arg_fail(2)) SWIG_fail; |
10364 | } | |
d14a1e28 RD |
10365 | { |
10366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10367 | (arg1)->SetWeight(arg2); |
d14a1e28 RD |
10368 | |
10369 | wxPyEndAllowThreads(__tstate); | |
10370 | if (PyErr_Occurred()) SWIG_fail; | |
10371 | } | |
10372 | Py_INCREF(Py_None); resultobj = Py_None; | |
10373 | return resultobj; | |
10374 | fail: | |
10375 | return NULL; | |
10376 | } | |
10377 | ||
10378 | ||
093d3ff1 | 10379 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10380 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10381 | wxFont *arg1 = (wxFont *) 0 ; |
10382 | wxString *arg2 = 0 ; | |
10383 | bool temp2 = false ; | |
d14a1e28 | 10384 | PyObject * obj0 = 0 ; |
994141e6 | 10385 | PyObject * obj1 = 0 ; |
d14a1e28 | 10386 | char *kwnames[] = { |
093d3ff1 | 10387 | (char *) "self",(char *) "faceName", NULL |
d14a1e28 RD |
10388 | }; |
10389 | ||
093d3ff1 RD |
10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; |
10391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10393 | { | |
10394 | arg2 = wxString_in_helper(obj1); | |
10395 | if (arg2 == NULL) SWIG_fail; | |
10396 | temp2 = true; | |
d14a1e28 RD |
10397 | } |
10398 | { | |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10400 | (arg1)->SetFaceName((wxString const &)*arg2); |
d14a1e28 RD |
10401 | |
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
093d3ff1 | 10405 | Py_INCREF(Py_None); resultobj = Py_None; |
4f89f6a3 | 10406 | { |
093d3ff1 RD |
10407 | if (temp2) |
10408 | delete arg2; | |
4f89f6a3 | 10409 | } |
d14a1e28 RD |
10410 | return resultobj; |
10411 | fail: | |
093d3ff1 RD |
10412 | { |
10413 | if (temp2) | |
10414 | delete arg2; | |
10415 | } | |
d14a1e28 RD |
10416 | return NULL; |
10417 | } | |
10418 | ||
10419 | ||
093d3ff1 | 10420 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10421 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10422 | wxFont *arg1 = (wxFont *) 0 ; |
10423 | bool arg2 ; | |
d14a1e28 RD |
10424 | PyObject * obj0 = 0 ; |
10425 | PyObject * obj1 = 0 ; | |
10426 | char *kwnames[] = { | |
093d3ff1 | 10427 | (char *) "self",(char *) "underlined", NULL |
d14a1e28 RD |
10428 | }; |
10429 | ||
093d3ff1 RD |
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; |
10431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10433 | { | |
32fe5131 | 10434 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 | 10435 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
10436 | } |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10439 | (arg1)->SetUnderlined(arg2); |
d14a1e28 RD |
10440 | |
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
093d3ff1 | 10444 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10445 | return resultobj; |
10446 | fail: | |
d14a1e28 RD |
10447 | return NULL; |
10448 | } | |
10449 | ||
10450 | ||
093d3ff1 | 10451 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10452 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10453 | wxFont *arg1 = (wxFont *) 0 ; |
10454 | wxFontEncoding arg2 ; | |
d14a1e28 | 10455 | PyObject * obj0 = 0 ; |
093d3ff1 | 10456 | PyObject * obj1 = 0 ; |
d14a1e28 | 10457 | char *kwnames[] = { |
093d3ff1 | 10458 | (char *) "self",(char *) "encoding", NULL |
d14a1e28 RD |
10459 | }; |
10460 | ||
093d3ff1 RD |
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
10462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10464 | { | |
32fe5131 | 10465 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10466 | if (SWIG_arg_fail(2)) SWIG_fail; |
10467 | } | |
d14a1e28 RD |
10468 | { |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 10470 | (arg1)->SetEncoding(arg2); |
d14a1e28 RD |
10471 | |
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | } | |
093d3ff1 | 10475 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10476 | return resultobj; |
10477 | fail: | |
10478 | return NULL; | |
10479 | } | |
10480 | ||
10481 | ||
093d3ff1 | 10482 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10483 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10484 | wxFont *arg1 = (wxFont *) 0 ; |
10485 | wxNativeFontInfo *arg2 = 0 ; | |
d14a1e28 | 10486 | PyObject * obj0 = 0 ; |
093d3ff1 | 10487 | PyObject * obj1 = 0 ; |
d14a1e28 | 10488 | char *kwnames[] = { |
093d3ff1 | 10489 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10490 | }; |
10491 | ||
093d3ff1 RD |
10492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; |
10493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10495 | { | |
10496 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0); | |
10497 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10498 | if (arg2 == NULL) { | |
10499 | SWIG_null_ref("wxNativeFontInfo"); | |
10500 | } | |
10501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10502 | } | |
d14a1e28 RD |
10503 | { |
10504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10505 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); |
d14a1e28 RD |
10506 | |
10507 | wxPyEndAllowThreads(__tstate); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | } | |
d14a1e28 RD |
10510 | Py_INCREF(Py_None); resultobj = Py_None; |
10511 | return resultobj; | |
10512 | fail: | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
093d3ff1 | 10517 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10518 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10519 | wxFont *arg1 = (wxFont *) 0 ; |
10520 | wxString *arg2 = 0 ; | |
ae8162c8 | 10521 | bool temp2 = false ; |
d14a1e28 RD |
10522 | PyObject * obj0 = 0 ; |
10523 | PyObject * obj1 = 0 ; | |
10524 | char *kwnames[] = { | |
093d3ff1 | 10525 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10526 | }; |
10527 | ||
093d3ff1 RD |
10528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; |
10529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
10531 | { |
10532 | arg2 = wxString_in_helper(obj1); | |
10533 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10534 | temp2 = true; |
7eae615b | 10535 | } |
093d3ff1 RD |
10536 | { |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
d14a1e28 | 10543 | Py_INCREF(Py_None); resultobj = Py_None; |
7eae615b RD |
10544 | { |
10545 | if (temp2) | |
10546 | delete arg2; | |
10547 | } | |
d14a1e28 RD |
10548 | return resultobj; |
10549 | fail: | |
7eae615b RD |
10550 | { |
10551 | if (temp2) | |
10552 | delete arg2; | |
10553 | } | |
d14a1e28 RD |
10554 | return NULL; |
10555 | } | |
10556 | ||
10557 | ||
093d3ff1 | 10558 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10559 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10560 | wxFont *arg1 = (wxFont *) 0 ; |
10561 | wxString *arg2 = 0 ; | |
ae8162c8 | 10562 | bool temp2 = false ; |
d14a1e28 RD |
10563 | PyObject * obj0 = 0 ; |
10564 | PyObject * obj1 = 0 ; | |
10565 | char *kwnames[] = { | |
093d3ff1 | 10566 | (char *) "self",(char *) "info", NULL |
d14a1e28 RD |
10567 | }; |
10568 | ||
093d3ff1 RD |
10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; |
10570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
10572 | { |
10573 | arg2 = wxString_in_helper(obj1); | |
10574 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10575 | temp2 = true; |
7eae615b | 10576 | } |
093d3ff1 RD |
10577 | { |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
d14a1e28 | 10584 | Py_INCREF(Py_None); resultobj = Py_None; |
7eae615b RD |
10585 | { |
10586 | if (temp2) | |
10587 | delete arg2; | |
10588 | } | |
d14a1e28 RD |
10589 | return resultobj; |
10590 | fail: | |
7eae615b RD |
10591 | { |
10592 | if (temp2) | |
10593 | delete arg2; | |
10594 | } | |
d14a1e28 RD |
10595 | return NULL; |
10596 | } | |
10597 | ||
10598 | ||
093d3ff1 | 10599 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10600 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10601 | wxFont *arg1 = (wxFont *) 0 ; |
10602 | wxString result; | |
d14a1e28 RD |
10603 | PyObject * obj0 = 0 ; |
10604 | char *kwnames[] = { | |
10605 | (char *) "self", NULL | |
10606 | }; | |
10607 | ||
093d3ff1 RD |
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; |
10609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
10614 | ||
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
d14a1e28 RD |
10618 | { |
10619 | #if wxUSE_UNICODE | |
093d3ff1 | 10620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 10621 | #else |
093d3ff1 | 10622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 RD |
10623 | #endif |
10624 | } | |
10625 | return resultobj; | |
10626 | fail: | |
10627 | return NULL; | |
10628 | } | |
10629 | ||
10630 | ||
093d3ff1 | 10631 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10632 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10633 | wxFont *arg1 = (wxFont *) 0 ; |
10634 | wxString result; | |
994141e6 | 10635 | PyObject * obj0 = 0 ; |
d14a1e28 | 10636 | char *kwnames[] = { |
093d3ff1 | 10637 | (char *) "self", NULL |
d14a1e28 RD |
10638 | }; |
10639 | ||
093d3ff1 RD |
10640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; |
10641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10643 | { |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10645 | result = ((wxFont const *)arg1)->GetStyleString(); |
d14a1e28 RD |
10646 | |
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
093d3ff1 RD |
10650 | { |
10651 | #if wxUSE_UNICODE | |
10652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10653 | #else | |
10654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10655 | #endif | |
10656 | } | |
d14a1e28 RD |
10657 | return resultobj; |
10658 | fail: | |
10659 | return NULL; | |
10660 | } | |
10661 | ||
10662 | ||
093d3ff1 | 10663 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10664 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10665 | wxFont *arg1 = (wxFont *) 0 ; |
10666 | wxString result; | |
d14a1e28 RD |
10667 | PyObject * obj0 = 0 ; |
10668 | char *kwnames[] = { | |
10669 | (char *) "self", NULL | |
10670 | }; | |
10671 | ||
093d3ff1 RD |
10672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; |
10673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10675 | { |
10676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10677 | result = ((wxFont const *)arg1)->GetWeightString(); |
d14a1e28 RD |
10678 | |
10679 | wxPyEndAllowThreads(__tstate); | |
10680 | if (PyErr_Occurred()) SWIG_fail; | |
10681 | } | |
093d3ff1 RD |
10682 | { |
10683 | #if wxUSE_UNICODE | |
10684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10685 | #else | |
10686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10687 | #endif | |
10688 | } | |
10689 | return resultobj; | |
10690 | fail: | |
10691 | return NULL; | |
10692 | } | |
10693 | ||
10694 | ||
10695 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 10696 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10697 | wxFont *arg1 = (wxFont *) 0 ; |
10698 | bool arg2 = (bool) true ; | |
d14a1e28 RD |
10699 | PyObject * obj0 = 0 ; |
10700 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10701 | char *kwnames[] = { |
093d3ff1 | 10702 | (char *) "self",(char *) "no", NULL |
d14a1e28 RD |
10703 | }; |
10704 | ||
093d3ff1 RD |
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; |
10706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10708 | if (obj1) { | |
d14a1e28 | 10709 | { |
32fe5131 | 10710 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 | 10711 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
10712 | } |
10713 | } | |
d14a1e28 RD |
10714 | { |
10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10716 | (arg1)->SetNoAntiAliasing(arg2); |
d14a1e28 RD |
10717 | |
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
093d3ff1 | 10721 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10722 | return resultobj; |
10723 | fail: | |
d14a1e28 RD |
10724 | return NULL; |
10725 | } | |
10726 | ||
10727 | ||
093d3ff1 | 10728 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10729 | PyObject *resultobj = NULL; |
093d3ff1 | 10730 | wxFont *arg1 = (wxFont *) 0 ; |
d14a1e28 RD |
10731 | bool result; |
10732 | PyObject * obj0 = 0 ; | |
10733 | char *kwnames[] = { | |
093d3ff1 | 10734 | (char *) "self", NULL |
d14a1e28 RD |
10735 | }; |
10736 | ||
093d3ff1 RD |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; |
10738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
10739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10740 | { |
10741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10742 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d14a1e28 RD |
10743 | |
10744 | wxPyEndAllowThreads(__tstate); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | } | |
4f89f6a3 RD |
10747 | { |
10748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10749 | } | |
d14a1e28 RD |
10750 | return resultobj; |
10751 | fail: | |
10752 | return NULL; | |
10753 | } | |
10754 | ||
10755 | ||
093d3ff1 | 10756 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10757 | PyObject *resultobj = NULL; |
093d3ff1 | 10758 | wxFontEncoding result; |
d14a1e28 RD |
10759 | char *kwnames[] = { |
10760 | NULL | |
10761 | }; | |
10762 | ||
093d3ff1 | 10763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; |
d14a1e28 | 10764 | { |
093d3ff1 | 10765 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 10767 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); |
d14a1e28 RD |
10768 | |
10769 | wxPyEndAllowThreads(__tstate); | |
10770 | if (PyErr_Occurred()) SWIG_fail; | |
10771 | } | |
093d3ff1 | 10772 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
10773 | return resultobj; |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
093d3ff1 | 10779 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10780 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10781 | wxFontEncoding arg1 ; |
10782 | PyObject * obj0 = 0 ; | |
d14a1e28 | 10783 | char *kwnames[] = { |
093d3ff1 | 10784 | (char *) "encoding", NULL |
d14a1e28 RD |
10785 | }; |
10786 | ||
093d3ff1 RD |
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
10788 | { | |
32fe5131 | 10789 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 RD |
10790 | if (SWIG_arg_fail(1)) SWIG_fail; |
10791 | } | |
d14a1e28 | 10792 | { |
093d3ff1 | 10793 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 10795 | wxFont::SetDefaultEncoding(arg1); |
d14a1e28 RD |
10796 | |
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
093d3ff1 | 10800 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10801 | return resultobj; |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
093d3ff1 RD |
10807 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
10808 | PyObject *obj; | |
10809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10810 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
10811 | Py_INCREF(obj); | |
10812 | return Py_BuildValue((char *)""); | |
10813 | } | |
10814 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 10815 | PyObject *resultobj = NULL; |
093d3ff1 | 10816 | wxPyFontEnumerator *result; |
d14a1e28 RD |
10817 | char *kwnames[] = { |
10818 | NULL | |
10819 | }; | |
10820 | ||
093d3ff1 | 10821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; |
d14a1e28 | 10822 | { |
093d3ff1 | 10823 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 10825 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); |
d14a1e28 RD |
10826 | |
10827 | wxPyEndAllowThreads(__tstate); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | } | |
093d3ff1 | 10830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
10831 | return resultobj; |
10832 | fail: | |
10833 | return NULL; | |
10834 | } | |
10835 | ||
10836 | ||
093d3ff1 | 10837 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10838 | PyObject *resultobj = NULL; |
093d3ff1 | 10839 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
d14a1e28 RD |
10840 | PyObject * obj0 = 0 ; |
10841 | char *kwnames[] = { | |
10842 | (char *) "self", NULL | |
10843 | }; | |
10844 | ||
093d3ff1 RD |
10845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; |
10846 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10847 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10848 | { |
10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10850 | delete arg1; |
d14a1e28 RD |
10851 | |
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
093d3ff1 | 10855 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10856 | return resultobj; |
10857 | fail: | |
10858 | return NULL; | |
10859 | } | |
10860 | ||
10861 | ||
093d3ff1 | 10862 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10863 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10864 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10865 | PyObject *arg2 = (PyObject *) 0 ; | |
10866 | PyObject *arg3 = (PyObject *) 0 ; | |
10867 | bool arg4 ; | |
d14a1e28 | 10868 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
10869 | PyObject * obj1 = 0 ; |
10870 | PyObject * obj2 = 0 ; | |
10871 | PyObject * obj3 = 0 ; | |
d14a1e28 | 10872 | char *kwnames[] = { |
093d3ff1 | 10873 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
d14a1e28 RD |
10874 | }; |
10875 | ||
093d3ff1 RD |
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10879 | arg2 = obj1; | |
10880 | arg3 = obj2; | |
10881 | { | |
32fe5131 | 10882 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
10883 | if (SWIG_arg_fail(4)) SWIG_fail; |
10884 | } | |
d14a1e28 RD |
10885 | { |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10887 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
d14a1e28 RD |
10888 | |
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
093d3ff1 | 10892 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
10893 | return resultobj; |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
093d3ff1 | 10899 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10900 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10901 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10902 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
10903 | bool arg3 = (bool) false ; | |
10904 | bool result; | |
d14a1e28 | 10905 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
10906 | PyObject * obj1 = 0 ; |
10907 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10908 | char *kwnames[] = { |
093d3ff1 | 10909 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL |
d14a1e28 RD |
10910 | }; |
10911 | ||
093d3ff1 RD |
10912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
10913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10915 | if (obj1) { | |
10916 | { | |
32fe5131 | 10917 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 RD |
10918 | if (SWIG_arg_fail(2)) SWIG_fail; |
10919 | } | |
10920 | } | |
10921 | if (obj2) { | |
10922 | { | |
32fe5131 | 10923 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
10924 | if (SWIG_arg_fail(3)) SWIG_fail; |
10925 | } | |
10926 | } | |
d14a1e28 RD |
10927 | { |
10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 10929 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); |
d14a1e28 RD |
10930 | |
10931 | wxPyEndAllowThreads(__tstate); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | } | |
093d3ff1 RD |
10934 | { |
10935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10936 | } | |
d14a1e28 RD |
10937 | return resultobj; |
10938 | fail: | |
10939 | return NULL; | |
10940 | } | |
10941 | ||
10942 | ||
093d3ff1 | 10943 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10944 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10945 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10946 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10947 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10948 | bool result; | |
10949 | bool temp2 = false ; | |
d14a1e28 | 10950 | PyObject * obj0 = 0 ; |
093d3ff1 | 10951 | PyObject * obj1 = 0 ; |
d14a1e28 | 10952 | char *kwnames[] = { |
093d3ff1 | 10953 | (char *) "self",(char *) "facename", NULL |
d14a1e28 RD |
10954 | }; |
10955 | ||
093d3ff1 RD |
10956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; |
10957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
10958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10959 | if (obj1) { | |
10960 | { | |
10961 | arg2 = wxString_in_helper(obj1); | |
10962 | if (arg2 == NULL) SWIG_fail; | |
10963 | temp2 = true; | |
10964 | } | |
10965 | } | |
d14a1e28 RD |
10966 | { |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10968 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); |
d14a1e28 RD |
10969 | |
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
10972 | } | |
10973 | { | |
093d3ff1 RD |
10974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
10975 | } | |
10976 | { | |
10977 | if (temp2) | |
10978 | delete arg2; | |
d14a1e28 RD |
10979 | } |
10980 | return resultobj; | |
10981 | fail: | |
093d3ff1 RD |
10982 | { |
10983 | if (temp2) | |
10984 | delete arg2; | |
10985 | } | |
10986 | return NULL; | |
d14a1e28 RD |
10987 | } |
10988 | ||
10989 | ||
093d3ff1 | 10990 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10991 | PyObject *resultobj = NULL; |
093d3ff1 RD |
10992 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
10993 | PyObject *result; | |
d14a1e28 RD |
10994 | PyObject * obj0 = 0 ; |
10995 | char *kwnames[] = { | |
10996 | (char *) "self", NULL | |
10997 | }; | |
10998 | ||
093d3ff1 RD |
10999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; |
11000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
11001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11002 | { |
11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11004 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); |
d14a1e28 RD |
11005 | |
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
093d3ff1 | 11009 | resultobj = result; |
d14a1e28 RD |
11010 | return resultobj; |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
093d3ff1 | 11016 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11017 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11018 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; |
11019 | PyObject *result; | |
d14a1e28 RD |
11020 | PyObject * obj0 = 0 ; |
11021 | char *kwnames[] = { | |
093d3ff1 | 11022 | (char *) "self", NULL |
d14a1e28 RD |
11023 | }; |
11024 | ||
093d3ff1 RD |
11025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; |
11026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0); | |
11027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11028 | { |
11029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11030 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); |
d14a1e28 RD |
11031 | |
11032 | wxPyEndAllowThreads(__tstate); | |
11033 | if (PyErr_Occurred()) SWIG_fail; | |
11034 | } | |
093d3ff1 RD |
11035 | resultobj = result; |
11036 | return resultobj; | |
11037 | fail: | |
11038 | return NULL; | |
11039 | } | |
11040 | ||
11041 | ||
11042 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { | |
11043 | PyObject *obj; | |
11044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11045 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
11046 | Py_INCREF(obj); | |
11047 | return Py_BuildValue((char *)""); | |
11048 | } | |
11049 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11050 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11051 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11052 | int arg2 ; | |
11053 | PyObject * obj0 = 0 ; | |
11054 | PyObject * obj1 = 0 ; | |
11055 | char *kwnames[] = { | |
11056 | (char *) "self",(char *) "Language", NULL | |
11057 | }; | |
11058 | ||
11059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
11060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 11062 | { |
32fe5131 | 11063 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 11064 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 | 11065 | } |
093d3ff1 RD |
11066 | if (arg1) (arg1)->Language = arg2; |
11067 | ||
11068 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11069 | return resultobj; |
11070 | fail: | |
093d3ff1 RD |
11071 | return NULL; |
11072 | } | |
11073 | ||
11074 | ||
11075 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11076 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11077 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11078 | int result; | |
11079 | PyObject * obj0 = 0 ; | |
11080 | char *kwnames[] = { | |
11081 | (char *) "self", NULL | |
11082 | }; | |
11083 | ||
11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
11085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11087 | result = (int) ((arg1)->Language); | |
11088 | ||
d14a1e28 | 11089 | { |
32fe5131 | 11090 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 | 11091 | } |
093d3ff1 RD |
11092 | return resultobj; |
11093 | fail: | |
d14a1e28 RD |
11094 | return NULL; |
11095 | } | |
11096 | ||
11097 | ||
093d3ff1 | 11098 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11099 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11100 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11101 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 11102 | bool temp2 = false ; |
d14a1e28 RD |
11103 | PyObject * obj0 = 0 ; |
11104 | PyObject * obj1 = 0 ; | |
11105 | char *kwnames[] = { | |
093d3ff1 | 11106 | (char *) "self",(char *) "CanonicalName", NULL |
d14a1e28 RD |
11107 | }; |
11108 | ||
093d3ff1 RD |
11109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; |
11110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11112 | { |
11113 | arg2 = wxString_in_helper(obj1); | |
11114 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11115 | temp2 = true; |
d14a1e28 | 11116 | } |
093d3ff1 RD |
11117 | if (arg1) (arg1)->CanonicalName = *arg2; |
11118 | ||
11119 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11120 | { |
11121 | if (temp2) | |
11122 | delete arg2; | |
11123 | } | |
11124 | return resultobj; | |
11125 | fail: | |
11126 | { | |
11127 | if (temp2) | |
11128 | delete arg2; | |
11129 | } | |
11130 | return NULL; | |
11131 | } | |
11132 | ||
11133 | ||
093d3ff1 | 11134 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11135 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11136 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11137 | wxString *result; | |
11138 | PyObject * obj0 = 0 ; | |
11139 | char *kwnames[] = { | |
11140 | (char *) "self", NULL | |
11141 | }; | |
11142 | ||
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
11144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11146 | result = (wxString *)& ((arg1)->CanonicalName); | |
11147 | ||
11148 | { | |
11149 | #if wxUSE_UNICODE | |
11150 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11151 | #else | |
11152 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11153 | #endif | |
11154 | } | |
11155 | return resultobj; | |
11156 | fail: | |
11157 | return NULL; | |
11158 | } | |
11159 | ||
11160 | ||
11161 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11162 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11163 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11164 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 11165 | bool temp2 = false ; |
d14a1e28 RD |
11166 | PyObject * obj0 = 0 ; |
11167 | PyObject * obj1 = 0 ; | |
11168 | char *kwnames[] = { | |
093d3ff1 | 11169 | (char *) "self",(char *) "Description", NULL |
d14a1e28 RD |
11170 | }; |
11171 | ||
093d3ff1 RD |
11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; |
11173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11175 | { |
11176 | arg2 = wxString_in_helper(obj1); | |
11177 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11178 | temp2 = true; |
d14a1e28 | 11179 | } |
093d3ff1 RD |
11180 | if (arg1) (arg1)->Description = *arg2; |
11181 | ||
11182 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11183 | { |
11184 | if (temp2) | |
11185 | delete arg2; | |
11186 | } | |
11187 | return resultobj; | |
11188 | fail: | |
11189 | { | |
11190 | if (temp2) | |
11191 | delete arg2; | |
11192 | } | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
093d3ff1 | 11197 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11198 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11199 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; |
11200 | wxString *result; | |
994141e6 | 11201 | PyObject * obj0 = 0 ; |
d14a1e28 | 11202 | char *kwnames[] = { |
093d3ff1 | 11203 | (char *) "self", NULL |
d14a1e28 RD |
11204 | }; |
11205 | ||
093d3ff1 RD |
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; |
11207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); | |
11208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11209 | result = (wxString *)& ((arg1)->Description); | |
11210 | ||
d14a1e28 | 11211 | { |
093d3ff1 RD |
11212 | #if wxUSE_UNICODE |
11213 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11214 | #else | |
11215 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11216 | #endif | |
d14a1e28 | 11217 | } |
d14a1e28 RD |
11218 | return resultobj; |
11219 | fail: | |
11220 | return NULL; | |
11221 | } | |
11222 | ||
11223 | ||
093d3ff1 RD |
11224 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
11225 | PyObject *obj; | |
11226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11227 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
11228 | Py_INCREF(obj); | |
11229 | return Py_BuildValue((char *)""); | |
11230 | } | |
11231 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 11232 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11233 | int arg1 = (int) -1 ; |
11234 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11235 | wxLocale *result; | |
994141e6 | 11236 | PyObject * obj0 = 0 ; |
093d3ff1 | 11237 | PyObject * obj1 = 0 ; |
d14a1e28 | 11238 | char *kwnames[] = { |
093d3ff1 | 11239 | (char *) "language",(char *) "flags", NULL |
d14a1e28 RD |
11240 | }; |
11241 | ||
093d3ff1 RD |
11242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
11243 | if (obj0) { | |
11244 | { | |
32fe5131 | 11245 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11246 | if (SWIG_arg_fail(1)) SWIG_fail; |
11247 | } | |
11248 | } | |
11249 | if (obj1) { | |
11250 | { | |
32fe5131 | 11251 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11252 | if (SWIG_arg_fail(2)) SWIG_fail; |
11253 | } | |
11254 | } | |
d14a1e28 RD |
11255 | { |
11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11257 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d14a1e28 RD |
11258 | |
11259 | wxPyEndAllowThreads(__tstate); | |
11260 | if (PyErr_Occurred()) SWIG_fail; | |
11261 | } | |
093d3ff1 | 11262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
11263 | return resultobj; |
11264 | fail: | |
11265 | return NULL; | |
11266 | } | |
11267 | ||
11268 | ||
093d3ff1 | 11269 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11270 | PyObject *resultobj = NULL; |
093d3ff1 | 11271 | wxLocale *arg1 = (wxLocale *) 0 ; |
d14a1e28 RD |
11272 | PyObject * obj0 = 0 ; |
11273 | char *kwnames[] = { | |
093d3ff1 | 11274 | (char *) "self", NULL |
d14a1e28 RD |
11275 | }; |
11276 | ||
093d3ff1 RD |
11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; |
11278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11280 | { |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11282 | delete arg1; |
d14a1e28 RD |
11283 | |
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
093d3ff1 | 11287 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
11288 | return resultobj; |
11289 | fail: | |
d14a1e28 RD |
11290 | return NULL; |
11291 | } | |
11292 | ||
11293 | ||
093d3ff1 | 11294 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11296 | wxLocale *arg1 = (wxLocale *) 0 ; |
11297 | wxString *arg2 = 0 ; | |
11298 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11299 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
093d3ff1 RD |
11300 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11301 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11302 | bool arg5 = (bool) true ; | |
11303 | bool arg6 = (bool) false ; | |
11304 | bool result; | |
ae8162c8 RD |
11305 | bool temp2 = false ; |
11306 | bool temp3 = false ; | |
093d3ff1 | 11307 | bool temp4 = false ; |
d14a1e28 RD |
11308 | PyObject * obj0 = 0 ; |
11309 | PyObject * obj1 = 0 ; | |
11310 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
11311 | PyObject * obj3 = 0 ; |
11312 | PyObject * obj4 = 0 ; | |
11313 | PyObject * obj5 = 0 ; | |
d14a1e28 | 11314 | char *kwnames[] = { |
093d3ff1 | 11315 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL |
d14a1e28 RD |
11316 | }; |
11317 | ||
093d3ff1 RD |
11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
11319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11321 | { |
11322 | arg2 = wxString_in_helper(obj1); | |
11323 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11324 | temp2 = true; |
d14a1e28 RD |
11325 | } |
11326 | if (obj2) { | |
11327 | { | |
11328 | arg3 = wxString_in_helper(obj2); | |
11329 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11330 | temp3 = true; |
d14a1e28 RD |
11331 | } |
11332 | } | |
093d3ff1 RD |
11333 | if (obj3) { |
11334 | { | |
11335 | arg4 = wxString_in_helper(obj3); | |
11336 | if (arg4 == NULL) SWIG_fail; | |
11337 | temp4 = true; | |
11338 | } | |
11339 | } | |
11340 | if (obj4) { | |
11341 | { | |
32fe5131 | 11342 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
11343 | if (SWIG_arg_fail(5)) SWIG_fail; |
11344 | } | |
11345 | } | |
11346 | if (obj5) { | |
11347 | { | |
32fe5131 | 11348 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
093d3ff1 RD |
11349 | if (SWIG_arg_fail(6)) SWIG_fail; |
11350 | } | |
11351 | } | |
d14a1e28 RD |
11352 | { |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11354 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d14a1e28 RD |
11355 | |
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
11359 | { | |
093d3ff1 | 11360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11361 | } |
11362 | { | |
11363 | if (temp2) | |
11364 | delete arg2; | |
11365 | } | |
11366 | { | |
11367 | if (temp3) | |
11368 | delete arg3; | |
11369 | } | |
093d3ff1 RD |
11370 | { |
11371 | if (temp4) | |
11372 | delete arg4; | |
11373 | } | |
d14a1e28 RD |
11374 | return resultobj; |
11375 | fail: | |
11376 | { | |
11377 | if (temp2) | |
11378 | delete arg2; | |
11379 | } | |
11380 | { | |
11381 | if (temp3) | |
11382 | delete arg3; | |
11383 | } | |
093d3ff1 RD |
11384 | { |
11385 | if (temp4) | |
11386 | delete arg4; | |
11387 | } | |
d14a1e28 RD |
11388 | return NULL; |
11389 | } | |
11390 | ||
11391 | ||
093d3ff1 | 11392 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11393 | PyObject *resultobj = NULL; |
d14a1e28 | 11394 | wxLocale *arg1 = (wxLocale *) 0 ; |
093d3ff1 RD |
11395 | int arg2 = (int) wxLANGUAGE_DEFAULT ; |
11396 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
11397 | bool result; | |
d14a1e28 | 11398 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
11399 | PyObject * obj1 = 0 ; |
11400 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11401 | char *kwnames[] = { |
093d3ff1 | 11402 | (char *) "self",(char *) "language",(char *) "flags", NULL |
d14a1e28 RD |
11403 | }; |
11404 | ||
093d3ff1 RD |
11405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11408 | if (obj1) { | |
d14a1e28 | 11409 | { |
32fe5131 | 11410 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
11411 | if (SWIG_arg_fail(2)) SWIG_fail; |
11412 | } | |
11413 | } | |
11414 | if (obj2) { | |
11415 | { | |
32fe5131 | 11416 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 11417 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 | 11418 | } |
093d3ff1 RD |
11419 | } |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
d14a1e28 RD |
11423 | |
11424 | wxPyEndAllowThreads(__tstate); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
cc6dd355 | 11427 | { |
093d3ff1 | 11428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
cc6dd355 | 11429 | } |
d14a1e28 RD |
11430 | return resultobj; |
11431 | fail: | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
093d3ff1 | 11436 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11437 | PyObject *resultobj = NULL; |
093d3ff1 | 11438 | int result; |
d14a1e28 RD |
11439 | char *kwnames[] = { |
11440 | NULL | |
11441 | }; | |
11442 | ||
093d3ff1 | 11443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; |
d14a1e28 RD |
11444 | { |
11445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11446 | result = (int)wxLocale::GetSystemLanguage(); |
d14a1e28 RD |
11447 | |
11448 | wxPyEndAllowThreads(__tstate); | |
11449 | if (PyErr_Occurred()) SWIG_fail; | |
11450 | } | |
093d3ff1 | 11451 | { |
32fe5131 | 11452 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 11453 | } |
d14a1e28 RD |
11454 | return resultobj; |
11455 | fail: | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
093d3ff1 | 11460 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11461 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11462 | wxFontEncoding result; |
11463 | char *kwnames[] = { | |
11464 | NULL | |
11465 | }; | |
d14a1e28 | 11466 | |
093d3ff1 | 11467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; |
d14a1e28 RD |
11468 | { |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11470 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); |
d14a1e28 RD |
11471 | |
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
093d3ff1 | 11475 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
11476 | return resultobj; |
11477 | fail: | |
d14a1e28 RD |
11478 | return NULL; |
11479 | } | |
11480 | ||
11481 | ||
093d3ff1 | 11482 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11483 | PyObject *resultobj = NULL; |
d14a1e28 | 11484 | wxString result; |
093d3ff1 RD |
11485 | char *kwnames[] = { |
11486 | NULL | |
11487 | }; | |
d14a1e28 | 11488 | |
093d3ff1 | 11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; |
d14a1e28 RD |
11490 | { |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11492 | result = wxLocale::GetSystemEncodingName(); |
d14a1e28 RD |
11493 | |
11494 | wxPyEndAllowThreads(__tstate); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | } | |
11497 | { | |
11498 | #if wxUSE_UNICODE | |
11499 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11500 | #else | |
11501 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11502 | #endif | |
11503 | } | |
d14a1e28 RD |
11504 | return resultobj; |
11505 | fail: | |
d14a1e28 RD |
11506 | return NULL; |
11507 | } | |
11508 | ||
11509 | ||
093d3ff1 | 11510 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11511 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11512 | wxLocale *arg1 = (wxLocale *) 0 ; |
11513 | bool result; | |
11514 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11515 | char *kwnames[] = { |
093d3ff1 | 11516 | (char *) "self", NULL |
d14a1e28 RD |
11517 | }; |
11518 | ||
093d3ff1 RD |
11519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; |
11520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11522 | { |
11523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11524 | result = (bool)((wxLocale const *)arg1)->IsOk(); |
d14a1e28 RD |
11525 | |
11526 | wxPyEndAllowThreads(__tstate); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
093d3ff1 RD |
11529 | { |
11530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11531 | } | |
d14a1e28 RD |
11532 | return resultobj; |
11533 | fail: | |
11534 | return NULL; | |
11535 | } | |
11536 | ||
11537 | ||
093d3ff1 | 11538 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11539 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11540 | wxLocale *arg1 = (wxLocale *) 0 ; |
11541 | wxString result; | |
d14a1e28 RD |
11542 | PyObject * obj0 = 0 ; |
11543 | char *kwnames[] = { | |
11544 | (char *) "self", NULL | |
11545 | }; | |
11546 | ||
093d3ff1 RD |
11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; |
11548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11550 | { |
11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11552 | result = ((wxLocale const *)arg1)->GetLocale(); |
d14a1e28 RD |
11553 | |
11554 | wxPyEndAllowThreads(__tstate); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
093d3ff1 RD |
11557 | { |
11558 | #if wxUSE_UNICODE | |
11559 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11560 | #else | |
11561 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11562 | #endif | |
11563 | } | |
d14a1e28 RD |
11564 | return resultobj; |
11565 | fail: | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
093d3ff1 | 11570 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11571 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11572 | wxLocale *arg1 = (wxLocale *) 0 ; |
11573 | int result; | |
d14a1e28 RD |
11574 | PyObject * obj0 = 0 ; |
11575 | char *kwnames[] = { | |
093d3ff1 | 11576 | (char *) "self", NULL |
d14a1e28 RD |
11577 | }; |
11578 | ||
093d3ff1 RD |
11579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; |
11580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11582 | { |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11584 | result = (int)((wxLocale const *)arg1)->GetLanguage(); |
d14a1e28 RD |
11585 | |
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
4f89f6a3 | 11589 | { |
32fe5131 | 11590 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 11591 | } |
d14a1e28 RD |
11592 | return resultobj; |
11593 | fail: | |
11594 | return NULL; | |
11595 | } | |
11596 | ||
11597 | ||
093d3ff1 | 11598 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11599 | PyObject *resultobj = NULL; |
093d3ff1 | 11600 | wxLocale *arg1 = (wxLocale *) 0 ; |
d14a1e28 | 11601 | wxString result; |
d14a1e28 | 11602 | PyObject * obj0 = 0 ; |
d14a1e28 | 11603 | char *kwnames[] = { |
093d3ff1 | 11604 | (char *) "self", NULL |
d14a1e28 RD |
11605 | }; |
11606 | ||
093d3ff1 RD |
11607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; |
11608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11610 | { |
11611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11612 | result = ((wxLocale const *)arg1)->GetSysName(); |
d14a1e28 RD |
11613 | |
11614 | wxPyEndAllowThreads(__tstate); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | } | |
11617 | { | |
11618 | #if wxUSE_UNICODE | |
11619 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11620 | #else | |
11621 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11622 | #endif | |
11623 | } | |
d14a1e28 RD |
11624 | return resultobj; |
11625 | fail: | |
d14a1e28 RD |
11626 | return NULL; |
11627 | } | |
11628 | ||
11629 | ||
093d3ff1 | 11630 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11631 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11632 | wxLocale *arg1 = (wxLocale *) 0 ; |
11633 | wxString result; | |
994141e6 | 11634 | PyObject * obj0 = 0 ; |
d14a1e28 | 11635 | char *kwnames[] = { |
093d3ff1 | 11636 | (char *) "self", NULL |
d14a1e28 RD |
11637 | }; |
11638 | ||
093d3ff1 RD |
11639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; |
11640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11642 | { |
11643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11644 | result = ((wxLocale const *)arg1)->GetCanonicalName(); |
d14a1e28 RD |
11645 | |
11646 | wxPyEndAllowThreads(__tstate); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
11649 | { | |
093d3ff1 RD |
11650 | #if wxUSE_UNICODE |
11651 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11652 | #else | |
11653 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11654 | #endif | |
d14a1e28 RD |
11655 | } |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
093d3ff1 | 11662 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11663 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11664 | wxString *arg1 = 0 ; |
11665 | bool temp1 = false ; | |
994141e6 | 11666 | PyObject * obj0 = 0 ; |
d14a1e28 | 11667 | char *kwnames[] = { |
093d3ff1 | 11668 | (char *) "prefix", NULL |
d14a1e28 RD |
11669 | }; |
11670 | ||
093d3ff1 RD |
11671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; |
11672 | { | |
11673 | arg1 = wxString_in_helper(obj0); | |
11674 | if (arg1 == NULL) SWIG_fail; | |
11675 | temp1 = true; | |
11676 | } | |
d14a1e28 RD |
11677 | { |
11678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11679 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); |
d14a1e28 RD |
11680 | |
11681 | wxPyEndAllowThreads(__tstate); | |
11682 | if (PyErr_Occurred()) SWIG_fail; | |
11683 | } | |
093d3ff1 | 11684 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 11685 | { |
093d3ff1 RD |
11686 | if (temp1) |
11687 | delete arg1; | |
d14a1e28 RD |
11688 | } |
11689 | return resultobj; | |
11690 | fail: | |
093d3ff1 RD |
11691 | { |
11692 | if (temp1) | |
11693 | delete arg1; | |
11694 | } | |
d14a1e28 RD |
11695 | return NULL; |
11696 | } | |
11697 | ||
11698 | ||
093d3ff1 | 11699 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11700 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11701 | wxLocale *arg1 = (wxLocale *) 0 ; |
11702 | wxString *arg2 = 0 ; | |
d14a1e28 | 11703 | bool result; |
093d3ff1 | 11704 | bool temp2 = false ; |
994141e6 RD |
11705 | PyObject * obj0 = 0 ; |
11706 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11707 | char *kwnames[] = { |
093d3ff1 | 11708 | (char *) "self",(char *) "szDomain", NULL |
d14a1e28 RD |
11709 | }; |
11710 | ||
093d3ff1 RD |
11711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; |
11712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11714 | { | |
11715 | arg2 = wxString_in_helper(obj1); | |
11716 | if (arg2 == NULL) SWIG_fail; | |
11717 | temp2 = true; | |
11718 | } | |
d14a1e28 RD |
11719 | { |
11720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11721 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); |
d14a1e28 RD |
11722 | |
11723 | wxPyEndAllowThreads(__tstate); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
4f89f6a3 RD |
11726 | { |
11727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11728 | } | |
093d3ff1 RD |
11729 | { |
11730 | if (temp2) | |
11731 | delete arg2; | |
11732 | } | |
d14a1e28 RD |
11733 | return resultobj; |
11734 | fail: | |
093d3ff1 RD |
11735 | { |
11736 | if (temp2) | |
11737 | delete arg2; | |
11738 | } | |
d14a1e28 RD |
11739 | return NULL; |
11740 | } | |
11741 | ||
11742 | ||
093d3ff1 | 11743 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11744 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11745 | wxLocale *arg1 = (wxLocale *) 0 ; |
11746 | wxString *arg2 = 0 ; | |
11747 | bool result; | |
11748 | bool temp2 = false ; | |
d14a1e28 | 11749 | PyObject * obj0 = 0 ; |
093d3ff1 | 11750 | PyObject * obj1 = 0 ; |
d14a1e28 | 11751 | char *kwnames[] = { |
093d3ff1 | 11752 | (char *) "self",(char *) "szDomain", NULL |
d14a1e28 RD |
11753 | }; |
11754 | ||
093d3ff1 RD |
11755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; |
11756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11758 | { | |
11759 | arg2 = wxString_in_helper(obj1); | |
11760 | if (arg2 == NULL) SWIG_fail; | |
11761 | temp2 = true; | |
11762 | } | |
d14a1e28 RD |
11763 | { |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11765 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); |
d14a1e28 RD |
11766 | |
11767 | wxPyEndAllowThreads(__tstate); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
093d3ff1 RD |
11770 | { |
11771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11772 | } | |
11773 | { | |
11774 | if (temp2) | |
11775 | delete arg2; | |
11776 | } | |
d14a1e28 RD |
11777 | return resultobj; |
11778 | fail: | |
093d3ff1 RD |
11779 | { |
11780 | if (temp2) | |
11781 | delete arg2; | |
11782 | } | |
d14a1e28 RD |
11783 | return NULL; |
11784 | } | |
11785 | ||
11786 | ||
093d3ff1 | 11787 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11788 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11789 | int arg1 ; |
11790 | wxLanguageInfo *result; | |
d14a1e28 RD |
11791 | PyObject * obj0 = 0 ; |
11792 | char *kwnames[] = { | |
093d3ff1 | 11793 | (char *) "lang", NULL |
d14a1e28 RD |
11794 | }; |
11795 | ||
093d3ff1 RD |
11796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
11797 | { | |
32fe5131 | 11798 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11799 | if (SWIG_arg_fail(1)) SWIG_fail; |
11800 | } | |
d14a1e28 RD |
11801 | { |
11802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11803 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); |
d14a1e28 RD |
11804 | |
11805 | wxPyEndAllowThreads(__tstate); | |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
11807 | } | |
093d3ff1 | 11808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
11809 | return resultobj; |
11810 | fail: | |
11811 | return NULL; | |
11812 | } | |
11813 | ||
11814 | ||
093d3ff1 | 11815 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11816 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11817 | int arg1 ; |
11818 | wxString result; | |
d14a1e28 RD |
11819 | PyObject * obj0 = 0 ; |
11820 | char *kwnames[] = { | |
093d3ff1 | 11821 | (char *) "lang", NULL |
d14a1e28 RD |
11822 | }; |
11823 | ||
093d3ff1 RD |
11824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
11825 | { | |
32fe5131 | 11826 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11827 | if (SWIG_arg_fail(1)) SWIG_fail; |
11828 | } | |
d14a1e28 RD |
11829 | { |
11830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11831 | result = wxLocale::GetLanguageName(arg1); |
d14a1e28 RD |
11832 | |
11833 | wxPyEndAllowThreads(__tstate); | |
11834 | if (PyErr_Occurred()) SWIG_fail; | |
11835 | } | |
093d3ff1 RD |
11836 | { |
11837 | #if wxUSE_UNICODE | |
11838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11839 | #else | |
11840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11841 | #endif | |
11842 | } | |
d14a1e28 RD |
11843 | return resultobj; |
11844 | fail: | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
093d3ff1 | 11849 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11850 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11851 | wxString *arg1 = 0 ; |
11852 | wxLanguageInfo *result; | |
11853 | bool temp1 = false ; | |
d14a1e28 | 11854 | PyObject * obj0 = 0 ; |
d14a1e28 | 11855 | char *kwnames[] = { |
093d3ff1 | 11856 | (char *) "locale", NULL |
d14a1e28 RD |
11857 | }; |
11858 | ||
093d3ff1 | 11859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; |
d14a1e28 | 11860 | { |
093d3ff1 RD |
11861 | arg1 = wxString_in_helper(obj0); |
11862 | if (arg1 == NULL) SWIG_fail; | |
11863 | temp1 = true; | |
994141e6 | 11864 | } |
d14a1e28 RD |
11865 | { |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11867 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
d14a1e28 RD |
11868 | |
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
093d3ff1 | 11872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
4f89f6a3 | 11873 | { |
093d3ff1 RD |
11874 | if (temp1) |
11875 | delete arg1; | |
4f89f6a3 | 11876 | } |
d14a1e28 RD |
11877 | return resultobj; |
11878 | fail: | |
093d3ff1 RD |
11879 | { |
11880 | if (temp1) | |
11881 | delete arg1; | |
11882 | } | |
d14a1e28 RD |
11883 | return NULL; |
11884 | } | |
11885 | ||
11886 | ||
093d3ff1 | 11887 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11888 | PyObject *resultobj = NULL; |
093d3ff1 | 11889 | wxLanguageInfo *arg1 = 0 ; |
d14a1e28 | 11890 | PyObject * obj0 = 0 ; |
d14a1e28 | 11891 | char *kwnames[] = { |
093d3ff1 | 11892 | (char *) "info", NULL |
d14a1e28 RD |
11893 | }; |
11894 | ||
093d3ff1 | 11895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; |
d14a1e28 | 11896 | { |
093d3ff1 RD |
11897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0); |
11898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11899 | if (arg1 == NULL) { | |
11900 | SWIG_null_ref("wxLanguageInfo"); | |
11901 | } | |
11902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 11903 | } |
d14a1e28 RD |
11904 | { |
11905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11906 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); |
d14a1e28 RD |
11907 | |
11908 | wxPyEndAllowThreads(__tstate); | |
11909 | if (PyErr_Occurred()) SWIG_fail; | |
11910 | } | |
093d3ff1 | 11911 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
11912 | return resultobj; |
11913 | fail: | |
11914 | return NULL; | |
11915 | } | |
11916 | ||
11917 | ||
093d3ff1 | 11918 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11919 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11920 | wxLocale *arg1 = (wxLocale *) 0 ; |
11921 | wxString *arg2 = 0 ; | |
11922 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11923 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11924 | wxString result; | |
11925 | bool temp2 = false ; | |
11926 | bool temp3 = false ; | |
d14a1e28 | 11927 | PyObject * obj0 = 0 ; |
994141e6 RD |
11928 | PyObject * obj1 = 0 ; |
11929 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11930 | char *kwnames[] = { |
093d3ff1 | 11931 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL |
d14a1e28 RD |
11932 | }; |
11933 | ||
093d3ff1 RD |
11934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
11935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11937 | { | |
11938 | arg2 = wxString_in_helper(obj1); | |
11939 | if (arg2 == NULL) SWIG_fail; | |
11940 | temp2 = true; | |
11941 | } | |
11942 | if (obj2) { | |
11943 | { | |
11944 | arg3 = wxString_in_helper(obj2); | |
11945 | if (arg3 == NULL) SWIG_fail; | |
11946 | temp3 = true; | |
11947 | } | |
11948 | } | |
d14a1e28 RD |
11949 | { |
11950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11951 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); |
d14a1e28 RD |
11952 | |
11953 | wxPyEndAllowThreads(__tstate); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | } | |
11956 | { | |
093d3ff1 RD |
11957 | #if wxUSE_UNICODE |
11958 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11959 | #else | |
11960 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11961 | #endif | |
11962 | } | |
11963 | { | |
11964 | if (temp2) | |
11965 | delete arg2; | |
11966 | } | |
11967 | { | |
11968 | if (temp3) | |
11969 | delete arg3; | |
d14a1e28 RD |
11970 | } |
11971 | return resultobj; | |
11972 | fail: | |
093d3ff1 RD |
11973 | { |
11974 | if (temp2) | |
11975 | delete arg2; | |
11976 | } | |
11977 | { | |
11978 | if (temp3) | |
11979 | delete arg3; | |
11980 | } | |
d14a1e28 RD |
11981 | return NULL; |
11982 | } | |
11983 | ||
11984 | ||
093d3ff1 | 11985 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11986 | PyObject *resultobj = NULL; |
093d3ff1 RD |
11987 | wxLocale *arg1 = (wxLocale *) 0 ; |
11988 | wxString *result; | |
d14a1e28 | 11989 | PyObject * obj0 = 0 ; |
d14a1e28 | 11990 | char *kwnames[] = { |
093d3ff1 | 11991 | (char *) "self", NULL |
d14a1e28 RD |
11992 | }; |
11993 | ||
093d3ff1 RD |
11994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; |
11995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0); | |
11996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11997 | { |
11998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
11999 | { |
12000 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
12001 | result = (wxString *) &_result_ref; | |
12002 | } | |
d14a1e28 RD |
12003 | |
12004 | wxPyEndAllowThreads(__tstate); | |
12005 | if (PyErr_Occurred()) SWIG_fail; | |
12006 | } | |
12007 | { | |
093d3ff1 RD |
12008 | #if wxUSE_UNICODE |
12009 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12010 | #else | |
12011 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12012 | #endif | |
d14a1e28 RD |
12013 | } |
12014 | return resultobj; | |
12015 | fail: | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
093d3ff1 RD |
12020 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
12021 | PyObject *obj; | |
12022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12023 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
12024 | Py_INCREF(obj); | |
12025 | return Py_BuildValue((char *)""); | |
12026 | } | |
12027 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12028 | PyObject *resultobj = NULL; |
093d3ff1 | 12029 | wxLocale *result; |
d14a1e28 | 12030 | char *kwnames[] = { |
093d3ff1 | 12031 | NULL |
d14a1e28 RD |
12032 | }; |
12033 | ||
093d3ff1 | 12034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; |
d14a1e28 RD |
12035 | { |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12037 | result = (wxLocale *)wxGetLocale(); |
d14a1e28 RD |
12038 | |
12039 | wxPyEndAllowThreads(__tstate); | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | } | |
093d3ff1 | 12042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
12043 | return resultobj; |
12044 | fail: | |
12045 | return NULL; | |
12046 | } | |
12047 | ||
12048 | ||
093d3ff1 | 12049 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 12050 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12051 | wxString *arg1 = 0 ; |
12052 | wxString result; | |
12053 | bool temp1 = false ; | |
d14a1e28 | 12054 | PyObject * obj0 = 0 ; |
d14a1e28 | 12055 | |
093d3ff1 | 12056 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; |
d14a1e28 | 12057 | { |
093d3ff1 RD |
12058 | arg1 = wxString_in_helper(obj0); |
12059 | if (arg1 == NULL) SWIG_fail; | |
12060 | temp1 = true; | |
d14a1e28 RD |
12061 | } |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12064 | result = wxGetTranslation((wxString const &)*arg1); |
d14a1e28 RD |
12065 | |
12066 | wxPyEndAllowThreads(__tstate); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | } | |
093d3ff1 RD |
12069 | { |
12070 | #if wxUSE_UNICODE | |
12071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12072 | #else | |
12073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12074 | #endif | |
12075 | } | |
12076 | { | |
12077 | if (temp1) | |
12078 | delete arg1; | |
12079 | } | |
d14a1e28 RD |
12080 | return resultobj; |
12081 | fail: | |
093d3ff1 RD |
12082 | { |
12083 | if (temp1) | |
12084 | delete arg1; | |
12085 | } | |
d14a1e28 RD |
12086 | return NULL; |
12087 | } | |
12088 | ||
12089 | ||
093d3ff1 | 12090 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 | 12091 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12092 | wxString *arg1 = 0 ; |
12093 | wxString *arg2 = 0 ; | |
12094 | size_t arg3 ; | |
12095 | wxString result; | |
12096 | bool temp1 = false ; | |
12097 | bool temp2 = false ; | |
d14a1e28 | 12098 | PyObject * obj0 = 0 ; |
994141e6 RD |
12099 | PyObject * obj1 = 0 ; |
12100 | PyObject * obj2 = 0 ; | |
d14a1e28 | 12101 | |
093d3ff1 RD |
12102 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; |
12103 | { | |
12104 | arg1 = wxString_in_helper(obj0); | |
12105 | if (arg1 == NULL) SWIG_fail; | |
12106 | temp1 = true; | |
12107 | } | |
12108 | { | |
12109 | arg2 = wxString_in_helper(obj1); | |
12110 | if (arg2 == NULL) SWIG_fail; | |
12111 | temp2 = true; | |
12112 | } | |
12113 | { | |
32fe5131 | 12114 | arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2)); |
093d3ff1 RD |
12115 | if (SWIG_arg_fail(3)) SWIG_fail; |
12116 | } | |
d14a1e28 RD |
12117 | { |
12118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12119 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); |
d14a1e28 RD |
12120 | |
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
093d3ff1 RD |
12124 | { |
12125 | #if wxUSE_UNICODE | |
12126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12127 | #else | |
12128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12129 | #endif | |
12130 | } | |
12131 | { | |
12132 | if (temp1) | |
12133 | delete arg1; | |
12134 | } | |
12135 | { | |
12136 | if (temp2) | |
12137 | delete arg2; | |
12138 | } | |
d14a1e28 RD |
12139 | return resultobj; |
12140 | fail: | |
093d3ff1 RD |
12141 | { |
12142 | if (temp1) | |
12143 | delete arg1; | |
12144 | } | |
12145 | { | |
12146 | if (temp2) | |
12147 | delete arg2; | |
12148 | } | |
d14a1e28 RD |
12149 | return NULL; |
12150 | } | |
12151 | ||
12152 | ||
093d3ff1 RD |
12153 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
12154 | int argc; | |
12155 | PyObject *argv[4]; | |
12156 | int ii; | |
d14a1e28 | 12157 | |
093d3ff1 RD |
12158 | argc = PyObject_Length(args); |
12159 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
12160 | argv[ii] = PyTuple_GetItem(args,ii); | |
12161 | } | |
12162 | if (argc == 1) { | |
12163 | int _v; | |
12164 | { | |
12165 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12166 | } | |
12167 | if (_v) { | |
12168 | return _wrap_GetTranslation__SWIG_0(self,args); | |
12169 | } | |
12170 | } | |
12171 | if (argc == 3) { | |
12172 | int _v; | |
12173 | { | |
12174 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
12175 | } | |
12176 | if (_v) { | |
12177 | { | |
12178 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
12179 | } | |
12180 | if (_v) { | |
12181 | _v = SWIG_Check_unsigned_SS_long(argv[2]); | |
12182 | if (_v) { | |
12183 | return _wrap_GetTranslation__SWIG_1(self,args); | |
12184 | } | |
12185 | } | |
12186 | } | |
12187 | } | |
12188 | ||
12189 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
12190 | return NULL; | |
12191 | } | |
12192 | ||
12193 | ||
12194 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12195 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12196 | wxEncodingConverter *result; |
12197 | char *kwnames[] = { | |
12198 | NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
d14a1e28 RD |
12202 | { |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12204 | result = (wxEncodingConverter *)new wxEncodingConverter(); |
d14a1e28 RD |
12205 | |
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
093d3ff1 | 12209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
12210 | return resultobj; |
12211 | fail: | |
12212 | return NULL; | |
12213 | } | |
12214 | ||
12215 | ||
093d3ff1 | 12216 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12217 | PyObject *resultobj = NULL; |
093d3ff1 | 12218 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
d14a1e28 RD |
12219 | PyObject * obj0 = 0 ; |
12220 | char *kwnames[] = { | |
093d3ff1 | 12221 | (char *) "self", NULL |
d14a1e28 RD |
12222 | }; |
12223 | ||
093d3ff1 RD |
12224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; |
12225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12227 | { |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12229 | delete arg1; |
d14a1e28 RD |
12230 | |
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
093d3ff1 | 12241 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12242 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12243 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
12244 | wxFontEncoding arg2 ; | |
12245 | wxFontEncoding arg3 ; | |
12246 | int arg4 = (int) wxCONVERT_STRICT ; | |
12247 | bool result; | |
d14a1e28 RD |
12248 | PyObject * obj0 = 0 ; |
12249 | PyObject * obj1 = 0 ; | |
12250 | PyObject * obj2 = 0 ; | |
12251 | PyObject * obj3 = 0 ; | |
12252 | char *kwnames[] = { | |
093d3ff1 | 12253 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL |
d14a1e28 RD |
12254 | }; |
12255 | ||
093d3ff1 RD |
12256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12259 | { |
32fe5131 | 12260 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 | 12261 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
12262 | } |
12263 | { | |
32fe5131 | 12264 | arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2)); |
093d3ff1 | 12265 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 | 12266 | } |
093d3ff1 RD |
12267 | if (obj3) { |
12268 | { | |
32fe5131 | 12269 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12270 | if (SWIG_arg_fail(4)) SWIG_fail; |
12271 | } | |
d14a1e28 RD |
12272 | } |
12273 | { | |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12275 | result = (bool)(arg1)->Init(arg2,arg3,arg4); |
d14a1e28 RD |
12276 | |
12277 | wxPyEndAllowThreads(__tstate); | |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | } | |
093d3ff1 RD |
12280 | { |
12281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12282 | } | |
d14a1e28 RD |
12283 | return resultobj; |
12284 | fail: | |
12285 | return NULL; | |
12286 | } | |
12287 | ||
12288 | ||
093d3ff1 | 12289 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12290 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12291 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; |
12292 | wxString *arg2 = 0 ; | |
12293 | wxString result; | |
12294 | bool temp2 = false ; | |
d14a1e28 | 12295 | PyObject * obj0 = 0 ; |
994141e6 | 12296 | PyObject * obj1 = 0 ; |
d14a1e28 | 12297 | char *kwnames[] = { |
093d3ff1 | 12298 | (char *) "self",(char *) "input", NULL |
d14a1e28 RD |
12299 | }; |
12300 | ||
093d3ff1 RD |
12301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; |
12302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0); | |
12303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12304 | { | |
12305 | arg2 = wxString_in_helper(obj1); | |
12306 | if (arg2 == NULL) SWIG_fail; | |
12307 | temp2 = true; | |
12308 | } | |
994141e6 RD |
12309 | { |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12311 | result = (arg1)->Convert((wxString const &)*arg2); |
994141e6 RD |
12312 | |
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
093d3ff1 RD |
12316 | { |
12317 | #if wxUSE_UNICODE | |
12318 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12319 | #else | |
12320 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12321 | #endif | |
12322 | } | |
12323 | { | |
12324 | if (temp2) | |
12325 | delete arg2; | |
12326 | } | |
994141e6 RD |
12327 | return resultobj; |
12328 | fail: | |
093d3ff1 RD |
12329 | { |
12330 | if (temp2) | |
12331 | delete arg2; | |
12332 | } | |
994141e6 RD |
12333 | return NULL; |
12334 | } | |
12335 | ||
12336 | ||
093d3ff1 | 12337 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12338 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12339 | wxFontEncoding arg1 ; |
12340 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
12341 | wxFontEncodingArray result; | |
d14a1e28 RD |
12342 | PyObject * obj0 = 0 ; |
12343 | PyObject * obj1 = 0 ; | |
12344 | char *kwnames[] = { | |
093d3ff1 | 12345 | (char *) "enc",(char *) "platform", NULL |
d14a1e28 RD |
12346 | }; |
12347 | ||
093d3ff1 | 12348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12349 | { |
32fe5131 | 12350 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12351 | if (SWIG_arg_fail(1)) SWIG_fail; |
12352 | } | |
12353 | if (obj1) { | |
12354 | { | |
32fe5131 | 12355 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12356 | if (SWIG_arg_fail(2)) SWIG_fail; |
12357 | } | |
d14a1e28 RD |
12358 | } |
12359 | { | |
12360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12361 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); |
d14a1e28 RD |
12362 | |
12363 | wxPyEndAllowThreads(__tstate); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | } | |
093d3ff1 RD |
12366 | { |
12367 | resultobj = PyList_New(0); | |
12368 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12369 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12370 | PyList_Append(resultobj, number); | |
12371 | Py_DECREF(number); | |
12372 | } | |
12373 | } | |
d14a1e28 RD |
12374 | return resultobj; |
12375 | fail: | |
12376 | return NULL; | |
12377 | } | |
12378 | ||
12379 | ||
093d3ff1 | 12380 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12381 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12382 | wxFontEncoding arg1 ; |
12383 | wxFontEncodingArray result; | |
d14a1e28 RD |
12384 | PyObject * obj0 = 0 ; |
12385 | char *kwnames[] = { | |
093d3ff1 | 12386 | (char *) "enc", NULL |
d14a1e28 RD |
12387 | }; |
12388 | ||
093d3ff1 RD |
12389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
12390 | { | |
32fe5131 | 12391 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12392 | if (SWIG_arg_fail(1)) SWIG_fail; |
12393 | } | |
d14a1e28 RD |
12394 | { |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12396 | result = wxEncodingConverter::GetAllEquivalents(arg1); |
d14a1e28 RD |
12397 | |
12398 | wxPyEndAllowThreads(__tstate); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | } | |
093d3ff1 RD |
12401 | { |
12402 | resultobj = PyList_New(0); | |
12403 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
12404 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
12405 | PyList_Append(resultobj, number); | |
12406 | Py_DECREF(number); | |
12407 | } | |
12408 | } | |
d14a1e28 RD |
12409 | return resultobj; |
12410 | fail: | |
12411 | return NULL; | |
12412 | } | |
12413 | ||
12414 | ||
093d3ff1 | 12415 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12416 | PyObject *resultobj = NULL; |
093d3ff1 RD |
12417 | wxFontEncoding arg1 ; |
12418 | wxFontEncoding arg2 ; | |
12419 | bool result; | |
d14a1e28 RD |
12420 | PyObject * obj0 = 0 ; |
12421 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12422 | char *kwnames[] = { |
093d3ff1 | 12423 | (char *) "encIn",(char *) "encOut", NULL |
d14a1e28 RD |
12424 | }; |
12425 | ||
093d3ff1 | 12426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12427 | { |
32fe5131 | 12428 | arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0)); |
093d3ff1 | 12429 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
12430 | } |
12431 | { | |
32fe5131 | 12432 | arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1)); |
093d3ff1 | 12433 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
12434 | } |
12435 | { | |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 12437 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); |
d14a1e28 RD |
12438 | |
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
093d3ff1 RD |
12442 | { |
12443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12444 | } | |
d14a1e28 RD |
12445 | return resultobj; |
12446 | fail: | |
12447 | return NULL; | |
12448 | } | |
12449 | ||
12450 | ||
093d3ff1 RD |
12451 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
12452 | PyObject *obj; | |
12453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12454 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
12455 | Py_INCREF(obj); | |
12456 | return Py_BuildValue((char *)""); | |
12457 | } | |
12458 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 12459 | PyObject *resultobj = NULL; |
d14a1e28 | 12460 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 RD |
12461 | PyObject * obj0 = 0 ; |
12462 | char *kwnames[] = { | |
093d3ff1 | 12463 | (char *) "self", NULL |
d14a1e28 RD |
12464 | }; |
12465 | ||
093d3ff1 RD |
12466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; |
12467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12469 | { |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12471 | delete arg1; |
d14a1e28 RD |
12472 | |
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | Py_INCREF(Py_None); resultobj = Py_None; | |
12477 | return resultobj; | |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
093d3ff1 | 12483 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12484 | PyObject *resultobj = NULL; |
d14a1e28 | 12485 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 | 12486 | PyObject * obj0 = 0 ; |
d14a1e28 | 12487 | char *kwnames[] = { |
093d3ff1 | 12488 | (char *) "self", NULL |
d14a1e28 RD |
12489 | }; |
12490 | ||
093d3ff1 RD |
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; |
12492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12494 | { |
12495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12496 | (arg1)->BeginDrawing(); |
d14a1e28 RD |
12497 | |
12498 | wxPyEndAllowThreads(__tstate); | |
12499 | if (PyErr_Occurred()) SWIG_fail; | |
12500 | } | |
12501 | Py_INCREF(Py_None); resultobj = Py_None; | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
093d3ff1 | 12508 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12509 | PyObject *resultobj = NULL; |
d14a1e28 | 12510 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 RD |
12511 | PyObject * obj0 = 0 ; |
12512 | char *kwnames[] = { | |
093d3ff1 | 12513 | (char *) "self", NULL |
d14a1e28 RD |
12514 | }; |
12515 | ||
093d3ff1 RD |
12516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; |
12517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12519 | { |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12521 | (arg1)->EndDrawing(); |
d14a1e28 RD |
12522 | |
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | Py_INCREF(Py_None); resultobj = Py_None; | |
12527 | return resultobj; | |
12528 | fail: | |
12529 | return NULL; | |
12530 | } | |
12531 | ||
12532 | ||
093d3ff1 | 12533 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12534 | PyObject *resultobj = NULL; |
d14a1e28 | 12535 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
12536 | int arg2 ; |
12537 | int arg3 ; | |
12538 | wxColour *arg4 = 0 ; | |
12539 | int arg5 = (int) wxFLOOD_SURFACE ; | |
12540 | bool result; | |
12541 | wxColour temp4 ; | |
d14a1e28 RD |
12542 | PyObject * obj0 = 0 ; |
12543 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
12544 | PyObject * obj2 = 0 ; |
12545 | PyObject * obj3 = 0 ; | |
12546 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12547 | char *kwnames[] = { |
093d3ff1 | 12548 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL |
d14a1e28 RD |
12549 | }; |
12550 | ||
093d3ff1 RD |
12551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12554 | { |
32fe5131 | 12555 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12556 | if (SWIG_arg_fail(2)) SWIG_fail; |
12557 | } | |
12558 | { | |
32fe5131 | 12559 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12560 | if (SWIG_arg_fail(3)) SWIG_fail; |
12561 | } | |
12562 | { | |
12563 | arg4 = &temp4; | |
12564 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12565 | } | |
12566 | if (obj4) { | |
12567 | { | |
32fe5131 | 12568 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
12569 | if (SWIG_arg_fail(5)) SWIG_fail; |
12570 | } | |
d14a1e28 RD |
12571 | } |
12572 | { | |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12574 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); |
d14a1e28 RD |
12575 | |
12576 | wxPyEndAllowThreads(__tstate); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
093d3ff1 RD |
12579 | { |
12580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12581 | } | |
d14a1e28 RD |
12582 | return resultobj; |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
093d3ff1 | 12588 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12589 | PyObject *resultobj = NULL; |
d14a1e28 | 12590 | wxDC *arg1 = (wxDC *) 0 ; |
03e37cd5 | 12591 | wxPoint *arg2 = 0 ; |
093d3ff1 RD |
12592 | wxColour *arg3 = 0 ; |
12593 | int arg4 = (int) wxFLOOD_SURFACE ; | |
12594 | bool result; | |
03e37cd5 | 12595 | wxPoint temp2 ; |
093d3ff1 | 12596 | wxColour temp3 ; |
d14a1e28 RD |
12597 | PyObject * obj0 = 0 ; |
12598 | PyObject * obj1 = 0 ; | |
03e37cd5 | 12599 | PyObject * obj2 = 0 ; |
093d3ff1 | 12600 | PyObject * obj3 = 0 ; |
d14a1e28 | 12601 | char *kwnames[] = { |
093d3ff1 | 12602 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL |
d14a1e28 RD |
12603 | }; |
12604 | ||
093d3ff1 RD |
12605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12608 | { |
12609 | arg2 = &temp2; | |
03e37cd5 RD |
12610 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12611 | } | |
12612 | { | |
12613 | arg3 = &temp3; | |
093d3ff1 RD |
12614 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; |
12615 | } | |
12616 | if (obj3) { | |
12617 | { | |
32fe5131 | 12618 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12619 | if (SWIG_arg_fail(4)) SWIG_fail; |
12620 | } | |
d14a1e28 RD |
12621 | } |
12622 | { | |
12623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12624 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); |
d14a1e28 RD |
12625 | |
12626 | wxPyEndAllowThreads(__tstate); | |
12627 | if (PyErr_Occurred()) SWIG_fail; | |
12628 | } | |
093d3ff1 RD |
12629 | { |
12630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12631 | } | |
d14a1e28 RD |
12632 | return resultobj; |
12633 | fail: | |
12634 | return NULL; | |
12635 | } | |
12636 | ||
12637 | ||
093d3ff1 | 12638 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12639 | PyObject *resultobj = NULL; |
d14a1e28 | 12640 | wxDC *arg1 = (wxDC *) 0 ; |
e811c8ce RD |
12641 | int arg2 ; |
12642 | int arg3 ; | |
093d3ff1 | 12643 | wxColour result; |
d14a1e28 | 12644 | PyObject * obj0 = 0 ; |
994141e6 RD |
12645 | PyObject * obj1 = 0 ; |
12646 | PyObject * obj2 = 0 ; | |
d14a1e28 | 12647 | char *kwnames[] = { |
093d3ff1 | 12648 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
12649 | }; |
12650 | ||
093d3ff1 RD |
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12654 | { |
32fe5131 | 12655 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 12656 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 | 12657 | } |
d14a1e28 | 12658 | { |
32fe5131 | 12659 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 12660 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
12661 | } |
12662 | { | |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12664 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d14a1e28 RD |
12665 | |
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
093d3ff1 RD |
12669 | { |
12670 | wxColour * resultptr; | |
32fe5131 | 12671 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
12672 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
12673 | } | |
d14a1e28 RD |
12674 | return resultobj; |
12675 | fail: | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
093d3ff1 | 12680 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12681 | PyObject *resultobj = NULL; |
d14a1e28 | 12682 | wxDC *arg1 = (wxDC *) 0 ; |
03e37cd5 | 12683 | wxPoint *arg2 = 0 ; |
093d3ff1 | 12684 | wxColour result; |
03e37cd5 | 12685 | wxPoint temp2 ; |
d14a1e28 RD |
12686 | PyObject * obj0 = 0 ; |
12687 | PyObject * obj1 = 0 ; | |
12688 | char *kwnames[] = { | |
093d3ff1 | 12689 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
12690 | }; |
12691 | ||
093d3ff1 RD |
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
12693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12695 | { |
12696 | arg2 = &temp2; | |
03e37cd5 | 12697 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
12698 | } |
12699 | { | |
12700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12701 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
12702 | |
12703 | wxPyEndAllowThreads(__tstate); | |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
12705 | } | |
093d3ff1 RD |
12706 | { |
12707 | wxColour * resultptr; | |
32fe5131 | 12708 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
093d3ff1 RD |
12709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
12710 | } | |
d14a1e28 RD |
12711 | return resultobj; |
12712 | fail: | |
12713 | return NULL; | |
12714 | } | |
12715 | ||
12716 | ||
093d3ff1 | 12717 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12718 | PyObject *resultobj = NULL; |
d14a1e28 | 12719 | wxDC *arg1 = (wxDC *) 0 ; |
e811c8ce RD |
12720 | int arg2 ; |
12721 | int arg3 ; | |
12722 | int arg4 ; | |
093d3ff1 | 12723 | int arg5 ; |
d14a1e28 | 12724 | PyObject * obj0 = 0 ; |
994141e6 RD |
12725 | PyObject * obj1 = 0 ; |
12726 | PyObject * obj2 = 0 ; | |
12727 | PyObject * obj3 = 0 ; | |
093d3ff1 | 12728 | PyObject * obj4 = 0 ; |
d14a1e28 | 12729 | char *kwnames[] = { |
093d3ff1 | 12730 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL |
d14a1e28 RD |
12731 | }; |
12732 | ||
093d3ff1 RD |
12733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12736 | { | |
32fe5131 | 12737 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12738 | if (SWIG_arg_fail(2)) SWIG_fail; |
12739 | } | |
12740 | { | |
32fe5131 | 12741 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12742 | if (SWIG_arg_fail(3)) SWIG_fail; |
12743 | } | |
12744 | { | |
32fe5131 | 12745 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12746 | if (SWIG_arg_fail(4)) SWIG_fail; |
12747 | } | |
12748 | { | |
32fe5131 | 12749 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
12750 | if (SWIG_arg_fail(5)) SWIG_fail; |
12751 | } | |
d14a1e28 RD |
12752 | { |
12753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12754 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
12755 | |
12756 | wxPyEndAllowThreads(__tstate); | |
12757 | if (PyErr_Occurred()) SWIG_fail; | |
12758 | } | |
12759 | Py_INCREF(Py_None); resultobj = Py_None; | |
12760 | return resultobj; | |
12761 | fail: | |
12762 | return NULL; | |
12763 | } | |
12764 | ||
12765 | ||
093d3ff1 | 12766 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12767 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12768 | wxDC *arg1 = (wxDC *) 0 ; |
12769 | wxPoint *arg2 = 0 ; | |
093d3ff1 | 12770 | wxPoint *arg3 = 0 ; |
d14a1e28 | 12771 | wxPoint temp2 ; |
093d3ff1 | 12772 | wxPoint temp3 ; |
d14a1e28 RD |
12773 | PyObject * obj0 = 0 ; |
12774 | PyObject * obj1 = 0 ; | |
994141e6 | 12775 | PyObject * obj2 = 0 ; |
d14a1e28 | 12776 | char *kwnames[] = { |
093d3ff1 | 12777 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL |
d14a1e28 RD |
12778 | }; |
12779 | ||
093d3ff1 RD |
12780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12783 | { |
12784 | arg2 = &temp2; | |
12785 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12786 | } | |
093d3ff1 RD |
12787 | { |
12788 | arg3 = &temp3; | |
12789 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12790 | } | |
d14a1e28 RD |
12791 | { |
12792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12793 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
12794 | |
12795 | wxPyEndAllowThreads(__tstate); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
12798 | Py_INCREF(Py_None); resultobj = Py_None; | |
12799 | return resultobj; | |
12800 | fail: | |
12801 | return NULL; | |
12802 | } | |
12803 | ||
12804 | ||
093d3ff1 | 12805 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12806 | PyObject *resultobj = NULL; |
d14a1e28 | 12807 | wxDC *arg1 = (wxDC *) 0 ; |
e811c8ce RD |
12808 | int arg2 ; |
12809 | int arg3 ; | |
d14a1e28 | 12810 | PyObject * obj0 = 0 ; |
994141e6 RD |
12811 | PyObject * obj1 = 0 ; |
12812 | PyObject * obj2 = 0 ; | |
d14a1e28 | 12813 | char *kwnames[] = { |
093d3ff1 | 12814 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
12815 | }; |
12816 | ||
093d3ff1 RD |
12817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12820 | { | |
32fe5131 | 12821 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12822 | if (SWIG_arg_fail(2)) SWIG_fail; |
12823 | } | |
12824 | { | |
32fe5131 | 12825 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12826 | if (SWIG_arg_fail(3)) SWIG_fail; |
12827 | } | |
d14a1e28 RD |
12828 | { |
12829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12830 | (arg1)->CrossHair(arg2,arg3); |
d14a1e28 RD |
12831 | |
12832 | wxPyEndAllowThreads(__tstate); | |
12833 | if (PyErr_Occurred()) SWIG_fail; | |
12834 | } | |
12835 | Py_INCREF(Py_None); resultobj = Py_None; | |
12836 | return resultobj; | |
12837 | fail: | |
12838 | return NULL; | |
12839 | } | |
12840 | ||
12841 | ||
093d3ff1 | 12842 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12843 | PyObject *resultobj = NULL; |
d14a1e28 | 12844 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
12845 | wxPoint *arg2 = 0 ; |
12846 | wxPoint temp2 ; | |
d14a1e28 RD |
12847 | PyObject * obj0 = 0 ; |
12848 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12849 | char *kwnames[] = { |
093d3ff1 | 12850 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
12851 | }; |
12852 | ||
093d3ff1 RD |
12853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
12854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12856 | { |
12857 | arg2 = &temp2; | |
093d3ff1 | 12858 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
12859 | } |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12862 | (arg1)->CrossHair((wxPoint const &)*arg2); |
d14a1e28 RD |
12863 | |
12864 | wxPyEndAllowThreads(__tstate); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | Py_INCREF(Py_None); resultobj = Py_None; | |
12868 | return resultobj; | |
12869 | fail: | |
12870 | return NULL; | |
12871 | } | |
12872 | ||
12873 | ||
093d3ff1 | 12874 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12875 | PyObject *resultobj = NULL; |
d14a1e28 | 12876 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
12877 | int arg2 ; |
12878 | int arg3 ; | |
12879 | int arg4 ; | |
12880 | int arg5 ; | |
12881 | int arg6 ; | |
12882 | int arg7 ; | |
d14a1e28 RD |
12883 | PyObject * obj0 = 0 ; |
12884 | PyObject * obj1 = 0 ; | |
03e37cd5 | 12885 | PyObject * obj2 = 0 ; |
093d3ff1 RD |
12886 | PyObject * obj3 = 0 ; |
12887 | PyObject * obj4 = 0 ; | |
12888 | PyObject * obj5 = 0 ; | |
12889 | PyObject * obj6 = 0 ; | |
d14a1e28 | 12890 | char *kwnames[] = { |
093d3ff1 | 12891 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL |
d14a1e28 RD |
12892 | }; |
12893 | ||
093d3ff1 RD |
12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
12895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12897 | { |
32fe5131 | 12898 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 12899 | if (SWIG_arg_fail(2)) SWIG_fail; |
03e37cd5 RD |
12900 | } |
12901 | { | |
32fe5131 | 12902 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12903 | if (SWIG_arg_fail(3)) SWIG_fail; |
12904 | } | |
12905 | { | |
32fe5131 | 12906 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12907 | if (SWIG_arg_fail(4)) SWIG_fail; |
12908 | } | |
12909 | { | |
32fe5131 | 12910 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
12911 | if (SWIG_arg_fail(5)) SWIG_fail; |
12912 | } | |
12913 | { | |
32fe5131 | 12914 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
12915 | if (SWIG_arg_fail(6)) SWIG_fail; |
12916 | } | |
12917 | { | |
32fe5131 | 12918 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 | 12919 | if (SWIG_arg_fail(7)) SWIG_fail; |
d14a1e28 RD |
12920 | } |
12921 | { | |
12922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12923 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
12924 | |
12925 | wxPyEndAllowThreads(__tstate); | |
12926 | if (PyErr_Occurred()) SWIG_fail; | |
12927 | } | |
12928 | Py_INCREF(Py_None); resultobj = Py_None; | |
12929 | return resultobj; | |
12930 | fail: | |
12931 | return NULL; | |
12932 | } | |
12933 | ||
12934 | ||
093d3ff1 | 12935 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12936 | PyObject *resultobj = NULL; |
d14a1e28 | 12937 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
12938 | wxPoint *arg2 = 0 ; |
12939 | wxPoint *arg3 = 0 ; | |
12940 | wxPoint *arg4 = 0 ; | |
12941 | wxPoint temp2 ; | |
12942 | wxPoint temp3 ; | |
12943 | wxPoint temp4 ; | |
d14a1e28 RD |
12944 | PyObject * obj0 = 0 ; |
12945 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12946 | PyObject * obj2 = 0 ; |
12947 | PyObject * obj3 = 0 ; | |
d14a1e28 | 12948 | char *kwnames[] = { |
093d3ff1 | 12949 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d14a1e28 RD |
12950 | }; |
12951 | ||
093d3ff1 RD |
12952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12955 | { | |
12956 | arg2 = &temp2; | |
12957 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12958 | } | |
12959 | { | |
12960 | arg3 = &temp3; | |
12961 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12962 | } | |
12963 | { | |
12964 | arg4 = &temp4; | |
12965 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
994141e6 | 12966 | } |
d14a1e28 RD |
12967 | { |
12968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 12969 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); |
d14a1e28 RD |
12970 | |
12971 | wxPyEndAllowThreads(__tstate); | |
12972 | if (PyErr_Occurred()) SWIG_fail; | |
12973 | } | |
12974 | Py_INCREF(Py_None); resultobj = Py_None; | |
12975 | return resultobj; | |
12976 | fail: | |
12977 | return NULL; | |
12978 | } | |
12979 | ||
12980 | ||
093d3ff1 | 12981 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12982 | PyObject *resultobj = NULL; |
d14a1e28 | 12983 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
12984 | int arg2 ; |
12985 | int arg3 ; | |
12986 | int arg4 ; | |
12987 | int arg5 ; | |
d14a1e28 RD |
12988 | PyObject * obj0 = 0 ; |
12989 | PyObject * obj1 = 0 ; | |
12990 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
12991 | PyObject * obj3 = 0 ; |
12992 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12993 | char *kwnames[] = { |
093d3ff1 | 12994 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
12995 | }; |
12996 | ||
093d3ff1 RD |
12997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
12998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
12999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13000 | { | |
32fe5131 | 13001 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 13002 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
13003 | } |
13004 | { | |
32fe5131 | 13005 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13006 | if (SWIG_arg_fail(3)) SWIG_fail; |
13007 | } | |
13008 | { | |
32fe5131 | 13009 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13010 | if (SWIG_arg_fail(4)) SWIG_fail; |
13011 | } | |
13012 | { | |
32fe5131 | 13013 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 13014 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
13015 | } |
13016 | { | |
13017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13018 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13019 | |
13020 | wxPyEndAllowThreads(__tstate); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
13023 | Py_INCREF(Py_None); resultobj = Py_None; | |
13024 | return resultobj; | |
13025 | fail: | |
13026 | return NULL; | |
13027 | } | |
13028 | ||
13029 | ||
093d3ff1 | 13030 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13031 | PyObject *resultobj = NULL; |
d14a1e28 | 13032 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13033 | wxRect *arg2 = 0 ; |
13034 | wxRect temp2 ; | |
d14a1e28 RD |
13035 | PyObject * obj0 = 0 ; |
13036 | PyObject * obj1 = 0 ; | |
d14a1e28 | 13037 | char *kwnames[] = { |
093d3ff1 | 13038 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
13039 | }; |
13040 | ||
093d3ff1 RD |
13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
13042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13044 | { | |
13045 | arg2 = &temp2; | |
13046 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13047 | } |
13048 | { | |
13049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13050 | (arg1)->DrawCheckMark((wxRect const &)*arg2); |
d14a1e28 RD |
13051 | |
13052 | wxPyEndAllowThreads(__tstate); | |
13053 | if (PyErr_Occurred()) SWIG_fail; | |
13054 | } | |
13055 | Py_INCREF(Py_None); resultobj = Py_None; | |
13056 | return resultobj; | |
13057 | fail: | |
13058 | return NULL; | |
13059 | } | |
13060 | ||
13061 | ||
093d3ff1 | 13062 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13063 | PyObject *resultobj = NULL; |
d14a1e28 | 13064 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13065 | int arg2 ; |
13066 | int arg3 ; | |
13067 | int arg4 ; | |
13068 | int arg5 ; | |
13069 | double arg6 ; | |
13070 | double arg7 ; | |
d14a1e28 RD |
13071 | PyObject * obj0 = 0 ; |
13072 | PyObject * obj1 = 0 ; | |
13073 | PyObject * obj2 = 0 ; | |
13074 | PyObject * obj3 = 0 ; | |
093d3ff1 RD |
13075 | PyObject * obj4 = 0 ; |
13076 | PyObject * obj5 = 0 ; | |
13077 | PyObject * obj6 = 0 ; | |
d14a1e28 | 13078 | char *kwnames[] = { |
093d3ff1 | 13079 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
13080 | }; |
13081 | ||
093d3ff1 RD |
13082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
13083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13085 | { | |
32fe5131 | 13086 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 13087 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
13088 | } |
13089 | { | |
32fe5131 | 13090 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 13091 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 | 13092 | } |
093d3ff1 | 13093 | { |
32fe5131 | 13094 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13095 | if (SWIG_arg_fail(4)) SWIG_fail; |
13096 | } | |
13097 | { | |
32fe5131 | 13098 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
13099 | if (SWIG_arg_fail(5)) SWIG_fail; |
13100 | } | |
13101 | { | |
32fe5131 | 13102 | arg6 = static_cast<double >(SWIG_As_double(obj5)); |
093d3ff1 RD |
13103 | if (SWIG_arg_fail(6)) SWIG_fail; |
13104 | } | |
13105 | { | |
32fe5131 | 13106 | arg7 = static_cast<double >(SWIG_As_double(obj6)); |
093d3ff1 | 13107 | if (SWIG_arg_fail(7)) SWIG_fail; |
d14a1e28 RD |
13108 | } |
13109 | { | |
13110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13111 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
13112 | |
13113 | wxPyEndAllowThreads(__tstate); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | } | |
13116 | Py_INCREF(Py_None); resultobj = Py_None; | |
13117 | return resultobj; | |
13118 | fail: | |
13119 | return NULL; | |
13120 | } | |
13121 | ||
13122 | ||
093d3ff1 | 13123 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13124 | PyObject *resultobj = NULL; |
d14a1e28 | 13125 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13126 | wxPoint *arg2 = 0 ; |
13127 | wxSize *arg3 = 0 ; | |
13128 | double arg4 ; | |
13129 | double arg5 ; | |
13130 | wxPoint temp2 ; | |
13131 | wxSize temp3 ; | |
d14a1e28 RD |
13132 | PyObject * obj0 = 0 ; |
13133 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13134 | PyObject * obj2 = 0 ; |
13135 | PyObject * obj3 = 0 ; | |
093d3ff1 | 13136 | PyObject * obj4 = 0 ; |
d14a1e28 | 13137 | char *kwnames[] = { |
093d3ff1 | 13138 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d14a1e28 RD |
13139 | }; |
13140 | ||
093d3ff1 RD |
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13144 | { |
093d3ff1 RD |
13145 | arg2 = &temp2; |
13146 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13147 | } | |
13148 | { | |
13149 | arg3 = &temp3; | |
13150 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13151 | } | |
13152 | { | |
32fe5131 | 13153 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
093d3ff1 RD |
13154 | if (SWIG_arg_fail(4)) SWIG_fail; |
13155 | } | |
13156 | { | |
32fe5131 | 13157 | arg5 = static_cast<double >(SWIG_As_double(obj4)); |
093d3ff1 | 13158 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
13159 | } |
13160 | { | |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13162 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); |
d14a1e28 RD |
13163 | |
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13168 | return resultobj; |
13169 | fail: | |
d14a1e28 RD |
13170 | return NULL; |
13171 | } | |
13172 | ||
13173 | ||
093d3ff1 | 13174 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13175 | PyObject *resultobj = NULL; |
d14a1e28 | 13176 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13177 | int arg2 ; |
13178 | int arg3 ; | |
d14a1e28 RD |
13179 | PyObject * obj0 = 0 ; |
13180 | PyObject * obj1 = 0 ; | |
13181 | PyObject * obj2 = 0 ; | |
13182 | char *kwnames[] = { | |
093d3ff1 | 13183 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13184 | }; |
13185 | ||
093d3ff1 RD |
13186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13189 | { |
32fe5131 | 13190 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 13191 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
13192 | } |
13193 | { | |
32fe5131 | 13194 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 13195 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
13196 | } |
13197 | { | |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13199 | (arg1)->DrawPoint(arg2,arg3); |
d14a1e28 RD |
13200 | |
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13205 | return resultobj; |
13206 | fail: | |
d14a1e28 RD |
13207 | return NULL; |
13208 | } | |
13209 | ||
13210 | ||
093d3ff1 | 13211 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13212 | PyObject *resultobj = NULL; |
d14a1e28 | 13213 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13214 | wxPoint *arg2 = 0 ; |
13215 | wxPoint temp2 ; | |
d14a1e28 RD |
13216 | PyObject * obj0 = 0 ; |
13217 | PyObject * obj1 = 0 ; | |
13218 | char *kwnames[] = { | |
093d3ff1 | 13219 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
13220 | }; |
13221 | ||
093d3ff1 RD |
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
13223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13225 | { |
093d3ff1 RD |
13226 | arg2 = &temp2; |
13227 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13228 | } |
13229 | { | |
13230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13231 | (arg1)->DrawPoint((wxPoint const &)*arg2); |
d14a1e28 RD |
13232 | |
13233 | wxPyEndAllowThreads(__tstate); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
13236 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13237 | return resultobj; |
13238 | fail: | |
d14a1e28 RD |
13239 | return NULL; |
13240 | } | |
13241 | ||
13242 | ||
093d3ff1 | 13243 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13244 | PyObject *resultobj = NULL; |
d14a1e28 | 13245 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13246 | int arg2 ; |
13247 | int arg3 ; | |
13248 | int arg4 ; | |
13249 | int arg5 ; | |
d14a1e28 RD |
13250 | PyObject * obj0 = 0 ; |
13251 | PyObject * obj1 = 0 ; | |
13252 | PyObject * obj2 = 0 ; | |
994141e6 | 13253 | PyObject * obj3 = 0 ; |
093d3ff1 | 13254 | PyObject * obj4 = 0 ; |
d14a1e28 | 13255 | char *kwnames[] = { |
093d3ff1 | 13256 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
13257 | }; |
13258 | ||
093d3ff1 RD |
13259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13262 | { |
32fe5131 | 13263 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 13264 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
13265 | } |
13266 | { | |
32fe5131 | 13267 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13268 | if (SWIG_arg_fail(3)) SWIG_fail; |
13269 | } | |
13270 | { | |
32fe5131 | 13271 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13272 | if (SWIG_arg_fail(4)) SWIG_fail; |
13273 | } | |
13274 | { | |
32fe5131 | 13275 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 13276 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
13277 | } |
13278 | { | |
13279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13280 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13281 | |
13282 | wxPyEndAllowThreads(__tstate); | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | } | |
13285 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13286 | return resultobj; |
13287 | fail: | |
d14a1e28 RD |
13288 | return NULL; |
13289 | } | |
13290 | ||
13291 | ||
093d3ff1 | 13292 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13293 | PyObject *resultobj = NULL; |
d14a1e28 | 13294 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13295 | wxRect *arg2 = 0 ; |
13296 | wxRect temp2 ; | |
d14a1e28 | 13297 | PyObject * obj0 = 0 ; |
994141e6 | 13298 | PyObject * obj1 = 0 ; |
d14a1e28 | 13299 | char *kwnames[] = { |
093d3ff1 | 13300 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
13301 | }; |
13302 | ||
093d3ff1 RD |
13303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
13304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13306 | { | |
13307 | arg2 = &temp2; | |
13308 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13309 | } |
13310 | { | |
13311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13312 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d14a1e28 RD |
13313 | |
13314 | wxPyEndAllowThreads(__tstate); | |
13315 | if (PyErr_Occurred()) SWIG_fail; | |
13316 | } | |
093d3ff1 | 13317 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13318 | return resultobj; |
13319 | fail: | |
13320 | return NULL; | |
13321 | } | |
13322 | ||
13323 | ||
093d3ff1 | 13324 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13325 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13326 | wxDC *arg1 = (wxDC *) 0 ; |
13327 | wxPoint *arg2 = 0 ; | |
13328 | wxSize *arg3 = 0 ; | |
d14a1e28 RD |
13329 | wxPoint temp2 ; |
13330 | wxSize temp3 ; | |
d14a1e28 RD |
13331 | PyObject * obj0 = 0 ; |
13332 | PyObject * obj1 = 0 ; | |
13333 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13334 | char *kwnames[] = { |
093d3ff1 | 13335 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
13336 | }; |
13337 | ||
093d3ff1 RD |
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13341 | { |
13342 | arg2 = &temp2; | |
13343 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13344 | } | |
13345 | { | |
13346 | arg3 = &temp3; | |
13347 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13348 | } | |
d14a1e28 RD |
13349 | { |
13350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13351 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
13352 | |
13353 | wxPyEndAllowThreads(__tstate); | |
13354 | if (PyErr_Occurred()) SWIG_fail; | |
13355 | } | |
093d3ff1 | 13356 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13357 | return resultobj; |
13358 | fail: | |
13359 | return NULL; | |
13360 | } | |
13361 | ||
13362 | ||
093d3ff1 | 13363 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13364 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13365 | wxDC *arg1 = (wxDC *) 0 ; |
13366 | int arg2 ; | |
03e37cd5 RD |
13367 | int arg3 ; |
13368 | int arg4 ; | |
13369 | int arg5 ; | |
093d3ff1 | 13370 | double arg6 ; |
d14a1e28 RD |
13371 | PyObject * obj0 = 0 ; |
13372 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13373 | PyObject * obj2 = 0 ; |
13374 | PyObject * obj3 = 0 ; | |
03e37cd5 | 13375 | PyObject * obj4 = 0 ; |
093d3ff1 | 13376 | PyObject * obj5 = 0 ; |
d14a1e28 | 13377 | char *kwnames[] = { |
093d3ff1 | 13378 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL |
d14a1e28 RD |
13379 | }; |
13380 | ||
093d3ff1 RD |
13381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
13382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13384 | { | |
32fe5131 | 13385 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13386 | if (SWIG_arg_fail(2)) SWIG_fail; |
13387 | } | |
13388 | { | |
32fe5131 | 13389 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13390 | if (SWIG_arg_fail(3)) SWIG_fail; |
13391 | } | |
13392 | { | |
32fe5131 | 13393 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13394 | if (SWIG_arg_fail(4)) SWIG_fail; |
13395 | } | |
13396 | { | |
32fe5131 | 13397 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
13398 | if (SWIG_arg_fail(5)) SWIG_fail; |
13399 | } | |
13400 | { | |
32fe5131 | 13401 | arg6 = static_cast<double >(SWIG_As_double(obj5)); |
093d3ff1 RD |
13402 | if (SWIG_arg_fail(6)) SWIG_fail; |
13403 | } | |
d14a1e28 RD |
13404 | { |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13406 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
13407 | |
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
13411 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13412 | return resultobj; |
13413 | fail: | |
d14a1e28 RD |
13414 | return NULL; |
13415 | } | |
13416 | ||
13417 | ||
093d3ff1 | 13418 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13419 | PyObject *resultobj = NULL; |
d14a1e28 | 13420 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13421 | wxRect *arg2 = 0 ; |
13422 | double arg3 ; | |
13423 | wxRect temp2 ; | |
d14a1e28 RD |
13424 | PyObject * obj0 = 0 ; |
13425 | PyObject * obj1 = 0 ; | |
994141e6 | 13426 | PyObject * obj2 = 0 ; |
d14a1e28 | 13427 | char *kwnames[] = { |
093d3ff1 | 13428 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d14a1e28 RD |
13429 | }; |
13430 | ||
093d3ff1 RD |
13431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13434 | { |
03e37cd5 | 13435 | arg2 = &temp2; |
093d3ff1 | 13436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
994141e6 | 13437 | } |
03e37cd5 | 13438 | { |
32fe5131 | 13439 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 | 13440 | if (SWIG_arg_fail(3)) SWIG_fail; |
994141e6 | 13441 | } |
d14a1e28 RD |
13442 | { |
13443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13444 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
13445 | |
13446 | wxPyEndAllowThreads(__tstate); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | } | |
13449 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13450 | return resultobj; |
13451 | fail: | |
d14a1e28 RD |
13452 | return NULL; |
13453 | } | |
13454 | ||
13455 | ||
093d3ff1 | 13456 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13457 | PyObject *resultobj = NULL; |
d14a1e28 | 13458 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13459 | wxPoint *arg2 = 0 ; |
13460 | wxSize *arg3 = 0 ; | |
13461 | double arg4 ; | |
13462 | wxPoint temp2 ; | |
13463 | wxSize temp3 ; | |
d14a1e28 RD |
13464 | PyObject * obj0 = 0 ; |
13465 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13466 | PyObject * obj2 = 0 ; |
13467 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13468 | char *kwnames[] = { |
093d3ff1 | 13469 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d14a1e28 RD |
13470 | }; |
13471 | ||
093d3ff1 RD |
13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13475 | { | |
13476 | arg2 = &temp2; | |
13477 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13478 | } | |
13479 | { | |
13480 | arg3 = &temp3; | |
13481 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13482 | } | |
13483 | { | |
32fe5131 | 13484 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
093d3ff1 | 13485 | if (SWIG_arg_fail(4)) SWIG_fail; |
03e37cd5 RD |
13486 | } |
13487 | { | |
13488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13489 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
03e37cd5 RD |
13490 | |
13491 | wxPyEndAllowThreads(__tstate); | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
13494 | Py_INCREF(Py_None); resultobj = Py_None; | |
13495 | return resultobj; | |
13496 | fail: | |
13497 | return NULL; | |
13498 | } | |
13499 | ||
13500 | ||
093d3ff1 | 13501 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13502 | PyObject *resultobj = NULL; |
03e37cd5 | 13503 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13504 | int arg2 ; |
13505 | int arg3 ; | |
13506 | int arg4 ; | |
03e37cd5 RD |
13507 | PyObject * obj0 = 0 ; |
13508 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13509 | PyObject * obj2 = 0 ; |
13510 | PyObject * obj3 = 0 ; | |
03e37cd5 | 13511 | char *kwnames[] = { |
093d3ff1 | 13512 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL |
03e37cd5 RD |
13513 | }; |
13514 | ||
093d3ff1 RD |
13515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13518 | { |
32fe5131 | 13519 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13520 | if (SWIG_arg_fail(2)) SWIG_fail; |
13521 | } | |
13522 | { | |
32fe5131 | 13523 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13524 | if (SWIG_arg_fail(3)) SWIG_fail; |
13525 | } | |
13526 | { | |
32fe5131 | 13527 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 | 13528 | if (SWIG_arg_fail(4)) SWIG_fail; |
03e37cd5 RD |
13529 | } |
13530 | { | |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13532 | (arg1)->DrawCircle(arg2,arg3,arg4); |
03e37cd5 RD |
13533 | |
13534 | wxPyEndAllowThreads(__tstate); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
13537 | Py_INCREF(Py_None); resultobj = Py_None; | |
13538 | return resultobj; | |
13539 | fail: | |
13540 | return NULL; | |
13541 | } | |
13542 | ||
13543 | ||
093d3ff1 | 13544 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13545 | PyObject *resultobj = NULL; |
03e37cd5 | 13546 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13547 | wxPoint *arg2 = 0 ; |
13548 | int arg3 ; | |
13549 | wxPoint temp2 ; | |
03e37cd5 RD |
13550 | PyObject * obj0 = 0 ; |
13551 | PyObject * obj1 = 0 ; | |
13552 | PyObject * obj2 = 0 ; | |
03e37cd5 | 13553 | char *kwnames[] = { |
093d3ff1 | 13554 | (char *) "self",(char *) "pt",(char *) "radius", NULL |
03e37cd5 RD |
13555 | }; |
13556 | ||
093d3ff1 RD |
13557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13560 | { |
093d3ff1 RD |
13561 | arg2 = &temp2; |
13562 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
03e37cd5 | 13563 | } |
093d3ff1 | 13564 | { |
32fe5131 | 13565 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 13566 | if (SWIG_arg_fail(3)) SWIG_fail; |
03e37cd5 RD |
13567 | } |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13570 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); |
03e37cd5 RD |
13571 | |
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
13575 | Py_INCREF(Py_None); resultobj = Py_None; | |
03e37cd5 RD |
13576 | return resultobj; |
13577 | fail: | |
03e37cd5 RD |
13578 | return NULL; |
13579 | } | |
13580 | ||
13581 | ||
093d3ff1 | 13582 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13583 | PyObject *resultobj = NULL; |
03e37cd5 RD |
13584 | wxDC *arg1 = (wxDC *) 0 ; |
13585 | int arg2 ; | |
093d3ff1 RD |
13586 | int arg3 ; |
13587 | int arg4 ; | |
13588 | int arg5 ; | |
03e37cd5 RD |
13589 | PyObject * obj0 = 0 ; |
13590 | PyObject * obj1 = 0 ; | |
13591 | PyObject * obj2 = 0 ; | |
13592 | PyObject * obj3 = 0 ; | |
13593 | PyObject * obj4 = 0 ; | |
13594 | char *kwnames[] = { | |
093d3ff1 | 13595 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
03e37cd5 RD |
13596 | }; |
13597 | ||
093d3ff1 RD |
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 13601 | { |
32fe5131 | 13602 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 13603 | if (SWIG_arg_fail(2)) SWIG_fail; |
03e37cd5 | 13604 | } |
093d3ff1 | 13605 | { |
32fe5131 | 13606 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 13607 | if (SWIG_arg_fail(3)) SWIG_fail; |
03e37cd5 | 13608 | } |
093d3ff1 | 13609 | { |
32fe5131 | 13610 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 | 13611 | if (SWIG_arg_fail(4)) SWIG_fail; |
03e37cd5 | 13612 | } |
093d3ff1 | 13613 | { |
32fe5131 | 13614 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 13615 | if (SWIG_arg_fail(5)) SWIG_fail; |
03e37cd5 RD |
13616 | } |
13617 | { | |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13619 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
03e37cd5 RD |
13620 | |
13621 | wxPyEndAllowThreads(__tstate); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
13624 | Py_INCREF(Py_None); resultobj = Py_None; | |
03e37cd5 RD |
13625 | return resultobj; |
13626 | fail: | |
03e37cd5 RD |
13627 | return NULL; |
13628 | } | |
13629 | ||
13630 | ||
093d3ff1 | 13631 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13632 | PyObject *resultobj = NULL; |
03e37cd5 | 13633 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13634 | wxRect *arg2 = 0 ; |
13635 | wxRect temp2 ; | |
03e37cd5 RD |
13636 | PyObject * obj0 = 0 ; |
13637 | PyObject * obj1 = 0 ; | |
03e37cd5 | 13638 | char *kwnames[] = { |
093d3ff1 | 13639 | (char *) "self",(char *) "rect", NULL |
03e37cd5 RD |
13640 | }; |
13641 | ||
093d3ff1 RD |
13642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
13643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13645 | { |
093d3ff1 RD |
13646 | arg2 = &temp2; |
13647 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 RD |
13648 | } |
13649 | { | |
13650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13651 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d14a1e28 RD |
13652 | |
13653 | wxPyEndAllowThreads(__tstate); | |
13654 | if (PyErr_Occurred()) SWIG_fail; | |
13655 | } | |
13656 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13657 | return resultobj; |
13658 | fail: | |
d14a1e28 RD |
13659 | return NULL; |
13660 | } | |
13661 | ||
13662 | ||
093d3ff1 | 13663 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13664 | PyObject *resultobj = NULL; |
d14a1e28 | 13665 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13666 | wxPoint *arg2 = 0 ; |
13667 | wxSize *arg3 = 0 ; | |
13668 | wxPoint temp2 ; | |
13669 | wxSize temp3 ; | |
d14a1e28 RD |
13670 | PyObject * obj0 = 0 ; |
13671 | PyObject * obj1 = 0 ; | |
13672 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13673 | char *kwnames[] = { |
093d3ff1 | 13674 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
13675 | }; |
13676 | ||
093d3ff1 RD |
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13680 | { |
093d3ff1 RD |
13681 | arg2 = &temp2; |
13682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
13683 | } |
13684 | { | |
093d3ff1 RD |
13685 | arg3 = &temp3; |
13686 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 13687 | } |
d14a1e28 RD |
13688 | { |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13690 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
13691 | |
13692 | wxPyEndAllowThreads(__tstate); | |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
13694 | } | |
093d3ff1 | 13695 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
13696 | return resultobj; |
13697 | fail: | |
d14a1e28 RD |
13698 | return NULL; |
13699 | } | |
13700 | ||
13701 | ||
093d3ff1 | 13702 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13703 | PyObject *resultobj = NULL; |
d14a1e28 | 13704 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13705 | wxIcon *arg2 = 0 ; |
13706 | int arg3 ; | |
13707 | int arg4 ; | |
d14a1e28 RD |
13708 | PyObject * obj0 = 0 ; |
13709 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13710 | PyObject * obj2 = 0 ; |
13711 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13712 | char *kwnames[] = { |
093d3ff1 | 13713 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13714 | }; |
13715 | ||
093d3ff1 RD |
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13719 | { |
093d3ff1 RD |
13720 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); |
13721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13722 | if (arg2 == NULL) { | |
13723 | SWIG_null_ref("wxIcon"); | |
13724 | } | |
13725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13726 | } | |
13727 | { | |
32fe5131 | 13728 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13729 | if (SWIG_arg_fail(3)) SWIG_fail; |
13730 | } | |
13731 | { | |
32fe5131 | 13732 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 | 13733 | if (SWIG_arg_fail(4)) SWIG_fail; |
d14a1e28 RD |
13734 | } |
13735 | { | |
13736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13737 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); |
d14a1e28 RD |
13738 | |
13739 | wxPyEndAllowThreads(__tstate); | |
13740 | if (PyErr_Occurred()) SWIG_fail; | |
13741 | } | |
13742 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
13743 | return resultobj; |
13744 | fail: | |
d14a1e28 RD |
13745 | return NULL; |
13746 | } | |
13747 | ||
13748 | ||
093d3ff1 | 13749 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13750 | PyObject *resultobj = NULL; |
d14a1e28 | 13751 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13752 | wxIcon *arg2 = 0 ; |
13753 | wxPoint *arg3 = 0 ; | |
13754 | wxPoint temp3 ; | |
d14a1e28 | 13755 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13756 | PyObject * obj1 = 0 ; |
13757 | PyObject * obj2 = 0 ; | |
d14a1e28 | 13758 | char *kwnames[] = { |
093d3ff1 | 13759 | (char *) "self",(char *) "icon",(char *) "pt", NULL |
d14a1e28 RD |
13760 | }; |
13761 | ||
093d3ff1 RD |
13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13765 | { | |
13766 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
13767 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13768 | if (arg2 == NULL) { | |
13769 | SWIG_null_ref("wxIcon"); | |
13770 | } | |
13771 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13772 | } | |
13773 | { | |
13774 | arg3 = &temp3; | |
13775 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13776 | } | |
d14a1e28 RD |
13777 | { |
13778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13779 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
13780 | |
13781 | wxPyEndAllowThreads(__tstate); | |
13782 | if (PyErr_Occurred()) SWIG_fail; | |
13783 | } | |
13784 | Py_INCREF(Py_None); resultobj = Py_None; | |
13785 | return resultobj; | |
13786 | fail: | |
13787 | return NULL; | |
13788 | } | |
13789 | ||
13790 | ||
093d3ff1 | 13791 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13792 | PyObject *resultobj = NULL; |
d14a1e28 | 13793 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13794 | wxBitmap *arg2 = 0 ; |
13795 | int arg3 ; | |
13796 | int arg4 ; | |
13797 | bool arg5 = (bool) false ; | |
d14a1e28 RD |
13798 | PyObject * obj0 = 0 ; |
13799 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
13800 | PyObject * obj2 = 0 ; |
13801 | PyObject * obj3 = 0 ; | |
13802 | PyObject * obj4 = 0 ; | |
d14a1e28 | 13803 | char *kwnames[] = { |
093d3ff1 | 13804 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL |
d14a1e28 RD |
13805 | }; |
13806 | ||
093d3ff1 RD |
13807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
13808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13810 | { |
093d3ff1 RD |
13811 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); |
13812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13813 | if (arg2 == NULL) { | |
13814 | SWIG_null_ref("wxBitmap"); | |
13815 | } | |
13816 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 13817 | } |
4f89f6a3 | 13818 | { |
32fe5131 | 13819 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 13820 | if (SWIG_arg_fail(3)) SWIG_fail; |
4f89f6a3 | 13821 | } |
d14a1e28 | 13822 | { |
32fe5131 | 13823 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 | 13824 | if (SWIG_arg_fail(4)) SWIG_fail; |
d14a1e28 | 13825 | } |
093d3ff1 RD |
13826 | if (obj4) { |
13827 | { | |
32fe5131 | 13828 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
13829 | if (SWIG_arg_fail(5)) SWIG_fail; |
13830 | } | |
d14a1e28 | 13831 | } |
d14a1e28 RD |
13832 | { |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13834 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); |
d14a1e28 RD |
13835 | |
13836 | wxPyEndAllowThreads(__tstate); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
13839 | Py_INCREF(Py_None); resultobj = Py_None; | |
13840 | return resultobj; | |
13841 | fail: | |
13842 | return NULL; | |
13843 | } | |
13844 | ||
13845 | ||
093d3ff1 | 13846 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13847 | PyObject *resultobj = NULL; |
d14a1e28 | 13848 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13849 | wxBitmap *arg2 = 0 ; |
13850 | wxPoint *arg3 = 0 ; | |
13851 | bool arg4 = (bool) false ; | |
13852 | wxPoint temp3 ; | |
d14a1e28 | 13853 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13854 | PyObject * obj1 = 0 ; |
13855 | PyObject * obj2 = 0 ; | |
13856 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13857 | char *kwnames[] = { |
093d3ff1 | 13858 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL |
d14a1e28 RD |
13859 | }; |
13860 | ||
093d3ff1 RD |
13861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13864 | { | |
13865 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
13866 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13867 | if (arg2 == NULL) { | |
13868 | SWIG_null_ref("wxBitmap"); | |
13869 | } | |
13870 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13871 | } | |
13872 | { | |
13873 | arg3 = &temp3; | |
13874 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13875 | } | |
13876 | if (obj3) { | |
13877 | { | |
32fe5131 | 13878 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
13879 | if (SWIG_arg_fail(4)) SWIG_fail; |
13880 | } | |
13881 | } | |
d14a1e28 RD |
13882 | { |
13883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13884 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); |
d14a1e28 RD |
13885 | |
13886 | wxPyEndAllowThreads(__tstate); | |
13887 | if (PyErr_Occurred()) SWIG_fail; | |
13888 | } | |
13889 | Py_INCREF(Py_None); resultobj = Py_None; | |
13890 | return resultobj; | |
13891 | fail: | |
13892 | return NULL; | |
13893 | } | |
13894 | ||
13895 | ||
093d3ff1 | 13896 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13897 | PyObject *resultobj = NULL; |
d14a1e28 | 13898 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13899 | wxString *arg2 = 0 ; |
13900 | int arg3 ; | |
13901 | int arg4 ; | |
13902 | bool temp2 = false ; | |
d14a1e28 | 13903 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
13904 | PyObject * obj1 = 0 ; |
13905 | PyObject * obj2 = 0 ; | |
13906 | PyObject * obj3 = 0 ; | |
d14a1e28 | 13907 | char *kwnames[] = { |
093d3ff1 | 13908 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
13909 | }; |
13910 | ||
093d3ff1 RD |
13911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13914 | { | |
13915 | arg2 = wxString_in_helper(obj1); | |
13916 | if (arg2 == NULL) SWIG_fail; | |
13917 | temp2 = true; | |
13918 | } | |
13919 | { | |
32fe5131 | 13920 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13921 | if (SWIG_arg_fail(3)) SWIG_fail; |
13922 | } | |
13923 | { | |
32fe5131 | 13924 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
13925 | if (SWIG_arg_fail(4)) SWIG_fail; |
13926 | } | |
d14a1e28 RD |
13927 | { |
13928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13929 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
13930 | |
13931 | wxPyEndAllowThreads(__tstate); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
13934 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13935 | { |
13936 | if (temp2) | |
13937 | delete arg2; | |
13938 | } | |
d14a1e28 RD |
13939 | return resultobj; |
13940 | fail: | |
093d3ff1 RD |
13941 | { |
13942 | if (temp2) | |
13943 | delete arg2; | |
13944 | } | |
d14a1e28 RD |
13945 | return NULL; |
13946 | } | |
13947 | ||
13948 | ||
093d3ff1 | 13949 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13950 | PyObject *resultobj = NULL; |
d14a1e28 | 13951 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
13952 | wxString *arg2 = 0 ; |
13953 | wxPoint *arg3 = 0 ; | |
13954 | bool temp2 = false ; | |
13955 | wxPoint temp3 ; | |
d14a1e28 RD |
13956 | PyObject * obj0 = 0 ; |
13957 | PyObject * obj1 = 0 ; | |
093d3ff1 | 13958 | PyObject * obj2 = 0 ; |
d14a1e28 | 13959 | char *kwnames[] = { |
093d3ff1 | 13960 | (char *) "self",(char *) "text",(char *) "pt", NULL |
d14a1e28 RD |
13961 | }; |
13962 | ||
093d3ff1 RD |
13963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
13965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13966 | { | |
13967 | arg2 = wxString_in_helper(obj1); | |
13968 | if (arg2 == NULL) SWIG_fail; | |
13969 | temp2 = true; | |
13970 | } | |
13971 | { | |
13972 | arg3 = &temp3; | |
13973 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
13974 | } |
13975 | { | |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 13977 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); |
d14a1e28 RD |
13978 | |
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
13983 | { |
13984 | if (temp2) | |
13985 | delete arg2; | |
13986 | } | |
d14a1e28 RD |
13987 | return resultobj; |
13988 | fail: | |
093d3ff1 RD |
13989 | { |
13990 | if (temp2) | |
13991 | delete arg2; | |
13992 | } | |
d14a1e28 RD |
13993 | return NULL; |
13994 | } | |
13995 | ||
13996 | ||
093d3ff1 | 13997 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13998 | PyObject *resultobj = NULL; |
d14a1e28 | 13999 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14000 | wxString *arg2 = 0 ; |
14001 | int arg3 ; | |
14002 | int arg4 ; | |
14003 | double arg5 ; | |
14004 | bool temp2 = false ; | |
14005 | PyObject * obj0 = 0 ; | |
d14a1e28 | 14006 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
14007 | PyObject * obj2 = 0 ; |
14008 | PyObject * obj3 = 0 ; | |
14009 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14010 | char *kwnames[] = { |
093d3ff1 | 14011 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL |
d14a1e28 RD |
14012 | }; |
14013 | ||
093d3ff1 RD |
14014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14017 | { | |
14018 | arg2 = wxString_in_helper(obj1); | |
14019 | if (arg2 == NULL) SWIG_fail; | |
14020 | temp2 = true; | |
14021 | } | |
14022 | { | |
32fe5131 | 14023 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14024 | if (SWIG_arg_fail(3)) SWIG_fail; |
14025 | } | |
14026 | { | |
32fe5131 | 14027 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14028 | if (SWIG_arg_fail(4)) SWIG_fail; |
14029 | } | |
14030 | { | |
32fe5131 | 14031 | arg5 = static_cast<double >(SWIG_As_double(obj4)); |
093d3ff1 | 14032 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
14033 | } |
14034 | { | |
14035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14036 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); |
d14a1e28 RD |
14037 | |
14038 | wxPyEndAllowThreads(__tstate); | |
14039 | if (PyErr_Occurred()) SWIG_fail; | |
14040 | } | |
14041 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
14042 | { |
14043 | if (temp2) | |
14044 | delete arg2; | |
14045 | } | |
d14a1e28 RD |
14046 | return resultobj; |
14047 | fail: | |
093d3ff1 RD |
14048 | { |
14049 | if (temp2) | |
14050 | delete arg2; | |
14051 | } | |
d14a1e28 RD |
14052 | return NULL; |
14053 | } | |
14054 | ||
14055 | ||
093d3ff1 | 14056 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14057 | PyObject *resultobj = NULL; |
d14a1e28 | 14058 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14059 | wxString *arg2 = 0 ; |
14060 | wxPoint *arg3 = 0 ; | |
14061 | double arg4 ; | |
14062 | bool temp2 = false ; | |
14063 | wxPoint temp3 ; | |
d14a1e28 RD |
14064 | PyObject * obj0 = 0 ; |
14065 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14066 | PyObject * obj2 = 0 ; |
14067 | PyObject * obj3 = 0 ; | |
d14a1e28 | 14068 | char *kwnames[] = { |
093d3ff1 | 14069 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL |
d14a1e28 RD |
14070 | }; |
14071 | ||
093d3ff1 RD |
14072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14075 | { | |
14076 | arg2 = wxString_in_helper(obj1); | |
14077 | if (arg2 == NULL) SWIG_fail; | |
14078 | temp2 = true; | |
14079 | } | |
14080 | { | |
14081 | arg3 = &temp3; | |
14082 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14083 | } | |
14084 | { | |
32fe5131 | 14085 | arg4 = static_cast<double >(SWIG_As_double(obj3)); |
093d3ff1 | 14086 | if (SWIG_arg_fail(4)) SWIG_fail; |
d14a1e28 RD |
14087 | } |
14088 | { | |
14089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14090 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); |
d14a1e28 RD |
14091 | |
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
14096 | { |
14097 | if (temp2) | |
14098 | delete arg2; | |
14099 | } | |
d14a1e28 RD |
14100 | return resultobj; |
14101 | fail: | |
093d3ff1 RD |
14102 | { |
14103 | if (temp2) | |
14104 | delete arg2; | |
14105 | } | |
d14a1e28 RD |
14106 | return NULL; |
14107 | } | |
14108 | ||
14109 | ||
093d3ff1 | 14110 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14111 | PyObject *resultobj = NULL; |
d14a1e28 | 14112 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14113 | int arg2 ; |
14114 | int arg3 ; | |
14115 | int arg4 ; | |
14116 | int arg5 ; | |
14117 | wxDC *arg6 = (wxDC *) 0 ; | |
14118 | int arg7 ; | |
14119 | int arg8 ; | |
14120 | int arg9 = (int) wxCOPY ; | |
14121 | bool arg10 = (bool) false ; | |
14122 | int arg11 = (int) -1 ; | |
14123 | int arg12 = (int) -1 ; | |
14124 | bool result; | |
d14a1e28 RD |
14125 | PyObject * obj0 = 0 ; |
14126 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14127 | PyObject * obj2 = 0 ; |
14128 | PyObject * obj3 = 0 ; | |
14129 | PyObject * obj4 = 0 ; | |
14130 | PyObject * obj5 = 0 ; | |
14131 | PyObject * obj6 = 0 ; | |
14132 | PyObject * obj7 = 0 ; | |
14133 | PyObject * obj8 = 0 ; | |
14134 | PyObject * obj9 = 0 ; | |
14135 | PyObject * obj10 = 0 ; | |
14136 | PyObject * obj11 = 0 ; | |
d14a1e28 | 14137 | char *kwnames[] = { |
093d3ff1 | 14138 | (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL |
d14a1e28 RD |
14139 | }; |
14140 | ||
093d3ff1 RD |
14141 | 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; |
14142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14144 | { | |
32fe5131 | 14145 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14146 | if (SWIG_arg_fail(2)) SWIG_fail; |
14147 | } | |
14148 | { | |
32fe5131 | 14149 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14150 | if (SWIG_arg_fail(3)) SWIG_fail; |
14151 | } | |
14152 | { | |
32fe5131 | 14153 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14154 | if (SWIG_arg_fail(4)) SWIG_fail; |
14155 | } | |
14156 | { | |
32fe5131 | 14157 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
14158 | if (SWIG_arg_fail(5)) SWIG_fail; |
14159 | } | |
14160 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14161 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14162 | { | |
32fe5131 | 14163 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
14164 | if (SWIG_arg_fail(7)) SWIG_fail; |
14165 | } | |
14166 | { | |
32fe5131 | 14167 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
14168 | if (SWIG_arg_fail(8)) SWIG_fail; |
14169 | } | |
14170 | if (obj8) { | |
14171 | { | |
32fe5131 | 14172 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
14173 | if (SWIG_arg_fail(9)) SWIG_fail; |
14174 | } | |
14175 | } | |
14176 | if (obj9) { | |
14177 | { | |
32fe5131 | 14178 | arg10 = static_cast<bool >(SWIG_As_bool(obj9)); |
093d3ff1 RD |
14179 | if (SWIG_arg_fail(10)) SWIG_fail; |
14180 | } | |
14181 | } | |
14182 | if (obj10) { | |
14183 | { | |
32fe5131 | 14184 | arg11 = static_cast<int >(SWIG_As_int(obj10)); |
093d3ff1 RD |
14185 | if (SWIG_arg_fail(11)) SWIG_fail; |
14186 | } | |
14187 | } | |
14188 | if (obj11) { | |
14189 | { | |
32fe5131 | 14190 | arg12 = static_cast<int >(SWIG_As_int(obj11)); |
093d3ff1 RD |
14191 | if (SWIG_arg_fail(12)) SWIG_fail; |
14192 | } | |
d14a1e28 RD |
14193 | } |
14194 | { | |
14195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14196 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); |
d14a1e28 RD |
14197 | |
14198 | wxPyEndAllowThreads(__tstate); | |
14199 | if (PyErr_Occurred()) SWIG_fail; | |
14200 | } | |
093d3ff1 RD |
14201 | { |
14202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14203 | } | |
d14a1e28 RD |
14204 | return resultobj; |
14205 | fail: | |
14206 | return NULL; | |
14207 | } | |
14208 | ||
14209 | ||
093d3ff1 | 14210 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14211 | PyObject *resultobj = NULL; |
d14a1e28 | 14212 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14213 | wxPoint *arg2 = 0 ; |
14214 | wxSize *arg3 = 0 ; | |
14215 | wxDC *arg4 = (wxDC *) 0 ; | |
14216 | wxPoint *arg5 = 0 ; | |
14217 | int arg6 = (int) wxCOPY ; | |
14218 | bool arg7 = (bool) false ; | |
14219 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
14220 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
14221 | bool result; | |
14222 | wxPoint temp2 ; | |
14223 | wxSize temp3 ; | |
14224 | wxPoint temp5 ; | |
14225 | wxPoint temp8 ; | |
d14a1e28 | 14226 | PyObject * obj0 = 0 ; |
994141e6 | 14227 | PyObject * obj1 = 0 ; |
093d3ff1 RD |
14228 | PyObject * obj2 = 0 ; |
14229 | PyObject * obj3 = 0 ; | |
14230 | PyObject * obj4 = 0 ; | |
14231 | PyObject * obj5 = 0 ; | |
14232 | PyObject * obj6 = 0 ; | |
14233 | PyObject * obj7 = 0 ; | |
d14a1e28 | 14234 | char *kwnames[] = { |
093d3ff1 | 14235 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL |
d14a1e28 RD |
14236 | }; |
14237 | ||
093d3ff1 RD |
14238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
14239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14241 | { | |
14242 | arg2 = &temp2; | |
14243 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14244 | } | |
14245 | { | |
14246 | arg3 = &temp3; | |
14247 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14248 | } | |
14249 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14250 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14251 | { | |
14252 | arg5 = &temp5; | |
14253 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14254 | } | |
14255 | if (obj5) { | |
14256 | { | |
32fe5131 | 14257 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
14258 | if (SWIG_arg_fail(6)) SWIG_fail; |
14259 | } | |
14260 | } | |
14261 | if (obj6) { | |
14262 | { | |
32fe5131 | 14263 | arg7 = static_cast<bool >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
14264 | if (SWIG_arg_fail(7)) SWIG_fail; |
14265 | } | |
14266 | } | |
14267 | if (obj7) { | |
14268 | { | |
14269 | arg8 = &temp8; | |
14270 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
14271 | } | |
14272 | } | |
d14a1e28 RD |
14273 | { |
14274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14275 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
d14a1e28 RD |
14276 | |
14277 | wxPyEndAllowThreads(__tstate); | |
14278 | if (PyErr_Occurred()) SWIG_fail; | |
14279 | } | |
093d3ff1 RD |
14280 | { |
14281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14282 | } | |
d14a1e28 RD |
14283 | return resultobj; |
14284 | fail: | |
14285 | return NULL; | |
14286 | } | |
14287 | ||
14288 | ||
093d3ff1 | 14289 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14290 | PyObject *resultobj = NULL; |
d14a1e28 | 14291 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14292 | int arg2 ; |
14293 | int arg3 ; | |
14294 | int arg4 ; | |
14295 | int arg5 ; | |
d14a1e28 RD |
14296 | PyObject * obj0 = 0 ; |
14297 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14298 | PyObject * obj2 = 0 ; |
14299 | PyObject * obj3 = 0 ; | |
14300 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14301 | char *kwnames[] = { |
093d3ff1 | 14302 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
14303 | }; |
14304 | ||
093d3ff1 RD |
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14308 | { | |
32fe5131 | 14309 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14310 | if (SWIG_arg_fail(2)) SWIG_fail; |
14311 | } | |
14312 | { | |
32fe5131 | 14313 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14314 | if (SWIG_arg_fail(3)) SWIG_fail; |
14315 | } | |
14316 | { | |
32fe5131 | 14317 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14318 | if (SWIG_arg_fail(4)) SWIG_fail; |
14319 | } | |
14320 | { | |
32fe5131 | 14321 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 | 14322 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
14323 | } |
14324 | { | |
14325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14326 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
14327 | |
14328 | wxPyEndAllowThreads(__tstate); | |
14329 | if (PyErr_Occurred()) SWIG_fail; | |
14330 | } | |
14331 | Py_INCREF(Py_None); resultobj = Py_None; | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
093d3ff1 | 14338 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14339 | PyObject *resultobj = NULL; |
d14a1e28 | 14340 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14341 | wxPoint *arg2 = 0 ; |
14342 | wxSize *arg3 = 0 ; | |
14343 | wxPoint temp2 ; | |
14344 | wxSize temp3 ; | |
d14a1e28 | 14345 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14346 | PyObject * obj1 = 0 ; |
14347 | PyObject * obj2 = 0 ; | |
d14a1e28 | 14348 | char *kwnames[] = { |
093d3ff1 | 14349 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
14350 | }; |
14351 | ||
093d3ff1 RD |
14352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14355 | { | |
14356 | arg2 = &temp2; | |
14357 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14358 | } | |
14359 | { | |
14360 | arg3 = &temp3; | |
14361 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14362 | } | |
d14a1e28 RD |
14363 | { |
14364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14365 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
14366 | |
14367 | wxPyEndAllowThreads(__tstate); | |
14368 | if (PyErr_Occurred()) SWIG_fail; | |
14369 | } | |
14370 | Py_INCREF(Py_None); resultobj = Py_None; | |
14371 | return resultobj; | |
14372 | fail: | |
14373 | return NULL; | |
14374 | } | |
14375 | ||
14376 | ||
093d3ff1 | 14377 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14378 | PyObject *resultobj = NULL; |
d14a1e28 | 14379 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 14380 | wxRegion *arg2 = 0 ; |
d14a1e28 | 14381 | PyObject * obj0 = 0 ; |
093d3ff1 | 14382 | PyObject * obj1 = 0 ; |
d14a1e28 | 14383 | char *kwnames[] = { |
093d3ff1 | 14384 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
14385 | }; |
14386 | ||
093d3ff1 RD |
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
14388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14390 | { | |
14391 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0); | |
14392 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14393 | if (arg2 == NULL) { | |
14394 | SWIG_null_ref("wxRegion"); | |
14395 | } | |
14396 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14397 | } | |
d14a1e28 RD |
14398 | { |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14400 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); |
d14a1e28 RD |
14401 | |
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
14405 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
093d3ff1 | 14412 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14413 | PyObject *resultobj = NULL; |
d14a1e28 | 14414 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14415 | wxRect *arg2 = 0 ; |
14416 | wxRect temp2 ; | |
d14a1e28 | 14417 | PyObject * obj0 = 0 ; |
093d3ff1 | 14418 | PyObject * obj1 = 0 ; |
d14a1e28 | 14419 | char *kwnames[] = { |
093d3ff1 | 14420 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
14421 | }; |
14422 | ||
093d3ff1 RD |
14423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; |
14424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14426 | { | |
14427 | arg2 = &temp2; | |
14428 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
14429 | } | |
d14a1e28 RD |
14430 | { |
14431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14432 | (arg1)->SetClippingRegion((wxRect const &)*arg2); |
d14a1e28 RD |
14433 | |
14434 | wxPyEndAllowThreads(__tstate); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
093d3ff1 | 14437 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14438 | return resultobj; |
14439 | fail: | |
14440 | return NULL; | |
14441 | } | |
14442 | ||
14443 | ||
093d3ff1 | 14444 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14445 | PyObject *resultobj = NULL; |
d14a1e28 | 14446 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14447 | int arg2 ; |
14448 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14449 | int arg4 = (int) 0 ; | |
14450 | int arg5 = (int) 0 ; | |
d14a1e28 | 14451 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14452 | PyObject * obj1 = 0 ; |
14453 | PyObject * obj2 = 0 ; | |
14454 | PyObject * obj3 = 0 ; | |
d14a1e28 | 14455 | char *kwnames[] = { |
093d3ff1 | 14456 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL |
d14a1e28 RD |
14457 | }; |
14458 | ||
093d3ff1 RD |
14459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14462 | { | |
14463 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14464 | if (arg3 == NULL) SWIG_fail; | |
14465 | } | |
14466 | if (obj2) { | |
14467 | { | |
32fe5131 | 14468 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14469 | if (SWIG_arg_fail(4)) SWIG_fail; |
14470 | } | |
14471 | } | |
14472 | if (obj3) { | |
14473 | { | |
32fe5131 | 14474 | arg5 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14475 | if (SWIG_arg_fail(5)) SWIG_fail; |
14476 | } | |
14477 | } | |
d14a1e28 RD |
14478 | { |
14479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14480 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
14481 | |
14482 | wxPyEndAllowThreads(__tstate); | |
14483 | if (PyErr_Occurred()) SWIG_fail; | |
14484 | } | |
093d3ff1 RD |
14485 | Py_INCREF(Py_None); resultobj = Py_None; |
14486 | { | |
14487 | if (arg3) delete [] arg3; | |
14488 | } | |
d14a1e28 RD |
14489 | return resultobj; |
14490 | fail: | |
093d3ff1 RD |
14491 | { |
14492 | if (arg3) delete [] arg3; | |
14493 | } | |
d14a1e28 RD |
14494 | return NULL; |
14495 | } | |
14496 | ||
14497 | ||
093d3ff1 | 14498 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14499 | PyObject *resultobj = NULL; |
d14a1e28 | 14500 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14501 | int arg2 ; |
14502 | wxPoint *arg3 = (wxPoint *) 0 ; | |
14503 | int arg4 = (int) 0 ; | |
14504 | int arg5 = (int) 0 ; | |
14505 | int arg6 = (int) wxODDEVEN_RULE ; | |
d14a1e28 | 14506 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
14507 | PyObject * obj1 = 0 ; |
14508 | PyObject * obj2 = 0 ; | |
14509 | PyObject * obj3 = 0 ; | |
14510 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14511 | char *kwnames[] = { |
093d3ff1 | 14512 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL |
d14a1e28 RD |
14513 | }; |
14514 | ||
093d3ff1 RD |
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14518 | { | |
14519 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
14520 | if (arg3 == NULL) SWIG_fail; | |
14521 | } | |
14522 | if (obj2) { | |
14523 | { | |
32fe5131 | 14524 | arg4 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14525 | if (SWIG_arg_fail(4)) SWIG_fail; |
14526 | } | |
14527 | } | |
14528 | if (obj3) { | |
14529 | { | |
32fe5131 | 14530 | arg5 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14531 | if (SWIG_arg_fail(5)) SWIG_fail; |
14532 | } | |
14533 | } | |
14534 | if (obj4) { | |
14535 | { | |
32fe5131 | 14536 | arg6 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
14537 | if (SWIG_arg_fail(6)) SWIG_fail; |
14538 | } | |
14539 | } | |
d14a1e28 RD |
14540 | { |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14542 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
14543 | |
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
093d3ff1 RD |
14547 | Py_INCREF(Py_None); resultobj = Py_None; |
14548 | { | |
14549 | if (arg3) delete [] arg3; | |
14550 | } | |
d14a1e28 RD |
14551 | return resultobj; |
14552 | fail: | |
093d3ff1 RD |
14553 | { |
14554 | if (arg3) delete [] arg3; | |
14555 | } | |
d14a1e28 RD |
14556 | return NULL; |
14557 | } | |
14558 | ||
14559 | ||
093d3ff1 | 14560 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14561 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14562 | wxDC *arg1 = (wxDC *) 0 ; |
14563 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
14564 | wxRect *arg3 = 0 ; |
14565 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14566 | int arg5 = (int) -1 ; | |
ae8162c8 | 14567 | bool temp2 = false ; |
093d3ff1 | 14568 | wxRect temp3 ; |
d14a1e28 RD |
14569 | PyObject * obj0 = 0 ; |
14570 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
14571 | PyObject * obj2 = 0 ; |
14572 | PyObject * obj3 = 0 ; | |
14573 | PyObject * obj4 = 0 ; | |
d14a1e28 | 14574 | char *kwnames[] = { |
093d3ff1 | 14575 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d14a1e28 RD |
14576 | }; |
14577 | ||
093d3ff1 RD |
14578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
14579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14581 | { |
14582 | arg2 = wxString_in_helper(obj1); | |
14583 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14584 | temp2 = true; |
d14a1e28 | 14585 | } |
093d3ff1 RD |
14586 | { |
14587 | arg3 = &temp3; | |
14588 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
14589 | } | |
14590 | if (obj3) { | |
14591 | { | |
32fe5131 | 14592 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14593 | if (SWIG_arg_fail(4)) SWIG_fail; |
14594 | } | |
14595 | } | |
14596 | if (obj4) { | |
14597 | { | |
32fe5131 | 14598 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
14599 | if (SWIG_arg_fail(5)) SWIG_fail; |
14600 | } | |
14601 | } | |
d14a1e28 RD |
14602 | { |
14603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14604 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); |
d14a1e28 RD |
14605 | |
14606 | wxPyEndAllowThreads(__tstate); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
14609 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14610 | { |
14611 | if (temp2) | |
14612 | delete arg2; | |
14613 | } | |
14614 | return resultobj; | |
14615 | fail: | |
14616 | { | |
14617 | if (temp2) | |
14618 | delete arg2; | |
14619 | } | |
14620 | return NULL; | |
14621 | } | |
14622 | ||
14623 | ||
093d3ff1 | 14624 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14626 | wxDC *arg1 = (wxDC *) 0 ; |
14627 | wxString *arg2 = 0 ; | |
093d3ff1 RD |
14628 | wxBitmap *arg3 = 0 ; |
14629 | wxRect *arg4 = 0 ; | |
14630 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
14631 | int arg6 = (int) -1 ; | |
14632 | wxRect result; | |
ae8162c8 | 14633 | bool temp2 = false ; |
093d3ff1 | 14634 | wxRect temp4 ; |
d14a1e28 RD |
14635 | PyObject * obj0 = 0 ; |
14636 | PyObject * obj1 = 0 ; | |
14637 | PyObject * obj2 = 0 ; | |
093d3ff1 RD |
14638 | PyObject * obj3 = 0 ; |
14639 | PyObject * obj4 = 0 ; | |
14640 | PyObject * obj5 = 0 ; | |
d14a1e28 | 14641 | char *kwnames[] = { |
093d3ff1 | 14642 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL |
d14a1e28 RD |
14643 | }; |
14644 | ||
093d3ff1 RD |
14645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
14646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14648 | { |
14649 | arg2 = wxString_in_helper(obj1); | |
14650 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14651 | temp2 = true; |
d14a1e28 | 14652 | } |
093d3ff1 RD |
14653 | { |
14654 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
14655 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14656 | if (arg3 == NULL) { | |
14657 | SWIG_null_ref("wxBitmap"); | |
14658 | } | |
14659 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14660 | } | |
14661 | { | |
14662 | arg4 = &temp4; | |
14663 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
14664 | } | |
14665 | if (obj4) { | |
14666 | { | |
32fe5131 | 14667 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
14668 | if (SWIG_arg_fail(5)) SWIG_fail; |
14669 | } | |
14670 | } | |
14671 | if (obj5) { | |
14672 | { | |
32fe5131 | 14673 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
14674 | if (SWIG_arg_fail(6)) SWIG_fail; |
14675 | } | |
d14a1e28 RD |
14676 | } |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14679 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); |
d14a1e28 RD |
14680 | |
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
093d3ff1 RD |
14684 | { |
14685 | wxRect * resultptr; | |
32fe5131 | 14686 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
093d3ff1 RD |
14687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
14688 | } | |
d14a1e28 RD |
14689 | { |
14690 | if (temp2) | |
14691 | delete arg2; | |
14692 | } | |
14693 | return resultobj; | |
14694 | fail: | |
14695 | { | |
14696 | if (temp2) | |
14697 | delete arg2; | |
14698 | } | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
093d3ff1 | 14703 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14704 | PyObject *resultobj = NULL; |
d14a1e28 | 14705 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
14706 | int arg2 ; |
14707 | wxPoint *arg3 = (wxPoint *) 0 ; | |
d14a1e28 RD |
14708 | PyObject * obj0 = 0 ; |
14709 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14710 | char *kwnames[] = { |
093d3ff1 | 14711 | (char *) "self",(char *) "points", NULL |
d14a1e28 RD |
14712 | }; |
14713 | ||
093d3ff1 RD |
14714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; |
14715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 14717 | { |
093d3ff1 RD |
14718 | arg3 = wxPoint_LIST_helper(obj1, &arg2); |
14719 | if (arg3 == NULL) SWIG_fail; | |
d14a1e28 RD |
14720 | } |
14721 | { | |
14722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14723 | (arg1)->DrawSpline(arg2,arg3); |
d14a1e28 RD |
14724 | |
14725 | wxPyEndAllowThreads(__tstate); | |
14726 | if (PyErr_Occurred()) SWIG_fail; | |
14727 | } | |
14728 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 | 14729 | { |
093d3ff1 | 14730 | if (arg3) delete [] arg3; |
d14a1e28 RD |
14731 | } |
14732 | return resultobj; | |
14733 | fail: | |
14734 | { | |
093d3ff1 | 14735 | if (arg3) delete [] arg3; |
d14a1e28 RD |
14736 | } |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
093d3ff1 | 14741 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14742 | PyObject *resultobj = NULL; |
093d3ff1 RD |
14743 | wxDC *arg1 = (wxDC *) 0 ; |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
14750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14752 | { | |
14753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14754 | (arg1)->Clear(); | |
14755 | ||
14756 | wxPyEndAllowThreads(__tstate); | |
14757 | if (PyErr_Occurred()) SWIG_fail; | |
14758 | } | |
14759 | Py_INCREF(Py_None); resultobj = Py_None; | |
14760 | return resultobj; | |
14761 | fail: | |
14762 | return NULL; | |
14763 | } | |
14764 | ||
14765 | ||
14766 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 14767 | PyObject *resultobj = NULL; |
db914595 RD |
14768 | wxDC *arg1 = (wxDC *) 0 ; |
14769 | wxString *arg2 = 0 ; | |
093d3ff1 | 14770 | bool result; |
ae8162c8 | 14771 | bool temp2 = false ; |
db914595 RD |
14772 | PyObject * obj0 = 0 ; |
14773 | PyObject * obj1 = 0 ; | |
14774 | char *kwnames[] = { | |
093d3ff1 | 14775 | (char *) "self",(char *) "message", NULL |
db914595 RD |
14776 | }; |
14777 | ||
093d3ff1 RD |
14778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; |
14779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db914595 RD |
14781 | { |
14782 | arg2 = wxString_in_helper(obj1); | |
14783 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14784 | temp2 = true; |
db914595 RD |
14785 | } |
14786 | { | |
14787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14788 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); |
db914595 RD |
14789 | |
14790 | wxPyEndAllowThreads(__tstate); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | } | |
14793 | { | |
093d3ff1 | 14794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
db914595 RD |
14795 | } |
14796 | { | |
14797 | if (temp2) | |
14798 | delete arg2; | |
14799 | } | |
14800 | return resultobj; | |
14801 | fail: | |
14802 | { | |
14803 | if (temp2) | |
14804 | delete arg2; | |
14805 | } | |
14806 | return NULL; | |
14807 | } | |
14808 | ||
14809 | ||
093d3ff1 | 14810 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14811 | PyObject *resultobj = NULL; |
322913ce | 14812 | wxDC *arg1 = (wxDC *) 0 ; |
322913ce RD |
14813 | PyObject * obj0 = 0 ; |
14814 | char *kwnames[] = { | |
14815 | (char *) "self", NULL | |
14816 | }; | |
14817 | ||
093d3ff1 RD |
14818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; |
14819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
322913ce RD |
14821 | { |
14822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14823 | (arg1)->EndDoc(); |
322913ce RD |
14824 | |
14825 | wxPyEndAllowThreads(__tstate); | |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
14827 | } | |
093d3ff1 | 14828 | Py_INCREF(Py_None); resultobj = Py_None; |
322913ce RD |
14829 | return resultobj; |
14830 | fail: | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
093d3ff1 | 14835 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14836 | PyObject *resultobj = NULL; |
d14a1e28 | 14837 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 RD |
14838 | PyObject * obj0 = 0 ; |
14839 | char *kwnames[] = { | |
14840 | (char *) "self", NULL | |
14841 | }; | |
14842 | ||
093d3ff1 RD |
14843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; |
14844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14846 | { |
14847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14848 | (arg1)->StartPage(); |
d14a1e28 RD |
14849 | |
14850 | wxPyEndAllowThreads(__tstate); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | } | |
14853 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14854 | return resultobj; |
14855 | fail: | |
14856 | return NULL; | |
14857 | } | |
14858 | ||
14859 | ||
093d3ff1 | 14860 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14861 | PyObject *resultobj = NULL; |
d14a1e28 | 14862 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 RD |
14863 | PyObject * obj0 = 0 ; |
14864 | char *kwnames[] = { | |
14865 | (char *) "self", NULL | |
14866 | }; | |
14867 | ||
093d3ff1 RD |
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; |
14869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14871 | { |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14873 | (arg1)->EndPage(); |
d14a1e28 RD |
14874 | |
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
093d3ff1 | 14878 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14879 | return resultobj; |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
093d3ff1 | 14885 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14886 | PyObject *resultobj = NULL; |
d14a1e28 | 14887 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 14888 | wxFont *arg2 = 0 ; |
d14a1e28 | 14889 | PyObject * obj0 = 0 ; |
093d3ff1 | 14890 | PyObject * obj1 = 0 ; |
d14a1e28 | 14891 | char *kwnames[] = { |
093d3ff1 | 14892 | (char *) "self",(char *) "font", NULL |
d14a1e28 RD |
14893 | }; |
14894 | ||
093d3ff1 RD |
14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; |
14896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14898 | { | |
14899 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
14900 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14901 | if (arg2 == NULL) { | |
14902 | SWIG_null_ref("wxFont"); | |
14903 | } | |
14904 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14905 | } | |
d14a1e28 RD |
14906 | { |
14907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14908 | (arg1)->SetFont((wxFont const &)*arg2); |
d14a1e28 RD |
14909 | |
14910 | wxPyEndAllowThreads(__tstate); | |
14911 | if (PyErr_Occurred()) SWIG_fail; | |
14912 | } | |
14913 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
14914 | return resultobj; |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
093d3ff1 | 14920 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14921 | PyObject *resultobj = NULL; |
d14a1e28 | 14922 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 14923 | wxPen *arg2 = 0 ; |
d14a1e28 | 14924 | PyObject * obj0 = 0 ; |
994141e6 | 14925 | PyObject * obj1 = 0 ; |
d14a1e28 | 14926 | char *kwnames[] = { |
093d3ff1 | 14927 | (char *) "self",(char *) "pen", NULL |
d14a1e28 RD |
14928 | }; |
14929 | ||
093d3ff1 RD |
14930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; |
14931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14933 | { | |
14934 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
14935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14936 | if (arg2 == NULL) { | |
14937 | SWIG_null_ref("wxPen"); | |
14938 | } | |
14939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14940 | } | |
d14a1e28 RD |
14941 | { |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14943 | (arg1)->SetPen((wxPen const &)*arg2); |
d14a1e28 RD |
14944 | |
14945 | wxPyEndAllowThreads(__tstate); | |
14946 | if (PyErr_Occurred()) SWIG_fail; | |
14947 | } | |
093d3ff1 | 14948 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14949 | return resultobj; |
14950 | fail: | |
14951 | return NULL; | |
14952 | } | |
14953 | ||
14954 | ||
093d3ff1 | 14955 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14956 | PyObject *resultobj = NULL; |
d14a1e28 | 14957 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 14958 | wxBrush *arg2 = 0 ; |
d14a1e28 | 14959 | PyObject * obj0 = 0 ; |
994141e6 | 14960 | PyObject * obj1 = 0 ; |
d14a1e28 | 14961 | char *kwnames[] = { |
093d3ff1 | 14962 | (char *) "self",(char *) "brush", NULL |
d14a1e28 RD |
14963 | }; |
14964 | ||
093d3ff1 RD |
14965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; |
14966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
14967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14968 | { | |
14969 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
14970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14971 | if (arg2 == NULL) { | |
14972 | SWIG_null_ref("wxBrush"); | |
14973 | } | |
14974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14975 | } | |
d14a1e28 RD |
14976 | { |
14977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14978 | (arg1)->SetBrush((wxBrush const &)*arg2); |
d14a1e28 RD |
14979 | |
14980 | wxPyEndAllowThreads(__tstate); | |
14981 | if (PyErr_Occurred()) SWIG_fail; | |
14982 | } | |
093d3ff1 | 14983 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
14984 | return resultobj; |
14985 | fail: | |
14986 | return NULL; | |
14987 | } | |
14988 | ||
14989 | ||
093d3ff1 | 14990 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14991 | PyObject *resultobj = NULL; |
d14a1e28 | 14992 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 14993 | wxBrush *arg2 = 0 ; |
d14a1e28 | 14994 | PyObject * obj0 = 0 ; |
994141e6 | 14995 | PyObject * obj1 = 0 ; |
d14a1e28 | 14996 | char *kwnames[] = { |
093d3ff1 | 14997 | (char *) "self",(char *) "brush", NULL |
d14a1e28 RD |
14998 | }; |
14999 | ||
093d3ff1 RD |
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; |
15001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15003 | { | |
15004 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
15005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15006 | if (arg2 == NULL) { | |
15007 | SWIG_null_ref("wxBrush"); | |
15008 | } | |
15009 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15010 | } | |
d14a1e28 RD |
15011 | { |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15013 | (arg1)->SetBackground((wxBrush const &)*arg2); |
d14a1e28 RD |
15014 | |
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
093d3ff1 | 15018 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15019 | return resultobj; |
15020 | fail: | |
15021 | return NULL; | |
15022 | } | |
15023 | ||
15024 | ||
093d3ff1 | 15025 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15026 | PyObject *resultobj = NULL; |
d14a1e28 | 15027 | wxDC *arg1 = (wxDC *) 0 ; |
e811c8ce | 15028 | int arg2 ; |
d14a1e28 | 15029 | PyObject * obj0 = 0 ; |
994141e6 | 15030 | PyObject * obj1 = 0 ; |
d14a1e28 | 15031 | char *kwnames[] = { |
093d3ff1 | 15032 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
15033 | }; |
15034 | ||
093d3ff1 RD |
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15038 | { | |
32fe5131 | 15039 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15040 | if (SWIG_arg_fail(2)) SWIG_fail; |
15041 | } | |
d14a1e28 RD |
15042 | { |
15043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15044 | (arg1)->SetBackgroundMode(arg2); |
d14a1e28 RD |
15045 | |
15046 | wxPyEndAllowThreads(__tstate); | |
15047 | if (PyErr_Occurred()) SWIG_fail; | |
15048 | } | |
093d3ff1 | 15049 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15050 | return resultobj; |
15051 | fail: | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
093d3ff1 | 15056 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15057 | PyObject *resultobj = NULL; |
d14a1e28 | 15058 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15059 | wxPalette *arg2 = 0 ; |
d14a1e28 | 15060 | PyObject * obj0 = 0 ; |
994141e6 | 15061 | PyObject * obj1 = 0 ; |
d14a1e28 | 15062 | char *kwnames[] = { |
093d3ff1 | 15063 | (char *) "self",(char *) "palette", NULL |
d14a1e28 RD |
15064 | }; |
15065 | ||
093d3ff1 RD |
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
15067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15069 | { | |
15070 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0); | |
15071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15072 | if (arg2 == NULL) { | |
15073 | SWIG_null_ref("wxPalette"); | |
15074 | } | |
15075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15076 | } | |
d14a1e28 RD |
15077 | { |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15079 | (arg1)->SetPalette((wxPalette const &)*arg2); |
d14a1e28 RD |
15080 | |
15081 | wxPyEndAllowThreads(__tstate); | |
15082 | if (PyErr_Occurred()) SWIG_fail; | |
15083 | } | |
093d3ff1 | 15084 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15085 | return resultobj; |
15086 | fail: | |
15087 | return NULL; | |
15088 | } | |
15089 | ||
15090 | ||
093d3ff1 | 15091 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15092 | PyObject *resultobj = NULL; |
d14a1e28 | 15093 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 RD |
15094 | PyObject * obj0 = 0 ; |
15095 | char *kwnames[] = { | |
093d3ff1 | 15096 | (char *) "self", NULL |
d14a1e28 RD |
15097 | }; |
15098 | ||
093d3ff1 RD |
15099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; |
15100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15102 | { |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15104 | (arg1)->DestroyClippingRegion(); |
d14a1e28 RD |
15105 | |
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
093d3ff1 | 15109 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15110 | return resultobj; |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
093d3ff1 | 15116 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15117 | PyObject *resultobj = NULL; |
d14a1e28 | 15118 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15119 | int *arg2 = (int *) 0 ; |
15120 | int *arg3 = (int *) 0 ; | |
15121 | int *arg4 = (int *) 0 ; | |
15122 | int *arg5 = (int *) 0 ; | |
15123 | int temp2 ; | |
15124 | int res2 = 0 ; | |
15125 | int temp3 ; | |
15126 | int res3 = 0 ; | |
15127 | int temp4 ; | |
15128 | int res4 = 0 ; | |
15129 | int temp5 ; | |
15130 | int res5 = 0 ; | |
d14a1e28 RD |
15131 | PyObject * obj0 = 0 ; |
15132 | char *kwnames[] = { | |
093d3ff1 | 15133 | (char *) "self", NULL |
d14a1e28 RD |
15134 | }; |
15135 | ||
093d3ff1 RD |
15136 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15137 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15138 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15139 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
15141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15143 | { |
15144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15145 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
15146 | |
15147 | wxPyEndAllowThreads(__tstate); | |
15148 | if (PyErr_Occurred()) SWIG_fail; | |
15149 | } | |
093d3ff1 RD |
15150 | Py_INCREF(Py_None); resultobj = Py_None; |
15151 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15152 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15153 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15154 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15155 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15156 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15157 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15158 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15159 | return resultobj; |
15160 | fail: | |
15161 | return NULL; | |
15162 | } | |
15163 | ||
15164 | ||
093d3ff1 | 15165 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15166 | PyObject *resultobj = NULL; |
d14a1e28 | 15167 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15168 | wxRect result; |
d14a1e28 RD |
15169 | PyObject * obj0 = 0 ; |
15170 | char *kwnames[] = { | |
093d3ff1 | 15171 | (char *) "self", NULL |
d14a1e28 RD |
15172 | }; |
15173 | ||
093d3ff1 RD |
15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; |
15175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15179 | result = wxDC_GetClippingRect(arg1); |
d14a1e28 RD |
15180 | |
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
093d3ff1 RD |
15184 | { |
15185 | wxRect * resultptr; | |
32fe5131 | 15186 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
093d3ff1 RD |
15187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
15188 | } | |
d14a1e28 RD |
15189 | return resultobj; |
15190 | fail: | |
15191 | return NULL; | |
15192 | } | |
15193 | ||
15194 | ||
093d3ff1 | 15195 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15196 | PyObject *resultobj = NULL; |
d14a1e28 | 15197 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15198 | int result; |
d14a1e28 RD |
15199 | PyObject * obj0 = 0 ; |
15200 | char *kwnames[] = { | |
15201 | (char *) "self", NULL | |
15202 | }; | |
15203 | ||
093d3ff1 RD |
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; |
15205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15207 | { |
15208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15209 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
15210 | |
15211 | wxPyEndAllowThreads(__tstate); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
4f89f6a3 | 15214 | { |
32fe5131 | 15215 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 15216 | } |
d14a1e28 RD |
15217 | return resultobj; |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
093d3ff1 | 15223 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15224 | PyObject *resultobj = NULL; |
d14a1e28 | 15225 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15226 | int result; |
d14a1e28 RD |
15227 | PyObject * obj0 = 0 ; |
15228 | char *kwnames[] = { | |
15229 | (char *) "self", NULL | |
15230 | }; | |
15231 | ||
093d3ff1 RD |
15232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; |
15233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15235 | { |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15237 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
15238 | |
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
4f89f6a3 | 15242 | { |
32fe5131 | 15243 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 15244 | } |
d14a1e28 RD |
15245 | return resultobj; |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
093d3ff1 | 15251 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15252 | PyObject *resultobj = NULL; |
d14a1e28 | 15253 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15254 | wxString *arg2 = 0 ; |
15255 | int *arg3 = (int *) 0 ; | |
15256 | int *arg4 = (int *) 0 ; | |
15257 | bool temp2 = false ; | |
15258 | int temp3 ; | |
15259 | int res3 = 0 ; | |
15260 | int temp4 ; | |
15261 | int res4 = 0 ; | |
d14a1e28 | 15262 | PyObject * obj0 = 0 ; |
093d3ff1 | 15263 | PyObject * obj1 = 0 ; |
d14a1e28 | 15264 | char *kwnames[] = { |
093d3ff1 | 15265 | (char *) "self",(char *) "string", NULL |
d14a1e28 RD |
15266 | }; |
15267 | ||
093d3ff1 RD |
15268 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15269 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15273 | { | |
15274 | arg2 = wxString_in_helper(obj1); | |
15275 | if (arg2 == NULL) SWIG_fail; | |
15276 | temp2 = true; | |
15277 | } | |
d14a1e28 RD |
15278 | { |
15279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15280 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
15281 | |
15282 | wxPyEndAllowThreads(__tstate); | |
15283 | if (PyErr_Occurred()) SWIG_fail; | |
15284 | } | |
093d3ff1 RD |
15285 | Py_INCREF(Py_None); resultobj = Py_None; |
15286 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15287 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15288 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15289 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15290 | { | |
15291 | if (temp2) | |
15292 | delete arg2; | |
15293 | } | |
d14a1e28 RD |
15294 | return resultobj; |
15295 | fail: | |
093d3ff1 RD |
15296 | { |
15297 | if (temp2) | |
15298 | delete arg2; | |
15299 | } | |
d14a1e28 RD |
15300 | return NULL; |
15301 | } | |
15302 | ||
15303 | ||
093d3ff1 | 15304 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15305 | PyObject *resultobj = NULL; |
d14a1e28 | 15306 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15307 | wxString *arg2 = 0 ; |
15308 | int *arg3 = (int *) 0 ; | |
15309 | int *arg4 = (int *) 0 ; | |
15310 | int *arg5 = (int *) 0 ; | |
15311 | int *arg6 = (int *) 0 ; | |
15312 | wxFont *arg7 = (wxFont *) NULL ; | |
15313 | bool temp2 = false ; | |
15314 | int temp3 ; | |
15315 | int res3 = 0 ; | |
15316 | int temp4 ; | |
15317 | int res4 = 0 ; | |
15318 | int temp5 ; | |
15319 | int res5 = 0 ; | |
15320 | int temp6 ; | |
15321 | int res6 = 0 ; | |
d14a1e28 | 15322 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
15323 | PyObject * obj1 = 0 ; |
15324 | PyObject * obj2 = 0 ; | |
d14a1e28 | 15325 | char *kwnames[] = { |
093d3ff1 | 15326 | (char *) "self",(char *) "string",(char *) "font", NULL |
d14a1e28 RD |
15327 | }; |
15328 | ||
093d3ff1 RD |
15329 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15330 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15331 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15332 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15336 | { | |
15337 | arg2 = wxString_in_helper(obj1); | |
15338 | if (arg2 == NULL) SWIG_fail; | |
15339 | temp2 = true; | |
15340 | } | |
15341 | if (obj2) { | |
15342 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15343 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15344 | } | |
d14a1e28 RD |
15345 | { |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15347 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
15348 | |
15349 | wxPyEndAllowThreads(__tstate); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | } | |
093d3ff1 RD |
15352 | Py_INCREF(Py_None); resultobj = Py_None; |
15353 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15354 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15355 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15356 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15357 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15358 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
15359 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
15360 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 | 15361 | { |
093d3ff1 RD |
15362 | if (temp2) |
15363 | delete arg2; | |
d14a1e28 RD |
15364 | } |
15365 | return resultobj; | |
15366 | fail: | |
093d3ff1 RD |
15367 | { |
15368 | if (temp2) | |
15369 | delete arg2; | |
15370 | } | |
d14a1e28 RD |
15371 | return NULL; |
15372 | } | |
15373 | ||
15374 | ||
093d3ff1 | 15375 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15376 | PyObject *resultobj = NULL; |
d14a1e28 | 15377 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15378 | wxString *arg2 = 0 ; |
15379 | int *arg3 = (int *) 0 ; | |
15380 | int *arg4 = (int *) 0 ; | |
15381 | int *arg5 = (int *) 0 ; | |
15382 | wxFont *arg6 = (wxFont *) NULL ; | |
15383 | bool temp2 = false ; | |
15384 | int temp3 ; | |
15385 | int res3 = 0 ; | |
15386 | int temp4 ; | |
15387 | int res4 = 0 ; | |
15388 | int temp5 ; | |
15389 | int res5 = 0 ; | |
d14a1e28 | 15390 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
15391 | PyObject * obj1 = 0 ; |
15392 | PyObject * obj2 = 0 ; | |
d14a1e28 | 15393 | char *kwnames[] = { |
093d3ff1 | 15394 | (char *) "self",(char *) "text",(char *) "font", NULL |
d14a1e28 RD |
15395 | }; |
15396 | ||
093d3ff1 RD |
15397 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
15398 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15399 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15403 | { | |
15404 | arg2 = wxString_in_helper(obj1); | |
15405 | if (arg2 == NULL) SWIG_fail; | |
15406 | temp2 = true; | |
15407 | } | |
15408 | if (obj2) { | |
15409 | SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
15410 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15411 | } | |
d14a1e28 RD |
15412 | { |
15413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15414 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
15415 | |
15416 | wxPyEndAllowThreads(__tstate); | |
15417 | if (PyErr_Occurred()) SWIG_fail; | |
15418 | } | |
093d3ff1 RD |
15419 | Py_INCREF(Py_None); resultobj = Py_None; |
15420 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15421 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15422 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15423 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15424 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15425 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
4f89f6a3 | 15426 | { |
093d3ff1 RD |
15427 | if (temp2) |
15428 | delete arg2; | |
4f89f6a3 | 15429 | } |
d14a1e28 RD |
15430 | return resultobj; |
15431 | fail: | |
093d3ff1 RD |
15432 | { |
15433 | if (temp2) | |
15434 | delete arg2; | |
15435 | } | |
d14a1e28 RD |
15436 | return NULL; |
15437 | } | |
15438 | ||
15439 | ||
093d3ff1 | 15440 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15441 | PyObject *resultobj = NULL; |
d14a1e28 | 15442 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15443 | wxString *arg2 = 0 ; |
15444 | wxArrayInt result; | |
15445 | bool temp2 = false ; | |
d14a1e28 | 15446 | PyObject * obj0 = 0 ; |
093d3ff1 | 15447 | PyObject * obj1 = 0 ; |
d14a1e28 | 15448 | char *kwnames[] = { |
093d3ff1 | 15449 | (char *) "self",(char *) "text", NULL |
d14a1e28 RD |
15450 | }; |
15451 | ||
093d3ff1 RD |
15452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; |
15453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15455 | { | |
15456 | arg2 = wxString_in_helper(obj1); | |
15457 | if (arg2 == NULL) SWIG_fail; | |
15458 | temp2 = true; | |
15459 | } | |
d14a1e28 RD |
15460 | { |
15461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15462 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
15463 | |
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
093d3ff1 RD |
15467 | { |
15468 | resultobj = PyList_New(0); | |
15469 | size_t idx; | |
15470 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
15471 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
15472 | PyList_Append(resultobj, val); | |
15473 | Py_DECREF(val); | |
15474 | } | |
15475 | } | |
15476 | { | |
15477 | if (temp2) | |
15478 | delete arg2; | |
15479 | } | |
d14a1e28 RD |
15480 | return resultobj; |
15481 | fail: | |
093d3ff1 RD |
15482 | { |
15483 | if (temp2) | |
15484 | delete arg2; | |
15485 | } | |
d14a1e28 RD |
15486 | return NULL; |
15487 | } | |
15488 | ||
15489 | ||
093d3ff1 | 15490 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15491 | PyObject *resultobj = NULL; |
d14a1e28 | 15492 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15493 | wxSize result; |
d14a1e28 RD |
15494 | PyObject * obj0 = 0 ; |
15495 | char *kwnames[] = { | |
15496 | (char *) "self", NULL | |
15497 | }; | |
15498 | ||
093d3ff1 RD |
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; |
15500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15502 | { |
15503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15504 | result = (arg1)->GetSize(); |
d14a1e28 RD |
15505 | |
15506 | wxPyEndAllowThreads(__tstate); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
4276dc52 | 15509 | { |
093d3ff1 | 15510 | wxSize * resultptr; |
32fe5131 | 15511 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 | 15512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
4276dc52 | 15513 | } |
d14a1e28 RD |
15514 | return resultobj; |
15515 | fail: | |
15516 | return NULL; | |
15517 | } | |
15518 | ||
15519 | ||
093d3ff1 | 15520 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15521 | PyObject *resultobj = NULL; |
d14a1e28 | 15522 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15523 | int *arg2 = (int *) 0 ; |
15524 | int *arg3 = (int *) 0 ; | |
15525 | int temp2 ; | |
15526 | int res2 = 0 ; | |
15527 | int temp3 ; | |
15528 | int res3 = 0 ; | |
d14a1e28 RD |
15529 | PyObject * obj0 = 0 ; |
15530 | char *kwnames[] = { | |
15531 | (char *) "self", NULL | |
15532 | }; | |
15533 | ||
093d3ff1 RD |
15534 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15535 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15539 | { |
15540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15541 | (arg1)->GetSize(arg2,arg3); |
d14a1e28 RD |
15542 | |
15543 | wxPyEndAllowThreads(__tstate); | |
15544 | if (PyErr_Occurred()) SWIG_fail; | |
15545 | } | |
093d3ff1 RD |
15546 | Py_INCREF(Py_None); resultobj = Py_None; |
15547 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15548 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15549 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15550 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15551 | return resultobj; |
15552 | fail: | |
15553 | return NULL; | |
15554 | } | |
15555 | ||
15556 | ||
093d3ff1 | 15557 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15558 | PyObject *resultobj = NULL; |
d14a1e28 | 15559 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15560 | wxSize result; |
d14a1e28 RD |
15561 | PyObject * obj0 = 0 ; |
15562 | char *kwnames[] = { | |
15563 | (char *) "self", NULL | |
15564 | }; | |
15565 | ||
093d3ff1 RD |
15566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15569 | { |
15570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15571 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
15572 | |
15573 | wxPyEndAllowThreads(__tstate); | |
15574 | if (PyErr_Occurred()) SWIG_fail; | |
15575 | } | |
4276dc52 | 15576 | { |
093d3ff1 | 15577 | wxSize * resultptr; |
32fe5131 | 15578 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 | 15579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
4276dc52 | 15580 | } |
d14a1e28 RD |
15581 | return resultobj; |
15582 | fail: | |
15583 | return NULL; | |
15584 | } | |
15585 | ||
15586 | ||
093d3ff1 | 15587 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15588 | PyObject *resultobj = NULL; |
d14a1e28 | 15589 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15590 | int *arg2 = (int *) 0 ; |
15591 | int *arg3 = (int *) 0 ; | |
15592 | int temp2 ; | |
15593 | int res2 = 0 ; | |
15594 | int temp3 ; | |
15595 | int res3 = 0 ; | |
d14a1e28 RD |
15596 | PyObject * obj0 = 0 ; |
15597 | char *kwnames[] = { | |
15598 | (char *) "self", NULL | |
15599 | }; | |
15600 | ||
093d3ff1 RD |
15601 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15602 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
15604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
d14a1e28 RD |
15609 | |
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
093d3ff1 RD |
15613 | Py_INCREF(Py_None); resultobj = Py_None; |
15614 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15615 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15616 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15617 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
15618 | return resultobj; |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
093d3ff1 | 15624 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15625 | PyObject *resultobj = NULL; |
d14a1e28 | 15626 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15627 | int arg2 ; |
15628 | int result; | |
d14a1e28 | 15629 | PyObject * obj0 = 0 ; |
093d3ff1 | 15630 | PyObject * obj1 = 0 ; |
d14a1e28 | 15631 | char *kwnames[] = { |
093d3ff1 | 15632 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15633 | }; |
15634 | ||
093d3ff1 RD |
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15638 | { | |
32fe5131 | 15639 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15640 | if (SWIG_arg_fail(2)) SWIG_fail; |
15641 | } | |
d14a1e28 RD |
15642 | { |
15643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15644 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
15645 | |
15646 | wxPyEndAllowThreads(__tstate); | |
15647 | if (PyErr_Occurred()) SWIG_fail; | |
15648 | } | |
093d3ff1 | 15649 | { |
32fe5131 | 15650 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15651 | } |
d14a1e28 RD |
15652 | return resultobj; |
15653 | fail: | |
15654 | return NULL; | |
15655 | } | |
15656 | ||
15657 | ||
093d3ff1 | 15658 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15659 | PyObject *resultobj = NULL; |
d14a1e28 | 15660 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15661 | int arg2 ; |
15662 | int result; | |
d14a1e28 | 15663 | PyObject * obj0 = 0 ; |
093d3ff1 | 15664 | PyObject * obj1 = 0 ; |
d14a1e28 | 15665 | char *kwnames[] = { |
093d3ff1 | 15666 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15667 | }; |
15668 | ||
093d3ff1 RD |
15669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15672 | { | |
32fe5131 | 15673 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15674 | if (SWIG_arg_fail(2)) SWIG_fail; |
15675 | } | |
d14a1e28 RD |
15676 | { |
15677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15678 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
15679 | |
15680 | wxPyEndAllowThreads(__tstate); | |
15681 | if (PyErr_Occurred()) SWIG_fail; | |
15682 | } | |
093d3ff1 | 15683 | { |
32fe5131 | 15684 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15685 | } |
d14a1e28 RD |
15686 | return resultobj; |
15687 | fail: | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
093d3ff1 | 15692 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15693 | PyObject *resultobj = NULL; |
d14a1e28 | 15694 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15695 | int arg2 ; |
15696 | int result; | |
d14a1e28 RD |
15697 | PyObject * obj0 = 0 ; |
15698 | PyObject * obj1 = 0 ; | |
15699 | char *kwnames[] = { | |
093d3ff1 | 15700 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15701 | }; |
15702 | ||
093d3ff1 RD |
15703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 15706 | { |
32fe5131 | 15707 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 15708 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
15709 | } |
15710 | { | |
15711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15712 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
15713 | |
15714 | wxPyEndAllowThreads(__tstate); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
093d3ff1 | 15717 | { |
32fe5131 | 15718 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15719 | } |
d14a1e28 RD |
15720 | return resultobj; |
15721 | fail: | |
15722 | return NULL; | |
15723 | } | |
15724 | ||
15725 | ||
093d3ff1 | 15726 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15727 | PyObject *resultobj = NULL; |
d14a1e28 | 15728 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15729 | int arg2 ; |
15730 | int result; | |
d14a1e28 RD |
15731 | PyObject * obj0 = 0 ; |
15732 | PyObject * obj1 = 0 ; | |
15733 | char *kwnames[] = { | |
093d3ff1 | 15734 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15735 | }; |
15736 | ||
093d3ff1 RD |
15737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 15740 | { |
32fe5131 | 15741 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 15742 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
15743 | } |
15744 | { | |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15746 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
15747 | |
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
093d3ff1 | 15751 | { |
32fe5131 | 15752 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15753 | } |
d14a1e28 RD |
15754 | return resultobj; |
15755 | fail: | |
15756 | return NULL; | |
15757 | } | |
15758 | ||
15759 | ||
093d3ff1 | 15760 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15761 | PyObject *resultobj = NULL; |
d14a1e28 | 15762 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15763 | int arg2 ; |
d14a1e28 RD |
15764 | int result; |
15765 | PyObject * obj0 = 0 ; | |
093d3ff1 | 15766 | PyObject * obj1 = 0 ; |
d14a1e28 | 15767 | char *kwnames[] = { |
093d3ff1 | 15768 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15769 | }; |
15770 | ||
093d3ff1 RD |
15771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15774 | { | |
32fe5131 | 15775 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15776 | if (SWIG_arg_fail(2)) SWIG_fail; |
15777 | } | |
d14a1e28 RD |
15778 | { |
15779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15780 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
15781 | |
15782 | wxPyEndAllowThreads(__tstate); | |
15783 | if (PyErr_Occurred()) SWIG_fail; | |
15784 | } | |
093d3ff1 | 15785 | { |
32fe5131 | 15786 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15787 | } |
d14a1e28 RD |
15788 | return resultobj; |
15789 | fail: | |
15790 | return NULL; | |
15791 | } | |
15792 | ||
15793 | ||
093d3ff1 | 15794 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15795 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15796 | wxDC *arg1 = (wxDC *) 0 ; |
15797 | int arg2 ; | |
093d3ff1 | 15798 | int result; |
d14a1e28 | 15799 | PyObject * obj0 = 0 ; |
994141e6 | 15800 | PyObject * obj1 = 0 ; |
d14a1e28 | 15801 | char *kwnames[] = { |
093d3ff1 | 15802 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15803 | }; |
15804 | ||
093d3ff1 RD |
15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15808 | { | |
32fe5131 | 15809 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15810 | if (SWIG_arg_fail(2)) SWIG_fail; |
15811 | } | |
d14a1e28 RD |
15812 | { |
15813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15814 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
15815 | |
15816 | wxPyEndAllowThreads(__tstate); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | } | |
093d3ff1 | 15819 | { |
32fe5131 | 15820 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15821 | } |
d14a1e28 RD |
15822 | return resultobj; |
15823 | fail: | |
15824 | return NULL; | |
15825 | } | |
15826 | ||
15827 | ||
093d3ff1 | 15828 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15829 | PyObject *resultobj = NULL; |
d14a1e28 | 15830 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15831 | int arg2 ; |
15832 | int result; | |
d14a1e28 | 15833 | PyObject * obj0 = 0 ; |
093d3ff1 | 15834 | PyObject * obj1 = 0 ; |
d14a1e28 | 15835 | char *kwnames[] = { |
093d3ff1 | 15836 | (char *) "self",(char *) "x", NULL |
d14a1e28 RD |
15837 | }; |
15838 | ||
093d3ff1 RD |
15839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15842 | { | |
32fe5131 | 15843 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15844 | if (SWIG_arg_fail(2)) SWIG_fail; |
15845 | } | |
d14a1e28 RD |
15846 | { |
15847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15848 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
15849 | |
15850 | wxPyEndAllowThreads(__tstate); | |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
15852 | } | |
093d3ff1 | 15853 | { |
32fe5131 | 15854 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15855 | } |
d14a1e28 RD |
15856 | return resultobj; |
15857 | fail: | |
15858 | return NULL; | |
15859 | } | |
15860 | ||
15861 | ||
093d3ff1 | 15862 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15863 | PyObject *resultobj = NULL; |
d14a1e28 | 15864 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
15865 | int arg2 ; |
15866 | int result; | |
d14a1e28 | 15867 | PyObject * obj0 = 0 ; |
994141e6 | 15868 | PyObject * obj1 = 0 ; |
d14a1e28 | 15869 | char *kwnames[] = { |
093d3ff1 | 15870 | (char *) "self",(char *) "y", NULL |
d14a1e28 RD |
15871 | }; |
15872 | ||
093d3ff1 RD |
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15876 | { | |
32fe5131 | 15877 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15878 | if (SWIG_arg_fail(2)) SWIG_fail; |
15879 | } | |
d14a1e28 RD |
15880 | { |
15881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15882 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
15883 | |
15884 | wxPyEndAllowThreads(__tstate); | |
15885 | if (PyErr_Occurred()) SWIG_fail; | |
15886 | } | |
093d3ff1 | 15887 | { |
32fe5131 | 15888 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15889 | } |
d14a1e28 RD |
15890 | return resultobj; |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
093d3ff1 | 15896 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15897 | PyObject *resultobj = NULL; |
d14a1e28 | 15898 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15899 | bool result; |
d14a1e28 RD |
15900 | PyObject * obj0 = 0 ; |
15901 | char *kwnames[] = { | |
15902 | (char *) "self", NULL | |
15903 | }; | |
15904 | ||
093d3ff1 RD |
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; |
15906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15908 | { |
15909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15910 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); |
d14a1e28 RD |
15911 | |
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
093d3ff1 RD |
15915 | { |
15916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15917 | } | |
d14a1e28 RD |
15918 | return resultobj; |
15919 | fail: | |
15920 | return NULL; | |
15921 | } | |
15922 | ||
15923 | ||
093d3ff1 | 15924 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15925 | PyObject *resultobj = NULL; |
d14a1e28 | 15926 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15927 | bool result; |
d14a1e28 RD |
15928 | PyObject * obj0 = 0 ; |
15929 | char *kwnames[] = { | |
093d3ff1 | 15930 | (char *) "self", NULL |
d14a1e28 RD |
15931 | }; |
15932 | ||
093d3ff1 RD |
15933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; |
15934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15936 | { |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15938 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); |
d14a1e28 RD |
15939 | |
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
093d3ff1 RD |
15943 | { |
15944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15945 | } | |
d14a1e28 RD |
15946 | return resultobj; |
15947 | fail: | |
15948 | return NULL; | |
15949 | } | |
15950 | ||
15951 | ||
093d3ff1 | 15952 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15953 | PyObject *resultobj = NULL; |
d14a1e28 | 15954 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15955 | int result; |
d14a1e28 RD |
15956 | PyObject * obj0 = 0 ; |
15957 | char *kwnames[] = { | |
15958 | (char *) "self", NULL | |
15959 | }; | |
15960 | ||
093d3ff1 RD |
15961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; |
15962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15964 | { |
15965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15966 | result = (int)((wxDC const *)arg1)->GetDepth(); |
d14a1e28 RD |
15967 | |
15968 | wxPyEndAllowThreads(__tstate); | |
15969 | if (PyErr_Occurred()) SWIG_fail; | |
15970 | } | |
d14a1e28 | 15971 | { |
32fe5131 | 15972 | resultobj = SWIG_From_int(static_cast<int >(result)); |
d14a1e28 RD |
15973 | } |
15974 | return resultobj; | |
15975 | fail: | |
15976 | return NULL; | |
15977 | } | |
15978 | ||
15979 | ||
093d3ff1 | 15980 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15981 | PyObject *resultobj = NULL; |
d14a1e28 | 15982 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 15983 | wxSize result; |
d14a1e28 RD |
15984 | PyObject * obj0 = 0 ; |
15985 | char *kwnames[] = { | |
15986 | (char *) "self", NULL | |
15987 | }; | |
15988 | ||
093d3ff1 RD |
15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; |
15990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
15991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15992 | { |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15994 | result = ((wxDC const *)arg1)->GetPPI(); |
d14a1e28 RD |
15995 | |
15996 | wxPyEndAllowThreads(__tstate); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
093d3ff1 RD |
15999 | { |
16000 | wxSize * resultptr; | |
32fe5131 | 16001 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
093d3ff1 RD |
16002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
16003 | } | |
d14a1e28 RD |
16004 | return resultobj; |
16005 | fail: | |
16006 | return NULL; | |
16007 | } | |
16008 | ||
16009 | ||
093d3ff1 | 16010 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16011 | PyObject *resultobj = NULL; |
d14a1e28 | 16012 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16013 | bool result; |
d14a1e28 RD |
16014 | PyObject * obj0 = 0 ; |
16015 | char *kwnames[] = { | |
093d3ff1 | 16016 | (char *) "self", NULL |
d14a1e28 RD |
16017 | }; |
16018 | ||
093d3ff1 RD |
16019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; |
16020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16022 | { |
16023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16024 | result = (bool)((wxDC const *)arg1)->Ok(); |
d14a1e28 RD |
16025 | |
16026 | wxPyEndAllowThreads(__tstate); | |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
16028 | } | |
093d3ff1 RD |
16029 | { |
16030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16031 | } | |
16032 | return resultobj; | |
d14a1e28 RD |
16033 | fail: |
16034 | return NULL; | |
16035 | } | |
16036 | ||
16037 | ||
093d3ff1 | 16038 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16039 | PyObject *resultobj = NULL; |
03e37cd5 | 16040 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16041 | int result; |
03e37cd5 | 16042 | PyObject * obj0 = 0 ; |
03e37cd5 | 16043 | char *kwnames[] = { |
093d3ff1 | 16044 | (char *) "self", NULL |
03e37cd5 RD |
16045 | }; |
16046 | ||
093d3ff1 RD |
16047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; |
16048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 RD |
16050 | { |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16052 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); |
03e37cd5 RD |
16053 | |
16054 | wxPyEndAllowThreads(__tstate); | |
16055 | if (PyErr_Occurred()) SWIG_fail; | |
16056 | } | |
093d3ff1 | 16057 | { |
32fe5131 | 16058 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16059 | } |
03e37cd5 RD |
16060 | return resultobj; |
16061 | fail: | |
16062 | return NULL; | |
16063 | } | |
16064 | ||
16065 | ||
093d3ff1 | 16066 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16067 | PyObject *resultobj = NULL; |
d14a1e28 | 16068 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16069 | wxBrush *result; |
d14a1e28 RD |
16070 | PyObject * obj0 = 0 ; |
16071 | char *kwnames[] = { | |
16072 | (char *) "self", NULL | |
16073 | }; | |
16074 | ||
093d3ff1 RD |
16075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; |
16076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16078 | { |
16079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16080 | { |
16081 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
16082 | result = (wxBrush *) &_result_ref; | |
16083 | } | |
d14a1e28 RD |
16084 | |
16085 | wxPyEndAllowThreads(__tstate); | |
16086 | if (PyErr_Occurred()) SWIG_fail; | |
16087 | } | |
d14a1e28 | 16088 | { |
093d3ff1 RD |
16089 | wxBrush* resultptr = new wxBrush(*result); |
16090 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
d14a1e28 RD |
16091 | } |
16092 | return resultobj; | |
16093 | fail: | |
16094 | return NULL; | |
16095 | } | |
16096 | ||
16097 | ||
093d3ff1 | 16098 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16099 | PyObject *resultobj = NULL; |
d14a1e28 | 16100 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16101 | wxBrush *result; |
d14a1e28 RD |
16102 | PyObject * obj0 = 0 ; |
16103 | char *kwnames[] = { | |
16104 | (char *) "self", NULL | |
16105 | }; | |
16106 | ||
093d3ff1 RD |
16107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; |
16108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16110 | { |
16111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16112 | { |
16113 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
16114 | result = (wxBrush *) &_result_ref; | |
16115 | } | |
d14a1e28 RD |
16116 | |
16117 | wxPyEndAllowThreads(__tstate); | |
16118 | if (PyErr_Occurred()) SWIG_fail; | |
16119 | } | |
093d3ff1 RD |
16120 | { |
16121 | wxBrush* resultptr = new wxBrush(*result); | |
16122 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
16123 | } | |
d14a1e28 RD |
16124 | return resultobj; |
16125 | fail: | |
16126 | return NULL; | |
16127 | } | |
16128 | ||
16129 | ||
093d3ff1 | 16130 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16131 | PyObject *resultobj = NULL; |
d14a1e28 | 16132 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16133 | wxFont *result; |
d14a1e28 RD |
16134 | PyObject * obj0 = 0 ; |
16135 | char *kwnames[] = { | |
093d3ff1 | 16136 | (char *) "self", NULL |
d14a1e28 RD |
16137 | }; |
16138 | ||
093d3ff1 RD |
16139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; |
16140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16142 | { |
16143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16144 | { |
16145 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
16146 | result = (wxFont *) &_result_ref; | |
16147 | } | |
d14a1e28 RD |
16148 | |
16149 | wxPyEndAllowThreads(__tstate); | |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
16151 | } | |
093d3ff1 RD |
16152 | { |
16153 | wxFont* resultptr = new wxFont(*result); | |
16154 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
16155 | } | |
d14a1e28 RD |
16156 | return resultobj; |
16157 | fail: | |
16158 | return NULL; | |
16159 | } | |
16160 | ||
16161 | ||
093d3ff1 | 16162 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16163 | PyObject *resultobj = NULL; |
03e37cd5 | 16164 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16165 | wxPen *result; |
03e37cd5 | 16166 | PyObject * obj0 = 0 ; |
03e37cd5 | 16167 | char *kwnames[] = { |
093d3ff1 | 16168 | (char *) "self", NULL |
03e37cd5 RD |
16169 | }; |
16170 | ||
093d3ff1 RD |
16171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; |
16172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 RD |
16174 | { |
16175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16176 | { |
16177 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
16178 | result = (wxPen *) &_result_ref; | |
16179 | } | |
03e37cd5 RD |
16180 | |
16181 | wxPyEndAllowThreads(__tstate); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
093d3ff1 RD |
16184 | { |
16185 | wxPen* resultptr = new wxPen(*result); | |
16186 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
16187 | } | |
03e37cd5 RD |
16188 | return resultobj; |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
093d3ff1 | 16194 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16195 | PyObject *resultobj = NULL; |
d14a1e28 | 16196 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16197 | wxColour *result; |
d14a1e28 | 16198 | PyObject * obj0 = 0 ; |
d14a1e28 | 16199 | char *kwnames[] = { |
093d3ff1 | 16200 | (char *) "self", NULL |
d14a1e28 RD |
16201 | }; |
16202 | ||
093d3ff1 RD |
16203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; |
16204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16206 | { |
16207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16208 | { |
16209 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
16210 | result = (wxColour *) &_result_ref; | |
16211 | } | |
d14a1e28 RD |
16212 | |
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
093d3ff1 | 16216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16217 | return resultobj; |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
093d3ff1 | 16223 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16224 | PyObject *resultobj = NULL; |
d14a1e28 | 16225 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16226 | wxColour *result; |
d14a1e28 RD |
16227 | PyObject * obj0 = 0 ; |
16228 | char *kwnames[] = { | |
16229 | (char *) "self", NULL | |
16230 | }; | |
16231 | ||
093d3ff1 RD |
16232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; |
16233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16235 | { |
16236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
16237 | { |
16238 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
16239 | result = (wxColour *) &_result_ref; | |
16240 | } | |
d14a1e28 RD |
16241 | |
16242 | wxPyEndAllowThreads(__tstate); | |
16243 | if (PyErr_Occurred()) SWIG_fail; | |
16244 | } | |
093d3ff1 | 16245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16246 | return resultobj; |
16247 | fail: | |
16248 | return NULL; | |
16249 | } | |
16250 | ||
16251 | ||
093d3ff1 | 16252 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16253 | PyObject *resultobj = NULL; |
d14a1e28 | 16254 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16255 | wxColour *arg2 = 0 ; |
16256 | wxColour temp2 ; | |
d14a1e28 | 16257 | PyObject * obj0 = 0 ; |
994141e6 | 16258 | PyObject * obj1 = 0 ; |
d14a1e28 | 16259 | char *kwnames[] = { |
093d3ff1 | 16260 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
16261 | }; |
16262 | ||
093d3ff1 RD |
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; |
16264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16266 | { | |
16267 | arg2 = &temp2; | |
16268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16269 | } | |
d14a1e28 RD |
16270 | { |
16271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16272 | (arg1)->SetTextForeground((wxColour const &)*arg2); |
d14a1e28 RD |
16273 | |
16274 | wxPyEndAllowThreads(__tstate); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
16277 | Py_INCREF(Py_None); resultobj = Py_None; | |
16278 | return resultobj; | |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
093d3ff1 | 16284 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16285 | PyObject *resultobj = NULL; |
d14a1e28 | 16286 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16287 | wxColour *arg2 = 0 ; |
16288 | wxColour temp2 ; | |
d14a1e28 | 16289 | PyObject * obj0 = 0 ; |
093d3ff1 | 16290 | PyObject * obj1 = 0 ; |
d14a1e28 | 16291 | char *kwnames[] = { |
093d3ff1 | 16292 | (char *) "self",(char *) "colour", NULL |
d14a1e28 RD |
16293 | }; |
16294 | ||
093d3ff1 RD |
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; |
16296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16298 | { | |
16299 | arg2 = &temp2; | |
16300 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16301 | } | |
d14a1e28 RD |
16302 | { |
16303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16304 | (arg1)->SetTextBackground((wxColour const &)*arg2); |
d14a1e28 RD |
16305 | |
16306 | wxPyEndAllowThreads(__tstate); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
5cbf236d | 16309 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16310 | return resultobj; |
16311 | fail: | |
16312 | return NULL; | |
16313 | } | |
16314 | ||
16315 | ||
093d3ff1 | 16316 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16317 | PyObject *resultobj = NULL; |
d14a1e28 | 16318 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16319 | int result; |
d14a1e28 RD |
16320 | PyObject * obj0 = 0 ; |
16321 | char *kwnames[] = { | |
093d3ff1 | 16322 | (char *) "self", NULL |
d14a1e28 RD |
16323 | }; |
16324 | ||
093d3ff1 RD |
16325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; |
16326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16328 | { |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16330 | result = (int)((wxDC const *)arg1)->GetMapMode(); |
d14a1e28 RD |
16331 | |
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
093d3ff1 | 16335 | { |
32fe5131 | 16336 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16337 | } |
d14a1e28 RD |
16338 | return resultobj; |
16339 | fail: | |
16340 | return NULL; | |
16341 | } | |
16342 | ||
16343 | ||
093d3ff1 | 16344 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16345 | PyObject *resultobj = NULL; |
03e37cd5 | 16346 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16347 | int arg2 ; |
03e37cd5 RD |
16348 | PyObject * obj0 = 0 ; |
16349 | PyObject * obj1 = 0 ; | |
16350 | char *kwnames[] = { | |
093d3ff1 | 16351 | (char *) "self",(char *) "mode", NULL |
03e37cd5 RD |
16352 | }; |
16353 | ||
093d3ff1 RD |
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
16355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03e37cd5 | 16357 | { |
32fe5131 | 16358 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 16359 | if (SWIG_arg_fail(2)) SWIG_fail; |
03e37cd5 RD |
16360 | } |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16363 | (arg1)->SetMapMode(arg2); |
03e37cd5 RD |
16364 | |
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | Py_INCREF(Py_None); resultobj = Py_None; | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
093d3ff1 | 16375 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16376 | PyObject *resultobj = NULL; |
d14a1e28 | 16377 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16378 | double *arg2 = (double *) 0 ; |
16379 | double *arg3 = (double *) 0 ; | |
16380 | double temp2 ; | |
16381 | int res2 = 0 ; | |
16382 | double temp3 ; | |
16383 | int res3 = 0 ; | |
d14a1e28 RD |
16384 | PyObject * obj0 = 0 ; |
16385 | char *kwnames[] = { | |
16386 | (char *) "self", NULL | |
16387 | }; | |
16388 | ||
093d3ff1 RD |
16389 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16390 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
16392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16394 | { |
16395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16396 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); |
d14a1e28 RD |
16397 | |
16398 | wxPyEndAllowThreads(__tstate); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | Py_INCREF(Py_None); resultobj = Py_None; | |
093d3ff1 RD |
16402 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16403 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16404 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16405 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
16406 | return resultobj; |
16407 | fail: | |
16408 | return NULL; | |
16409 | } | |
16410 | ||
16411 | ||
093d3ff1 | 16412 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16413 | PyObject *resultobj = NULL; |
d14a1e28 | 16414 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16415 | double arg2 ; |
16416 | double arg3 ; | |
d14a1e28 | 16417 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16418 | PyObject * obj1 = 0 ; |
16419 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16420 | char *kwnames[] = { |
093d3ff1 | 16421 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16422 | }; |
16423 | ||
093d3ff1 RD |
16424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16427 | { | |
32fe5131 | 16428 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
093d3ff1 RD |
16429 | if (SWIG_arg_fail(2)) SWIG_fail; |
16430 | } | |
16431 | { | |
32fe5131 | 16432 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
16433 | if (SWIG_arg_fail(3)) SWIG_fail; |
16434 | } | |
d14a1e28 RD |
16435 | { |
16436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16437 | (arg1)->SetUserScale(arg2,arg3); |
d14a1e28 RD |
16438 | |
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
093d3ff1 | 16442 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16443 | return resultobj; |
16444 | fail: | |
16445 | return NULL; | |
16446 | } | |
16447 | ||
16448 | ||
093d3ff1 | 16449 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16450 | PyObject *resultobj = NULL; |
d14a1e28 | 16451 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16452 | double *arg2 = (double *) 0 ; |
16453 | double *arg3 = (double *) 0 ; | |
16454 | double temp2 ; | |
16455 | int res2 = 0 ; | |
16456 | double temp3 ; | |
16457 | int res3 = 0 ; | |
d14a1e28 RD |
16458 | PyObject * obj0 = 0 ; |
16459 | char *kwnames[] = { | |
16460 | (char *) "self", NULL | |
16461 | }; | |
16462 | ||
093d3ff1 RD |
16463 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16464 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
16466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16468 | { |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16470 | (arg1)->GetLogicalScale(arg2,arg3); |
d14a1e28 RD |
16471 | |
16472 | wxPyEndAllowThreads(__tstate); | |
16473 | if (PyErr_Occurred()) SWIG_fail; | |
16474 | } | |
093d3ff1 RD |
16475 | Py_INCREF(Py_None); resultobj = Py_None; |
16476 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16477 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
16478 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16479 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d14a1e28 RD |
16480 | return resultobj; |
16481 | fail: | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
093d3ff1 | 16486 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16487 | PyObject *resultobj = NULL; |
d14a1e28 | 16488 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16489 | double arg2 ; |
16490 | double arg3 ; | |
d14a1e28 | 16491 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16492 | PyObject * obj1 = 0 ; |
16493 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16494 | char *kwnames[] = { |
093d3ff1 | 16495 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16496 | }; |
16497 | ||
093d3ff1 RD |
16498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16501 | { | |
32fe5131 | 16502 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
093d3ff1 RD |
16503 | if (SWIG_arg_fail(2)) SWIG_fail; |
16504 | } | |
16505 | { | |
32fe5131 | 16506 | arg3 = static_cast<double >(SWIG_As_double(obj2)); |
093d3ff1 RD |
16507 | if (SWIG_arg_fail(3)) SWIG_fail; |
16508 | } | |
d14a1e28 RD |
16509 | { |
16510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16511 | (arg1)->SetLogicalScale(arg2,arg3); |
d14a1e28 RD |
16512 | |
16513 | wxPyEndAllowThreads(__tstate); | |
16514 | if (PyErr_Occurred()) SWIG_fail; | |
16515 | } | |
093d3ff1 | 16516 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16517 | return resultobj; |
16518 | fail: | |
16519 | return NULL; | |
16520 | } | |
16521 | ||
16522 | ||
093d3ff1 | 16523 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16524 | PyObject *resultobj = NULL; |
d14a1e28 | 16525 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16526 | wxPoint result; |
d14a1e28 RD |
16527 | PyObject * obj0 = 0 ; |
16528 | char *kwnames[] = { | |
16529 | (char *) "self", NULL | |
16530 | }; | |
16531 | ||
093d3ff1 RD |
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
16533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16535 | { |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16537 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
16538 | |
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
093d3ff1 RD |
16542 | { |
16543 | wxPoint * resultptr; | |
32fe5131 | 16544 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
093d3ff1 RD |
16545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16546 | } | |
d14a1e28 RD |
16547 | return resultobj; |
16548 | fail: | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
093d3ff1 | 16553 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16554 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16555 | wxDC *arg1 = (wxDC *) 0 ; |
16556 | int *arg2 = (int *) 0 ; | |
16557 | int *arg3 = (int *) 0 ; | |
d14a1e28 | 16558 | int temp2 ; |
c32bde28 | 16559 | int res2 = 0 ; |
d14a1e28 | 16560 | int temp3 ; |
c32bde28 | 16561 | int res3 = 0 ; |
d14a1e28 RD |
16562 | PyObject * obj0 = 0 ; |
16563 | char *kwnames[] = { | |
16564 | (char *) "self", NULL | |
16565 | }; | |
16566 | ||
c32bde28 RD |
16567 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16568 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
093d3ff1 RD |
16569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
16570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16572 | { |
16573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16574 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
16575 | |
16576 | wxPyEndAllowThreads(__tstate); | |
16577 | if (PyErr_Occurred()) SWIG_fail; | |
16578 | } | |
16579 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16580 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16581 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16582 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16583 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16584 | return resultobj; |
16585 | fail: | |
16586 | return NULL; | |
16587 | } | |
16588 | ||
16589 | ||
093d3ff1 | 16590 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16591 | PyObject *resultobj = NULL; |
d14a1e28 | 16592 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16593 | int arg2 ; |
16594 | int arg3 ; | |
d14a1e28 RD |
16595 | PyObject * obj0 = 0 ; |
16596 | PyObject * obj1 = 0 ; | |
16597 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16598 | char *kwnames[] = { |
093d3ff1 | 16599 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16600 | }; |
16601 | ||
093d3ff1 RD |
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16605 | { | |
32fe5131 | 16606 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
16607 | if (SWIG_arg_fail(2)) SWIG_fail; |
16608 | } | |
16609 | { | |
32fe5131 | 16610 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16611 | if (SWIG_arg_fail(3)) SWIG_fail; |
16612 | } | |
d14a1e28 RD |
16613 | { |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16615 | (arg1)->SetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
16616 | |
16617 | wxPyEndAllowThreads(__tstate); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
093d3ff1 | 16620 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16621 | return resultobj; |
16622 | fail: | |
16623 | return NULL; | |
16624 | } | |
16625 | ||
16626 | ||
093d3ff1 | 16627 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16628 | PyObject *resultobj = NULL; |
d14a1e28 | 16629 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16630 | wxPoint *arg2 = 0 ; |
16631 | wxPoint temp2 ; | |
d14a1e28 RD |
16632 | PyObject * obj0 = 0 ; |
16633 | PyObject * obj1 = 0 ; | |
d14a1e28 | 16634 | char *kwnames[] = { |
093d3ff1 | 16635 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16636 | }; |
16637 | ||
093d3ff1 RD |
16638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16641 | { | |
16642 | arg2 = &temp2; | |
16643 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16644 | } | |
d14a1e28 RD |
16645 | { |
16646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16647 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16648 | |
16649 | wxPyEndAllowThreads(__tstate); | |
16650 | if (PyErr_Occurred()) SWIG_fail; | |
16651 | } | |
093d3ff1 | 16652 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16653 | return resultobj; |
16654 | fail: | |
16655 | return NULL; | |
16656 | } | |
16657 | ||
16658 | ||
093d3ff1 | 16659 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16660 | PyObject *resultobj = NULL; |
d14a1e28 | 16661 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16662 | wxPoint result; |
d14a1e28 | 16663 | PyObject * obj0 = 0 ; |
d14a1e28 | 16664 | char *kwnames[] = { |
093d3ff1 | 16665 | (char *) "self", NULL |
d14a1e28 RD |
16666 | }; |
16667 | ||
093d3ff1 RD |
16668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
16669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16671 | { |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16673 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
16674 | |
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
093d3ff1 RD |
16678 | { |
16679 | wxPoint * resultptr; | |
32fe5131 | 16680 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
093d3ff1 RD |
16681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16682 | } | |
d14a1e28 RD |
16683 | return resultobj; |
16684 | fail: | |
16685 | return NULL; | |
16686 | } | |
16687 | ||
16688 | ||
093d3ff1 | 16689 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16690 | PyObject *resultobj = NULL; |
d14a1e28 | 16691 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16692 | int *arg2 = (int *) 0 ; |
16693 | int *arg3 = (int *) 0 ; | |
16694 | int temp2 ; | |
16695 | int res2 = 0 ; | |
16696 | int temp3 ; | |
16697 | int res3 = 0 ; | |
d14a1e28 | 16698 | PyObject * obj0 = 0 ; |
d14a1e28 | 16699 | char *kwnames[] = { |
093d3ff1 | 16700 | (char *) "self", NULL |
d14a1e28 RD |
16701 | }; |
16702 | ||
093d3ff1 RD |
16703 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16704 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
16706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16708 | { |
16709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16710 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
16711 | |
16712 | wxPyEndAllowThreads(__tstate); | |
16713 | if (PyErr_Occurred()) SWIG_fail; | |
16714 | } | |
093d3ff1 RD |
16715 | Py_INCREF(Py_None); resultobj = Py_None; |
16716 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
16717 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
16718 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16719 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
16720 | return resultobj; |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
093d3ff1 | 16726 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16727 | PyObject *resultobj = NULL; |
d14a1e28 | 16728 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16729 | int arg2 ; |
16730 | int arg3 ; | |
d14a1e28 RD |
16731 | PyObject * obj0 = 0 ; |
16732 | PyObject * obj1 = 0 ; | |
16733 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16734 | char *kwnames[] = { |
093d3ff1 | 16735 | (char *) "self",(char *) "x",(char *) "y", NULL |
d14a1e28 RD |
16736 | }; |
16737 | ||
093d3ff1 RD |
16738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16741 | { | |
32fe5131 | 16742 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
16743 | if (SWIG_arg_fail(2)) SWIG_fail; |
16744 | } | |
16745 | { | |
32fe5131 | 16746 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16747 | if (SWIG_arg_fail(3)) SWIG_fail; |
16748 | } | |
d14a1e28 RD |
16749 | { |
16750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16751 | (arg1)->SetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
16752 | |
16753 | wxPyEndAllowThreads(__tstate); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
16755 | } | |
093d3ff1 | 16756 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16757 | return resultobj; |
16758 | fail: | |
16759 | return NULL; | |
16760 | } | |
16761 | ||
16762 | ||
093d3ff1 | 16763 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16764 | PyObject *resultobj = NULL; |
d14a1e28 | 16765 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16766 | wxPoint *arg2 = 0 ; |
16767 | wxPoint temp2 ; | |
d14a1e28 RD |
16768 | PyObject * obj0 = 0 ; |
16769 | PyObject * obj1 = 0 ; | |
d14a1e28 | 16770 | char *kwnames[] = { |
093d3ff1 | 16771 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16772 | }; |
16773 | ||
093d3ff1 RD |
16774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; |
16775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16777 | { | |
16778 | arg2 = &temp2; | |
16779 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16780 | } | |
d14a1e28 RD |
16781 | { |
16782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16783 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16784 | |
16785 | wxPyEndAllowThreads(__tstate); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
093d3ff1 | 16788 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16789 | return resultobj; |
16790 | fail: | |
16791 | return NULL; | |
16792 | } | |
16793 | ||
16794 | ||
093d3ff1 | 16795 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16796 | PyObject *resultobj = NULL; |
093d3ff1 RD |
16797 | wxDC *arg1 = (wxDC *) 0 ; |
16798 | bool arg2 ; | |
16799 | bool arg3 ; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | PyObject * obj1 = 0 ; | |
16802 | PyObject * obj2 = 0 ; | |
d14a1e28 | 16803 | char *kwnames[] = { |
093d3ff1 | 16804 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL |
d14a1e28 RD |
16805 | }; |
16806 | ||
093d3ff1 RD |
16807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16810 | { | |
32fe5131 | 16811 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
16812 | if (SWIG_arg_fail(2)) SWIG_fail; |
16813 | } | |
16814 | { | |
32fe5131 | 16815 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
16816 | if (SWIG_arg_fail(3)) SWIG_fail; |
16817 | } | |
d14a1e28 RD |
16818 | { |
16819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16820 | (arg1)->SetAxisOrientation(arg2,arg3); |
d14a1e28 RD |
16821 | |
16822 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16823 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16824 | } |
093d3ff1 | 16825 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16826 | return resultobj; |
16827 | fail: | |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
093d3ff1 | 16832 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16833 | PyObject *resultobj = NULL; |
d14a1e28 | 16834 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 | 16835 | int result; |
d14a1e28 RD |
16836 | PyObject * obj0 = 0 ; |
16837 | char *kwnames[] = { | |
093d3ff1 | 16838 | (char *) "self", NULL |
d14a1e28 RD |
16839 | }; |
16840 | ||
093d3ff1 RD |
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; |
16842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16844 | { |
16845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16846 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); |
d14a1e28 RD |
16847 | |
16848 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16849 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16850 | } |
093d3ff1 | 16851 | { |
32fe5131 | 16852 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16853 | } |
d14a1e28 RD |
16854 | return resultobj; |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
093d3ff1 | 16860 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16861 | PyObject *resultobj = NULL; |
093d3ff1 RD |
16862 | wxDC *arg1 = (wxDC *) 0 ; |
16863 | int arg2 ; | |
d14a1e28 RD |
16864 | PyObject * obj0 = 0 ; |
16865 | PyObject * obj1 = 0 ; | |
16866 | char *kwnames[] = { | |
093d3ff1 | 16867 | (char *) "self",(char *) "function", NULL |
d14a1e28 RD |
16868 | }; |
16869 | ||
093d3ff1 RD |
16870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
16871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16873 | { | |
32fe5131 | 16874 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 | 16875 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 RD |
16876 | } |
16877 | { | |
16878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16879 | (arg1)->SetLogicalFunction(arg2); |
d14a1e28 RD |
16880 | |
16881 | wxPyEndAllowThreads(__tstate); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | Py_INCREF(Py_None); resultobj = Py_None; | |
16885 | return resultobj; | |
16886 | fail: | |
16887 | return NULL; | |
16888 | } | |
16889 | ||
16890 | ||
093d3ff1 | 16891 | static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16892 | PyObject *resultobj = NULL; |
d14a1e28 | 16893 | wxDC *arg1 = (wxDC *) 0 ; |
d14a1e28 | 16894 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
16895 | char *kwnames[] = { |
16896 | (char *) "self", NULL | |
16897 | }; | |
d14a1e28 | 16898 | |
093d3ff1 RD |
16899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail; |
16900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16902 | { |
16903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16904 | (arg1)->ComputeScaleAndOrigin(); |
d14a1e28 RD |
16905 | |
16906 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16907 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16908 | } |
093d3ff1 | 16909 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16910 | return resultobj; |
16911 | fail: | |
16912 | return NULL; | |
16913 | } | |
16914 | ||
16915 | ||
093d3ff1 | 16916 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16917 | PyObject *resultobj = NULL; |
d14a1e28 | 16918 | wxDC *arg1 = (wxDC *) 0 ; |
093d3ff1 RD |
16919 | int arg2 ; |
16920 | int arg3 ; | |
d14a1e28 RD |
16921 | PyObject * obj0 = 0 ; |
16922 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
16923 | PyObject * obj2 = 0 ; |
16924 | char *kwnames[] = { | |
16925 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16926 | }; | |
3adfb63b | 16927 | |
093d3ff1 RD |
16928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3adfb63b | 16931 | { |
32fe5131 | 16932 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
16933 | if (SWIG_arg_fail(2)) SWIG_fail; |
16934 | } | |
16935 | { | |
32fe5131 | 16936 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 | 16937 | if (SWIG_arg_fail(3)) SWIG_fail; |
3adfb63b | 16938 | } |
3adfb63b RD |
16939 | { |
16940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16941 | (arg1)->CalcBoundingBox(arg2,arg3); |
3adfb63b RD |
16942 | |
16943 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16944 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b | 16945 | } |
093d3ff1 | 16946 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
16947 | return resultobj; |
16948 | fail: | |
16949 | return NULL; | |
16950 | } | |
16951 | ||
16952 | ||
093d3ff1 | 16953 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16954 | PyObject *resultobj = NULL; |
093d3ff1 RD |
16955 | wxDC *arg1 = (wxDC *) 0 ; |
16956 | wxPoint *arg2 = 0 ; | |
16957 | wxPoint temp2 ; | |
d14a1e28 | 16958 | PyObject * obj0 = 0 ; |
093d3ff1 | 16959 | PyObject * obj1 = 0 ; |
d14a1e28 | 16960 | char *kwnames[] = { |
093d3ff1 | 16961 | (char *) "self",(char *) "point", NULL |
d14a1e28 RD |
16962 | }; |
16963 | ||
093d3ff1 RD |
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; |
16965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16967 | { | |
16968 | arg2 = &temp2; | |
16969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16970 | } | |
d14a1e28 RD |
16971 | { |
16972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16973 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
16974 | |
16975 | wxPyEndAllowThreads(__tstate); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
16978 | Py_INCREF(Py_None); resultobj = Py_None; | |
16979 | return resultobj; | |
16980 | fail: | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
093d3ff1 | 16985 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16986 | PyObject *resultobj = NULL; |
093d3ff1 | 16987 | wxDC *arg1 = (wxDC *) 0 ; |
3adfb63b | 16988 | PyObject * obj0 = 0 ; |
e498079e RD |
16989 | char *kwnames[] = { |
16990 | (char *) "self", NULL | |
16991 | }; | |
3adfb63b | 16992 | |
093d3ff1 RD |
16993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; |
16994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3adfb63b RD |
16996 | { |
16997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 16998 | (arg1)->ResetBoundingBox(); |
3adfb63b RD |
16999 | |
17000 | wxPyEndAllowThreads(__tstate); | |
17001 | if (PyErr_Occurred()) SWIG_fail; | |
17002 | } | |
e498079e | 17003 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
17004 | return resultobj; |
17005 | fail: | |
17006 | return NULL; | |
17007 | } | |
17008 | ||
17009 | ||
093d3ff1 | 17010 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17011 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17012 | wxDC *arg1 = (wxDC *) 0 ; |
17013 | int result; | |
d14a1e28 | 17014 | PyObject * obj0 = 0 ; |
e498079e | 17015 | char *kwnames[] = { |
093d3ff1 | 17016 | (char *) "self", NULL |
e498079e | 17017 | }; |
d14a1e28 | 17018 | |
093d3ff1 RD |
17019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; |
17020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17022 | { |
17023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17024 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
17025 | |
17026 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17027 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17028 | } |
093d3ff1 | 17029 | { |
32fe5131 | 17030 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17031 | } |
d14a1e28 RD |
17032 | return resultobj; |
17033 | fail: | |
17034 | return NULL; | |
17035 | } | |
17036 | ||
17037 | ||
093d3ff1 | 17038 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17039 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17040 | wxDC *arg1 = (wxDC *) 0 ; |
17041 | int result; | |
17042 | PyObject * obj0 = 0 ; | |
d14a1e28 | 17043 | char *kwnames[] = { |
093d3ff1 | 17044 | (char *) "self", NULL |
d14a1e28 RD |
17045 | }; |
17046 | ||
093d3ff1 RD |
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; |
17048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17050 | { |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17052 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
17053 | |
17054 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17055 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17056 | } |
093d3ff1 | 17057 | { |
32fe5131 | 17058 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17059 | } |
d14a1e28 RD |
17060 | return resultobj; |
17061 | fail: | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
093d3ff1 | 17066 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17067 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17068 | wxDC *arg1 = (wxDC *) 0 ; |
17069 | int result; | |
d14a1e28 | 17070 | PyObject * obj0 = 0 ; |
d14a1e28 | 17071 | char *kwnames[] = { |
093d3ff1 | 17072 | (char *) "self", NULL |
d14a1e28 RD |
17073 | }; |
17074 | ||
093d3ff1 RD |
17075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; |
17076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17078 | { |
17079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17080 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
17081 | |
17082 | wxPyEndAllowThreads(__tstate); | |
17083 | if (PyErr_Occurred()) SWIG_fail; | |
17084 | } | |
4f89f6a3 | 17085 | { |
32fe5131 | 17086 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 17087 | } |
d14a1e28 RD |
17088 | return resultobj; |
17089 | fail: | |
17090 | return NULL; | |
17091 | } | |
17092 | ||
17093 | ||
093d3ff1 | 17094 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17095 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17096 | wxDC *arg1 = (wxDC *) 0 ; |
17097 | int result; | |
d14a1e28 | 17098 | PyObject * obj0 = 0 ; |
d14a1e28 | 17099 | char *kwnames[] = { |
093d3ff1 | 17100 | (char *) "self", NULL |
d14a1e28 RD |
17101 | }; |
17102 | ||
093d3ff1 RD |
17103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; |
17104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17106 | { |
17107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17108 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
17109 | |
17110 | wxPyEndAllowThreads(__tstate); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | } | |
4f89f6a3 | 17113 | { |
32fe5131 | 17114 | resultobj = SWIG_From_int(static_cast<int >(result)); |
4f89f6a3 | 17115 | } |
d14a1e28 RD |
17116 | return resultobj; |
17117 | fail: | |
17118 | return NULL; | |
17119 | } | |
17120 | ||
17121 | ||
093d3ff1 | 17122 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17123 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17124 | wxDC *arg1 = (wxDC *) 0 ; |
17125 | int *arg2 = (int *) 0 ; | |
17126 | int *arg3 = (int *) 0 ; | |
17127 | int *arg4 = (int *) 0 ; | |
17128 | int *arg5 = (int *) 0 ; | |
17129 | int temp2 ; | |
17130 | int res2 = 0 ; | |
17131 | int temp3 ; | |
17132 | int res3 = 0 ; | |
17133 | int temp4 ; | |
17134 | int res4 = 0 ; | |
17135 | int temp5 ; | |
17136 | int res5 = 0 ; | |
d14a1e28 RD |
17137 | PyObject * obj0 = 0 ; |
17138 | char *kwnames[] = { | |
17139 | (char *) "self", NULL | |
17140 | }; | |
17141 | ||
093d3ff1 RD |
17142 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17143 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
17144 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
17145 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
17147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17149 | { |
17150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17151 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
17152 | |
17153 | wxPyEndAllowThreads(__tstate); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
17155 | } | |
093d3ff1 RD |
17156 | Py_INCREF(Py_None); resultobj = Py_None; |
17157 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
17158 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
17159 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17160 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
17161 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
17162 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
17163 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
17164 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
17165 | return resultobj; |
17166 | fail: | |
17167 | return NULL; | |
17168 | } | |
17169 | ||
17170 | ||
093d3ff1 | 17171 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17172 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17173 | wxDC *arg1 = (wxDC *) 0 ; |
17174 | PyObject *arg2 = (PyObject *) 0 ; | |
17175 | PyObject *arg3 = (PyObject *) 0 ; | |
17176 | PyObject *arg4 = (PyObject *) 0 ; | |
17177 | PyObject *result; | |
d14a1e28 | 17178 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17179 | PyObject * obj1 = 0 ; |
17180 | PyObject * obj2 = 0 ; | |
17181 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17182 | char *kwnames[] = { |
093d3ff1 | 17183 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17184 | }; |
17185 | ||
093d3ff1 RD |
17186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17189 | arg2 = obj1; | |
17190 | arg3 = obj2; | |
17191 | arg4 = obj3; | |
d14a1e28 RD |
17192 | { |
17193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17194 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17195 | |
17196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17197 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17198 | } |
093d3ff1 | 17199 | resultobj = result; |
d14a1e28 RD |
17200 | return resultobj; |
17201 | fail: | |
17202 | return NULL; | |
17203 | } | |
17204 | ||
17205 | ||
093d3ff1 | 17206 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17207 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17208 | wxDC *arg1 = (wxDC *) 0 ; |
17209 | PyObject *arg2 = (PyObject *) 0 ; | |
17210 | PyObject *arg3 = (PyObject *) 0 ; | |
17211 | PyObject *arg4 = (PyObject *) 0 ; | |
17212 | PyObject *result; | |
d14a1e28 | 17213 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17214 | PyObject * obj1 = 0 ; |
17215 | PyObject * obj2 = 0 ; | |
17216 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17217 | char *kwnames[] = { |
093d3ff1 | 17218 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17219 | }; |
17220 | ||
093d3ff1 RD |
17221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17224 | arg2 = obj1; | |
17225 | arg3 = obj2; | |
17226 | arg4 = obj3; | |
d14a1e28 RD |
17227 | { |
17228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17229 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17230 | |
17231 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17232 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17233 | } |
093d3ff1 | 17234 | resultobj = result; |
d14a1e28 RD |
17235 | return resultobj; |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
093d3ff1 | 17241 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17242 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17243 | wxDC *arg1 = (wxDC *) 0 ; |
17244 | PyObject *arg2 = (PyObject *) 0 ; | |
17245 | PyObject *arg3 = (PyObject *) 0 ; | |
17246 | PyObject *arg4 = (PyObject *) 0 ; | |
17247 | PyObject *result; | |
d14a1e28 | 17248 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17249 | PyObject * obj1 = 0 ; |
17250 | PyObject * obj2 = 0 ; | |
17251 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17252 | char *kwnames[] = { |
093d3ff1 | 17253 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17254 | }; |
17255 | ||
093d3ff1 RD |
17256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17259 | arg2 = obj1; | |
17260 | arg3 = obj2; | |
17261 | arg4 = obj3; | |
d14a1e28 RD |
17262 | { |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17264 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17265 | |
17266 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17267 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17268 | } |
093d3ff1 | 17269 | resultobj = result; |
d14a1e28 RD |
17270 | return resultobj; |
17271 | fail: | |
17272 | return NULL; | |
17273 | } | |
17274 | ||
17275 | ||
093d3ff1 | 17276 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17277 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17278 | wxDC *arg1 = (wxDC *) 0 ; |
17279 | PyObject *arg2 = (PyObject *) 0 ; | |
17280 | PyObject *arg3 = (PyObject *) 0 ; | |
17281 | PyObject *arg4 = (PyObject *) 0 ; | |
17282 | PyObject *result; | |
d14a1e28 RD |
17283 | PyObject * obj0 = 0 ; |
17284 | PyObject * obj1 = 0 ; | |
093d3ff1 RD |
17285 | PyObject * obj2 = 0 ; |
17286 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17287 | char *kwnames[] = { |
093d3ff1 | 17288 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17289 | }; |
17290 | ||
093d3ff1 RD |
17291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17294 | arg2 = obj1; | |
17295 | arg3 = obj2; | |
17296 | arg4 = obj3; | |
d14a1e28 RD |
17297 | { |
17298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17299 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17300 | |
17301 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17302 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17303 | } |
093d3ff1 | 17304 | resultobj = result; |
d14a1e28 RD |
17305 | return resultobj; |
17306 | fail: | |
17307 | return NULL; | |
17308 | } | |
17309 | ||
17310 | ||
093d3ff1 | 17311 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17312 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17313 | wxDC *arg1 = (wxDC *) 0 ; |
17314 | PyObject *arg2 = (PyObject *) 0 ; | |
17315 | PyObject *arg3 = (PyObject *) 0 ; | |
17316 | PyObject *arg4 = (PyObject *) 0 ; | |
17317 | PyObject *result; | |
d14a1e28 | 17318 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17319 | PyObject * obj1 = 0 ; |
17320 | PyObject * obj2 = 0 ; | |
17321 | PyObject * obj3 = 0 ; | |
d14a1e28 | 17322 | char *kwnames[] = { |
093d3ff1 | 17323 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL |
d14a1e28 RD |
17324 | }; |
17325 | ||
093d3ff1 RD |
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17329 | arg2 = obj1; | |
17330 | arg3 = obj2; | |
17331 | arg4 = obj3; | |
d14a1e28 RD |
17332 | { |
17333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17334 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17335 | |
17336 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17337 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17338 | } |
093d3ff1 | 17339 | resultobj = result; |
d14a1e28 RD |
17340 | return resultobj; |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
093d3ff1 | 17346 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17347 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17348 | wxDC *arg1 = (wxDC *) 0 ; |
17349 | PyObject *arg2 = (PyObject *) 0 ; | |
17350 | PyObject *arg3 = (PyObject *) 0 ; | |
17351 | PyObject *arg4 = (PyObject *) 0 ; | |
17352 | PyObject *arg5 = (PyObject *) 0 ; | |
17353 | PyObject *result; | |
d14a1e28 | 17354 | PyObject * obj0 = 0 ; |
093d3ff1 RD |
17355 | PyObject * obj1 = 0 ; |
17356 | PyObject * obj2 = 0 ; | |
17357 | PyObject * obj3 = 0 ; | |
17358 | PyObject * obj4 = 0 ; | |
d14a1e28 | 17359 | char *kwnames[] = { |
093d3ff1 | 17360 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL |
d14a1e28 RD |
17361 | }; |
17362 | ||
093d3ff1 RD |
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
17364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17366 | arg2 = obj1; | |
17367 | arg3 = obj2; | |
17368 | arg4 = obj3; | |
17369 | arg5 = obj4; | |
d14a1e28 RD |
17370 | { |
17371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17372 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
17373 | |
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
093d3ff1 | 17377 | resultobj = result; |
d14a1e28 RD |
17378 | return resultobj; |
17379 | fail: | |
17380 | return NULL; | |
17381 | } | |
17382 | ||
17383 | ||
093d3ff1 RD |
17384 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
17385 | PyObject *obj; | |
17386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17387 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
17388 | Py_INCREF(obj); | |
17389 | return Py_BuildValue((char *)""); | |
17390 | } | |
17391 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 17392 | PyObject *resultobj = NULL; |
093d3ff1 | 17393 | wxMemoryDC *result; |
d14a1e28 | 17394 | char *kwnames[] = { |
093d3ff1 | 17395 | NULL |
d14a1e28 RD |
17396 | }; |
17397 | ||
093d3ff1 | 17398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; |
d14a1e28 | 17399 | { |
093d3ff1 | 17400 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17402 | result = (wxMemoryDC *)new wxMemoryDC(); |
d14a1e28 RD |
17403 | |
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
093d3ff1 | 17407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
17408 | return resultobj; |
17409 | fail: | |
17410 | return NULL; | |
17411 | } | |
17412 | ||
17413 | ||
093d3ff1 | 17414 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17415 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17416 | wxDC *arg1 = (wxDC *) 0 ; |
17417 | wxMemoryDC *result; | |
994141e6 | 17418 | PyObject * obj0 = 0 ; |
d14a1e28 | 17419 | char *kwnames[] = { |
093d3ff1 | 17420 | (char *) "oldDC", NULL |
d14a1e28 RD |
17421 | }; |
17422 | ||
093d3ff1 RD |
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; |
17424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17426 | { |
093d3ff1 | 17427 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17429 | result = (wxMemoryDC *)new wxMemoryDC(arg1); |
d14a1e28 RD |
17430 | |
17431 | wxPyEndAllowThreads(__tstate); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
17433 | } | |
093d3ff1 | 17434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
17435 | return resultobj; |
17436 | fail: | |
17437 | return NULL; | |
17438 | } | |
17439 | ||
17440 | ||
093d3ff1 | 17441 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17442 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17443 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; |
17444 | wxBitmap *arg2 = 0 ; | |
17445 | PyObject * obj0 = 0 ; | |
17446 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17447 | char *kwnames[] = { |
093d3ff1 | 17448 | (char *) "self",(char *) "bitmap", NULL |
d14a1e28 RD |
17449 | }; |
17450 | ||
093d3ff1 RD |
17451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; |
17452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
17453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17454 | { | |
17455 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17456 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17457 | if (arg2 == NULL) { | |
17458 | SWIG_null_ref("wxBitmap"); | |
17459 | } | |
17460 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17461 | } | |
d14a1e28 RD |
17462 | { |
17463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17464 | (arg1)->SelectObject((wxBitmap const &)*arg2); |
d14a1e28 RD |
17465 | |
17466 | wxPyEndAllowThreads(__tstate); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | } | |
093d3ff1 | 17469 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17470 | return resultobj; |
17471 | fail: | |
17472 | return NULL; | |
17473 | } | |
17474 | ||
17475 | ||
093d3ff1 | 17476 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17477 | PyObject *obj; |
17478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 17479 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); |
d14a1e28 RD |
17480 | Py_INCREF(obj); |
17481 | return Py_BuildValue((char *)""); | |
17482 | } | |
093d3ff1 | 17483 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
32fe5131 | 17484 | PyObject *resultobj = NULL; |
093d3ff1 | 17485 | wxDC *arg1 = (wxDC *) 0 ; |
32fe5131 RD |
17486 | wxBitmap *arg2 = 0 ; |
17487 | int arg3 ; | |
093d3ff1 | 17488 | wxBufferedDC *result; |
d14a1e28 | 17489 | PyObject * obj0 = 0 ; |
093d3ff1 | 17490 | PyObject * obj1 = 0 ; |
e2950dbb | 17491 | PyObject * obj2 = 0 ; |
d14a1e28 | 17492 | |
32fe5131 | 17493 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32fe5131 RD |
17496 | { |
17497 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17499 | if (arg2 == NULL) { | |
17500 | SWIG_null_ref("wxBitmap"); | |
d14a1e28 | 17501 | } |
32fe5131 | 17502 | if (SWIG_arg_fail(2)) SWIG_fail; |
d14a1e28 | 17503 | } |
32fe5131 RD |
17504 | { |
17505 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
17506 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e2950dbb | 17507 | } |
d14a1e28 | 17508 | { |
e3b71cb8 | 17509 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e2950dbb | 17511 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); |
d14a1e28 RD |
17512 | |
17513 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17514 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17515 | } |
093d3ff1 | 17516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
17517 | return resultobj; |
17518 | fail: | |
d14a1e28 RD |
17519 | return NULL; |
17520 | } | |
17521 | ||
17522 | ||
093d3ff1 | 17523 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
32fe5131 RD |
17524 | PyObject *resultobj = NULL; |
17525 | wxDC *arg1 = (wxDC *) 0 ; | |
17526 | wxBitmap *arg2 = 0 ; | |
17527 | wxBufferedDC *result; | |
17528 | PyObject * obj0 = 0 ; | |
17529 | PyObject * obj1 = 0 ; | |
17530 | ||
17531 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
17532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17534 | { | |
17535 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17536 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17537 | if (arg2 == NULL) { | |
17538 | SWIG_null_ref("wxBitmap"); | |
17539 | } | |
17540 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17541 | } | |
17542 | { | |
17543 | if (!wxPyCheckForApp()) SWIG_fail; | |
17544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17545 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
17546 | ||
17547 | wxPyEndAllowThreads(__tstate); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | } | |
17550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
17554 | } | |
17555 | ||
17556 | ||
17557 | static PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *, PyObject *args) { | |
17558 | PyObject *resultobj = NULL; | |
17559 | wxDC *arg1 = (wxDC *) 0 ; | |
17560 | wxBufferedDC *result; | |
17561 | PyObject * obj0 = 0 ; | |
17562 | ||
17563 | if(!PyArg_ParseTuple(args,(char *)"O:new_BufferedDC",&obj0)) goto fail; | |
17564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17566 | { | |
17567 | if (!wxPyCheckForApp()) SWIG_fail; | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = (wxBufferedDC *)new wxBufferedDC(arg1); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
17581 | static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) { | |
17582 | PyObject *resultobj = NULL; | |
093d3ff1 RD |
17583 | wxDC *arg1 = (wxDC *) 0 ; |
17584 | wxSize *arg2 = 0 ; | |
32fe5131 | 17585 | int arg3 ; |
093d3ff1 RD |
17586 | wxBufferedDC *result; |
17587 | wxSize temp2 ; | |
d14a1e28 | 17588 | PyObject * obj0 = 0 ; |
994141e6 | 17589 | PyObject * obj1 = 0 ; |
e2950dbb | 17590 | PyObject * obj2 = 0 ; |
d14a1e28 | 17591 | |
32fe5131 | 17592 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
17594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17595 | { | |
17596 | arg2 = &temp2; | |
17597 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 17598 | } |
32fe5131 RD |
17599 | { |
17600 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
17601 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e2950dbb | 17602 | } |
093d3ff1 RD |
17603 | { |
17604 | if (!wxPyCheckForApp()) SWIG_fail; | |
17605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 17606 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); |
093d3ff1 RD |
17607 | |
17608 | wxPyEndAllowThreads(__tstate); | |
15afbcd0 | 17609 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17610 | } |
093d3ff1 RD |
17611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
17612 | return resultobj; | |
17613 | fail: | |
17614 | return NULL; | |
17615 | } | |
17616 | ||
17617 | ||
32fe5131 RD |
17618 | static PyObject *_wrap_new_BufferedDC__SWIG_4(PyObject *, PyObject *args) { |
17619 | PyObject *resultobj = NULL; | |
17620 | wxDC *arg1 = (wxDC *) 0 ; | |
17621 | wxSize *arg2 = 0 ; | |
17622 | wxBufferedDC *result; | |
17623 | wxSize temp2 ; | |
17624 | PyObject * obj0 = 0 ; | |
17625 | PyObject * obj1 = 0 ; | |
17626 | ||
17627 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
17628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17630 | { | |
17631 | arg2 = &temp2; | |
17632 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17633 | } | |
17634 | { | |
17635 | if (!wxPyCheckForApp()) SWIG_fail; | |
17636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17637 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
17638 | ||
17639 | wxPyEndAllowThreads(__tstate); | |
17640 | if (PyErr_Occurred()) SWIG_fail; | |
17641 | } | |
17642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
17643 | return resultobj; | |
17644 | fail: | |
17645 | return NULL; | |
17646 | } | |
17647 | ||
17648 | ||
093d3ff1 RD |
17649 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { |
17650 | int argc; | |
e2950dbb | 17651 | PyObject *argv[4]; |
093d3ff1 RD |
17652 | int ii; |
17653 | ||
17654 | argc = PyObject_Length(args); | |
e2950dbb | 17655 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { |
093d3ff1 | 17656 | argv[ii] = PyTuple_GetItem(args,ii); |
994141e6 | 17657 | } |
32fe5131 | 17658 | if (argc == 1) { |
093d3ff1 | 17659 | int _v; |
d14a1e28 | 17660 | { |
093d3ff1 RD |
17661 | void *ptr; |
17662 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17663 | _v = 0; | |
17664 | PyErr_Clear(); | |
17665 | } else { | |
17666 | _v = 1; | |
17667 | } | |
17668 | } | |
17669 | if (_v) { | |
32fe5131 RD |
17670 | return _wrap_new_BufferedDC__SWIG_2(self,args); |
17671 | } | |
17672 | } | |
17673 | if (argc == 2) { | |
17674 | int _v; | |
17675 | { | |
17676 | void *ptr; | |
17677 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17678 | _v = 0; | |
17679 | PyErr_Clear(); | |
17680 | } else { | |
17681 | _v = 1; | |
8f4d7c19 | 17682 | } |
32fe5131 RD |
17683 | } |
17684 | if (_v) { | |
093d3ff1 RD |
17685 | { |
17686 | void *ptr = 0; | |
17687 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
17688 | _v = 0; | |
17689 | PyErr_Clear(); | |
17690 | } else { | |
17691 | _v = (ptr != 0); | |
17692 | } | |
17693 | } | |
17694 | if (_v) { | |
32fe5131 RD |
17695 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
17696 | } | |
17697 | } | |
17698 | } | |
17699 | if (argc == 2) { | |
17700 | int _v; | |
17701 | { | |
17702 | void *ptr; | |
17703 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17704 | _v = 0; | |
17705 | PyErr_Clear(); | |
17706 | } else { | |
17707 | _v = 1; | |
17708 | } | |
17709 | } | |
17710 | if (_v) { | |
17711 | { | |
17712 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
17713 | } | |
17714 | if (_v) { | |
17715 | return _wrap_new_BufferedDC__SWIG_4(self,args); | |
17716 | } | |
17717 | } | |
17718 | } | |
17719 | if (argc == 3) { | |
17720 | int _v; | |
17721 | { | |
17722 | void *ptr; | |
17723 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17724 | _v = 0; | |
17725 | PyErr_Clear(); | |
17726 | } else { | |
17727 | _v = 1; | |
17728 | } | |
17729 | } | |
17730 | if (_v) { | |
17731 | { | |
17732 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
17733 | } | |
17734 | if (_v) { | |
e2950dbb RD |
17735 | _v = SWIG_Check_int(argv[2]); |
17736 | if (_v) { | |
32fe5131 | 17737 | return _wrap_new_BufferedDC__SWIG_3(self,args); |
e2950dbb | 17738 | } |
093d3ff1 RD |
17739 | } |
17740 | } | |
17741 | } | |
32fe5131 | 17742 | if (argc == 3) { |
093d3ff1 RD |
17743 | int _v; |
17744 | { | |
17745 | void *ptr; | |
17746 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
17747 | _v = 0; | |
17748 | PyErr_Clear(); | |
17749 | } else { | |
17750 | _v = 1; | |
17751 | } | |
17752 | } | |
17753 | if (_v) { | |
17754 | { | |
32fe5131 RD |
17755 | void *ptr = 0; |
17756 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
17757 | _v = 0; | |
17758 | PyErr_Clear(); | |
17759 | } else { | |
17760 | _v = (ptr != 0); | |
17761 | } | |
093d3ff1 RD |
17762 | } |
17763 | if (_v) { | |
e2950dbb RD |
17764 | _v = SWIG_Check_int(argv[2]); |
17765 | if (_v) { | |
32fe5131 | 17766 | return _wrap_new_BufferedDC__SWIG_0(self,args); |
e2950dbb | 17767 | } |
093d3ff1 | 17768 | } |
d14a1e28 RD |
17769 | } |
17770 | } | |
093d3ff1 RD |
17771 | |
17772 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
17777 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 17778 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17779 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
17780 | PyObject * obj0 = 0 ; | |
17781 | char *kwnames[] = { | |
17782 | (char *) "self", NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
17786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17788 | { |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17790 | delete arg1; |
d14a1e28 RD |
17791 | |
17792 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17793 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17794 | } |
093d3ff1 | 17795 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17796 | return resultobj; |
17797 | fail: | |
d14a1e28 RD |
17798 | return NULL; |
17799 | } | |
17800 | ||
17801 | ||
093d3ff1 | 17802 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17803 | PyObject *resultobj = NULL; |
093d3ff1 | 17804 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
d14a1e28 RD |
17805 | PyObject * obj0 = 0 ; |
17806 | char *kwnames[] = { | |
093d3ff1 | 17807 | (char *) "self", NULL |
d14a1e28 RD |
17808 | }; |
17809 | ||
093d3ff1 RD |
17810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
17811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0); | |
17812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17813 | { |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17815 | (arg1)->UnMask(); |
d14a1e28 RD |
17816 | |
17817 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17818 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17819 | } |
093d3ff1 | 17820 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
17821 | return resultobj; |
17822 | fail: | |
17823 | return NULL; | |
17824 | } | |
17825 | ||
17826 | ||
093d3ff1 | 17827 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17828 | PyObject *obj; |
17829 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
093d3ff1 | 17830 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); |
d14a1e28 RD |
17831 | Py_INCREF(obj); |
17832 | return Py_BuildValue((char *)""); | |
17833 | } | |
093d3ff1 | 17834 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17835 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17836 | wxWindow *arg1 = (wxWindow *) 0 ; |
17837 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
17838 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
e2950dbb | 17839 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; |
093d3ff1 | 17840 | wxBufferedPaintDC *result; |
994141e6 RD |
17841 | PyObject * obj0 = 0 ; |
17842 | PyObject * obj1 = 0 ; | |
e2950dbb | 17843 | PyObject * obj2 = 0 ; |
d14a1e28 | 17844 | char *kwnames[] = { |
e2950dbb | 17845 | (char *) "window",(char *) "buffer",(char *) "style", NULL |
d14a1e28 RD |
17846 | }; |
17847 | ||
e2950dbb | 17848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
17849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17851 | if (obj1) { | |
17852 | { | |
17853 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
17854 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17855 | if (arg2 == NULL) { | |
17856 | SWIG_null_ref("wxBitmap"); | |
17857 | } | |
17858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17859 | } | |
994141e6 | 17860 | } |
e2950dbb RD |
17861 | if (obj2) { |
17862 | { | |
32fe5131 | 17863 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
e2950dbb RD |
17864 | if (SWIG_arg_fail(3)) SWIG_fail; |
17865 | } | |
17866 | } | |
d14a1e28 | 17867 | { |
e3b71cb8 | 17868 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e2950dbb | 17870 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); |
d14a1e28 RD |
17871 | |
17872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17873 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17874 | } |
093d3ff1 | 17875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
17876 | return resultobj; |
17877 | fail: | |
17878 | return NULL; | |
17879 | } | |
17880 | ||
17881 | ||
093d3ff1 RD |
17882 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
17883 | PyObject *obj; | |
17884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17885 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
17886 | Py_INCREF(obj); | |
17887 | return Py_BuildValue((char *)""); | |
17888 | } | |
17889 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 17890 | PyObject *resultobj = NULL; |
093d3ff1 | 17891 | wxScreenDC *result; |
d14a1e28 | 17892 | char *kwnames[] = { |
093d3ff1 | 17893 | NULL |
d14a1e28 RD |
17894 | }; |
17895 | ||
093d3ff1 | 17896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; |
d14a1e28 | 17897 | { |
093d3ff1 | 17898 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 17900 | result = (wxScreenDC *)new wxScreenDC(); |
d14a1e28 RD |
17901 | |
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
093d3ff1 | 17905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
17906 | return resultobj; |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
093d3ff1 | 17912 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17913 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17914 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17915 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17916 | bool result; | |
d14a1e28 RD |
17917 | PyObject * obj0 = 0 ; |
17918 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17919 | char *kwnames[] = { |
093d3ff1 | 17920 | (char *) "self",(char *) "window", NULL |
d14a1e28 RD |
17921 | }; |
17922 | ||
093d3ff1 RD |
17923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; |
17924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17926 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17927 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17928 | { |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17930 | result = (bool)(arg1)->StartDrawingOnTop(arg2); |
d14a1e28 RD |
17931 | |
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
093d3ff1 RD |
17935 | { |
17936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17937 | } | |
d14a1e28 RD |
17938 | return resultobj; |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
093d3ff1 | 17944 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17945 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17946 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17947 | wxRect *arg2 = (wxRect *) NULL ; | |
17948 | bool result; | |
d14a1e28 RD |
17949 | PyObject * obj0 = 0 ; |
17950 | PyObject * obj1 = 0 ; | |
d14a1e28 | 17951 | char *kwnames[] = { |
093d3ff1 | 17952 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
17953 | }; |
17954 | ||
093d3ff1 RD |
17955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; |
17956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17958 | if (obj1) { | |
17959 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
17960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17961 | } |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17964 | result = (bool)(arg1)->StartDrawingOnTop(arg2); |
d14a1e28 RD |
17965 | |
17966 | wxPyEndAllowThreads(__tstate); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | } | |
093d3ff1 RD |
17969 | { |
17970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17971 | } | |
d14a1e28 RD |
17972 | return resultobj; |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
093d3ff1 | 17978 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17979 | PyObject *resultobj = NULL; |
093d3ff1 RD |
17980 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; |
17981 | bool result; | |
d14a1e28 | 17982 | PyObject * obj0 = 0 ; |
d14a1e28 | 17983 | char *kwnames[] = { |
093d3ff1 | 17984 | (char *) "self", NULL |
d14a1e28 RD |
17985 | }; |
17986 | ||
093d3ff1 RD |
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; |
17988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0); | |
17989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17990 | { |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 17992 | result = (bool)(arg1)->EndDrawingOnTop(); |
d14a1e28 RD |
17993 | |
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
093d3ff1 RD |
17997 | { |
17998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17999 | } | |
d14a1e28 RD |
18000 | return resultobj; |
18001 | fail: | |
18002 | return NULL; | |
18003 | } | |
18004 | ||
18005 | ||
093d3ff1 RD |
18006 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
18007 | PyObject *obj; | |
18008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18009 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
18010 | Py_INCREF(obj); | |
18011 | return Py_BuildValue((char *)""); | |
18012 | } | |
18013 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18014 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18015 | wxWindow *arg1 = (wxWindow *) 0 ; |
18016 | wxClientDC *result; | |
d14a1e28 | 18017 | PyObject * obj0 = 0 ; |
d14a1e28 | 18018 | char *kwnames[] = { |
093d3ff1 | 18019 | (char *) "win", NULL |
d14a1e28 RD |
18020 | }; |
18021 | ||
093d3ff1 RD |
18022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; |
18023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18025 | { |
093d3ff1 | 18026 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 18027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 18028 | result = (wxClientDC *)new wxClientDC(arg1); |
d14a1e28 RD |
18029 | |
18030 | wxPyEndAllowThreads(__tstate); | |
18031 | if (PyErr_Occurred()) SWIG_fail; | |
18032 | } | |
093d3ff1 | 18033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
18034 | return resultobj; |
18035 | fail: | |
18036 | return NULL; | |
18037 | } | |
18038 | ||
18039 | ||
093d3ff1 RD |
18040 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
18041 | PyObject *obj; | |
18042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18043 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
18044 | Py_INCREF(obj); | |
18045 | return Py_BuildValue((char *)""); | |
18046 | } | |
18047 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18048 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18049 | wxWindow *arg1 = (wxWindow *) 0 ; |
18050 | wxPaintDC *result; | |
d14a1e28 | 18051 | PyObject * obj0 = 0 ; |
d14a1e28 | 18052 | char *kwnames[] = { |
093d3ff1 | 18053 | (char *) "win", NULL |
d14a1e28 RD |
18054 | }; |
18055 | ||
093d3ff1 RD |
18056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; |
18057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18059 | { |
093d3ff1 | 18060 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 18062 | result = (wxPaintDC *)new wxPaintDC(arg1); |
d14a1e28 RD |
18063 | |
18064 | wxPyEndAllowThreads(__tstate); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
093d3ff1 | 18067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
18068 | return resultobj; |
18069 | fail: | |
18070 | return NULL; | |
18071 | } | |
18072 | ||
18073 | ||
093d3ff1 RD |
18074 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
18075 | PyObject *obj; | |
18076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18077 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
18078 | Py_INCREF(obj); | |
18079 | return Py_BuildValue((char *)""); | |
18080 | } | |
18081 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18082 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18083 | wxWindow *arg1 = (wxWindow *) 0 ; |
18084 | wxWindowDC *result; | |
d14a1e28 RD |
18085 | PyObject * obj0 = 0 ; |
18086 | char *kwnames[] = { | |
093d3ff1 | 18087 | (char *) "win", NULL |
d14a1e28 RD |
18088 | }; |
18089 | ||
093d3ff1 RD |
18090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; |
18091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 18093 | { |
093d3ff1 | 18094 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 18095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 18096 | result = (wxWindowDC *)new wxWindowDC(arg1); |
d14a1e28 RD |
18097 | |
18098 | wxPyEndAllowThreads(__tstate); | |
18099 | if (PyErr_Occurred()) SWIG_fail; | |
18100 | } | |
093d3ff1 | 18101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
18102 | return resultobj; |
18103 | fail: | |
18104 | return NULL; | |
18105 | } | |
18106 | ||
18107 | ||
093d3ff1 RD |
18108 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
18109 | PyObject *obj; | |
18110 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18111 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
18112 | Py_INCREF(obj); | |
18113 | return Py_BuildValue((char *)""); | |
18114 | } | |
18115 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18116 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18117 | wxDC *arg1 = 0 ; |
18118 | bool arg2 ; | |
18119 | wxMirrorDC *result; | |
d14a1e28 | 18120 | PyObject * obj0 = 0 ; |
994141e6 | 18121 | PyObject * obj1 = 0 ; |
d14a1e28 | 18122 | char *kwnames[] = { |
093d3ff1 | 18123 | (char *) "dc",(char *) "mirror", NULL |
d14a1e28 RD |
18124 | }; |
18125 | ||
093d3ff1 RD |
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; |
18127 | { | |
18128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
18129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18130 | if (arg1 == NULL) { | |
18131 | SWIG_null_ref("wxDC"); | |
18132 | } | |
18133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18134 | } | |
18135 | { | |
32fe5131 | 18136 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
18137 | if (SWIG_arg_fail(2)) SWIG_fail; |
18138 | } | |
d14a1e28 | 18139 | { |
093d3ff1 | 18140 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 18141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 18142 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); |
d14a1e28 RD |
18143 | |
18144 | wxPyEndAllowThreads(__tstate); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
093d3ff1 RD |
18147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { | |
18155 | PyObject *obj; | |
18156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18157 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
18158 | Py_INCREF(obj); | |
18159 | return Py_BuildValue((char *)""); | |
18160 | } | |
18161 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18162 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18163 | wxPrintData *arg1 = 0 ; |
18164 | wxPostScriptDC *result; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | char *kwnames[] = { | |
18167 | (char *) "printData", NULL | |
18168 | }; | |
18169 | ||
18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
18171 | { | |
18172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18174 | if (arg1 == NULL) { | |
18175 | SWIG_null_ref("wxPrintData"); | |
18176 | } | |
18177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18178 | } | |
4f89f6a3 | 18179 | { |
093d3ff1 RD |
18180 | if (!wxPyCheckForApp()) SWIG_fail; |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
4f89f6a3 | 18186 | } |
093d3ff1 | 18187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
18188 | return resultobj; |
18189 | fail: | |
18190 | return NULL; | |
18191 | } | |
18192 | ||
18193 | ||
093d3ff1 | 18194 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18195 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18196 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
18197 | wxPrintData *result; | |
d14a1e28 RD |
18198 | PyObject * obj0 = 0 ; |
18199 | char *kwnames[] = { | |
18200 | (char *) "self", NULL | |
18201 | }; | |
18202 | ||
093d3ff1 RD |
18203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; |
18204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
18205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18206 | { |
18207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 RD |
18208 | { |
18209 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
18210 | result = (wxPrintData *) &_result_ref; | |
18211 | } | |
d14a1e28 RD |
18212 | |
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
093d3ff1 | 18216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
18217 | return resultobj; |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
093d3ff1 | 18223 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18224 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18225 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; |
18226 | wxPrintData *arg2 = 0 ; | |
d14a1e28 | 18227 | PyObject * obj0 = 0 ; |
994141e6 | 18228 | PyObject * obj1 = 0 ; |
d14a1e28 | 18229 | char *kwnames[] = { |
093d3ff1 | 18230 | (char *) "self",(char *) "data", NULL |
d14a1e28 RD |
18231 | }; |
18232 | ||
093d3ff1 RD |
18233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; |
18234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0); | |
18235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18236 | { | |
18237 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18239 | if (arg2 == NULL) { | |
18240 | SWIG_null_ref("wxPrintData"); | |
18241 | } | |
18242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18243 | } | |
d14a1e28 RD |
18244 | { |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18246 | (arg1)->SetPrintData((wxPrintData const &)*arg2); |
d14a1e28 RD |
18247 | |
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
18252 | return resultobj; |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
093d3ff1 | 18258 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18259 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18260 | int arg1 ; |
18261 | PyObject * obj0 = 0 ; | |
18262 | char *kwnames[] = { | |
18263 | (char *) "ppi", NULL | |
18264 | }; | |
d14a1e28 | 18265 | |
093d3ff1 RD |
18266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
18267 | { | |
32fe5131 | 18268 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
18269 | if (SWIG_arg_fail(1)) SWIG_fail; |
18270 | } | |
18271 | { | |
18272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18273 | wxPostScriptDC::SetResolution(arg1); | |
18274 | ||
18275 | wxPyEndAllowThreads(__tstate); | |
18276 | if (PyErr_Occurred()) SWIG_fail; | |
18277 | } | |
18278 | Py_INCREF(Py_None); resultobj = Py_None; | |
18279 | return resultobj; | |
18280 | fail: | |
18281 | return NULL; | |
d14a1e28 RD |
18282 | } |
18283 | ||
18284 | ||
093d3ff1 | 18285 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18286 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18287 | int result; |
18288 | char *kwnames[] = { | |
18289 | NULL | |
18290 | }; | |
d14a1e28 | 18291 | |
093d3ff1 RD |
18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | result = (int)wxPostScriptDC::GetResolution(); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | { | |
32fe5131 | 18301 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
18302 | } |
18303 | return resultobj; | |
18304 | fail: | |
18305 | return NULL; | |
d14a1e28 RD |
18306 | } |
18307 | ||
18308 | ||
093d3ff1 RD |
18309 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
18310 | PyObject *obj; | |
18311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18312 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
18313 | Py_INCREF(obj); | |
18314 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18315 | } |
093d3ff1 | 18316 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18317 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18318 | wxString const &arg1_defvalue = wxPyEmptyString ; |
18319 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18320 | wxMetaFile *result; | |
18321 | bool temp1 = false ; | |
18322 | PyObject * obj0 = 0 ; | |
18323 | char *kwnames[] = { | |
18324 | (char *) "filename", NULL | |
18325 | }; | |
d14a1e28 | 18326 | |
093d3ff1 RD |
18327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; |
18328 | if (obj0) { | |
18329 | { | |
18330 | arg1 = wxString_in_helper(obj0); | |
18331 | if (arg1 == NULL) SWIG_fail; | |
18332 | temp1 = true; | |
18333 | } | |
18334 | } | |
18335 | { | |
18336 | if (!wxPyCheckForApp()) SWIG_fail; | |
18337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18338 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
18339 | ||
18340 | wxPyEndAllowThreads(__tstate); | |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
18342 | } | |
18343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
18344 | { | |
18345 | if (temp1) | |
18346 | delete arg1; | |
18347 | } | |
18348 | return resultobj; | |
18349 | fail: | |
18350 | { | |
18351 | if (temp1) | |
18352 | delete arg1; | |
18353 | } | |
18354 | return NULL; | |
d14a1e28 RD |
18355 | } |
18356 | ||
18357 | ||
093d3ff1 RD |
18358 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
18359 | PyObject *obj; | |
18360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18361 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
18362 | Py_INCREF(obj); | |
18363 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18364 | } |
093d3ff1 | 18365 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18366 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18367 | wxString const &arg1_defvalue = wxPyEmptyString ; |
18368 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
18369 | int arg2 = (int) 0 ; | |
18370 | int arg3 = (int) 0 ; | |
18371 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18372 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18373 | wxMetaFileDC *result; | |
18374 | bool temp1 = false ; | |
18375 | bool temp4 = false ; | |
18376 | PyObject * obj0 = 0 ; | |
18377 | PyObject * obj1 = 0 ; | |
18378 | PyObject * obj2 = 0 ; | |
18379 | PyObject * obj3 = 0 ; | |
18380 | char *kwnames[] = { | |
18381 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
18382 | }; | |
d14a1e28 | 18383 | |
093d3ff1 RD |
18384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18385 | if (obj0) { | |
18386 | { | |
18387 | arg1 = wxString_in_helper(obj0); | |
18388 | if (arg1 == NULL) SWIG_fail; | |
18389 | temp1 = true; | |
18390 | } | |
18391 | } | |
18392 | if (obj1) { | |
18393 | { | |
32fe5131 | 18394 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18395 | if (SWIG_arg_fail(2)) SWIG_fail; |
18396 | } | |
18397 | } | |
18398 | if (obj2) { | |
18399 | { | |
32fe5131 | 18400 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18401 | if (SWIG_arg_fail(3)) SWIG_fail; |
18402 | } | |
18403 | } | |
18404 | if (obj3) { | |
18405 | { | |
18406 | arg4 = wxString_in_helper(obj3); | |
18407 | if (arg4 == NULL) SWIG_fail; | |
18408 | temp4 = true; | |
18409 | } | |
18410 | } | |
18411 | { | |
18412 | if (!wxPyCheckForApp()) SWIG_fail; | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
18419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
18420 | { | |
18421 | if (temp1) | |
18422 | delete arg1; | |
18423 | } | |
18424 | { | |
18425 | if (temp4) | |
18426 | delete arg4; | |
18427 | } | |
18428 | return resultobj; | |
18429 | fail: | |
18430 | { | |
18431 | if (temp1) | |
18432 | delete arg1; | |
18433 | } | |
18434 | { | |
18435 | if (temp4) | |
18436 | delete arg4; | |
18437 | } | |
18438 | return NULL; | |
d14a1e28 RD |
18439 | } |
18440 | ||
18441 | ||
093d3ff1 RD |
18442 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
18443 | PyObject *obj; | |
18444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18445 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
18446 | Py_INCREF(obj); | |
18447 | return Py_BuildValue((char *)""); | |
994141e6 | 18448 | } |
093d3ff1 | 18449 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18450 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18451 | wxPrintData *arg1 = 0 ; |
18452 | wxPrinterDC *result; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | char *kwnames[] = { | |
18455 | (char *) "printData", NULL | |
18456 | }; | |
d14a1e28 | 18457 | |
093d3ff1 RD |
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; |
18459 | { | |
18460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0); | |
18461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18462 | if (arg1 == NULL) { | |
18463 | SWIG_null_ref("wxPrintData"); | |
18464 | } | |
18465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18466 | } | |
18467 | { | |
18468 | if (!wxPyCheckForApp()) SWIG_fail; | |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | return NULL; | |
d14a1e28 | 18479 | } |
994141e6 RD |
18480 | |
18481 | ||
093d3ff1 RD |
18482 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
18483 | PyObject *obj; | |
18484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18485 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
18486 | Py_INCREF(obj); | |
18487 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18488 | } |
093d3ff1 | 18489 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18490 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18491 | int arg1 ; |
18492 | int arg2 ; | |
18493 | int arg3 = (int) true ; | |
18494 | int arg4 = (int) 1 ; | |
18495 | wxImageList *result; | |
18496 | PyObject * obj0 = 0 ; | |
18497 | PyObject * obj1 = 0 ; | |
18498 | PyObject * obj2 = 0 ; | |
18499 | PyObject * obj3 = 0 ; | |
18500 | char *kwnames[] = { | |
18501 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
18502 | }; | |
d14a1e28 | 18503 | |
093d3ff1 RD |
18504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
18505 | { | |
32fe5131 | 18506 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
18507 | if (SWIG_arg_fail(1)) SWIG_fail; |
18508 | } | |
18509 | { | |
32fe5131 | 18510 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18511 | if (SWIG_arg_fail(2)) SWIG_fail; |
18512 | } | |
18513 | if (obj2) { | |
18514 | { | |
32fe5131 | 18515 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18516 | if (SWIG_arg_fail(3)) SWIG_fail; |
18517 | } | |
18518 | } | |
18519 | if (obj3) { | |
18520 | { | |
32fe5131 | 18521 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
18522 | if (SWIG_arg_fail(4)) SWIG_fail; |
18523 | } | |
18524 | } | |
18525 | { | |
18526 | if (!wxPyCheckForApp()) SWIG_fail; | |
18527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18528 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
18529 | ||
18530 | wxPyEndAllowThreads(__tstate); | |
18531 | if (PyErr_Occurred()) SWIG_fail; | |
18532 | } | |
18533 | { | |
18534 | resultobj = wxPyMake_wxObject(result, 1); | |
18535 | } | |
18536 | return resultobj; | |
18537 | fail: | |
18538 | return NULL; | |
d14a1e28 RD |
18539 | } |
18540 | ||
18541 | ||
093d3ff1 | 18542 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18543 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18544 | wxImageList *arg1 = (wxImageList *) 0 ; |
18545 | PyObject * obj0 = 0 ; | |
18546 | char *kwnames[] = { | |
18547 | (char *) "self", NULL | |
18548 | }; | |
d14a1e28 | 18549 | |
093d3ff1 RD |
18550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; |
18551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18553 | { | |
18554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18555 | delete arg1; | |
18556 | ||
18557 | wxPyEndAllowThreads(__tstate); | |
18558 | if (PyErr_Occurred()) SWIG_fail; | |
18559 | } | |
18560 | Py_INCREF(Py_None); resultobj = Py_None; | |
18561 | return resultobj; | |
18562 | fail: | |
18563 | return NULL; | |
d14a1e28 RD |
18564 | } |
18565 | ||
18566 | ||
093d3ff1 | 18567 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18568 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18569 | wxImageList *arg1 = (wxImageList *) 0 ; |
18570 | wxBitmap *arg2 = 0 ; | |
18571 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
18572 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
18573 | int result; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | PyObject * obj1 = 0 ; | |
18576 | PyObject * obj2 = 0 ; | |
18577 | char *kwnames[] = { | |
18578 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
18579 | }; | |
d14a1e28 | 18580 | |
093d3ff1 RD |
18581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18582 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18583 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18584 | { | |
18585 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18586 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18587 | if (arg2 == NULL) { | |
18588 | SWIG_null_ref("wxBitmap"); | |
18589 | } | |
18590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18591 | } | |
18592 | if (obj2) { | |
18593 | { | |
18594 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18595 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18596 | if (arg3 == NULL) { | |
18597 | SWIG_null_ref("wxBitmap"); | |
18598 | } | |
18599 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18600 | } | |
18601 | } | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
18605 | ||
18606 | wxPyEndAllowThreads(__tstate); | |
18607 | if (PyErr_Occurred()) SWIG_fail; | |
18608 | } | |
18609 | { | |
32fe5131 | 18610 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
18611 | } |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
d14a1e28 RD |
18615 | } |
18616 | ||
18617 | ||
093d3ff1 | 18618 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18619 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18620 | wxImageList *arg1 = (wxImageList *) 0 ; |
18621 | wxBitmap *arg2 = 0 ; | |
18622 | wxColour *arg3 = 0 ; | |
18623 | int result; | |
18624 | wxColour temp3 ; | |
18625 | PyObject * obj0 = 0 ; | |
18626 | PyObject * obj1 = 0 ; | |
18627 | PyObject * obj2 = 0 ; | |
18628 | char *kwnames[] = { | |
18629 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
18630 | }; | |
d14a1e28 | 18631 | |
093d3ff1 RD |
18632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18635 | { | |
18636 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18637 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18638 | if (arg2 == NULL) { | |
18639 | SWIG_null_ref("wxBitmap"); | |
18640 | } | |
18641 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18642 | } | |
18643 | { | |
18644 | arg3 = &temp3; | |
18645 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18646 | } | |
18647 | { | |
18648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18649 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
18650 | ||
18651 | wxPyEndAllowThreads(__tstate); | |
18652 | if (PyErr_Occurred()) SWIG_fail; | |
18653 | } | |
18654 | { | |
32fe5131 | 18655 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
18656 | } |
18657 | return resultobj; | |
18658 | fail: | |
18659 | return NULL; | |
d14a1e28 RD |
18660 | } |
18661 | ||
18662 | ||
093d3ff1 | 18663 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18664 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18665 | wxImageList *arg1 = (wxImageList *) 0 ; |
18666 | wxIcon *arg2 = 0 ; | |
18667 | int result; | |
18668 | PyObject * obj0 = 0 ; | |
18669 | PyObject * obj1 = 0 ; | |
18670 | char *kwnames[] = { | |
18671 | (char *) "self",(char *) "icon", NULL | |
18672 | }; | |
994141e6 | 18673 | |
093d3ff1 RD |
18674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; |
18675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18677 | { | |
18678 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
18679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18680 | if (arg2 == NULL) { | |
18681 | SWIG_null_ref("wxIcon"); | |
18682 | } | |
18683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18684 | } | |
18685 | { | |
18686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18687 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
18688 | ||
18689 | wxPyEndAllowThreads(__tstate); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | } | |
18692 | { | |
32fe5131 | 18693 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
18694 | } |
18695 | return resultobj; | |
18696 | fail: | |
18697 | return NULL; | |
d14a1e28 RD |
18698 | } |
18699 | ||
18700 | ||
b9d6a5f3 | 18701 | static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18702 | PyObject *resultobj = NULL; |
b9d6a5f3 RD |
18703 | wxImageList *arg1 = (wxImageList *) 0 ; |
18704 | int arg2 ; | |
18705 | SwigValueWrapper<wxBitmap > result; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | PyObject * obj1 = 0 ; | |
18708 | char *kwnames[] = { | |
18709 | (char *) "self",(char *) "index", NULL | |
18710 | }; | |
18711 | ||
18712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
18713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18715 | { | |
32fe5131 | 18716 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
b9d6a5f3 RD |
18717 | if (SWIG_arg_fail(2)) SWIG_fail; |
18718 | } | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | { | |
18727 | wxBitmap * resultptr; | |
32fe5131 | 18728 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
b9d6a5f3 RD |
18729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
18730 | } | |
18731 | return resultobj; | |
18732 | fail: | |
18733 | return NULL; | |
18734 | } | |
18735 | ||
18736 | ||
18737 | static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18738 | PyObject *resultobj = NULL; |
b9d6a5f3 RD |
18739 | wxImageList *arg1 = (wxImageList *) 0 ; |
18740 | int arg2 ; | |
18741 | wxIcon result; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | PyObject * obj1 = 0 ; | |
18744 | char *kwnames[] = { | |
18745 | (char *) "self",(char *) "index", NULL | |
18746 | }; | |
18747 | ||
18748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
18749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18751 | { | |
32fe5131 | 18752 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
b9d6a5f3 RD |
18753 | if (SWIG_arg_fail(2)) SWIG_fail; |
18754 | } | |
18755 | { | |
18756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18757 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
18758 | ||
18759 | wxPyEndAllowThreads(__tstate); | |
18760 | if (PyErr_Occurred()) SWIG_fail; | |
18761 | } | |
18762 | { | |
18763 | wxIcon * resultptr; | |
32fe5131 | 18764 | resultptr = new wxIcon(static_cast<wxIcon & >(result)); |
b9d6a5f3 RD |
18765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
18766 | } | |
18767 | return resultobj; | |
18768 | fail: | |
18769 | return NULL; | |
18770 | } | |
18771 | ||
18772 | ||
093d3ff1 | 18773 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18774 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18775 | wxImageList *arg1 = (wxImageList *) 0 ; |
18776 | int arg2 ; | |
18777 | wxBitmap *arg3 = 0 ; | |
18778 | bool result; | |
18779 | PyObject * obj0 = 0 ; | |
18780 | PyObject * obj1 = 0 ; | |
18781 | PyObject * obj2 = 0 ; | |
18782 | char *kwnames[] = { | |
18783 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
18784 | }; | |
d14a1e28 | 18785 | |
093d3ff1 RD |
18786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18789 | { | |
32fe5131 | 18790 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18791 | if (SWIG_arg_fail(2)) SWIG_fail; |
18792 | } | |
18793 | { | |
18794 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18795 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18796 | if (arg3 == NULL) { | |
18797 | SWIG_null_ref("wxBitmap"); | |
18798 | } | |
18799 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18800 | } | |
18801 | { | |
18802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18803 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
18804 | ||
18805 | wxPyEndAllowThreads(__tstate); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | { | |
18809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18810 | } | |
18811 | return resultobj; | |
18812 | fail: | |
18813 | return NULL; | |
d14a1e28 RD |
18814 | } |
18815 | ||
18816 | ||
093d3ff1 | 18817 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18818 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18819 | wxImageList *arg1 = (wxImageList *) 0 ; |
18820 | int arg2 ; | |
18821 | wxDC *arg3 = 0 ; | |
18822 | int arg4 ; | |
18823 | int arg5 ; | |
18824 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
18825 | bool arg7 = (bool) (bool)false ; | |
18826 | bool result; | |
18827 | PyObject * obj0 = 0 ; | |
18828 | PyObject * obj1 = 0 ; | |
18829 | PyObject * obj2 = 0 ; | |
18830 | PyObject * obj3 = 0 ; | |
18831 | PyObject * obj4 = 0 ; | |
18832 | PyObject * obj5 = 0 ; | |
18833 | PyObject * obj6 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18841 | { | |
32fe5131 | 18842 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18843 | if (SWIG_arg_fail(2)) SWIG_fail; |
18844 | } | |
18845 | { | |
18846 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
18847 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18848 | if (arg3 == NULL) { | |
18849 | SWIG_null_ref("wxDC"); | |
18850 | } | |
18851 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18852 | } | |
18853 | { | |
32fe5131 | 18854 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
18855 | if (SWIG_arg_fail(4)) SWIG_fail; |
18856 | } | |
18857 | { | |
32fe5131 | 18858 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
18859 | if (SWIG_arg_fail(5)) SWIG_fail; |
18860 | } | |
18861 | if (obj5) { | |
18862 | { | |
32fe5131 | 18863 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
18864 | if (SWIG_arg_fail(6)) SWIG_fail; |
18865 | } | |
18866 | } | |
18867 | if (obj6) { | |
18868 | { | |
32fe5131 | 18869 | arg7 = static_cast<bool const >(SWIG_As_bool(obj6)); |
093d3ff1 RD |
18870 | if (SWIG_arg_fail(7)) SWIG_fail; |
18871 | } | |
18872 | } | |
18873 | { | |
18874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18875 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
18876 | ||
18877 | wxPyEndAllowThreads(__tstate); | |
18878 | if (PyErr_Occurred()) SWIG_fail; | |
18879 | } | |
18880 | { | |
18881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18882 | } | |
18883 | return resultobj; | |
18884 | fail: | |
18885 | return NULL; | |
d14a1e28 RD |
18886 | } |
18887 | ||
18888 | ||
093d3ff1 | 18889 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18890 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18891 | wxImageList *arg1 = (wxImageList *) 0 ; |
18892 | int result; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self", NULL | |
18896 | }; | |
d14a1e28 | 18897 | |
093d3ff1 RD |
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; |
18899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18901 | { | |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | result = (int)(arg1)->GetImageCount(); | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
18908 | { | |
32fe5131 | 18909 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 RD |
18910 | } |
18911 | return resultobj; | |
18912 | fail: | |
18913 | return NULL; | |
d14a1e28 RD |
18914 | } |
18915 | ||
18916 | ||
093d3ff1 | 18917 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18918 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18919 | wxImageList *arg1 = (wxImageList *) 0 ; |
18920 | int arg2 ; | |
18921 | bool result; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | PyObject * obj1 = 0 ; | |
18924 | char *kwnames[] = { | |
18925 | (char *) "self",(char *) "index", NULL | |
18926 | }; | |
18927 | ||
18928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
18929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18931 | { | |
32fe5131 | 18932 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
18933 | if (SWIG_arg_fail(2)) SWIG_fail; |
18934 | } | |
18935 | { | |
18936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18937 | result = (bool)(arg1)->Remove(arg2); | |
18938 | ||
18939 | wxPyEndAllowThreads(__tstate); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | } | |
18942 | { | |
18943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18944 | } | |
18945 | return resultobj; | |
18946 | fail: | |
18947 | return NULL; | |
d14a1e28 RD |
18948 | } |
18949 | ||
18950 | ||
093d3ff1 | 18951 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18952 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18953 | wxImageList *arg1 = (wxImageList *) 0 ; |
18954 | bool result; | |
18955 | PyObject * obj0 = 0 ; | |
18956 | char *kwnames[] = { | |
18957 | (char *) "self", NULL | |
18958 | }; | |
d14a1e28 | 18959 | |
093d3ff1 RD |
18960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; |
18961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18963 | { | |
18964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18965 | result = (bool)(arg1)->RemoveAll(); | |
18966 | ||
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | { | |
18971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18972 | } | |
18973 | return resultobj; | |
18974 | fail: | |
18975 | return NULL; | |
d14a1e28 RD |
18976 | } |
18977 | ||
18978 | ||
093d3ff1 | 18979 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18980 | PyObject *resultobj = NULL; |
093d3ff1 RD |
18981 | wxImageList *arg1 = (wxImageList *) 0 ; |
18982 | int arg2 ; | |
18983 | int *arg3 = 0 ; | |
18984 | int *arg4 = 0 ; | |
18985 | int temp3 ; | |
18986 | int res3 = 0 ; | |
18987 | int temp4 ; | |
18988 | int res4 = 0 ; | |
18989 | PyObject * obj0 = 0 ; | |
18990 | PyObject * obj1 = 0 ; | |
18991 | char *kwnames[] = { | |
18992 | (char *) "self",(char *) "index", NULL | |
18993 | }; | |
18994 | ||
18995 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
18996 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
18997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
18998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
18999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19000 | { | |
32fe5131 | 19001 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19002 | if (SWIG_arg_fail(2)) SWIG_fail; |
19003 | } | |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
19007 | ||
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
19011 | Py_INCREF(Py_None); resultobj = Py_None; | |
19012 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
19013 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
19014 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
19015 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
19016 | return resultobj; | |
19017 | fail: | |
19018 | return NULL; | |
19019 | } | |
19020 | ||
19021 | ||
19022 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { | |
19023 | PyObject *obj; | |
19024 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19025 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
19026 | Py_INCREF(obj); | |
19027 | return Py_BuildValue((char *)""); | |
19028 | } | |
19029 | static int _wrap_NORMAL_FONT_set(PyObject *) { | |
19030 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
d14a1e28 RD |
19031 | return 1; |
19032 | } | |
19033 | ||
19034 | ||
093d3ff1 | 19035 | static PyObject *_wrap_NORMAL_FONT_get(void) { |
32fe5131 | 19036 | PyObject *pyobj = NULL; |
d14a1e28 | 19037 | |
093d3ff1 | 19038 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19039 | return pyobj; |
19040 | } | |
19041 | ||
19042 | ||
093d3ff1 RD |
19043 | static int _wrap_SMALL_FONT_set(PyObject *) { |
19044 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
d14a1e28 RD |
19045 | return 1; |
19046 | } | |
19047 | ||
19048 | ||
093d3ff1 | 19049 | static PyObject *_wrap_SMALL_FONT_get(void) { |
32fe5131 | 19050 | PyObject *pyobj = NULL; |
d14a1e28 | 19051 | |
093d3ff1 | 19052 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19053 | return pyobj; |
19054 | } | |
19055 | ||
19056 | ||
093d3ff1 RD |
19057 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
19058 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
d14a1e28 RD |
19059 | return 1; |
19060 | } | |
19061 | ||
19062 | ||
093d3ff1 | 19063 | static PyObject *_wrap_ITALIC_FONT_get(void) { |
32fe5131 | 19064 | PyObject *pyobj = NULL; |
d14a1e28 | 19065 | |
093d3ff1 | 19066 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19067 | return pyobj; |
19068 | } | |
19069 | ||
19070 | ||
093d3ff1 RD |
19071 | static int _wrap_SWISS_FONT_set(PyObject *) { |
19072 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
d14a1e28 RD |
19073 | return 1; |
19074 | } | |
19075 | ||
19076 | ||
093d3ff1 | 19077 | static PyObject *_wrap_SWISS_FONT_get(void) { |
32fe5131 | 19078 | PyObject *pyobj = NULL; |
d14a1e28 | 19079 | |
093d3ff1 | 19080 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19081 | return pyobj; |
19082 | } | |
19083 | ||
19084 | ||
093d3ff1 RD |
19085 | static int _wrap_RED_PEN_set(PyObject *) { |
19086 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
d14a1e28 RD |
19087 | return 1; |
19088 | } | |
19089 | ||
19090 | ||
093d3ff1 | 19091 | static PyObject *_wrap_RED_PEN_get(void) { |
32fe5131 | 19092 | PyObject *pyobj = NULL; |
d14a1e28 | 19093 | |
093d3ff1 | 19094 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19095 | return pyobj; |
19096 | } | |
19097 | ||
19098 | ||
093d3ff1 RD |
19099 | static int _wrap_CYAN_PEN_set(PyObject *) { |
19100 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
d14a1e28 RD |
19101 | return 1; |
19102 | } | |
19103 | ||
19104 | ||
093d3ff1 | 19105 | static PyObject *_wrap_CYAN_PEN_get(void) { |
32fe5131 | 19106 | PyObject *pyobj = NULL; |
d14a1e28 | 19107 | |
093d3ff1 | 19108 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19109 | return pyobj; |
19110 | } | |
19111 | ||
19112 | ||
093d3ff1 RD |
19113 | static int _wrap_GREEN_PEN_set(PyObject *) { |
19114 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
d14a1e28 RD |
19115 | return 1; |
19116 | } | |
19117 | ||
19118 | ||
093d3ff1 | 19119 | static PyObject *_wrap_GREEN_PEN_get(void) { |
32fe5131 | 19120 | PyObject *pyobj = NULL; |
d14a1e28 | 19121 | |
093d3ff1 | 19122 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19123 | return pyobj; |
19124 | } | |
19125 | ||
19126 | ||
093d3ff1 RD |
19127 | static int _wrap_BLACK_PEN_set(PyObject *) { |
19128 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
d14a1e28 RD |
19129 | return 1; |
19130 | } | |
19131 | ||
19132 | ||
093d3ff1 | 19133 | static PyObject *_wrap_BLACK_PEN_get(void) { |
32fe5131 | 19134 | PyObject *pyobj = NULL; |
d14a1e28 | 19135 | |
093d3ff1 | 19136 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19137 | return pyobj; |
19138 | } | |
19139 | ||
19140 | ||
093d3ff1 RD |
19141 | static int _wrap_WHITE_PEN_set(PyObject *) { |
19142 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
d14a1e28 RD |
19143 | return 1; |
19144 | } | |
19145 | ||
19146 | ||
093d3ff1 | 19147 | static PyObject *_wrap_WHITE_PEN_get(void) { |
32fe5131 | 19148 | PyObject *pyobj = NULL; |
d14a1e28 | 19149 | |
093d3ff1 | 19150 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19151 | return pyobj; |
19152 | } | |
19153 | ||
19154 | ||
093d3ff1 RD |
19155 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
19156 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
d14a1e28 RD |
19157 | return 1; |
19158 | } | |
19159 | ||
19160 | ||
093d3ff1 | 19161 | static PyObject *_wrap_TRANSPARENT_PEN_get(void) { |
32fe5131 | 19162 | PyObject *pyobj = NULL; |
d14a1e28 | 19163 | |
093d3ff1 | 19164 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19165 | return pyobj; |
19166 | } | |
19167 | ||
19168 | ||
093d3ff1 RD |
19169 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
19170 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
d14a1e28 RD |
19171 | return 1; |
19172 | } | |
19173 | ||
19174 | ||
093d3ff1 | 19175 | static PyObject *_wrap_BLACK_DASHED_PEN_get(void) { |
32fe5131 | 19176 | PyObject *pyobj = NULL; |
d14a1e28 | 19177 | |
093d3ff1 | 19178 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19179 | return pyobj; |
19180 | } | |
19181 | ||
19182 | ||
093d3ff1 RD |
19183 | static int _wrap_GREY_PEN_set(PyObject *) { |
19184 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
d14a1e28 RD |
19185 | return 1; |
19186 | } | |
19187 | ||
19188 | ||
093d3ff1 | 19189 | static PyObject *_wrap_GREY_PEN_get(void) { |
32fe5131 | 19190 | PyObject *pyobj = NULL; |
d14a1e28 | 19191 | |
093d3ff1 | 19192 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19193 | return pyobj; |
19194 | } | |
19195 | ||
19196 | ||
093d3ff1 RD |
19197 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
19198 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
19199 | return 1; |
19200 | } | |
19201 | ||
19202 | ||
093d3ff1 | 19203 | static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) { |
32fe5131 | 19204 | PyObject *pyobj = NULL; |
d14a1e28 | 19205 | |
093d3ff1 RD |
19206 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
19207 | return pyobj; | |
19208 | } | |
19209 | ||
19210 | ||
19211 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { | |
19212 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
19213 | return 1; | |
19214 | } | |
19215 | ||
19216 | ||
19217 | static PyObject *_wrap_LIGHT_GREY_PEN_get(void) { | |
32fe5131 | 19218 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19219 | |
19220 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
19221 | return pyobj; | |
19222 | } | |
19223 | ||
19224 | ||
19225 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
19226 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
19227 | return 1; | |
19228 | } | |
19229 | ||
19230 | ||
19231 | static PyObject *_wrap_BLUE_BRUSH_get(void) { | |
32fe5131 | 19232 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19233 | |
19234 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19235 | return pyobj; | |
19236 | } | |
19237 | ||
19238 | ||
19239 | static int _wrap_GREEN_BRUSH_set(PyObject *) { | |
19240 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
19241 | return 1; | |
19242 | } | |
19243 | ||
19244 | ||
19245 | static PyObject *_wrap_GREEN_BRUSH_get(void) { | |
32fe5131 | 19246 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19247 | |
19248 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19249 | return pyobj; | |
19250 | } | |
19251 | ||
19252 | ||
19253 | static int _wrap_WHITE_BRUSH_set(PyObject *) { | |
19254 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
19255 | return 1; | |
19256 | } | |
19257 | ||
19258 | ||
19259 | static PyObject *_wrap_WHITE_BRUSH_get(void) { | |
32fe5131 | 19260 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19261 | |
19262 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19263 | return pyobj; | |
19264 | } | |
19265 | ||
19266 | ||
19267 | static int _wrap_BLACK_BRUSH_set(PyObject *) { | |
19268 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
19269 | return 1; | |
19270 | } | |
19271 | ||
19272 | ||
19273 | static PyObject *_wrap_BLACK_BRUSH_get(void) { | |
32fe5131 | 19274 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19275 | |
19276 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19277 | return pyobj; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { | |
19282 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
19283 | return 1; | |
19284 | } | |
19285 | ||
19286 | ||
19287 | static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) { | |
32fe5131 | 19288 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19289 | |
19290 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19291 | return pyobj; | |
19292 | } | |
19293 | ||
19294 | ||
19295 | static int _wrap_CYAN_BRUSH_set(PyObject *) { | |
19296 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
19297 | return 1; | |
19298 | } | |
19299 | ||
19300 | ||
19301 | static PyObject *_wrap_CYAN_BRUSH_get(void) { | |
32fe5131 | 19302 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19303 | |
19304 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19305 | return pyobj; | |
19306 | } | |
19307 | ||
19308 | ||
19309 | static int _wrap_RED_BRUSH_set(PyObject *) { | |
19310 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
19311 | return 1; | |
19312 | } | |
19313 | ||
19314 | ||
19315 | static PyObject *_wrap_RED_BRUSH_get(void) { | |
32fe5131 | 19316 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19317 | |
19318 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19319 | return pyobj; | |
19320 | } | |
19321 | ||
19322 | ||
19323 | static int _wrap_GREY_BRUSH_set(PyObject *) { | |
19324 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
19325 | return 1; | |
19326 | } | |
19327 | ||
19328 | ||
19329 | static PyObject *_wrap_GREY_BRUSH_get(void) { | |
32fe5131 | 19330 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19331 | |
19332 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19333 | return pyobj; | |
19334 | } | |
19335 | ||
19336 | ||
19337 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { | |
19338 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
19339 | return 1; | |
19340 | } | |
19341 | ||
19342 | ||
19343 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) { | |
32fe5131 | 19344 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19345 | |
19346 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19347 | return pyobj; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { | |
19352 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
19353 | return 1; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) { | |
32fe5131 | 19358 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19359 | |
19360 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
19361 | return pyobj; | |
19362 | } | |
19363 | ||
19364 | ||
19365 | static int _wrap_BLACK_set(PyObject *) { | |
19366 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
19367 | return 1; | |
19368 | } | |
19369 | ||
19370 | ||
19371 | static PyObject *_wrap_BLACK_get(void) { | |
32fe5131 | 19372 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19373 | |
19374 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
19375 | return pyobj; | |
19376 | } | |
19377 | ||
19378 | ||
19379 | static int _wrap_WHITE_set(PyObject *) { | |
19380 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
19381 | return 1; | |
19382 | } | |
19383 | ||
19384 | ||
19385 | static PyObject *_wrap_WHITE_get(void) { | |
32fe5131 | 19386 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19387 | |
19388 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
19389 | return pyobj; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static int _wrap_RED_set(PyObject *) { | |
19394 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
19395 | return 1; | |
19396 | } | |
19397 | ||
19398 | ||
19399 | static PyObject *_wrap_RED_get(void) { | |
32fe5131 | 19400 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19401 | |
19402 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
19403 | return pyobj; | |
19404 | } | |
19405 | ||
19406 | ||
19407 | static int _wrap_BLUE_set(PyObject *) { | |
19408 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
19409 | return 1; | |
19410 | } | |
19411 | ||
19412 | ||
19413 | static PyObject *_wrap_BLUE_get(void) { | |
32fe5131 | 19414 | PyObject *pyobj = NULL; |
093d3ff1 RD |
19415 | |
19416 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
d14a1e28 RD |
19417 | return pyobj; |
19418 | } | |
19419 | ||
19420 | ||
c32bde28 | 19421 | static int _wrap_GREEN_set(PyObject *) { |
994141e6 | 19422 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
d14a1e28 RD |
19423 | return 1; |
19424 | } | |
19425 | ||
19426 | ||
093d3ff1 | 19427 | static PyObject *_wrap_GREEN_get(void) { |
32fe5131 | 19428 | PyObject *pyobj = NULL; |
d14a1e28 | 19429 | |
15afbcd0 | 19430 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19431 | return pyobj; |
19432 | } | |
19433 | ||
19434 | ||
c32bde28 | 19435 | static int _wrap_CYAN_set(PyObject *) { |
994141e6 | 19436 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
d14a1e28 RD |
19437 | return 1; |
19438 | } | |
19439 | ||
19440 | ||
093d3ff1 | 19441 | static PyObject *_wrap_CYAN_get(void) { |
32fe5131 | 19442 | PyObject *pyobj = NULL; |
d14a1e28 | 19443 | |
15afbcd0 | 19444 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19445 | return pyobj; |
19446 | } | |
19447 | ||
19448 | ||
c32bde28 | 19449 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
994141e6 | 19450 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
d14a1e28 RD |
19451 | return 1; |
19452 | } | |
19453 | ||
19454 | ||
093d3ff1 | 19455 | static PyObject *_wrap_LIGHT_GREY_get(void) { |
32fe5131 | 19456 | PyObject *pyobj = NULL; |
d14a1e28 | 19457 | |
15afbcd0 | 19458 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19459 | return pyobj; |
19460 | } | |
19461 | ||
19462 | ||
c32bde28 | 19463 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
994141e6 | 19464 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
d14a1e28 RD |
19465 | return 1; |
19466 | } | |
19467 | ||
19468 | ||
093d3ff1 | 19469 | static PyObject *_wrap_STANDARD_CURSOR_get(void) { |
32fe5131 | 19470 | PyObject *pyobj = NULL; |
d14a1e28 | 19471 | |
15afbcd0 | 19472 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19473 | return pyobj; |
19474 | } | |
19475 | ||
19476 | ||
c32bde28 | 19477 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
994141e6 | 19478 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
d14a1e28 RD |
19479 | return 1; |
19480 | } | |
19481 | ||
19482 | ||
093d3ff1 | 19483 | static PyObject *_wrap_HOURGLASS_CURSOR_get(void) { |
32fe5131 | 19484 | PyObject *pyobj = NULL; |
d14a1e28 | 19485 | |
15afbcd0 | 19486 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19487 | return pyobj; |
19488 | } | |
19489 | ||
19490 | ||
c32bde28 | 19491 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
994141e6 | 19492 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
d14a1e28 RD |
19493 | return 1; |
19494 | } | |
19495 | ||
19496 | ||
093d3ff1 | 19497 | static PyObject *_wrap_CROSS_CURSOR_get(void) { |
32fe5131 | 19498 | PyObject *pyobj = NULL; |
d14a1e28 | 19499 | |
15afbcd0 | 19500 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19501 | return pyobj; |
19502 | } | |
19503 | ||
19504 | ||
c32bde28 | 19505 | static int _wrap_NullBitmap_set(PyObject *) { |
994141e6 | 19506 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
d14a1e28 RD |
19507 | return 1; |
19508 | } | |
19509 | ||
19510 | ||
093d3ff1 | 19511 | static PyObject *_wrap_NullBitmap_get(void) { |
32fe5131 | 19512 | PyObject *pyobj = NULL; |
d14a1e28 | 19513 | |
15afbcd0 | 19514 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
19515 | return pyobj; |
19516 | } | |
19517 | ||
19518 | ||
c32bde28 | 19519 | static int _wrap_NullIcon_set(PyObject *) { |
994141e6 | 19520 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
d14a1e28 RD |
19521 | return 1; |
19522 | } | |
19523 | ||
19524 | ||
093d3ff1 | 19525 | static PyObject *_wrap_NullIcon_get(void) { |
32fe5131 | 19526 | PyObject *pyobj = NULL; |
d14a1e28 | 19527 | |
15afbcd0 | 19528 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
19529 | return pyobj; |
19530 | } | |
19531 | ||
19532 | ||
c32bde28 | 19533 | static int _wrap_NullCursor_set(PyObject *) { |
994141e6 | 19534 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
d14a1e28 RD |
19535 | return 1; |
19536 | } | |
19537 | ||
19538 | ||
093d3ff1 | 19539 | static PyObject *_wrap_NullCursor_get(void) { |
32fe5131 | 19540 | PyObject *pyobj = NULL; |
d14a1e28 | 19541 | |
15afbcd0 | 19542 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
19543 | return pyobj; |
19544 | } | |
19545 | ||
19546 | ||
c32bde28 | 19547 | static int _wrap_NullPen_set(PyObject *) { |
994141e6 | 19548 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
d14a1e28 RD |
19549 | return 1; |
19550 | } | |
19551 | ||
19552 | ||
093d3ff1 | 19553 | static PyObject *_wrap_NullPen_get(void) { |
32fe5131 | 19554 | PyObject *pyobj = NULL; |
d14a1e28 | 19555 | |
15afbcd0 | 19556 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
19557 | return pyobj; |
19558 | } | |
19559 | ||
19560 | ||
c32bde28 | 19561 | static int _wrap_NullBrush_set(PyObject *) { |
994141e6 | 19562 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
d14a1e28 RD |
19563 | return 1; |
19564 | } | |
19565 | ||
19566 | ||
093d3ff1 | 19567 | static PyObject *_wrap_NullBrush_get(void) { |
32fe5131 | 19568 | PyObject *pyobj = NULL; |
d14a1e28 | 19569 | |
15afbcd0 | 19570 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
19571 | return pyobj; |
19572 | } | |
19573 | ||
19574 | ||
c32bde28 | 19575 | static int _wrap_NullPalette_set(PyObject *) { |
994141e6 | 19576 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
d14a1e28 RD |
19577 | return 1; |
19578 | } | |
19579 | ||
19580 | ||
093d3ff1 | 19581 | static PyObject *_wrap_NullPalette_get(void) { |
32fe5131 | 19582 | PyObject *pyobj = NULL; |
d14a1e28 | 19583 | |
15afbcd0 | 19584 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
19585 | return pyobj; |
19586 | } | |
19587 | ||
19588 | ||
c32bde28 | 19589 | static int _wrap_NullFont_set(PyObject *) { |
994141e6 | 19590 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
d14a1e28 RD |
19591 | return 1; |
19592 | } | |
19593 | ||
19594 | ||
093d3ff1 | 19595 | static PyObject *_wrap_NullFont_get(void) { |
32fe5131 | 19596 | PyObject *pyobj = NULL; |
d14a1e28 | 19597 | |
15afbcd0 | 19598 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
19599 | return pyobj; |
19600 | } | |
19601 | ||
19602 | ||
c32bde28 | 19603 | static int _wrap_NullColour_set(PyObject *) { |
994141e6 | 19604 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
d14a1e28 RD |
19605 | return 1; |
19606 | } | |
19607 | ||
19608 | ||
093d3ff1 | 19609 | static PyObject *_wrap_NullColour_get(void) { |
32fe5131 | 19610 | PyObject *pyobj = NULL; |
d14a1e28 | 19611 | |
15afbcd0 | 19612 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
19613 | return pyobj; |
19614 | } | |
19615 | ||
19616 | ||
c32bde28 | 19617 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19618 | PyObject *resultobj = NULL; |
994141e6 RD |
19619 | wxPenList *arg1 = (wxPenList *) 0 ; |
19620 | wxPen *arg2 = (wxPen *) 0 ; | |
19621 | PyObject * obj0 = 0 ; | |
19622 | PyObject * obj1 = 0 ; | |
19623 | char *kwnames[] = { | |
19624 | (char *) "self",(char *) "pen", NULL | |
19625 | }; | |
19626 | ||
19627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19630 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19632 | { |
19633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19634 | (arg1)->AddPen(arg2); | |
19635 | ||
19636 | wxPyEndAllowThreads(__tstate); | |
19637 | if (PyErr_Occurred()) SWIG_fail; | |
19638 | } | |
19639 | Py_INCREF(Py_None); resultobj = Py_None; | |
19640 | return resultobj; | |
19641 | fail: | |
19642 | return NULL; | |
d14a1e28 RD |
19643 | } |
19644 | ||
19645 | ||
c32bde28 | 19646 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19647 | PyObject *resultobj = NULL; |
994141e6 RD |
19648 | wxPenList *arg1 = (wxPenList *) 0 ; |
19649 | wxColour *arg2 = 0 ; | |
19650 | int arg3 ; | |
19651 | int arg4 ; | |
19652 | wxPen *result; | |
19653 | wxColour temp2 ; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | PyObject * obj1 = 0 ; | |
19656 | PyObject * obj2 = 0 ; | |
19657 | PyObject * obj3 = 0 ; | |
19658 | char *kwnames[] = { | |
19659 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
19660 | }; | |
d14a1e28 | 19661 | |
994141e6 | 19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
19663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19665 | { |
19666 | arg2 = &temp2; | |
19667 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19668 | } | |
093d3ff1 | 19669 | { |
32fe5131 | 19670 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
19671 | if (SWIG_arg_fail(3)) SWIG_fail; |
19672 | } | |
19673 | { | |
32fe5131 | 19674 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
19675 | if (SWIG_arg_fail(4)) SWIG_fail; |
19676 | } | |
994141e6 RD |
19677 | { |
19678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19679 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
19680 | ||
19681 | wxPyEndAllowThreads(__tstate); | |
19682 | if (PyErr_Occurred()) SWIG_fail; | |
19683 | } | |
15afbcd0 | 19684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
19685 | return resultobj; |
19686 | fail: | |
19687 | return NULL; | |
d14a1e28 RD |
19688 | } |
19689 | ||
19690 | ||
c32bde28 | 19691 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19692 | PyObject *resultobj = NULL; |
994141e6 RD |
19693 | wxPenList *arg1 = (wxPenList *) 0 ; |
19694 | wxPen *arg2 = (wxPen *) 0 ; | |
19695 | PyObject * obj0 = 0 ; | |
19696 | PyObject * obj1 = 0 ; | |
19697 | char *kwnames[] = { | |
19698 | (char *) "self",(char *) "pen", NULL | |
19699 | }; | |
19700 | ||
19701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19704 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0); | |
19705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19706 | { |
19707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19708 | (arg1)->RemovePen(arg2); | |
19709 | ||
19710 | wxPyEndAllowThreads(__tstate); | |
19711 | if (PyErr_Occurred()) SWIG_fail; | |
19712 | } | |
19713 | Py_INCREF(Py_None); resultobj = Py_None; | |
19714 | return resultobj; | |
19715 | fail: | |
19716 | return NULL; | |
d14a1e28 RD |
19717 | } |
19718 | ||
19719 | ||
c32bde28 | 19720 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19721 | PyObject *resultobj = NULL; |
994141e6 RD |
19722 | wxPenList *arg1 = (wxPenList *) 0 ; |
19723 | int result; | |
19724 | PyObject * obj0 = 0 ; | |
19725 | char *kwnames[] = { | |
19726 | (char *) "self", NULL | |
19727 | }; | |
d14a1e28 | 19728 | |
994141e6 | 19729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0); |
19731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19732 | { |
19733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19734 | result = (int)(arg1)->GetCount(); | |
19735 | ||
19736 | wxPyEndAllowThreads(__tstate); | |
19737 | if (PyErr_Occurred()) SWIG_fail; | |
19738 | } | |
093d3ff1 | 19739 | { |
32fe5131 | 19740 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19741 | } |
994141e6 RD |
19742 | return resultobj; |
19743 | fail: | |
19744 | return NULL; | |
d14a1e28 RD |
19745 | } |
19746 | ||
19747 | ||
c32bde28 | 19748 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
19749 | PyObject *obj; |
19750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19751 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
19752 | Py_INCREF(obj); | |
19753 | return Py_BuildValue((char *)""); | |
19754 | } | |
c32bde28 | 19755 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19756 | PyObject *resultobj = NULL; |
994141e6 RD |
19757 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
19758 | wxBrush *arg2 = (wxBrush *) 0 ; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | PyObject * obj1 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self",(char *) "brush", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19768 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
19769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19770 | { |
19771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19772 | (arg1)->AddBrush(arg2); | |
19773 | ||
19774 | wxPyEndAllowThreads(__tstate); | |
19775 | if (PyErr_Occurred()) SWIG_fail; | |
19776 | } | |
19777 | Py_INCREF(Py_None); resultobj = Py_None; | |
19778 | return resultobj; | |
19779 | fail: | |
19780 | return NULL; | |
19781 | } | |
19782 | ||
19783 | ||
c32bde28 | 19784 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19785 | PyObject *resultobj = NULL; |
994141e6 RD |
19786 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
19787 | wxColour *arg2 = 0 ; | |
61d07ac7 | 19788 | int arg3 = (int) wxSOLID ; |
994141e6 RD |
19789 | wxBrush *result; |
19790 | wxColour temp2 ; | |
19791 | PyObject * obj0 = 0 ; | |
19792 | PyObject * obj1 = 0 ; | |
19793 | PyObject * obj2 = 0 ; | |
19794 | char *kwnames[] = { | |
19795 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
19796 | }; | |
19797 | ||
61d07ac7 | 19798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
19799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19801 | { |
19802 | arg2 = &temp2; | |
19803 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19804 | } | |
61d07ac7 RD |
19805 | if (obj2) { |
19806 | { | |
32fe5131 | 19807 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
61d07ac7 RD |
19808 | if (SWIG_arg_fail(3)) SWIG_fail; |
19809 | } | |
093d3ff1 | 19810 | } |
994141e6 RD |
19811 | { |
19812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19813 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
19814 | ||
19815 | wxPyEndAllowThreads(__tstate); | |
19816 | if (PyErr_Occurred()) SWIG_fail; | |
19817 | } | |
15afbcd0 | 19818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
19819 | return resultobj; |
19820 | fail: | |
19821 | return NULL; | |
d14a1e28 RD |
19822 | } |
19823 | ||
19824 | ||
c32bde28 | 19825 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19826 | PyObject *resultobj = NULL; |
994141e6 RD |
19827 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
19828 | wxBrush *arg2 = (wxBrush *) 0 ; | |
19829 | PyObject * obj0 = 0 ; | |
19830 | PyObject * obj1 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self",(char *) "brush", NULL | |
19833 | }; | |
d14a1e28 | 19834 | |
994141e6 | 19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19838 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0); | |
19839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
19840 | { |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | (arg1)->RemoveBrush(arg2); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
19847 | Py_INCREF(Py_None); resultobj = Py_None; | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | return NULL; | |
d14a1e28 RD |
19851 | } |
19852 | ||
19853 | ||
c32bde28 | 19854 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19855 | PyObject *resultobj = NULL; |
994141e6 RD |
19856 | wxBrushList *arg1 = (wxBrushList *) 0 ; |
19857 | int result; | |
19858 | PyObject * obj0 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self", NULL | |
19861 | }; | |
d14a1e28 | 19862 | |
994141e6 | 19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0); |
19865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19866 | { |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (int)(arg1)->GetCount(); | |
19869 | ||
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
093d3ff1 | 19873 | { |
32fe5131 | 19874 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19875 | } |
994141e6 RD |
19876 | return resultobj; |
19877 | fail: | |
19878 | return NULL; | |
d14a1e28 RD |
19879 | } |
19880 | ||
19881 | ||
c32bde28 | 19882 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
19883 | PyObject *obj; |
19884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19885 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
19886 | Py_INCREF(obj); | |
19887 | return Py_BuildValue((char *)""); | |
d14a1e28 | 19888 | } |
c32bde28 | 19889 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19890 | PyObject *resultobj = NULL; |
994141e6 RD |
19891 | wxColourDatabase *result; |
19892 | char *kwnames[] = { | |
19893 | NULL | |
19894 | }; | |
d14a1e28 | 19895 | |
994141e6 RD |
19896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
19897 | { | |
e3b71cb8 | 19898 | if (!wxPyCheckForApp()) SWIG_fail; |
994141e6 RD |
19899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19900 | result = (wxColourDatabase *)new wxColourDatabase(); | |
19901 | ||
19902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19903 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19904 | } |
15afbcd0 | 19905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
19906 | return resultobj; |
19907 | fail: | |
19908 | return NULL; | |
d14a1e28 RD |
19909 | } |
19910 | ||
19911 | ||
c32bde28 | 19912 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19913 | PyObject *resultobj = NULL; |
994141e6 RD |
19914 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
19915 | PyObject * obj0 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self", NULL | |
19918 | }; | |
d14a1e28 | 19919 | |
994141e6 | 19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
19921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19923 | { |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | delete arg1; | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | Py_INCREF(Py_None); resultobj = Py_None; | |
19931 | return resultobj; | |
19932 | fail: | |
19933 | return NULL; | |
d14a1e28 RD |
19934 | } |
19935 | ||
19936 | ||
c32bde28 | 19937 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19938 | PyObject *resultobj = NULL; |
994141e6 RD |
19939 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
19940 | wxString *arg2 = 0 ; | |
19941 | wxColour result; | |
ae8162c8 | 19942 | bool temp2 = false ; |
994141e6 RD |
19943 | PyObject * obj0 = 0 ; |
19944 | PyObject * obj1 = 0 ; | |
19945 | char *kwnames[] = { | |
19946 | (char *) "self",(char *) "name", NULL | |
19947 | }; | |
19948 | ||
19949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19952 | { |
19953 | arg2 = wxString_in_helper(obj1); | |
19954 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19955 | temp2 = true; |
994141e6 RD |
19956 | } |
19957 | { | |
19958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19959 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
19960 | ||
19961 | wxPyEndAllowThreads(__tstate); | |
19962 | if (PyErr_Occurred()) SWIG_fail; | |
19963 | } | |
19964 | { | |
19965 | wxColour * resultptr; | |
32fe5131 | 19966 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 19967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
19968 | } |
19969 | { | |
19970 | if (temp2) | |
19971 | delete arg2; | |
19972 | } | |
19973 | return resultobj; | |
19974 | fail: | |
19975 | { | |
19976 | if (temp2) | |
19977 | delete arg2; | |
19978 | } | |
19979 | return NULL; | |
d14a1e28 RD |
19980 | } |
19981 | ||
19982 | ||
c32bde28 | 19983 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19984 | PyObject *resultobj = NULL; |
994141e6 RD |
19985 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
19986 | wxColour *arg2 = 0 ; | |
19987 | wxString result; | |
19988 | wxColour temp2 ; | |
19989 | PyObject * obj0 = 0 ; | |
19990 | PyObject * obj1 = 0 ; | |
19991 | char *kwnames[] = { | |
19992 | (char *) "self",(char *) "colour", NULL | |
19993 | }; | |
d14a1e28 | 19994 | |
994141e6 | 19995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
19997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
19998 | { |
19999 | arg2 = &temp2; | |
20000 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20001 | } | |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | { | |
20010 | #if wxUSE_UNICODE | |
20011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20012 | #else | |
20013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20014 | #endif | |
20015 | } | |
20016 | return resultobj; | |
20017 | fail: | |
20018 | return NULL; | |
d14a1e28 RD |
20019 | } |
20020 | ||
20021 | ||
c32bde28 | 20022 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20023 | PyObject *resultobj = NULL; |
994141e6 RD |
20024 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20025 | wxString *arg2 = 0 ; | |
20026 | wxColour *arg3 = 0 ; | |
ae8162c8 | 20027 | bool temp2 = false ; |
994141e6 RD |
20028 | wxColour temp3 ; |
20029 | PyObject * obj0 = 0 ; | |
20030 | PyObject * obj1 = 0 ; | |
20031 | PyObject * obj2 = 0 ; | |
20032 | char *kwnames[] = { | |
20033 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
20034 | }; | |
20035 | ||
20036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
20038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
20039 | { |
20040 | arg2 = wxString_in_helper(obj1); | |
20041 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20042 | temp2 = true; |
994141e6 RD |
20043 | } |
20044 | { | |
20045 | arg3 = &temp3; | |
20046 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
20047 | } | |
20048 | { | |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
20051 | ||
20052 | wxPyEndAllowThreads(__tstate); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | } | |
20055 | Py_INCREF(Py_None); resultobj = Py_None; | |
20056 | { | |
20057 | if (temp2) | |
20058 | delete arg2; | |
20059 | } | |
20060 | return resultobj; | |
20061 | fail: | |
20062 | { | |
20063 | if (temp2) | |
20064 | delete arg2; | |
20065 | } | |
20066 | return NULL; | |
d14a1e28 RD |
20067 | } |
20068 | ||
20069 | ||
c32bde28 | 20070 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20071 | PyObject *resultobj = NULL; |
994141e6 RD |
20072 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; |
20073 | wxString *arg2 = 0 ; | |
20074 | int arg3 ; | |
20075 | int arg4 ; | |
20076 | int arg5 ; | |
ae8162c8 | 20077 | bool temp2 = false ; |
994141e6 RD |
20078 | PyObject * obj0 = 0 ; |
20079 | PyObject * obj1 = 0 ; | |
20080 | PyObject * obj2 = 0 ; | |
20081 | PyObject * obj3 = 0 ; | |
20082 | PyObject * obj4 = 0 ; | |
20083 | char *kwnames[] = { | |
20084 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
20085 | }; | |
d14a1e28 | 20086 | |
994141e6 | 20087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
20088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0); |
20089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
20090 | { |
20091 | arg2 = wxString_in_helper(obj1); | |
20092 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20093 | temp2 = true; |
994141e6 | 20094 | } |
093d3ff1 | 20095 | { |
32fe5131 | 20096 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20097 | if (SWIG_arg_fail(3)) SWIG_fail; |
20098 | } | |
20099 | { | |
32fe5131 | 20100 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20101 | if (SWIG_arg_fail(4)) SWIG_fail; |
20102 | } | |
20103 | { | |
32fe5131 | 20104 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20105 | if (SWIG_arg_fail(5)) SWIG_fail; |
20106 | } | |
994141e6 RD |
20107 | { |
20108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20109 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
20110 | ||
20111 | wxPyEndAllowThreads(__tstate); | |
20112 | if (PyErr_Occurred()) SWIG_fail; | |
20113 | } | |
20114 | Py_INCREF(Py_None); resultobj = Py_None; | |
20115 | { | |
20116 | if (temp2) | |
20117 | delete arg2; | |
20118 | } | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | { | |
20122 | if (temp2) | |
20123 | delete arg2; | |
20124 | } | |
20125 | return NULL; | |
d14a1e28 RD |
20126 | } |
20127 | ||
20128 | ||
c32bde28 | 20129 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
20130 | PyObject *obj; |
20131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20132 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
20133 | Py_INCREF(obj); | |
20134 | return Py_BuildValue((char *)""); | |
d14a1e28 | 20135 | } |
c32bde28 | 20136 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20137 | PyObject *resultobj = NULL; |
994141e6 RD |
20138 | wxFontList *arg1 = (wxFontList *) 0 ; |
20139 | wxFont *arg2 = (wxFont *) 0 ; | |
20140 | PyObject * obj0 = 0 ; | |
20141 | PyObject * obj1 = 0 ; | |
20142 | char *kwnames[] = { | |
20143 | (char *) "self",(char *) "font", NULL | |
20144 | }; | |
d14a1e28 | 20145 | |
994141e6 | 20146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
20148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20149 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
20150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
20151 | { |
20152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20153 | (arg1)->AddFont(arg2); | |
20154 | ||
20155 | wxPyEndAllowThreads(__tstate); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
20158 | Py_INCREF(Py_None); resultobj = Py_None; | |
20159 | return resultobj; | |
20160 | fail: | |
20161 | return NULL; | |
d14a1e28 RD |
20162 | } |
20163 | ||
20164 | ||
c32bde28 | 20165 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20166 | PyObject *resultobj = NULL; |
994141e6 RD |
20167 | wxFontList *arg1 = (wxFontList *) 0 ; |
20168 | int arg2 ; | |
20169 | int arg3 ; | |
20170 | int arg4 ; | |
20171 | int arg5 ; | |
ae8162c8 | 20172 | bool arg6 = (bool) false ; |
994141e6 RD |
20173 | wxString const &arg7_defvalue = wxPyEmptyString ; |
20174 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
093d3ff1 | 20175 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; |
994141e6 | 20176 | wxFont *result; |
ae8162c8 | 20177 | bool temp7 = false ; |
994141e6 RD |
20178 | PyObject * obj0 = 0 ; |
20179 | PyObject * obj1 = 0 ; | |
20180 | PyObject * obj2 = 0 ; | |
20181 | PyObject * obj3 = 0 ; | |
20182 | PyObject * obj4 = 0 ; | |
20183 | PyObject * obj5 = 0 ; | |
20184 | PyObject * obj6 = 0 ; | |
20185 | PyObject * obj7 = 0 ; | |
20186 | char *kwnames[] = { | |
20187 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
20188 | }; | |
d14a1e28 | 20189 | |
994141e6 | 20190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
20191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
20192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20193 | { | |
32fe5131 | 20194 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20195 | if (SWIG_arg_fail(2)) SWIG_fail; |
20196 | } | |
20197 | { | |
32fe5131 | 20198 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20199 | if (SWIG_arg_fail(3)) SWIG_fail; |
20200 | } | |
20201 | { | |
32fe5131 | 20202 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20203 | if (SWIG_arg_fail(4)) SWIG_fail; |
20204 | } | |
20205 | { | |
32fe5131 | 20206 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
20207 | if (SWIG_arg_fail(5)) SWIG_fail; |
20208 | } | |
994141e6 | 20209 | if (obj5) { |
093d3ff1 | 20210 | { |
32fe5131 | 20211 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
093d3ff1 RD |
20212 | if (SWIG_arg_fail(6)) SWIG_fail; |
20213 | } | |
994141e6 RD |
20214 | } |
20215 | if (obj6) { | |
20216 | { | |
20217 | arg7 = wxString_in_helper(obj6); | |
20218 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 20219 | temp7 = true; |
994141e6 RD |
20220 | } |
20221 | } | |
20222 | if (obj7) { | |
093d3ff1 | 20223 | { |
32fe5131 | 20224 | arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7)); |
093d3ff1 RD |
20225 | if (SWIG_arg_fail(8)) SWIG_fail; |
20226 | } | |
994141e6 RD |
20227 | } |
20228 | { | |
20229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20230 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
994141e6 RD |
20231 | |
20232 | wxPyEndAllowThreads(__tstate); | |
20233 | if (PyErr_Occurred()) SWIG_fail; | |
20234 | } | |
15afbcd0 | 20235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
20236 | { |
20237 | if (temp7) | |
20238 | delete arg7; | |
20239 | } | |
20240 | return resultobj; | |
20241 | fail: | |
20242 | { | |
20243 | if (temp7) | |
20244 | delete arg7; | |
20245 | } | |
20246 | return NULL; | |
d14a1e28 RD |
20247 | } |
20248 | ||
20249 | ||
c32bde28 | 20250 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20251 | PyObject *resultobj = NULL; |
994141e6 RD |
20252 | wxFontList *arg1 = (wxFontList *) 0 ; |
20253 | wxFont *arg2 = (wxFont *) 0 ; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | PyObject * obj1 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self",(char *) "font", NULL | |
20258 | }; | |
d14a1e28 | 20259 | |
994141e6 | 20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
20262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20263 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
20264 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 RD |
20265 | { |
20266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20267 | (arg1)->RemoveFont(arg2); | |
20268 | ||
20269 | wxPyEndAllowThreads(__tstate); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | } | |
20272 | Py_INCREF(Py_None); resultobj = Py_None; | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
d14a1e28 RD |
20276 | } |
20277 | ||
20278 | ||
c32bde28 | 20279 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20280 | PyObject *resultobj = NULL; |
994141e6 RD |
20281 | wxFontList *arg1 = (wxFontList *) 0 ; |
20282 | int result; | |
20283 | PyObject * obj0 = 0 ; | |
20284 | char *kwnames[] = { | |
20285 | (char *) "self", NULL | |
20286 | }; | |
d14a1e28 | 20287 | |
994141e6 | 20288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0); |
20290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
20291 | { |
20292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20293 | result = (int)(arg1)->GetCount(); | |
20294 | ||
20295 | wxPyEndAllowThreads(__tstate); | |
20296 | if (PyErr_Occurred()) SWIG_fail; | |
20297 | } | |
093d3ff1 | 20298 | { |
32fe5131 | 20299 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 20300 | } |
994141e6 RD |
20301 | return resultobj; |
20302 | fail: | |
20303 | return NULL; | |
d14a1e28 RD |
20304 | } |
20305 | ||
20306 | ||
c32bde28 | 20307 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
994141e6 RD |
20308 | PyObject *obj; |
20309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20310 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
20311 | Py_INCREF(obj); | |
20312 | return Py_BuildValue((char *)""); | |
20313 | } | |
c32bde28 | 20314 | static int _wrap_TheFontList_set(PyObject *) { |
d14a1e28 RD |
20315 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
20316 | return 1; | |
20317 | } | |
20318 | ||
20319 | ||
093d3ff1 | 20320 | static PyObject *_wrap_TheFontList_get(void) { |
32fe5131 | 20321 | PyObject *pyobj = NULL; |
d14a1e28 | 20322 | |
15afbcd0 | 20323 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
20324 | return pyobj; |
20325 | } | |
20326 | ||
20327 | ||
c32bde28 | 20328 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
20329 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
20330 | return 1; | |
20331 | } | |
20332 | ||
20333 | ||
093d3ff1 | 20334 | static PyObject *_wrap_ThePenList_get(void) { |
32fe5131 | 20335 | PyObject *pyobj = NULL; |
d14a1e28 | 20336 | |
15afbcd0 | 20337 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
20338 | return pyobj; |
20339 | } | |
20340 | ||
20341 | ||
c32bde28 | 20342 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
20343 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
20344 | return 1; | |
20345 | } | |
20346 | ||
20347 | ||
093d3ff1 | 20348 | static PyObject *_wrap_TheBrushList_get(void) { |
32fe5131 | 20349 | PyObject *pyobj = NULL; |
d14a1e28 | 20350 | |
15afbcd0 | 20351 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
20352 | return pyobj; |
20353 | } | |
20354 | ||
20355 | ||
c32bde28 | 20356 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
20357 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
20358 | return 1; | |
20359 | } | |
20360 | ||
20361 | ||
093d3ff1 | 20362 | static PyObject *_wrap_TheColourDatabase_get(void) { |
32fe5131 | 20363 | PyObject *pyobj = NULL; |
d14a1e28 | 20364 | |
15afbcd0 | 20365 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
20366 | return pyobj; |
20367 | } | |
20368 | ||
20369 | ||
c32bde28 | 20370 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20371 | PyObject *resultobj = NULL; |
e811c8ce | 20372 | wxEffects *result; |
d14a1e28 | 20373 | char *kwnames[] = { |
e811c8ce | 20374 | NULL |
d14a1e28 RD |
20375 | }; |
20376 | ||
e811c8ce | 20377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
20378 | { |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20380 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
20381 | |
20382 | wxPyEndAllowThreads(__tstate); | |
20383 | if (PyErr_Occurred()) SWIG_fail; | |
20384 | } | |
15afbcd0 | 20385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
20386 | return resultobj; |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
c32bde28 | 20392 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20393 | PyObject *resultobj = NULL; |
e811c8ce RD |
20394 | wxEffects *arg1 = (wxEffects *) 0 ; |
20395 | wxColour result; | |
d14a1e28 | 20396 | PyObject * obj0 = 0 ; |
d14a1e28 | 20397 | char *kwnames[] = { |
e811c8ce | 20398 | (char *) "self", NULL |
d14a1e28 RD |
20399 | }; |
20400 | ||
e811c8ce | 20401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20404 | { |
20405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20406 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
20407 | |
20408 | wxPyEndAllowThreads(__tstate); | |
20409 | if (PyErr_Occurred()) SWIG_fail; | |
20410 | } | |
e811c8ce RD |
20411 | { |
20412 | wxColour * resultptr; | |
32fe5131 | 20413 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 20414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 20415 | } |
d14a1e28 RD |
20416 | return resultobj; |
20417 | fail: | |
20418 | return NULL; | |
20419 | } | |
20420 | ||
20421 | ||
c32bde28 | 20422 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20423 | PyObject *resultobj = NULL; |
e811c8ce RD |
20424 | wxEffects *arg1 = (wxEffects *) 0 ; |
20425 | wxColour result; | |
d14a1e28 | 20426 | PyObject * obj0 = 0 ; |
d14a1e28 | 20427 | char *kwnames[] = { |
e811c8ce | 20428 | (char *) "self", NULL |
d14a1e28 RD |
20429 | }; |
20430 | ||
e811c8ce | 20431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20434 | { |
20435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20436 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
20437 | |
20438 | wxPyEndAllowThreads(__tstate); | |
20439 | if (PyErr_Occurred()) SWIG_fail; | |
20440 | } | |
d14a1e28 | 20441 | { |
e811c8ce | 20442 | wxColour * resultptr; |
32fe5131 | 20443 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 20444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20445 | } |
20446 | return resultobj; | |
20447 | fail: | |
d14a1e28 RD |
20448 | return NULL; |
20449 | } | |
20450 | ||
20451 | ||
c32bde28 | 20452 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20453 | PyObject *resultobj = NULL; |
e811c8ce RD |
20454 | wxEffects *arg1 = (wxEffects *) 0 ; |
20455 | wxColour result; | |
d14a1e28 | 20456 | PyObject * obj0 = 0 ; |
d14a1e28 | 20457 | char *kwnames[] = { |
e811c8ce | 20458 | (char *) "self", NULL |
d14a1e28 RD |
20459 | }; |
20460 | ||
e811c8ce | 20461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
20462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20464 | { |
20465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 20466 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
20467 | |
20468 | wxPyEndAllowThreads(__tstate); | |
20469 | if (PyErr_Occurred()) SWIG_fail; | |
20470 | } | |
e811c8ce RD |
20471 | { |
20472 | wxColour * resultptr; | |
32fe5131 | 20473 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 20474 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 20475 | } |
d14a1e28 RD |
20476 | return resultobj; |
20477 | fail: | |
20478 | return NULL; | |
20479 | } | |
20480 | ||
20481 | ||
c32bde28 | 20482 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20483 | PyObject *resultobj = NULL; |
e811c8ce RD |
20484 | wxEffects *arg1 = (wxEffects *) 0 ; |
20485 | wxColour result; | |
d14a1e28 RD |
20486 | PyObject * obj0 = 0 ; |
20487 | char *kwnames[] = { | |
e811c8ce | 20488 | (char *) "self", NULL |
d14a1e28 RD |
20489 | }; |
20490 | ||
20491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20494 | { |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
20497 | ||
20498 | wxPyEndAllowThreads(__tstate); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | } | |
20501 | { | |
20502 | wxColour * resultptr; | |
32fe5131 | 20503 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 20504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20505 | } |
20506 | return resultobj; | |
20507 | fail: | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
c32bde28 | 20512 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20513 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20514 | wxEffects *arg1 = (wxEffects *) 0 ; |
20515 | wxColour result; | |
20516 | PyObject * obj0 = 0 ; | |
20517 | char *kwnames[] = { | |
20518 | (char *) "self", NULL | |
20519 | }; | |
20520 | ||
20521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20524 | { |
20525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20526 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
20527 | ||
20528 | wxPyEndAllowThreads(__tstate); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
20531 | { | |
20532 | wxColour * resultptr; | |
32fe5131 | 20533 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 20534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20535 | } |
20536 | return resultobj; | |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
c32bde28 | 20542 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20543 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20544 | wxEffects *arg1 = (wxEffects *) 0 ; |
20545 | wxColour *arg2 = 0 ; | |
20546 | wxColour temp2 ; | |
20547 | PyObject * obj0 = 0 ; | |
20548 | PyObject * obj1 = 0 ; | |
20549 | char *kwnames[] = { | |
20550 | (char *) "self",(char *) "c", NULL | |
20551 | }; | |
20552 | ||
20553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20556 | { |
20557 | arg2 = &temp2; | |
20558 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20559 | } | |
20560 | { | |
20561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20562 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
20563 | ||
20564 | wxPyEndAllowThreads(__tstate); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
20567 | Py_INCREF(Py_None); resultobj = Py_None; | |
20568 | return resultobj; | |
20569 | fail: | |
20570 | return NULL; | |
20571 | } | |
20572 | ||
20573 | ||
c32bde28 | 20574 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20575 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20576 | wxEffects *arg1 = (wxEffects *) 0 ; |
20577 | wxColour *arg2 = 0 ; | |
20578 | wxColour temp2 ; | |
20579 | PyObject * obj0 = 0 ; | |
20580 | PyObject * obj1 = 0 ; | |
20581 | char *kwnames[] = { | |
20582 | (char *) "self",(char *) "c", NULL | |
20583 | }; | |
20584 | ||
20585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20588 | { |
20589 | arg2 = &temp2; | |
20590 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20591 | } | |
20592 | { | |
20593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20594 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
20595 | ||
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | Py_INCREF(Py_None); resultobj = Py_None; | |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
c32bde28 | 20606 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20607 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20608 | wxEffects *arg1 = (wxEffects *) 0 ; |
20609 | wxColour *arg2 = 0 ; | |
20610 | wxColour temp2 ; | |
20611 | PyObject * obj0 = 0 ; | |
20612 | PyObject * obj1 = 0 ; | |
20613 | char *kwnames[] = { | |
20614 | (char *) "self",(char *) "c", NULL | |
20615 | }; | |
20616 | ||
20617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20620 | { |
20621 | arg2 = &temp2; | |
20622 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20623 | } | |
20624 | { | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
20627 | ||
20628 | wxPyEndAllowThreads(__tstate); | |
20629 | if (PyErr_Occurred()) SWIG_fail; | |
20630 | } | |
20631 | Py_INCREF(Py_None); resultobj = Py_None; | |
20632 | return resultobj; | |
20633 | fail: | |
20634 | return NULL; | |
20635 | } | |
20636 | ||
20637 | ||
c32bde28 | 20638 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20639 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20640 | wxEffects *arg1 = (wxEffects *) 0 ; |
20641 | wxColour *arg2 = 0 ; | |
20642 | wxColour temp2 ; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | PyObject * obj1 = 0 ; | |
20645 | char *kwnames[] = { | |
20646 | (char *) "self",(char *) "c", NULL | |
20647 | }; | |
20648 | ||
20649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20652 | { |
20653 | arg2 = &temp2; | |
20654 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20655 | } | |
20656 | { | |
20657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20658 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
20659 | ||
20660 | wxPyEndAllowThreads(__tstate); | |
20661 | if (PyErr_Occurred()) SWIG_fail; | |
20662 | } | |
20663 | Py_INCREF(Py_None); resultobj = Py_None; | |
20664 | return resultobj; | |
20665 | fail: | |
20666 | return NULL; | |
20667 | } | |
20668 | ||
20669 | ||
c32bde28 | 20670 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20671 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20672 | wxEffects *arg1 = (wxEffects *) 0 ; |
20673 | wxColour *arg2 = 0 ; | |
20674 | wxColour temp2 ; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | PyObject * obj1 = 0 ; | |
20677 | char *kwnames[] = { | |
20678 | (char *) "self",(char *) "c", NULL | |
20679 | }; | |
20680 | ||
20681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20684 | { |
20685 | arg2 = &temp2; | |
20686 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20687 | } | |
20688 | { | |
20689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20690 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
20691 | ||
20692 | wxPyEndAllowThreads(__tstate); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | Py_INCREF(Py_None); resultobj = Py_None; | |
20696 | return resultobj; | |
20697 | fail: | |
20698 | return NULL; | |
20699 | } | |
20700 | ||
20701 | ||
c32bde28 | 20702 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20703 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20704 | wxEffects *arg1 = (wxEffects *) 0 ; |
20705 | wxColour *arg2 = 0 ; | |
20706 | wxColour *arg3 = 0 ; | |
20707 | wxColour *arg4 = 0 ; | |
20708 | wxColour *arg5 = 0 ; | |
20709 | wxColour *arg6 = 0 ; | |
20710 | wxColour temp2 ; | |
20711 | wxColour temp3 ; | |
20712 | wxColour temp4 ; | |
20713 | wxColour temp5 ; | |
20714 | wxColour temp6 ; | |
20715 | PyObject * obj0 = 0 ; | |
20716 | PyObject * obj1 = 0 ; | |
20717 | PyObject * obj2 = 0 ; | |
20718 | PyObject * obj3 = 0 ; | |
20719 | PyObject * obj4 = 0 ; | |
20720 | PyObject * obj5 = 0 ; | |
20721 | char *kwnames[] = { | |
20722 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
20723 | }; | |
20724 | ||
20725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
20726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20728 | { |
20729 | arg2 = &temp2; | |
20730 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20731 | } | |
20732 | { | |
20733 | arg3 = &temp3; | |
20734 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
20735 | } | |
20736 | { | |
20737 | arg4 = &temp4; | |
20738 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
20739 | } | |
20740 | { | |
20741 | arg5 = &temp5; | |
20742 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
20743 | } | |
20744 | { | |
20745 | arg6 = &temp6; | |
20746 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
20747 | } | |
20748 | { | |
20749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20750 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
20751 | ||
20752 | wxPyEndAllowThreads(__tstate); | |
20753 | if (PyErr_Occurred()) SWIG_fail; | |
20754 | } | |
20755 | Py_INCREF(Py_None); resultobj = Py_None; | |
20756 | return resultobj; | |
20757 | fail: | |
20758 | return NULL; | |
20759 | } | |
20760 | ||
20761 | ||
c32bde28 | 20762 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20763 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20764 | wxEffects *arg1 = (wxEffects *) 0 ; |
20765 | wxDC *arg2 = 0 ; | |
20766 | wxRect *arg3 = 0 ; | |
20767 | int arg4 = (int) 1 ; | |
20768 | wxRect temp3 ; | |
20769 | PyObject * obj0 = 0 ; | |
20770 | PyObject * obj1 = 0 ; | |
20771 | PyObject * obj2 = 0 ; | |
994141e6 | 20772 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
20773 | char *kwnames[] = { |
20774 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
20775 | }; | |
20776 | ||
994141e6 | 20777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
20778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20780 | { | |
20781 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20782 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20783 | if (arg2 == NULL) { | |
20784 | SWIG_null_ref("wxDC"); | |
20785 | } | |
20786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20787 | } |
20788 | { | |
20789 | arg3 = &temp3; | |
20790 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20791 | } | |
994141e6 | 20792 | if (obj3) { |
093d3ff1 | 20793 | { |
32fe5131 | 20794 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
20795 | if (SWIG_arg_fail(4)) SWIG_fail; |
20796 | } | |
994141e6 | 20797 | } |
d14a1e28 RD |
20798 | { |
20799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20800 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
20801 | ||
20802 | wxPyEndAllowThreads(__tstate); | |
20803 | if (PyErr_Occurred()) SWIG_fail; | |
20804 | } | |
20805 | Py_INCREF(Py_None); resultobj = Py_None; | |
20806 | return resultobj; | |
20807 | fail: | |
20808 | return NULL; | |
20809 | } | |
20810 | ||
20811 | ||
c32bde28 | 20812 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20813 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20814 | wxEffects *arg1 = (wxEffects *) 0 ; |
20815 | wxRect *arg2 = 0 ; | |
20816 | wxDC *arg3 = 0 ; | |
20817 | wxBitmap *arg4 = 0 ; | |
20818 | bool result; | |
20819 | wxRect temp2 ; | |
20820 | PyObject * obj0 = 0 ; | |
20821 | PyObject * obj1 = 0 ; | |
20822 | PyObject * obj2 = 0 ; | |
20823 | PyObject * obj3 = 0 ; | |
20824 | char *kwnames[] = { | |
20825 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
20826 | }; | |
20827 | ||
20828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
20829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0); |
20830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20831 | { |
20832 | arg2 = &temp2; | |
20833 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20834 | } | |
093d3ff1 RD |
20835 | { |
20836 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
20837 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20838 | if (arg3 == NULL) { | |
20839 | SWIG_null_ref("wxDC"); | |
20840 | } | |
20841 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 | 20842 | } |
093d3ff1 RD |
20843 | { |
20844 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20845 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20846 | if (arg4 == NULL) { | |
20847 | SWIG_null_ref("wxBitmap"); | |
20848 | } | |
20849 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
20850 | } |
20851 | { | |
20852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20853 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
20854 | ||
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
4f89f6a3 RD |
20858 | { |
20859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20860 | } | |
d14a1e28 RD |
20861 | return resultobj; |
20862 | fail: | |
20863 | return NULL; | |
20864 | } | |
20865 | ||
20866 | ||
c32bde28 | 20867 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20868 | PyObject *obj; |
20869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20870 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
20871 | Py_INCREF(obj); | |
20872 | return Py_BuildValue((char *)""); | |
20873 | } | |
8d38bd1d | 20874 | static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20875 | PyObject *resultobj = NULL; |
8d38bd1d RD |
20876 | int arg1 ; |
20877 | int arg2 ; | |
20878 | bool arg3 ; | |
20879 | wxSplitterRenderParams *result; | |
20880 | PyObject * obj0 = 0 ; | |
20881 | PyObject * obj1 = 0 ; | |
20882 | PyObject * obj2 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20888 | { | |
32fe5131 | 20889 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
8d38bd1d RD |
20890 | if (SWIG_arg_fail(1)) SWIG_fail; |
20891 | } | |
20892 | { | |
32fe5131 | 20893 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
8d38bd1d RD |
20894 | if (SWIG_arg_fail(2)) SWIG_fail; |
20895 | } | |
20896 | { | |
32fe5131 | 20897 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
8d38bd1d RD |
20898 | if (SWIG_arg_fail(3)) SWIG_fail; |
20899 | } | |
20900 | { | |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
20903 | ||
20904 | wxPyEndAllowThreads(__tstate); | |
20905 | if (PyErr_Occurred()) SWIG_fail; | |
20906 | } | |
20907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1); | |
20908 | return resultobj; | |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
20914 | static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20915 | PyObject *resultobj = NULL; |
8d38bd1d RD |
20916 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
20917 | PyObject * obj0 = 0 ; | |
20918 | char *kwnames[] = { | |
20919 | (char *) "self", NULL | |
20920 | }; | |
20921 | ||
20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail; | |
20923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20925 | { | |
20926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20927 | delete arg1; | |
20928 | ||
20929 | wxPyEndAllowThreads(__tstate); | |
20930 | if (PyErr_Occurred()) SWIG_fail; | |
20931 | } | |
20932 | Py_INCREF(Py_None); resultobj = Py_None; | |
20933 | return resultobj; | |
20934 | fail: | |
20935 | return NULL; | |
20936 | } | |
20937 | ||
20938 | ||
20939 | static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20940 | PyObject *resultobj = NULL; |
8d38bd1d RD |
20941 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
20942 | int result; | |
20943 | PyObject * obj0 = 0 ; | |
20944 | char *kwnames[] = { | |
20945 | (char *) "self", NULL | |
20946 | }; | |
20947 | ||
20948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail; | |
20949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20951 | result = (int)(int) ((arg1)->widthSash); | |
20952 | ||
20953 | { | |
32fe5131 | 20954 | resultobj = SWIG_From_int(static_cast<int >(result)); |
8d38bd1d RD |
20955 | } |
20956 | return resultobj; | |
20957 | fail: | |
20958 | return NULL; | |
20959 | } | |
20960 | ||
20961 | ||
20962 | static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20963 | PyObject *resultobj = NULL; |
8d38bd1d RD |
20964 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
20965 | int result; | |
20966 | PyObject * obj0 = 0 ; | |
20967 | char *kwnames[] = { | |
20968 | (char *) "self", NULL | |
20969 | }; | |
20970 | ||
20971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail; | |
20972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20974 | result = (int)(int) ((arg1)->border); | |
20975 | ||
20976 | { | |
32fe5131 | 20977 | resultobj = SWIG_From_int(static_cast<int >(result)); |
8d38bd1d RD |
20978 | } |
20979 | return resultobj; | |
20980 | fail: | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
20985 | static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 20986 | PyObject *resultobj = NULL; |
8d38bd1d RD |
20987 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; |
20988 | bool result; | |
20989 | PyObject * obj0 = 0 ; | |
20990 | char *kwnames[] = { | |
20991 | (char *) "self", NULL | |
20992 | }; | |
20993 | ||
20994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail; | |
20995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0); | |
20996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20997 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
20998 | ||
20999 | { | |
32fe5131 | 21000 | resultobj = SWIG_From_bool(static_cast<bool >(result)); |
8d38bd1d RD |
21001 | } |
21002 | return resultobj; | |
21003 | fail: | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) { | |
21009 | PyObject *obj; | |
21010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21011 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj); | |
21012 | Py_INCREF(obj); | |
21013 | return Py_BuildValue((char *)""); | |
21014 | } | |
21015 | static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21016 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21017 | int arg1 ; |
21018 | int arg2 ; | |
21019 | wxRendererVersion *result; | |
21020 | PyObject * obj0 = 0 ; | |
21021 | PyObject * obj1 = 0 ; | |
21022 | char *kwnames[] = { | |
21023 | (char *) "version_",(char *) "age_", NULL | |
21024 | }; | |
21025 | ||
21026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail; | |
21027 | { | |
32fe5131 | 21028 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
8d38bd1d RD |
21029 | if (SWIG_arg_fail(1)) SWIG_fail; |
21030 | } | |
21031 | { | |
32fe5131 | 21032 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
8d38bd1d RD |
21033 | if (SWIG_arg_fail(2)) SWIG_fail; |
21034 | } | |
21035 | { | |
21036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21037 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
21038 | ||
21039 | wxPyEndAllowThreads(__tstate); | |
21040 | if (PyErr_Occurred()) SWIG_fail; | |
21041 | } | |
21042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1); | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21050 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21051 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21052 | PyObject * obj0 = 0 ; | |
21053 | char *kwnames[] = { | |
21054 | (char *) "self", NULL | |
21055 | }; | |
21056 | ||
21057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail; | |
21058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21060 | { | |
21061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21062 | delete arg1; | |
21063 | ||
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | Py_INCREF(Py_None); resultobj = Py_None; | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21075 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21076 | wxRendererVersion *arg1 = 0 ; |
21077 | bool result; | |
21078 | PyObject * obj0 = 0 ; | |
21079 | char *kwnames[] = { | |
21080 | (char *) "ver", NULL | |
21081 | }; | |
21082 | ||
21083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail; | |
21084 | { | |
21085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21087 | if (arg1 == NULL) { | |
21088 | SWIG_null_ref("wxRendererVersion"); | |
21089 | } | |
21090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21091 | } | |
21092 | { | |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21101 | } | |
21102 | return resultobj; | |
21103 | fail: | |
21104 | return NULL; | |
21105 | } | |
21106 | ||
21107 | ||
21108 | static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21109 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21110 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21111 | int result; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "self", NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail; | |
21118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21120 | result = (int)(int) ((arg1)->version); | |
21121 | ||
21122 | { | |
32fe5131 | 21123 | resultobj = SWIG_From_int(static_cast<int >(result)); |
8d38bd1d RD |
21124 | } |
21125 | return resultobj; | |
21126 | fail: | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21132 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21133 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; |
21134 | int result; | |
21135 | PyObject * obj0 = 0 ; | |
21136 | char *kwnames[] = { | |
21137 | (char *) "self", NULL | |
21138 | }; | |
21139 | ||
21140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail; | |
21141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0); | |
21142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21143 | result = (int)(int) ((arg1)->age); | |
21144 | ||
21145 | { | |
32fe5131 | 21146 | resultobj = SWIG_From_int(static_cast<int >(result)); |
8d38bd1d RD |
21147 | } |
21148 | return resultobj; | |
21149 | fail: | |
21150 | return NULL; | |
21151 | } | |
21152 | ||
21153 | ||
21154 | static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) { | |
21155 | PyObject *obj; | |
21156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21157 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj); | |
21158 | Py_INCREF(obj); | |
21159 | return Py_BuildValue((char *)""); | |
21160 | } | |
21161 | static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21162 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21163 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21164 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21165 | wxDC *arg3 = 0 ; | |
21166 | wxRect *arg4 = 0 ; | |
21167 | int arg5 = (int) 0 ; | |
21168 | wxRect temp4 ; | |
21169 | PyObject * obj0 = 0 ; | |
21170 | PyObject * obj1 = 0 ; | |
21171 | PyObject * obj2 = 0 ; | |
21172 | PyObject * obj3 = 0 ; | |
21173 | PyObject * obj4 = 0 ; | |
21174 | char *kwnames[] = { | |
21175 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21181 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21183 | { | |
21184 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21185 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21186 | if (arg3 == NULL) { | |
21187 | SWIG_null_ref("wxDC"); | |
21188 | } | |
21189 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21190 | } | |
21191 | { | |
21192 | arg4 = &temp4; | |
21193 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21194 | } | |
21195 | if (obj4) { | |
21196 | { | |
32fe5131 | 21197 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21198 | if (SWIG_arg_fail(5)) SWIG_fail; |
21199 | } | |
21200 | } | |
21201 | { | |
21202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21203 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21204 | ||
21205 | wxPyEndAllowThreads(__tstate); | |
21206 | if (PyErr_Occurred()) SWIG_fail; | |
21207 | } | |
21208 | Py_INCREF(Py_None); resultobj = Py_None; | |
21209 | return resultobj; | |
21210 | fail: | |
21211 | return NULL; | |
21212 | } | |
21213 | ||
21214 | ||
21215 | static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21216 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21217 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21218 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21219 | wxDC *arg3 = 0 ; | |
21220 | wxRect *arg4 = 0 ; | |
21221 | int arg5 = (int) 0 ; | |
21222 | wxRect temp4 ; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | PyObject * obj2 = 0 ; | |
21226 | PyObject * obj3 = 0 ; | |
21227 | PyObject * obj4 = 0 ; | |
21228 | char *kwnames[] = { | |
21229 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21230 | }; | |
21231 | ||
21232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21235 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21237 | { | |
21238 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21239 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21240 | if (arg3 == NULL) { | |
21241 | SWIG_null_ref("wxDC"); | |
21242 | } | |
21243 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21244 | } | |
21245 | { | |
21246 | arg4 = &temp4; | |
21247 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21248 | } | |
21249 | if (obj4) { | |
21250 | { | |
32fe5131 | 21251 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21252 | if (SWIG_arg_fail(5)) SWIG_fail; |
21253 | } | |
21254 | } | |
21255 | { | |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21257 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21258 | ||
21259 | wxPyEndAllowThreads(__tstate); | |
21260 | if (PyErr_Occurred()) SWIG_fail; | |
21261 | } | |
21262 | Py_INCREF(Py_None); resultobj = Py_None; | |
21263 | return resultobj; | |
21264 | fail: | |
21265 | return NULL; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21270 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21271 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21272 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21273 | wxDC *arg3 = 0 ; | |
21274 | wxRect *arg4 = 0 ; | |
21275 | int arg5 = (int) 0 ; | |
21276 | wxRect temp4 ; | |
21277 | PyObject * obj0 = 0 ; | |
21278 | PyObject * obj1 = 0 ; | |
21279 | PyObject * obj2 = 0 ; | |
21280 | PyObject * obj3 = 0 ; | |
21281 | PyObject * obj4 = 0 ; | |
21282 | char *kwnames[] = { | |
21283 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21284 | }; | |
21285 | ||
21286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21289 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21291 | { | |
21292 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21293 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21294 | if (arg3 == NULL) { | |
21295 | SWIG_null_ref("wxDC"); | |
21296 | } | |
21297 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21298 | } | |
21299 | { | |
21300 | arg4 = &temp4; | |
21301 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21302 | } | |
21303 | if (obj4) { | |
21304 | { | |
32fe5131 | 21305 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21306 | if (SWIG_arg_fail(5)) SWIG_fail; |
21307 | } | |
21308 | } | |
21309 | { | |
21310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21311 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21312 | ||
21313 | wxPyEndAllowThreads(__tstate); | |
21314 | if (PyErr_Occurred()) SWIG_fail; | |
21315 | } | |
21316 | Py_INCREF(Py_None); resultobj = Py_None; | |
21317 | return resultobj; | |
21318 | fail: | |
21319 | return NULL; | |
21320 | } | |
21321 | ||
21322 | ||
21323 | static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21324 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21325 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21326 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21327 | wxDC *arg3 = 0 ; | |
21328 | wxSize *arg4 = 0 ; | |
21329 | int arg5 ; | |
21330 | wxOrientation arg6 ; | |
21331 | int arg7 = (int) 0 ; | |
21332 | wxSize temp4 ; | |
21333 | PyObject * obj0 = 0 ; | |
21334 | PyObject * obj1 = 0 ; | |
21335 | PyObject * obj2 = 0 ; | |
21336 | PyObject * obj3 = 0 ; | |
21337 | PyObject * obj4 = 0 ; | |
21338 | PyObject * obj5 = 0 ; | |
21339 | PyObject * obj6 = 0 ; | |
21340 | char *kwnames[] = { | |
21341 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
21342 | }; | |
21343 | ||
21344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21347 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21349 | { | |
21350 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21351 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21352 | if (arg3 == NULL) { | |
21353 | SWIG_null_ref("wxDC"); | |
21354 | } | |
21355 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21356 | } | |
21357 | { | |
21358 | arg4 = &temp4; | |
21359 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21360 | } | |
21361 | { | |
32fe5131 | 21362 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21363 | if (SWIG_arg_fail(5)) SWIG_fail; |
21364 | } | |
21365 | { | |
32fe5131 | 21366 | arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5)); |
8d38bd1d RD |
21367 | if (SWIG_arg_fail(6)) SWIG_fail; |
21368 | } | |
21369 | if (obj6) { | |
21370 | { | |
32fe5131 | 21371 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
8d38bd1d RD |
21372 | if (SWIG_arg_fail(7)) SWIG_fail; |
21373 | } | |
21374 | } | |
21375 | { | |
21376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 21377 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); |
8d38bd1d RD |
21378 | |
21379 | wxPyEndAllowThreads(__tstate); | |
21380 | if (PyErr_Occurred()) SWIG_fail; | |
21381 | } | |
21382 | Py_INCREF(Py_None); resultobj = Py_None; | |
21383 | return resultobj; | |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
21389 | static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21390 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21391 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21392 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21393 | wxDC *arg3 = 0 ; | |
21394 | wxRect *arg4 = 0 ; | |
21395 | int arg5 = (int) 0 ; | |
21396 | wxRect temp4 ; | |
21397 | PyObject * obj0 = 0 ; | |
21398 | PyObject * obj1 = 0 ; | |
21399 | PyObject * obj2 = 0 ; | |
21400 | PyObject * obj3 = 0 ; | |
21401 | PyObject * obj4 = 0 ; | |
21402 | char *kwnames[] = { | |
21403 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21404 | }; | |
21405 | ||
21406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21409 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21410 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21411 | { | |
21412 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21413 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21414 | if (arg3 == NULL) { | |
21415 | SWIG_null_ref("wxDC"); | |
21416 | } | |
21417 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21418 | } | |
21419 | { | |
21420 | arg4 = &temp4; | |
21421 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21422 | } | |
21423 | if (obj4) { | |
21424 | { | |
32fe5131 | 21425 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21426 | if (SWIG_arg_fail(5)) SWIG_fail; |
21427 | } | |
21428 | } | |
21429 | { | |
21430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21431 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21432 | ||
21433 | wxPyEndAllowThreads(__tstate); | |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
21436 | Py_INCREF(Py_None); resultobj = Py_None; | |
21437 | return resultobj; | |
21438 | fail: | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
21443 | static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21444 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21445 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21446 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21447 | wxDC *arg3 = 0 ; | |
21448 | wxRect *arg4 = 0 ; | |
21449 | int arg5 = (int) 0 ; | |
21450 | wxRect temp4 ; | |
21451 | PyObject * obj0 = 0 ; | |
21452 | PyObject * obj1 = 0 ; | |
21453 | PyObject * obj2 = 0 ; | |
21454 | PyObject * obj3 = 0 ; | |
21455 | PyObject * obj4 = 0 ; | |
21456 | char *kwnames[] = { | |
21457 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
21458 | }; | |
21459 | ||
21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21463 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21464 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21465 | { | |
21466 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
21467 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21468 | if (arg3 == NULL) { | |
21469 | SWIG_null_ref("wxDC"); | |
21470 | } | |
21471 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21472 | } | |
21473 | { | |
21474 | arg4 = &temp4; | |
21475 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21476 | } | |
21477 | if (obj4) { | |
21478 | { | |
32fe5131 | 21479 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
8d38bd1d RD |
21480 | if (SWIG_arg_fail(5)) SWIG_fail; |
21481 | } | |
21482 | } | |
21483 | { | |
21484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21485 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
21486 | ||
21487 | wxPyEndAllowThreads(__tstate); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | } | |
21490 | Py_INCREF(Py_None); resultobj = Py_None; | |
21491 | return resultobj; | |
21492 | fail: | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
21497 | static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21498 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21499 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21500 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21501 | SwigValueWrapper<wxSplitterRenderParams > result; | |
21502 | PyObject * obj0 = 0 ; | |
21503 | PyObject * obj1 = 0 ; | |
21504 | char *kwnames[] = { | |
21505 | (char *) "self",(char *) "win", NULL | |
21506 | }; | |
21507 | ||
21508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail; | |
21509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21511 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21512 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21513 | { | |
21514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21515 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
21516 | ||
21517 | wxPyEndAllowThreads(__tstate); | |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
21519 | } | |
21520 | { | |
21521 | wxSplitterRenderParams * resultptr; | |
32fe5131 | 21522 | resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result)); |
8d38bd1d RD |
21523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1); |
21524 | } | |
21525 | return resultobj; | |
21526 | fail: | |
21527 | return NULL; | |
21528 | } | |
21529 | ||
21530 | ||
21531 | static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21532 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21533 | wxRendererNative *result; |
21534 | char *kwnames[] = { | |
21535 | NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail; | |
21539 | { | |
21540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21541 | { | |
21542 | wxRendererNative &_result_ref = wxRendererNative::Get(); | |
21543 | result = (wxRendererNative *) &_result_ref; | |
21544 | } | |
21545 | ||
21546 | wxPyEndAllowThreads(__tstate); | |
21547 | if (PyErr_Occurred()) SWIG_fail; | |
21548 | } | |
21549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21550 | return resultobj; | |
21551 | fail: | |
21552 | return NULL; | |
21553 | } | |
21554 | ||
21555 | ||
21556 | static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21557 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21558 | wxRendererNative *result; |
21559 | char *kwnames[] = { | |
21560 | NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail; | |
21564 | { | |
21565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21566 | { | |
21567 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); | |
21568 | result = (wxRendererNative *) &_result_ref; | |
21569 | } | |
21570 | ||
21571 | wxPyEndAllowThreads(__tstate); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
21574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21575 | return resultobj; | |
21576 | fail: | |
21577 | return NULL; | |
21578 | } | |
21579 | ||
21580 | ||
21581 | static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21582 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21583 | wxRendererNative *result; |
21584 | char *kwnames[] = { | |
21585 | NULL | |
21586 | }; | |
21587 | ||
21588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail; | |
21589 | { | |
21590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21591 | { | |
21592 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); | |
21593 | result = (wxRendererNative *) &_result_ref; | |
21594 | } | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21600 | return resultobj; | |
21601 | fail: | |
21602 | return NULL; | |
21603 | } | |
21604 | ||
21605 | ||
21606 | static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21607 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21608 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21609 | wxRendererNative *result; | |
21610 | PyObject * obj0 = 0 ; | |
21611 | char *kwnames[] = { | |
21612 | (char *) "renderer", NULL | |
21613 | }; | |
21614 | ||
21615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail; | |
21616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21618 | { | |
21619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21620 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
21621 | ||
21622 | wxPyEndAllowThreads(__tstate); | |
21623 | if (PyErr_Occurred()) SWIG_fail; | |
21624 | } | |
21625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0); | |
21626 | return resultobj; | |
21627 | fail: | |
21628 | return NULL; | |
21629 | } | |
21630 | ||
21631 | ||
21632 | static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 21633 | PyObject *resultobj = NULL; |
8d38bd1d RD |
21634 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; |
21635 | SwigValueWrapper<wxRendererVersion > result; | |
21636 | PyObject * obj0 = 0 ; | |
21637 | char *kwnames[] = { | |
21638 | (char *) "self", NULL | |
21639 | }; | |
21640 | ||
21641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail; | |
21642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0); | |
21643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
21647 | ||
21648 | wxPyEndAllowThreads(__tstate); | |
21649 | if (PyErr_Occurred()) SWIG_fail; | |
21650 | } | |
21651 | { | |
21652 | wxRendererVersion * resultptr; | |
32fe5131 | 21653 | resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result)); |
8d38bd1d RD |
21654 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1); |
21655 | } | |
21656 | return resultobj; | |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) { | |
21663 | PyObject *obj; | |
21664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21665 | SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj); | |
21666 | Py_INCREF(obj); | |
21667 | return Py_BuildValue((char *)""); | |
21668 | } | |
21669 | static PyMethodDef SwigMethods[] = { | |
21670 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21671 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21672 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21673 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21674 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21675 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
21676 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21677 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21678 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21679 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21680 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21681 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21682 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21683 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21684 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21685 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21686 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21687 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21688 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21689 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21690 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21691 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21692 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
21693 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21694 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21695 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21696 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21697 | { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21698 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21699 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
21700 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21701 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21702 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21703 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21704 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21705 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21706 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21707 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21708 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21709 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21710 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21711 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21712 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21713 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21714 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21715 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21716 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21717 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21718 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21719 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
21720 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21721 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21722 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21723 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21724 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21725 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21726 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21727 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21728 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21729 | { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21730 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21731 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
21732 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21733 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21734 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21735 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21736 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21737 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21738 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21739 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21740 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21741 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21742 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21743 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21744 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21745 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21746 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21747 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21748 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21749 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21750 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21751 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21752 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21753 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21754 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21755 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21756 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21757 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21758 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21759 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
21760 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21761 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
21762 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21763 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21764 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21765 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21766 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21767 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21768 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21769 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21770 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21771 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21772 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21773 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21774 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21775 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21776 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21777 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
21778 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21779 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21780 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21781 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21782 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21783 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21784 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21785 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
21786 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21787 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21788 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21789 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21790 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21791 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21792 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21793 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
21794 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21795 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21796 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21797 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21798 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21799 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
21800 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21801 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21802 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21803 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21804 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21805 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21806 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21807 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21808 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21809 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21810 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21811 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21812 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21813 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21814 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21815 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21816 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21817 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21818 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21819 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21820 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21821 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21822 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21823 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21824 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21825 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21826 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21827 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21828 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
21829 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21830 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21831 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21832 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21833 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21834 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21835 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21836 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21837 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21838 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21839 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21840 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21841 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21842 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
21843 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21844 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21845 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21846 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21847 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21848 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21849 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21850 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21851 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21852 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21853 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21854 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21855 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21856 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21857 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21858 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21859 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21860 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21861 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21862 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21863 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21864 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21865 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21866 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
21867 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21868 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21869 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21870 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21871 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21872 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21873 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21874 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21875 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
21876 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21877 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21878 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21879 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21880 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21881 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21882 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21883 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21884 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21885 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21886 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21887 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8d38bd1d RD |
21888 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, |
21889 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21890 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21891 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21892 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21893 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21894 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
21895 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21896 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21897 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21898 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21899 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21900 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21901 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21902 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21903 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21904 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21905 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21906 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21907 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21908 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21909 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21910 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21911 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21912 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21913 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21914 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21915 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21916 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21917 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
21918 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
21919 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21920 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21921 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21922 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21923 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21924 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21925 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21926 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21927 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21928 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21929 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21930 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21931 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21932 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21933 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21934 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21935 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21936 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
21937 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21938 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21939 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21940 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21941 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21942 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21943 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21944 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, | |
21945 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21946 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21947 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21948 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21949 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21950 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21951 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
21952 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21953 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21954 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21955 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21956 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21957 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21958 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21959 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21960 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21961 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21962 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21963 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21964 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21965 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21966 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21967 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21968 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21969 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21970 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21971 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21972 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21973 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
21974 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21975 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
21976 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21977 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21978 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21979 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21980 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21981 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21982 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21983 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
21984 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21985 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21986 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21987 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21988 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21989 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21990 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21991 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21992 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21993 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21994 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21995 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21996 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21997 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21998 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
21999 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22000 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22001 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22002 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22003 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22004 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22005 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22006 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22007 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22008 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22009 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22010 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22011 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22012 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22013 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22014 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22015 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22016 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22017 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22018 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22019 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22020 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22021 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22022 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22023 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22024 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22025 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22026 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22027 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22028 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22029 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22030 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22031 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22032 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22033 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22034 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22035 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22036 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22037 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22038 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22039 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22040 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22041 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22042 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22043 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22044 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22045 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22046 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22047 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22048 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22049 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22050 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22051 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22052 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22053 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22054 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22055 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22056 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22057 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22058 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22059 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22060 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22061 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22062 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22063 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22064 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22065 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22066 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22067 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22068 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22069 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22070 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22071 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22072 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22073 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22074 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22075 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22076 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22077 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22078 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22079 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22080 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22081 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22082 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22083 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22084 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22085 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22086 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22087 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22088 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22089 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22090 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22091 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22092 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22093 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22094 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22095 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22096 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22097 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22098 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22099 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22100 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22101 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22102 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22103 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22104 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22105 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22106 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22107 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22108 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22109 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22110 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22111 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
22112 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22113 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22114 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22115 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
22116 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
22117 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22118 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22119 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
22120 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22121 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
22122 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22123 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22124 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22125 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22126 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
22127 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22128 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
22129 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22130 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
22131 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22132 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
22133 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22134 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
22135 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22136 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22137 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22138 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22139 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22140 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
22141 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22142 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
22143 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22144 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
22145 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22146 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
22147 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22148 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22149 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22150 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22151 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b9d6a5f3 RD |
22152 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
22153 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
22154 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, |
22155 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22156 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22157 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22158 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22159 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22160 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
22161 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22162 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22163 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22164 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22165 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, | |
22166 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22167 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22168 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22169 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22170 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, | |
22171 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22172 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22173 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22174 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22175 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22176 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22177 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
22178 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22179 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22180 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22181 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22182 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
22183 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22184 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22185 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22186 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22187 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22188 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22189 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22190 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22191 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22192 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22193 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22194 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22195 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22196 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22197 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
8d38bd1d RD |
22198 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
22199 | { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22200 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22201 | { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22202 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22203 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
22204 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22205 | { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22206 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22207 | { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22208 | { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22209 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
22210 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22211 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22212 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22213 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22214 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22215 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22216 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22217 | { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22218 | { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22219 | { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22220 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22221 | { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
22222 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 22223 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
22224 | }; |
22225 | ||
22226 | ||
22227 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
22228 | ||
22229 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
22230 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
22231 | } | |
22232 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
22233 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22234 | } | |
093d3ff1 RD |
22235 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
22236 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
d14a1e28 | 22237 | } |
093d3ff1 RD |
22238 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { |
22239 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
d14a1e28 | 22240 | } |
093d3ff1 RD |
22241 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { |
22242 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
22243 | } | |
22244 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
22245 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
22246 | } | |
22247 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
22248 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
22249 | } | |
22250 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
22251 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
22252 | } | |
22253 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
22254 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
22255 | } | |
22256 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
22257 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
22258 | } | |
22259 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
22260 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
22261 | } | |
22262 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
22263 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
22264 | } | |
22265 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
22266 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
22267 | } | |
22268 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
22269 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
22270 | } | |
22271 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
22272 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
22273 | } | |
22274 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
22275 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
22276 | } | |
22277 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
22278 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22279 | } | |
22280 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
22281 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
22282 | } | |
22283 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
22284 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
22285 | } | |
22286 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
22287 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
22288 | } | |
22289 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
22290 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
22291 | } | |
22292 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
22293 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22294 | } | |
22295 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
22296 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
22297 | } | |
22298 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
22299 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
22300 | } | |
22301 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
d14a1e28 RD |
22302 | return (void *)((wxObject *) ((wxRegionIterator *) x)); |
22303 | } | |
22304 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
22305 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
22306 | } | |
22307 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
22308 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
22309 | } | |
22310 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
22311 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
22312 | } | |
22313 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
22314 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
22315 | } | |
22316 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
22317 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
22318 | } | |
22319 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
22320 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
22321 | } | |
22322 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
22323 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
22324 | } | |
22325 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
22326 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
22327 | } | |
22328 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
22329 | return (void *)((wxObject *) ((wxSizer *) x)); | |
22330 | } | |
22331 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
22332 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
22333 | } | |
22334 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
22335 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
22336 | } | |
22337 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
22338 | return (void *)((wxObject *) ((wxPenList *) x)); | |
22339 | } | |
22340 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
22341 | return (void *)((wxObject *) ((wxEvent *) x)); | |
22342 | } | |
22343 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
22344 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
22345 | } | |
22346 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
22347 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
22348 | } | |
22349 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
22350 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
22351 | } | |
22352 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
22353 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
22354 | } | |
22355 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
22356 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
22357 | } | |
22358 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
22359 | return (void *)((wxObject *) ((wxDC *) x)); | |
22360 | } | |
22361 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
22362 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
22363 | } | |
22364 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
22365 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
22366 | } | |
22367 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
22368 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
22369 | } | |
22370 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
22371 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
22372 | } | |
22373 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
22374 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
22375 | } | |
22376 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
22377 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
22378 | } | |
22379 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
22380 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
22381 | } | |
22382 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
22383 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
22384 | } | |
22385 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
22386 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
22387 | } | |
22388 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
22389 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
22390 | } | |
22391 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
22392 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
22393 | } | |
22394 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
22395 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
22396 | } | |
22397 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
22398 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
22399 | } | |
22400 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
22401 | return (void *)((wxObject *) ((wxEffects *) x)); | |
22402 | } | |
22403 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
22404 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
22405 | } | |
22406 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
22407 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
22408 | } | |
22409 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
22410 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
22411 | } | |
22412 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
22413 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
22414 | } | |
22415 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
22416 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
22417 | } | |
53aa7709 RD |
22418 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
22419 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
22420 | } | |
d14a1e28 RD |
22421 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
22422 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
22423 | } | |
22424 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
22425 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
22426 | } | |
22427 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
22428 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
22429 | } | |
22430 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
22431 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
22432 | } | |
22433 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
22434 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
22435 | } | |
22436 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
22437 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
22438 | } | |
22439 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
22440 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
22441 | } | |
22442 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
22443 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
22444 | } | |
d14a1e28 RD |
22445 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
22446 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
22447 | } | |
22448 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
22449 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
22450 | } | |
22451 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
22452 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
22453 | } | |
22454 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
22455 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
22456 | } | |
22457 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
22458 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
22459 | } | |
22460 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
22461 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
22462 | } | |
22463 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
22464 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
22465 | } | |
22466 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
22467 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
22468 | } | |
22469 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
22470 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
22471 | } | |
943e8dfd RD |
22472 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
22473 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
22474 | } | |
d14a1e28 RD |
22475 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
22476 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
22477 | } | |
943e8dfd RD |
22478 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
22479 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
22480 | } | |
d14a1e28 RD |
22481 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
22482 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
22483 | } | |
22484 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
22485 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
22486 | } | |
22487 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
22488 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
22489 | } | |
22490 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
22491 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
22492 | } | |
22493 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
22494 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
22495 | } | |
22496 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
22497 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
22498 | } | |
51b83b37 RD |
22499 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
22500 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
22501 | } | |
1e0c8722 RD |
22502 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
22503 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
22504 | } | |
d14a1e28 RD |
22505 | static void *_p_wxImageTo_p_wxObject(void *x) { |
22506 | return (void *)((wxObject *) ((wxImage *) x)); | |
22507 | } | |
22508 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
22509 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
22510 | } | |
d14a1e28 RD |
22511 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
22512 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
22513 | } | |
22514 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
22515 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
22516 | } | |
22517 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
22518 | return (void *)((wxObject *) ((wxImageList *) x)); | |
22519 | } | |
22520 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
22521 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
22522 | } | |
22523 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
22524 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
22525 | } | |
22526 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
22527 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
22528 | } | |
22529 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
22530 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
22531 | } | |
22532 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
22533 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
22534 | } | |
22535 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
22536 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
22537 | } | |
22538 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
22539 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
22540 | } | |
22541 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
22542 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
22543 | } | |
22544 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
22545 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
22546 | } | |
22547 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
22548 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
22549 | } | |
22550 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
22551 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
22552 | } | |
d14a1e28 RD |
22553 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
22554 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
22555 | } | |
22556 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
22557 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
22558 | } | |
22559 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
22560 | return (void *)((wxObject *) ((wxMask *) x)); | |
22561 | } | |
22562 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
22563 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
22564 | } | |
22565 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
22566 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
22567 | } | |
22568 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
22569 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
22570 | } | |
22571 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
22572 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
22573 | } | |
22574 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
22575 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
22576 | } | |
22577 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
22578 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
22579 | } | |
22580 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
22581 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
22582 | } | |
22583 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
22584 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
22585 | } | |
22586 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
22587 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
22588 | } | |
22589 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
22590 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
22591 | } | |
22592 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
22593 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
22594 | } | |
22595 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
22596 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
22597 | } | |
22598 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
22599 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
22600 | } | |
22601 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
22602 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
22603 | } | |
22604 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
22605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
22606 | } | |
22607 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
22608 | return (void *)((wxObject *) ((wxColour *) x)); | |
22609 | } | |
22610 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
22611 | return (void *)((wxObject *) ((wxFontList *) x)); | |
22612 | } | |
22613 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
22614 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
22615 | } | |
22616 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
22617 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
22618 | } | |
093d3ff1 RD |
22619 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
22620 | return (void *)((wxWindow *) ((wxControl *) x)); | |
e811c8ce | 22621 | } |
093d3ff1 RD |
22622 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { |
22623 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
e811c8ce | 22624 | } |
093d3ff1 RD |
22625 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
22626 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
e811c8ce | 22627 | } |
32fe5131 RD |
22628 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
22629 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0}; | |
22630 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
22631 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
22632 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
22633 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
22634 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
22635 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
22636 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0}; | |
22637 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0}; | |
22638 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0}; | |
22639 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0}; | |
22640 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0}; | |
22641 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
22642 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0}; | |
22643 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
22644 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
22645 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0}; | |
22646 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
22647 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0}; | |
22648 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0}; | |
22649 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
22650 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0}; | |
22651 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0}; | |
22652 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0}; | |
22653 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
22654 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0}; | |
22655 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0}; | |
22656 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0}; | |
22657 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0}; | |
22658 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0}; | |
22659 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0}; | |
22660 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0}; | |
22661 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0}; | |
22662 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0}; | |
22663 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0}; | |
22664 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0}; | |
22665 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0}; | |
22666 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0}; | |
22667 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
22668 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
22669 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
22670 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
22671 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
22672 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
22673 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
22674 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
22675 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
22676 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
22677 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
22678 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
22679 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0}; | |
22680 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
22681 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
22682 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
22683 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
22684 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
22685 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
22686 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
22687 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
22688 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
22689 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0}; | |
22690 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
22691 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
22692 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
22693 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
22694 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
22695 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
22696 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
22697 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
22698 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
22699 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
22700 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
22701 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
22702 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
22703 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
22704 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
22705 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
22706 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
22707 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
22708 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
22709 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
22710 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
22711 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
22712 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
22713 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
22714 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0}; | |
22715 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
22716 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
22717 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
22718 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
22719 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
22720 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
22721 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
22722 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
22723 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
22724 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
22725 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
22726 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
22727 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
22728 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
22729 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
22730 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
22731 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
22732 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
22733 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
22734 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
22735 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0}; | |
22736 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
22737 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
22738 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
22739 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
22740 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
22741 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
22742 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0}; | |
22743 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0}; | |
22744 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
22745 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0}; | |
22746 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0}; | |
22747 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
22748 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0}; | |
22749 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0}; | |
22750 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0}; | |
22751 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0}; | |
22752 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
22753 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0}; | |
22754 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0}; | |
22755 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0}; | |
22756 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0}; | |
22757 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0}; | |
22758 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
22759 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0}; | |
22760 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
22761 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
22762 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0}; | |
22763 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
22764 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
22765 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
22766 | ||
22767 | static swig_type_info *swig_type_initial[] = { | |
22768 | &_swigt__p_char, | |
22769 | &_swigt__p_double, | |
22770 | &_swigt__p_form_ops_t, | |
22771 | &_swigt__p_int, | |
22772 | &_swigt__p_unsigned_char, | |
22773 | &_swigt__p_unsigned_int, | |
22774 | &_swigt__p_unsigned_long, | |
22775 | &_swigt__p_wxANIHandler, | |
22776 | &_swigt__p_wxAcceleratorTable, | |
22777 | &_swigt__p_wxActivateEvent, | |
22778 | &_swigt__p_wxBMPHandler, | |
22779 | &_swigt__p_wxBitmap, | |
22780 | &_swigt__p_wxBoxSizer, | |
22781 | &_swigt__p_wxBrush, | |
22782 | &_swigt__p_wxBrushList, | |
22783 | &_swigt__p_wxBufferedDC, | |
22784 | &_swigt__p_wxBufferedPaintDC, | |
22785 | &_swigt__p_wxCURHandler, | |
22786 | &_swigt__p_wxChildFocusEvent, | |
22787 | &_swigt__p_wxClientDC, | |
22788 | &_swigt__p_wxCloseEvent, | |
22789 | &_swigt__p_wxColour, | |
22790 | &_swigt__p_wxColourDatabase, | |
22791 | &_swigt__p_wxCommandEvent, | |
22792 | &_swigt__p_wxContextMenuEvent, | |
22793 | &_swigt__p_wxControl, | |
22794 | &_swigt__p_wxControlWithItems, | |
22795 | &_swigt__p_wxCursor, | |
22796 | &_swigt__p_wxDC, | |
22797 | &_swigt__p_wxDash, | |
22798 | &_swigt__p_wxDateEvent, | |
22799 | &_swigt__p_wxDisplayChangedEvent, | |
22800 | &_swigt__p_wxDropFilesEvent, | |
22801 | &_swigt__p_wxDuplexMode, | |
22802 | &_swigt__p_wxEffects, | |
22803 | &_swigt__p_wxEncodingConverter, | |
22804 | &_swigt__p_wxEraseEvent, | |
22805 | &_swigt__p_wxEvent, | |
22806 | &_swigt__p_wxEvtHandler, | |
22807 | &_swigt__p_wxFSFile, | |
22808 | &_swigt__p_wxFileSystem, | |
22809 | &_swigt__p_wxFlexGridSizer, | |
22810 | &_swigt__p_wxFocusEvent, | |
22811 | &_swigt__p_wxFont, | |
22812 | &_swigt__p_wxFontList, | |
22813 | &_swigt__p_wxFontMapper, | |
22814 | &_swigt__p_wxGBSizerItem, | |
22815 | &_swigt__p_wxGDIObject, | |
22816 | &_swigt__p_wxGIFHandler, | |
22817 | &_swigt__p_wxGridBagSizer, | |
22818 | &_swigt__p_wxGridSizer, | |
22819 | &_swigt__p_wxICOHandler, | |
22820 | &_swigt__p_wxIcon, | |
22821 | &_swigt__p_wxIconBundle, | |
22822 | &_swigt__p_wxIconLocation, | |
22823 | &_swigt__p_wxIconizeEvent, | |
22824 | &_swigt__p_wxIdleEvent, | |
22825 | &_swigt__p_wxImage, | |
22826 | &_swigt__p_wxImageHandler, | |
22827 | &_swigt__p_wxImageList, | |
22828 | &_swigt__p_wxIndividualLayoutConstraint, | |
22829 | &_swigt__p_wxInitDialogEvent, | |
22830 | &_swigt__p_wxJPEGHandler, | |
22831 | &_swigt__p_wxKeyEvent, | |
22832 | &_swigt__p_wxLanguageInfo, | |
22833 | &_swigt__p_wxLayoutConstraints, | |
22834 | &_swigt__p_wxLocale, | |
22835 | &_swigt__p_wxMask, | |
22836 | &_swigt__p_wxMaximizeEvent, | |
22837 | &_swigt__p_wxMemoryDC, | |
22838 | &_swigt__p_wxMenu, | |
22839 | &_swigt__p_wxMenuBar, | |
22840 | &_swigt__p_wxMenuEvent, | |
22841 | &_swigt__p_wxMenuItem, | |
22842 | &_swigt__p_wxMetaFile, | |
22843 | &_swigt__p_wxMetaFileDC, | |
22844 | &_swigt__p_wxMirrorDC, | |
22845 | &_swigt__p_wxMouseCaptureChangedEvent, | |
22846 | &_swigt__p_wxMouseEvent, | |
22847 | &_swigt__p_wxMoveEvent, | |
22848 | &_swigt__p_wxNativeEncodingInfo, | |
22849 | &_swigt__p_wxNativeFontInfo, | |
22850 | &_swigt__p_wxNavigationKeyEvent, | |
22851 | &_swigt__p_wxNcPaintEvent, | |
22852 | &_swigt__p_wxNotifyEvent, | |
22853 | &_swigt__p_wxObject, | |
22854 | &_swigt__p_wxPCXHandler, | |
22855 | &_swigt__p_wxPNGHandler, | |
22856 | &_swigt__p_wxPNMHandler, | |
22857 | &_swigt__p_wxPaintDC, | |
22858 | &_swigt__p_wxPaintEvent, | |
22859 | &_swigt__p_wxPalette, | |
22860 | &_swigt__p_wxPaletteChangedEvent, | |
22861 | &_swigt__p_wxPaperSize, | |
22862 | &_swigt__p_wxPen, | |
22863 | &_swigt__p_wxPenList, | |
22864 | &_swigt__p_wxPoint, | |
22865 | &_swigt__p_wxPostScriptDC, | |
22866 | &_swigt__p_wxPrintData, | |
22867 | &_swigt__p_wxPrinterDC, | |
22868 | &_swigt__p_wxPyApp, | |
22869 | &_swigt__p_wxPyCommandEvent, | |
22870 | &_swigt__p_wxPyEvent, | |
22871 | &_swigt__p_wxPyFontEnumerator, | |
22872 | &_swigt__p_wxPyImageHandler, | |
22873 | &_swigt__p_wxPySizer, | |
22874 | &_swigt__p_wxPyValidator, | |
22875 | &_swigt__p_wxQueryNewPaletteEvent, | |
22876 | &_swigt__p_wxRect, | |
22877 | &_swigt__p_wxRegion, | |
22878 | &_swigt__p_wxRegionIterator, | |
22879 | &_swigt__p_wxRendererNative, | |
22880 | &_swigt__p_wxRendererVersion, | |
22881 | &_swigt__p_wxScreenDC, | |
22882 | &_swigt__p_wxScrollEvent, | |
22883 | &_swigt__p_wxScrollWinEvent, | |
22884 | &_swigt__p_wxSetCursorEvent, | |
22885 | &_swigt__p_wxShowEvent, | |
22886 | &_swigt__p_wxSize, | |
22887 | &_swigt__p_wxSizeEvent, | |
22888 | &_swigt__p_wxSizer, | |
22889 | &_swigt__p_wxSizerItem, | |
22890 | &_swigt__p_wxSplitterRenderParams, | |
22891 | &_swigt__p_wxStaticBoxSizer, | |
22892 | &_swigt__p_wxStdDialogButtonSizer, | |
22893 | &_swigt__p_wxString, | |
22894 | &_swigt__p_wxSysColourChangedEvent, | |
22895 | &_swigt__p_wxTIFFHandler, | |
22896 | &_swigt__p_wxUpdateUIEvent, | |
22897 | &_swigt__p_wxValidator, | |
22898 | &_swigt__p_wxWindow, | |
22899 | &_swigt__p_wxWindowCreateEvent, | |
22900 | &_swigt__p_wxWindowDC, | |
22901 | &_swigt__p_wxWindowDestroyEvent, | |
22902 | &_swigt__p_wxXPMHandler, | |
22903 | &_swigt__ptrdiff_t, | |
22904 | &_swigt__std__ptrdiff_t, | |
22905 | &_swigt__unsigned_int, | |
22906 | }; | |
22907 | ||
22908 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
22909 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
22910 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
22911 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
22912 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
22913 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
22914 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
22915 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
22916 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
22917 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
22918 | 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}}; | |
22919 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
22920 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; | |
22921 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
22922 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
22923 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
22924 | 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}}; | |
22925 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
22926 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
22927 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
22928 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
22929 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
22930 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
22931 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
22932 | 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}}; | |
22933 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
22934 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
22935 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
22936 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
22937 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
22938 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
22939 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; | |
22940 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; | |
22941 | 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}}; | |
22942 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
22943 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
22944 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
22945 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
22946 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
22947 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
22948 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
22949 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
22950 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22951 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
22952 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22953 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22954 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22955 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22956 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22957 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
22958 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22959 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22960 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22961 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22962 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22963 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22964 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22965 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22966 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22967 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22968 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
22969 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22970 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
22971 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
22972 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22973 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22974 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22975 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
22976 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22977 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22978 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22979 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22980 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22981 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22982 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22983 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22984 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
22985 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22986 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22987 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22988 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22989 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22990 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22991 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22992 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22993 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22994 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22995 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22996 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22997 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22998 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
22999 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
23000 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
23001 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23002 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23003 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23004 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23005 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
23006 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
23007 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23008 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23009 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
23010 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23011 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23012 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23013 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23014 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23015 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23016 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23017 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
23018 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
23019 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
23020 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
23021 | 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}}; | |
23022 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23023 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
23024 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
23025 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
23026 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
23027 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
23028 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23029 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
23030 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23031 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; | |
23032 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
23033 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
23034 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
23035 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
23036 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
23037 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23038 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
23039 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
23040 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
23041 | 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}}; | |
23042 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
23043 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
23044 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
23045 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
23046 | ||
23047 | static swig_cast_info *swig_cast_initial[] = { | |
23048 | _swigc__p_char, | |
23049 | _swigc__p_double, | |
23050 | _swigc__p_form_ops_t, | |
23051 | _swigc__p_int, | |
23052 | _swigc__p_unsigned_char, | |
23053 | _swigc__p_unsigned_int, | |
23054 | _swigc__p_unsigned_long, | |
23055 | _swigc__p_wxANIHandler, | |
23056 | _swigc__p_wxAcceleratorTable, | |
23057 | _swigc__p_wxActivateEvent, | |
23058 | _swigc__p_wxBMPHandler, | |
23059 | _swigc__p_wxBitmap, | |
23060 | _swigc__p_wxBoxSizer, | |
23061 | _swigc__p_wxBrush, | |
23062 | _swigc__p_wxBrushList, | |
23063 | _swigc__p_wxBufferedDC, | |
23064 | _swigc__p_wxBufferedPaintDC, | |
23065 | _swigc__p_wxCURHandler, | |
23066 | _swigc__p_wxChildFocusEvent, | |
23067 | _swigc__p_wxClientDC, | |
23068 | _swigc__p_wxCloseEvent, | |
23069 | _swigc__p_wxColour, | |
23070 | _swigc__p_wxColourDatabase, | |
23071 | _swigc__p_wxCommandEvent, | |
23072 | _swigc__p_wxContextMenuEvent, | |
23073 | _swigc__p_wxControl, | |
23074 | _swigc__p_wxControlWithItems, | |
23075 | _swigc__p_wxCursor, | |
23076 | _swigc__p_wxDC, | |
23077 | _swigc__p_wxDash, | |
23078 | _swigc__p_wxDateEvent, | |
23079 | _swigc__p_wxDisplayChangedEvent, | |
23080 | _swigc__p_wxDropFilesEvent, | |
23081 | _swigc__p_wxDuplexMode, | |
23082 | _swigc__p_wxEffects, | |
23083 | _swigc__p_wxEncodingConverter, | |
23084 | _swigc__p_wxEraseEvent, | |
23085 | _swigc__p_wxEvent, | |
23086 | _swigc__p_wxEvtHandler, | |
23087 | _swigc__p_wxFSFile, | |
23088 | _swigc__p_wxFileSystem, | |
23089 | _swigc__p_wxFlexGridSizer, | |
23090 | _swigc__p_wxFocusEvent, | |
23091 | _swigc__p_wxFont, | |
23092 | _swigc__p_wxFontList, | |
23093 | _swigc__p_wxFontMapper, | |
23094 | _swigc__p_wxGBSizerItem, | |
23095 | _swigc__p_wxGDIObject, | |
23096 | _swigc__p_wxGIFHandler, | |
23097 | _swigc__p_wxGridBagSizer, | |
23098 | _swigc__p_wxGridSizer, | |
23099 | _swigc__p_wxICOHandler, | |
23100 | _swigc__p_wxIcon, | |
23101 | _swigc__p_wxIconBundle, | |
23102 | _swigc__p_wxIconLocation, | |
23103 | _swigc__p_wxIconizeEvent, | |
23104 | _swigc__p_wxIdleEvent, | |
23105 | _swigc__p_wxImage, | |
23106 | _swigc__p_wxImageHandler, | |
23107 | _swigc__p_wxImageList, | |
23108 | _swigc__p_wxIndividualLayoutConstraint, | |
23109 | _swigc__p_wxInitDialogEvent, | |
23110 | _swigc__p_wxJPEGHandler, | |
23111 | _swigc__p_wxKeyEvent, | |
23112 | _swigc__p_wxLanguageInfo, | |
23113 | _swigc__p_wxLayoutConstraints, | |
23114 | _swigc__p_wxLocale, | |
23115 | _swigc__p_wxMask, | |
23116 | _swigc__p_wxMaximizeEvent, | |
23117 | _swigc__p_wxMemoryDC, | |
23118 | _swigc__p_wxMenu, | |
23119 | _swigc__p_wxMenuBar, | |
23120 | _swigc__p_wxMenuEvent, | |
23121 | _swigc__p_wxMenuItem, | |
23122 | _swigc__p_wxMetaFile, | |
23123 | _swigc__p_wxMetaFileDC, | |
23124 | _swigc__p_wxMirrorDC, | |
23125 | _swigc__p_wxMouseCaptureChangedEvent, | |
23126 | _swigc__p_wxMouseEvent, | |
23127 | _swigc__p_wxMoveEvent, | |
23128 | _swigc__p_wxNativeEncodingInfo, | |
23129 | _swigc__p_wxNativeFontInfo, | |
23130 | _swigc__p_wxNavigationKeyEvent, | |
23131 | _swigc__p_wxNcPaintEvent, | |
23132 | _swigc__p_wxNotifyEvent, | |
23133 | _swigc__p_wxObject, | |
23134 | _swigc__p_wxPCXHandler, | |
23135 | _swigc__p_wxPNGHandler, | |
23136 | _swigc__p_wxPNMHandler, | |
23137 | _swigc__p_wxPaintDC, | |
23138 | _swigc__p_wxPaintEvent, | |
23139 | _swigc__p_wxPalette, | |
23140 | _swigc__p_wxPaletteChangedEvent, | |
23141 | _swigc__p_wxPaperSize, | |
23142 | _swigc__p_wxPen, | |
23143 | _swigc__p_wxPenList, | |
23144 | _swigc__p_wxPoint, | |
23145 | _swigc__p_wxPostScriptDC, | |
23146 | _swigc__p_wxPrintData, | |
23147 | _swigc__p_wxPrinterDC, | |
23148 | _swigc__p_wxPyApp, | |
23149 | _swigc__p_wxPyCommandEvent, | |
23150 | _swigc__p_wxPyEvent, | |
23151 | _swigc__p_wxPyFontEnumerator, | |
23152 | _swigc__p_wxPyImageHandler, | |
23153 | _swigc__p_wxPySizer, | |
23154 | _swigc__p_wxPyValidator, | |
23155 | _swigc__p_wxQueryNewPaletteEvent, | |
23156 | _swigc__p_wxRect, | |
23157 | _swigc__p_wxRegion, | |
23158 | _swigc__p_wxRegionIterator, | |
23159 | _swigc__p_wxRendererNative, | |
23160 | _swigc__p_wxRendererVersion, | |
23161 | _swigc__p_wxScreenDC, | |
23162 | _swigc__p_wxScrollEvent, | |
23163 | _swigc__p_wxScrollWinEvent, | |
23164 | _swigc__p_wxSetCursorEvent, | |
23165 | _swigc__p_wxShowEvent, | |
23166 | _swigc__p_wxSize, | |
23167 | _swigc__p_wxSizeEvent, | |
23168 | _swigc__p_wxSizer, | |
23169 | _swigc__p_wxSizerItem, | |
23170 | _swigc__p_wxSplitterRenderParams, | |
23171 | _swigc__p_wxStaticBoxSizer, | |
23172 | _swigc__p_wxStdDialogButtonSizer, | |
23173 | _swigc__p_wxString, | |
23174 | _swigc__p_wxSysColourChangedEvent, | |
23175 | _swigc__p_wxTIFFHandler, | |
23176 | _swigc__p_wxUpdateUIEvent, | |
23177 | _swigc__p_wxValidator, | |
23178 | _swigc__p_wxWindow, | |
23179 | _swigc__p_wxWindowCreateEvent, | |
23180 | _swigc__p_wxWindowDC, | |
23181 | _swigc__p_wxWindowDestroyEvent, | |
23182 | _swigc__p_wxXPMHandler, | |
23183 | _swigc__ptrdiff_t, | |
23184 | _swigc__std__ptrdiff_t, | |
23185 | _swigc__unsigned_int, | |
d14a1e28 RD |
23186 | }; |
23187 | ||
23188 | ||
23189 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
23190 | ||
23191 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 23192 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
23193 | |
23194 | #ifdef __cplusplus | |
23195 | } | |
23196 | #endif | |
32fe5131 RD |
23197 | /************************************************************************* |
23198 | * Type initialization: | |
23199 | * This problem is tough by the requirement that no dynamic | |
23200 | * memory is used. Also, since swig_type_info structures store pointers to | |
23201 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
23202 | * to swig_type_info structures, we need some lookup code at initialization. | |
23203 | * The idea is that swig generates all the structures that are needed. | |
23204 | * The runtime then collects these partially filled structures. | |
23205 | * The SWIG_InitializeModule function takes these initial arrays out of | |
23206 | * swig_module, and does all the lookup, filling in the swig_module.types | |
23207 | * array with the correct data and linking the correct swig_cast_info | |
23208 | * structures together. | |
23209 | ||
23210 | * The generated swig_type_info structures are assigned staticly to an initial | |
23211 | * array. We just loop though that array, and handle each type individually. | |
23212 | * First we lookup if this type has been already loaded, and if so, use the | |
23213 | * loaded structure instead of the generated one. Then we have to fill in the | |
23214 | * cast linked list. The cast data is initially stored in something like a | |
23215 | * two-dimensional array. Each row corresponds to a type (there are the same | |
23216 | * number of rows as there are in the swig_type_initial array). Each entry in | |
23217 | * a column is one of the swig_cast_info structures for that type. | |
23218 | * The cast_initial array is actually an array of arrays, because each row has | |
23219 | * a variable number of columns. So to actually build the cast linked list, | |
23220 | * we find the array of casts associated with the type, and loop through it | |
23221 | * adding the casts to the list. The one last trick we need to do is making | |
23222 | * sure the type pointer in the swig_cast_info struct is correct. | |
23223 | ||
23224 | * First off, we lookup the cast->type name to see if it is already loaded. | |
23225 | * There are three cases to handle: | |
23226 | * 1) If the cast->type has already been loaded AND the type we are adding | |
23227 | * casting info to has not been loaded (it is in this module), THEN we | |
23228 | * replace the cast->type pointer with the type pointer that has already | |
23229 | * been loaded. | |
23230 | * 2) If BOTH types (the one we are adding casting info to, and the | |
23231 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
23232 | * the previous module so we just ignore it. | |
23233 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
23234 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
23235 | * be correct. | |
23236 | **/ | |
23237 | ||
23238 | #ifdef __cplusplus | |
23239 | extern "C" { | |
23240 | #if 0 | |
23241 | } /* c-mode */ | |
23242 | #endif | |
23243 | #endif | |
23244 | ||
23245 | #if 0 | |
23246 | #define SWIGRUNTIME_DEBUG | |
23247 | #endif | |
23248 | ||
23249 | SWIGRUNTIME void | |
23250 | SWIG_InitializeModule(void *clientdata) { | |
23251 | size_t i; | |
23252 | swig_module_info *module_head; | |
23253 | static int init_run = 0; | |
23254 | ||
23255 | clientdata = clientdata; | |
23256 | ||
23257 | if (init_run) return; | |
23258 | init_run = 1; | |
23259 | ||
23260 | /* Initialize the swig_module */ | |
23261 | swig_module.type_initial = swig_type_initial; | |
23262 | swig_module.cast_initial = swig_cast_initial; | |
23263 | ||
23264 | /* Try and load any already created modules */ | |
23265 | module_head = SWIG_GetModule(clientdata); | |
23266 | if (module_head) { | |
23267 | swig_module.next = module_head->next; | |
23268 | module_head->next = &swig_module; | |
23269 | } else { | |
23270 | /* This is the first module loaded */ | |
23271 | swig_module.next = &swig_module; | |
23272 | SWIG_SetModule(clientdata, &swig_module); | |
23273 | } | |
23274 | ||
23275 | /* Now work on filling in swig_module.types */ | |
23276 | #ifdef SWIGRUNTIME_DEBUG | |
23277 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
23278 | #endif | |
23279 | for (i = 0; i < swig_module.size; ++i) { | |
23280 | swig_type_info *type = 0; | |
23281 | swig_type_info *ret; | |
23282 | swig_cast_info *cast; | |
23283 | ||
23284 | #ifdef SWIGRUNTIME_DEBUG | |
23285 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
23286 | #endif | |
23287 | ||
23288 | /* if there is another module already loaded */ | |
23289 | if (swig_module.next != &swig_module) { | |
23290 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
23291 | } | |
23292 | if (type) { | |
23293 | /* Overwrite clientdata field */ | |
23294 | #ifdef SWIGRUNTIME_DEBUG | |
23295 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
23296 | #endif | |
23297 | if (swig_module.type_initial[i]->clientdata) { | |
23298 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
23299 | #ifdef SWIGRUNTIME_DEBUG | |
23300 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
23301 | #endif | |
23302 | } | |
23303 | } else { | |
23304 | type = swig_module.type_initial[i]; | |
23305 | } | |
23306 | ||
23307 | /* Insert casting types */ | |
23308 | cast = swig_module.cast_initial[i]; | |
23309 | while (cast->type) { | |
23310 | /* Don't need to add information already in the list */ | |
23311 | ret = 0; | |
23312 | #ifdef SWIGRUNTIME_DEBUG | |
23313 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
23314 | #endif | |
23315 | if (swig_module.next != &swig_module) { | |
23316 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
23317 | #ifdef SWIGRUNTIME_DEBUG | |
23318 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
23319 | #endif | |
23320 | } | |
23321 | if (ret) { | |
23322 | if (type == swig_module.type_initial[i]) { | |
23323 | #ifdef SWIGRUNTIME_DEBUG | |
23324 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
23325 | #endif | |
23326 | cast->type = ret; | |
23327 | ret = 0; | |
23328 | } else { | |
23329 | /* Check for casting already in the list */ | |
23330 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
23331 | #ifdef SWIGRUNTIME_DEBUG | |
23332 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
23333 | #endif | |
23334 | if (!ocast) ret = 0; | |
23335 | } | |
23336 | } | |
23337 | ||
23338 | if (!ret) { | |
23339 | #ifdef SWIGRUNTIME_DEBUG | |
23340 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
23341 | #endif | |
23342 | if (type->cast) { | |
23343 | type->cast->prev = cast; | |
23344 | cast->next = type->cast; | |
23345 | } | |
23346 | type->cast = cast; | |
23347 | } | |
23348 | cast++; | |
23349 | } | |
23350 | /* Set entry in modules->types array equal to the type */ | |
23351 | swig_module.types[i] = type; | |
23352 | } | |
23353 | swig_module.types[i] = 0; | |
23354 | ||
23355 | #ifdef SWIGRUNTIME_DEBUG | |
23356 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
23357 | for (i = 0; i < swig_module.size; ++i) { | |
23358 | int j = 0; | |
23359 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
23360 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
23361 | while (cast->type) { | |
23362 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
23363 | cast++; | |
23364 | ++j; | |
23365 | } | |
23366 | printf("---- Total casts: %d\n",j); | |
23367 | } | |
23368 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
23369 | #endif | |
23370 | } | |
23371 | ||
23372 | /* This function will propagate the clientdata field of type to | |
23373 | * any new swig_type_info structures that have been added into the list | |
23374 | * of equivalent types. It is like calling | |
23375 | * SWIG_TypeClientData(type, clientdata) a second time. | |
23376 | */ | |
23377 | SWIGRUNTIME void | |
23378 | SWIG_PropagateClientData(void) { | |
23379 | size_t i; | |
23380 | swig_cast_info *equiv; | |
23381 | static int init_run = 0; | |
23382 | ||
23383 | if (init_run) return; | |
23384 | init_run = 1; | |
23385 | ||
23386 | for (i = 0; i < swig_module.size; i++) { | |
23387 | if (swig_module.types[i]->clientdata) { | |
23388 | equiv = swig_module.types[i]->cast; | |
23389 | while (equiv) { | |
23390 | if (!equiv->converter) { | |
23391 | if (equiv->type && !equiv->type->clientdata) | |
23392 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
23393 | } | |
23394 | equiv = equiv->next; | |
23395 | } | |
23396 | } | |
23397 | } | |
23398 | } | |
23399 | ||
23400 | #ifdef __cplusplus | |
23401 | #if 0 | |
23402 | { | |
23403 | /* c-mode */ | |
23404 | #endif | |
23405 | } | |
23406 | #endif | |
23407 | ||
d14a1e28 | 23408 | |
093d3ff1 RD |
23409 | |
23410 | #ifdef __cplusplus | |
23411 | extern "C" { | |
23412 | #endif | |
23413 | ||
23414 | /* Python-specific SWIG API */ | |
23415 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
23416 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
23417 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
23418 | ||
23419 | /* ----------------------------------------------------------------------------- | |
23420 | * global variable support code. | |
23421 | * ----------------------------------------------------------------------------- */ | |
23422 | ||
23423 | typedef struct swig_globalvar { | |
23424 | char *name; /* Name of global variable */ | |
32fe5131 | 23425 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
23426 | int (*set_attr)(PyObject *); /* Set the value */ |
23427 | struct swig_globalvar *next; | |
23428 | } swig_globalvar; | |
23429 | ||
23430 | typedef struct swig_varlinkobject { | |
23431 | PyObject_HEAD | |
23432 | swig_globalvar *vars; | |
23433 | } swig_varlinkobject; | |
23434 | ||
32fe5131 | 23435 | SWIGINTERN PyObject * |
093d3ff1 RD |
23436 | swig_varlink_repr(swig_varlinkobject *v) { |
23437 | v = v; | |
23438 | return PyString_FromString("<Swig global variables>"); | |
23439 | } | |
23440 | ||
32fe5131 | 23441 | SWIGINTERN int |
093d3ff1 RD |
23442 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
23443 | swig_globalvar *var; | |
23444 | flags = flags; | |
23445 | fprintf(fp,"Swig global variables { "); | |
23446 | for (var = v->vars; var; var=var->next) { | |
23447 | fprintf(fp,"%s", var->name); | |
23448 | if (var->next) fprintf(fp,", "); | |
23449 | } | |
23450 | fprintf(fp," }\n"); | |
23451 | return 0; | |
23452 | } | |
23453 | ||
32fe5131 | 23454 | SWIGINTERN PyObject * |
093d3ff1 RD |
23455 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
23456 | swig_globalvar *var = v->vars; | |
23457 | while (var) { | |
23458 | if (strcmp(var->name,n) == 0) { | |
23459 | return (*var->get_attr)(); | |
23460 | } | |
23461 | var = var->next; | |
23462 | } | |
23463 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
32fe5131 | 23467 | SWIGINTERN int |
093d3ff1 RD |
23468 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
23469 | swig_globalvar *var = v->vars; | |
23470 | while (var) { | |
23471 | if (strcmp(var->name,n) == 0) { | |
23472 | return (*var->set_attr)(p); | |
23473 | } | |
23474 | var = var->next; | |
23475 | } | |
23476 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
23477 | return 1; | |
23478 | } | |
23479 | ||
32fe5131 RD |
23480 | SWIGINTERN PyTypeObject* |
23481 | swig_varlink_type(void) { | |
23482 | static char varlink__doc__[] = "Swig var link object"; | |
23483 | static PyTypeObject varlink_type | |
23484 | #if !defined(__cplusplus) | |
23485 | ; | |
23486 | static int type_init = 0; | |
23487 | if (!type_init) { | |
23488 | PyTypeObject tmp | |
23489 | #endif | |
23490 | = { | |
23491 | PyObject_HEAD_INIT(&PyType_Type) | |
23492 | 0, /* Number of items in variable part (ob_size) */ | |
23493 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
23494 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
23495 | 0, /* Itemsize (tp_itemsize) */ | |
23496 | 0, /* Deallocator (tp_dealloc) */ | |
23497 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
23498 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
23499 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
23500 | 0, /* tp_compare */ | |
23501 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
23502 | 0, /* tp_as_number */ | |
23503 | 0, /* tp_as_sequence */ | |
23504 | 0, /* tp_as_mapping */ | |
23505 | 0, /* tp_hash */ | |
23506 | 0, /* tp_call */ | |
23507 | 0, /* tp_str */ | |
23508 | 0, /* tp_getattro */ | |
23509 | 0, /* tp_setattro */ | |
23510 | 0, /* tp_as_buffer */ | |
23511 | 0, /* tp_flags */ | |
23512 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 23513 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
23514 | 0, /* tp_traverse */ |
23515 | 0, /* tp_clear */ | |
093d3ff1 RD |
23516 | #endif |
23517 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
23518 | 0, /* tp_richcompare */ |
23519 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
23520 | #endif |
23521 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 23522 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
093d3ff1 RD |
23523 | #endif |
23524 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 23525 | 0, /* tp_del */ |
093d3ff1 RD |
23526 | #endif |
23527 | #ifdef COUNT_ALLOCS | |
32fe5131 | 23528 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 23529 | #endif |
32fe5131 RD |
23530 | }; |
23531 | #if !defined(__cplusplus) | |
23532 | varlink_type = tmp; | |
23533 | type_init = 1; | |
23534 | } | |
23535 | #endif | |
23536 | return &varlink_type; | |
23537 | } | |
093d3ff1 RD |
23538 | |
23539 | /* Create a variable linking object for use later */ | |
32fe5131 | 23540 | SWIGINTERN PyObject * |
093d3ff1 | 23541 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
23542 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
23543 | if (result) { | |
23544 | result->vars = 0; | |
23545 | } | |
093d3ff1 RD |
23546 | return ((PyObject*) result); |
23547 | } | |
23548 | ||
32fe5131 | 23549 | SWIGINTERN void |
093d3ff1 | 23550 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
23551 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
23552 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
23553 | if (gv) { | |
23554 | size_t size = strlen(name)+1; | |
23555 | gv->name = (char *)malloc(size); | |
23556 | if (gv->name) { | |
23557 | strncpy(gv->name,name,size); | |
23558 | gv->get_attr = get_attr; | |
23559 | gv->set_attr = set_attr; | |
23560 | gv->next = v->vars; | |
23561 | } | |
23562 | } | |
093d3ff1 RD |
23563 | v->vars = gv; |
23564 | } | |
23565 | ||
23566 | /* ----------------------------------------------------------------------------- | |
23567 | * constants/methods manipulation | |
23568 | * ----------------------------------------------------------------------------- */ | |
23569 | ||
23570 | /* Install Constants */ | |
32fe5131 | 23571 | SWIGINTERN void |
093d3ff1 RD |
23572 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
23573 | PyObject *obj = 0; | |
23574 | size_t i; | |
32fe5131 | 23575 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
23576 | switch(constants[i].type) { |
23577 | case SWIG_PY_INT: | |
23578 | obj = PyInt_FromLong(constants[i].lvalue); | |
23579 | break; | |
23580 | case SWIG_PY_FLOAT: | |
23581 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
23582 | break; | |
23583 | case SWIG_PY_STRING: | |
23584 | if (constants[i].pvalue) { | |
23585 | obj = PyString_FromString((char *) constants[i].pvalue); | |
23586 | } else { | |
23587 | Py_INCREF(Py_None); | |
23588 | obj = Py_None; | |
23589 | } | |
23590 | break; | |
23591 | case SWIG_PY_POINTER: | |
23592 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
23593 | break; | |
23594 | case SWIG_PY_BINARY: | |
23595 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
23596 | break; | |
23597 | default: | |
23598 | obj = 0; | |
23599 | break; | |
23600 | } | |
23601 | if (obj) { | |
23602 | PyDict_SetItemString(d,constants[i].name,obj); | |
23603 | Py_DECREF(obj); | |
23604 | } | |
23605 | } | |
23606 | } | |
23607 | ||
23608 | /* -----------------------------------------------------------------------------*/ | |
23609 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
23610 | /* -----------------------------------------------------------------------------*/ | |
23611 | ||
32fe5131 | 23612 | SWIGINTERN void |
093d3ff1 RD |
23613 | SWIG_Python_FixMethods(PyMethodDef *methods, |
23614 | swig_const_info *const_table, | |
23615 | swig_type_info **types, | |
23616 | swig_type_info **types_initial) { | |
23617 | size_t i; | |
23618 | for (i = 0; methods[i].ml_name; ++i) { | |
23619 | char *c = methods[i].ml_doc; | |
23620 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
23621 | int j; | |
23622 | swig_const_info *ci = 0; | |
23623 | char *name = c + 10; | |
32fe5131 | 23624 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
23625 | if (strncmp(const_table[j].name, name, |
23626 | strlen(const_table[j].name)) == 0) { | |
23627 | ci = &(const_table[j]); | |
23628 | break; | |
23629 | } | |
23630 | } | |
23631 | if (ci) { | |
23632 | size_t shift = (ci->ptype) - types; | |
23633 | swig_type_info *ty = types_initial[shift]; | |
23634 | size_t ldoc = (c - methods[i].ml_doc); | |
23635 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
23636 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
23637 | if (ndoc) { |
23638 | char *buff = ndoc; | |
23639 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
23640 | if (ptr) { | |
23641 | strncpy(buff, methods[i].ml_doc, ldoc); | |
23642 | buff += ldoc; | |
23643 | strncpy(buff, "swig_ptr: ", 10); | |
23644 | buff += 10; | |
23645 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
23646 | methods[i].ml_doc = ndoc; | |
23647 | } | |
23648 | } | |
093d3ff1 RD |
23649 | } |
23650 | } | |
23651 | } | |
23652 | } | |
23653 | ||
23654 | /* -----------------------------------------------------------------------------* | |
23655 | * Initialize type list | |
23656 | * -----------------------------------------------------------------------------*/ | |
23657 | ||
093d3ff1 RD |
23658 | #ifdef __cplusplus |
23659 | } | |
23660 | #endif | |
23661 | ||
23662 | /* -----------------------------------------------------------------------------* | |
23663 | * Partial Init method | |
23664 | * -----------------------------------------------------------------------------*/ | |
23665 | ||
d14a1e28 RD |
23666 | #ifdef __cplusplus |
23667 | extern "C" | |
23668 | #endif | |
32fe5131 | 23669 | SWIGEXPORT void SWIG_init(void) { |
d14a1e28 | 23670 | static PyObject *SWIG_globals = 0; |
d14a1e28 | 23671 | PyObject *m, *d; |
d14a1e28 | 23672 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
093d3ff1 RD |
23673 | |
23674 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 23675 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 | 23676 | |
d14a1e28 RD |
23677 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
23678 | d = PyModule_GetDict(m); | |
23679 | ||
32fe5131 | 23680 | SWIG_InitializeModule(0); |
d14a1e28 RD |
23681 | SWIG_InstallConstants(d,swig_const_table); |
23682 | ||
093d3ff1 | 23683 | { |
32fe5131 | 23684 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion))); |
093d3ff1 RD |
23685 | } |
23686 | { | |
32fe5131 | 23687 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion))); |
093d3ff1 RD |
23688 | } |
23689 | { | |
32fe5131 | 23690 | PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion))); |
093d3ff1 RD |
23691 | } |
23692 | { | |
32fe5131 | 23693 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT))); |
093d3ff1 RD |
23694 | } |
23695 | { | |
32fe5131 | 23696 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE))); |
093d3ff1 RD |
23697 | } |
23698 | { | |
32fe5131 | 23699 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN))); |
093d3ff1 RD |
23700 | } |
23701 | { | |
32fe5131 | 23702 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT))); |
093d3ff1 RD |
23703 | } |
23704 | { | |
32fe5131 | 23705 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS))); |
093d3ff1 RD |
23706 | } |
23707 | { | |
32fe5131 | 23708 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN))); |
093d3ff1 RD |
23709 | } |
23710 | { | |
32fe5131 | 23711 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE))); |
093d3ff1 RD |
23712 | } |
23713 | { | |
32fe5131 | 23714 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX))); |
093d3ff1 RD |
23715 | } |
23716 | { | |
32fe5131 | 23717 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN))); |
093d3ff1 RD |
23718 | } |
23719 | { | |
32fe5131 | 23720 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL))); |
093d3ff1 RD |
23721 | } |
23722 | { | |
32fe5131 | 23723 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC))); |
093d3ff1 RD |
23724 | } |
23725 | { | |
32fe5131 | 23726 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT))); |
093d3ff1 RD |
23727 | } |
23728 | { | |
32fe5131 | 23729 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX))); |
093d3ff1 RD |
23730 | } |
23731 | { | |
32fe5131 | 23732 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL))); |
093d3ff1 RD |
23733 | } |
23734 | { | |
32fe5131 | 23735 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT))); |
093d3ff1 RD |
23736 | } |
23737 | { | |
32fe5131 | 23738 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD))); |
093d3ff1 RD |
23739 | } |
23740 | { | |
32fe5131 | 23741 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX))); |
093d3ff1 RD |
23742 | } |
23743 | { | |
32fe5131 | 23744 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT))); |
093d3ff1 RD |
23745 | } |
23746 | { | |
32fe5131 | 23747 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC))); |
093d3ff1 RD |
23748 | } |
23749 | { | |
32fe5131 | 23750 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT))); |
093d3ff1 RD |
23751 | } |
23752 | { | |
32fe5131 | 23753 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT))); |
093d3ff1 RD |
23754 | } |
23755 | { | |
32fe5131 | 23756 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD))); |
093d3ff1 RD |
23757 | } |
23758 | { | |
32fe5131 | 23759 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED))); |
093d3ff1 RD |
23760 | } |
23761 | { | |
32fe5131 | 23762 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED))); |
093d3ff1 RD |
23763 | } |
23764 | { | |
32fe5131 | 23765 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED))); |
093d3ff1 RD |
23766 | } |
23767 | { | |
32fe5131 | 23768 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH))); |
093d3ff1 RD |
23769 | } |
23770 | { | |
32fe5131 | 23771 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK))); |
093d3ff1 RD |
23772 | } |
23773 | { | |
32fe5131 | 23774 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM))); |
093d3ff1 RD |
23775 | } |
23776 | { | |
32fe5131 | 23777 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT))); |
093d3ff1 RD |
23778 | } |
23779 | { | |
32fe5131 | 23780 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1))); |
093d3ff1 RD |
23781 | } |
23782 | { | |
32fe5131 | 23783 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2))); |
093d3ff1 RD |
23784 | } |
23785 | { | |
32fe5131 | 23786 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3))); |
093d3ff1 RD |
23787 | } |
23788 | { | |
32fe5131 | 23789 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4))); |
093d3ff1 RD |
23790 | } |
23791 | { | |
32fe5131 | 23792 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5))); |
093d3ff1 RD |
23793 | } |
23794 | { | |
32fe5131 | 23795 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6))); |
093d3ff1 RD |
23796 | } |
23797 | { | |
32fe5131 | 23798 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7))); |
093d3ff1 RD |
23799 | } |
23800 | { | |
32fe5131 | 23801 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8))); |
093d3ff1 RD |
23802 | } |
23803 | { | |
32fe5131 | 23804 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9))); |
093d3ff1 RD |
23805 | } |
23806 | { | |
32fe5131 | 23807 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10))); |
093d3ff1 RD |
23808 | } |
23809 | { | |
32fe5131 | 23810 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11))); |
093d3ff1 RD |
23811 | } |
23812 | { | |
32fe5131 | 23813 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12))); |
093d3ff1 RD |
23814 | } |
23815 | { | |
32fe5131 | 23816 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13))); |
093d3ff1 RD |
23817 | } |
23818 | { | |
32fe5131 | 23819 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14))); |
093d3ff1 RD |
23820 | } |
23821 | { | |
32fe5131 | 23822 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15))); |
093d3ff1 RD |
23823 | } |
23824 | { | |
32fe5131 | 23825 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX))); |
093d3ff1 RD |
23826 | } |
23827 | { | |
32fe5131 | 23828 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8))); |
093d3ff1 RD |
23829 | } |
23830 | { | |
32fe5131 | 23831 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U))); |
093d3ff1 RD |
23832 | } |
23833 | { | |
32fe5131 | 23834 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE))); |
093d3ff1 RD |
23835 | } |
23836 | { | |
32fe5131 | 23837 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN))); |
093d3ff1 RD |
23838 | } |
23839 | { | |
32fe5131 | 23840 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437))); |
093d3ff1 RD |
23841 | } |
23842 | { | |
32fe5131 | 23843 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850))); |
093d3ff1 RD |
23844 | } |
23845 | { | |
32fe5131 | 23846 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852))); |
093d3ff1 RD |
23847 | } |
23848 | { | |
32fe5131 | 23849 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855))); |
093d3ff1 RD |
23850 | } |
23851 | { | |
32fe5131 | 23852 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866))); |
093d3ff1 RD |
23853 | } |
23854 | { | |
32fe5131 | 23855 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874))); |
093d3ff1 RD |
23856 | } |
23857 | { | |
32fe5131 | 23858 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932))); |
093d3ff1 RD |
23859 | } |
23860 | { | |
32fe5131 | 23861 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936))); |
093d3ff1 RD |
23862 | } |
23863 | { | |
32fe5131 | 23864 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949))); |
093d3ff1 RD |
23865 | } |
23866 | { | |
32fe5131 | 23867 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950))); |
093d3ff1 RD |
23868 | } |
23869 | { | |
32fe5131 | 23870 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250))); |
093d3ff1 RD |
23871 | } |
23872 | { | |
32fe5131 | 23873 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251))); |
093d3ff1 RD |
23874 | } |
23875 | { | |
32fe5131 | 23876 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252))); |
093d3ff1 RD |
23877 | } |
23878 | { | |
32fe5131 | 23879 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253))); |
093d3ff1 RD |
23880 | } |
23881 | { | |
32fe5131 | 23882 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254))); |
093d3ff1 RD |
23883 | } |
23884 | { | |
32fe5131 | 23885 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255))); |
093d3ff1 RD |
23886 | } |
23887 | { | |
32fe5131 | 23888 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256))); |
093d3ff1 RD |
23889 | } |
23890 | { | |
32fe5131 | 23891 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257))); |
093d3ff1 RD |
23892 | } |
23893 | { | |
32fe5131 | 23894 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX))); |
093d3ff1 RD |
23895 | } |
23896 | { | |
32fe5131 | 23897 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7))); |
093d3ff1 RD |
23898 | } |
23899 | { | |
32fe5131 | 23900 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8))); |
093d3ff1 RD |
23901 | } |
23902 | { | |
32fe5131 | 23903 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP))); |
093d3ff1 RD |
23904 | } |
23905 | { | |
32fe5131 | 23906 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE))); |
093d3ff1 RD |
23907 | } |
23908 | { | |
32fe5131 | 23909 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE))); |
093d3ff1 RD |
23910 | } |
23911 | { | |
32fe5131 | 23912 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE))); |
093d3ff1 RD |
23913 | } |
23914 | { | |
32fe5131 | 23915 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE))); |
093d3ff1 RD |
23916 | } |
23917 | { | |
32fe5131 | 23918 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN))); |
093d3ff1 RD |
23919 | } |
23920 | { | |
32fe5131 | 23921 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE))); |
093d3ff1 RD |
23922 | } |
23923 | { | |
32fe5131 | 23924 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD))); |
093d3ff1 RD |
23925 | } |
23926 | { | |
32fe5131 | 23927 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN))); |
093d3ff1 RD |
23928 | } |
23929 | { | |
32fe5131 | 23930 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC))); |
093d3ff1 RD |
23931 | } |
23932 | { | |
32fe5131 | 23933 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW))); |
093d3ff1 RD |
23934 | } |
23935 | { | |
32fe5131 | 23936 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK))); |
093d3ff1 RD |
23937 | } |
23938 | { | |
32fe5131 | 23939 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC))); |
093d3ff1 RD |
23940 | } |
23941 | { | |
32fe5131 | 23942 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI))); |
093d3ff1 RD |
23943 | } |
23944 | { | |
32fe5131 | 23945 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI))); |
093d3ff1 RD |
23946 | } |
23947 | { | |
32fe5131 | 23948 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI))); |
093d3ff1 RD |
23949 | } |
23950 | { | |
32fe5131 | 23951 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA))); |
093d3ff1 RD |
23952 | } |
23953 | { | |
32fe5131 | 23954 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI))); |
093d3ff1 RD |
23955 | } |
23956 | { | |
32fe5131 | 23957 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL))); |
093d3ff1 RD |
23958 | } |
23959 | { | |
32fe5131 | 23960 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU))); |
093d3ff1 RD |
23961 | } |
23962 | { | |
32fe5131 | 23963 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA))); |
093d3ff1 RD |
23964 | } |
23965 | { | |
32fe5131 | 23966 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM))); |
093d3ff1 RD |
23967 | } |
23968 | { | |
32fe5131 | 23969 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE))); |
093d3ff1 RD |
23970 | } |
23971 | { | |
32fe5131 | 23972 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE))); |
093d3ff1 RD |
23973 | } |
23974 | { | |
32fe5131 | 23975 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER))); |
093d3ff1 RD |
23976 | } |
23977 | { | |
32fe5131 | 23978 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI))); |
093d3ff1 RD |
23979 | } |
23980 | { | |
32fe5131 | 23981 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN))); |
093d3ff1 RD |
23982 | } |
23983 | { | |
32fe5131 | 23984 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN))); |
093d3ff1 RD |
23985 | } |
23986 | { | |
32fe5131 | 23987 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN))); |
093d3ff1 RD |
23988 | } |
23989 | { | |
32fe5131 | 23990 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP))); |
093d3ff1 RD |
23991 | } |
23992 | { | |
32fe5131 | 23993 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN))); |
093d3ff1 RD |
23994 | } |
23995 | { | |
32fe5131 | 23996 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN))); |
093d3ff1 RD |
23997 | } |
23998 | { | |
32fe5131 | 23999 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC))); |
093d3ff1 RD |
24000 | } |
24001 | { | |
32fe5131 | 24002 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR))); |
093d3ff1 RD |
24003 | } |
24004 | { | |
32fe5131 | 24005 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE))); |
093d3ff1 RD |
24006 | } |
24007 | { | |
32fe5131 | 24008 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT))); |
093d3ff1 RD |
24009 | } |
24010 | { | |
32fe5131 | 24011 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL))); |
093d3ff1 RD |
24012 | } |
24013 | { | |
32fe5131 | 24014 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS))); |
093d3ff1 RD |
24015 | } |
24016 | { | |
32fe5131 | 24017 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH))); |
093d3ff1 RD |
24018 | } |
24019 | { | |
32fe5131 | 24020 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN))); |
093d3ff1 RD |
24021 | } |
24022 | { | |
32fe5131 | 24023 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC))); |
093d3ff1 RD |
24024 | } |
24025 | { | |
32fe5131 | 24026 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN))); |
093d3ff1 RD |
24027 | } |
24028 | { | |
32fe5131 | 24029 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC))); |
093d3ff1 RD |
24030 | } |
24031 | { | |
32fe5131 | 24032 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC))); |
093d3ff1 RD |
24033 | } |
24034 | { | |
32fe5131 | 24035 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD))); |
093d3ff1 RD |
24036 | } |
24037 | { | |
32fe5131 | 24038 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN))); |
093d3ff1 RD |
24039 | } |
24040 | { | |
32fe5131 | 24041 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX))); |
093d3ff1 RD |
24042 | } |
24043 | { | |
32fe5131 | 24044 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX))); |
093d3ff1 RD |
24045 | } |
24046 | { | |
32fe5131 | 24047 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16))); |
093d3ff1 RD |
24048 | } |
24049 | { | |
32fe5131 | 24050 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32))); |
093d3ff1 RD |
24051 | } |
24052 | { | |
32fe5131 | 24053 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE))); |
093d3ff1 RD |
24054 | } |
24055 | { | |
32fe5131 | 24056 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312))); |
093d3ff1 RD |
24057 | } |
24058 | { | |
32fe5131 | 24059 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5))); |
093d3ff1 RD |
24060 | } |
24061 | { | |
32fe5131 | 24062 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS))); |
093d3ff1 RD |
24063 | } |
24064 | ||
24065 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
24066 | ||
24067 | { | |
32fe5131 | 24068 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT))); |
093d3ff1 RD |
24069 | } |
24070 | { | |
32fe5131 | 24071 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN))); |
093d3ff1 RD |
24072 | } |
24073 | { | |
32fe5131 | 24074 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN))); |
093d3ff1 RD |
24075 | } |
24076 | { | |
32fe5131 | 24077 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR))); |
093d3ff1 RD |
24078 | } |
24079 | { | |
32fe5131 | 24080 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS))); |
093d3ff1 RD |
24081 | } |
24082 | { | |
32fe5131 | 24083 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN))); |
093d3ff1 RD |
24084 | } |
24085 | { | |
32fe5131 | 24086 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC))); |
093d3ff1 RD |
24087 | } |
24088 | { | |
32fe5131 | 24089 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC))); |
093d3ff1 RD |
24090 | } |
24091 | { | |
32fe5131 | 24092 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA))); |
093d3ff1 RD |
24093 | } |
24094 | { | |
32fe5131 | 24095 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN))); |
093d3ff1 RD |
24096 | } |
24097 | { | |
32fe5131 | 24098 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT))); |
093d3ff1 RD |
24099 | } |
24100 | { | |
32fe5131 | 24101 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ))); |
093d3ff1 RD |
24102 | } |
24103 | { | |
32fe5131 | 24104 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN))); |
093d3ff1 RD |
24105 | } |
24106 | { | |
32fe5131 | 24107 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT))); |
093d3ff1 RD |
24108 | } |
24109 | { | |
32fe5131 | 24110 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON))); |
093d3ff1 RD |
24111 | } |
24112 | { | |
32fe5131 | 24113 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA))); |
093d3ff1 RD |
24114 | } |
24115 | { | |
32fe5131 | 24116 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO))); |
093d3ff1 RD |
24117 | } |
24118 | { | |
32fe5131 | 24119 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN))); |
093d3ff1 RD |
24120 | } |
24121 | { | |
32fe5131 | 24122 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR))); |
093d3ff1 RD |
24123 | } |
24124 | { | |
32fe5131 | 24125 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); |
093d3ff1 RD |
24126 | } |
24127 | { | |
32fe5131 | 24128 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN))); |
093d3ff1 RD |
24129 | } |
24130 | { | |
32fe5131 | 24131 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA))); |
093d3ff1 RD |
24132 | } |
24133 | { | |
32fe5131 | 24134 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA))); |
093d3ff1 RD |
24135 | } |
24136 | { | |
32fe5131 | 24137 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE))); |
093d3ff1 RD |
24138 | } |
24139 | { | |
32fe5131 | 24140 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN))); |
093d3ff1 RD |
24141 | } |
24142 | { | |
32fe5131 | 24143 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN))); |
093d3ff1 RD |
24144 | } |
24145 | { | |
32fe5131 | 24146 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE))); |
093d3ff1 RD |
24147 | } |
24148 | { | |
32fe5131 | 24149 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA))); |
093d3ff1 RD |
24150 | } |
24151 | { | |
32fe5131 | 24152 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI))); |
093d3ff1 RD |
24153 | } |
24154 | { | |
32fe5131 | 24155 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC))); |
093d3ff1 RD |
24156 | } |
24157 | { | |
32fe5131 | 24158 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN))); |
093d3ff1 RD |
24159 | } |
24160 | { | |
32fe5131 | 24161 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR))); |
093d3ff1 RD |
24162 | } |
24163 | { | |
32fe5131 | 24164 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE))); |
093d3ff1 RD |
24165 | } |
24166 | { | |
32fe5131 | 24167 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN))); |
093d3ff1 RD |
24168 | } |
24169 | { | |
32fe5131 | 24170 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI))); |
093d3ff1 RD |
24171 | } |
24172 | { | |
32fe5131 | 24173 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI))); |
093d3ff1 RD |
24174 | } |
24175 | { | |
32fe5131 | 24176 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI))); |
093d3ff1 RD |
24177 | } |
24178 | { | |
32fe5131 | 24179 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA))); |
093d3ff1 RD |
24180 | } |
24181 | { | |
32fe5131 | 24182 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON))); |
093d3ff1 RD |
24183 | } |
24184 | { | |
32fe5131 | 24185 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN))); |
093d3ff1 RD |
24186 | } |
24187 | { | |
32fe5131 | 24188 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE))); |
093d3ff1 RD |
24189 | } |
24190 | { | |
32fe5131 | 24191 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN))); |
093d3ff1 RD |
24192 | } |
24193 | { | |
32fe5131 | 24194 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN))); |
093d3ff1 RD |
24195 | } |
24196 | { | |
32fe5131 | 24197 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE))); |
093d3ff1 RD |
24198 | } |
24199 | { | |
32fe5131 | 24200 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); |
093d3ff1 RD |
24201 | } |
24202 | { | |
32fe5131 | 24203 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL))); |
093d3ff1 RD |
24204 | } |
24205 | { | |
32fe5131 | 24206 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG))); |
093d3ff1 RD |
24207 | } |
24208 | { | |
32fe5131 | 24209 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU))); |
093d3ff1 RD |
24210 | } |
24211 | { | |
32fe5131 | 24212 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE))); |
093d3ff1 RD |
24213 | } |
24214 | { | |
32fe5131 | 24215 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN))); |
093d3ff1 RD |
24216 | } |
24217 | { | |
32fe5131 | 24218 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN))); |
093d3ff1 RD |
24219 | } |
24220 | { | |
32fe5131 | 24221 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN))); |
093d3ff1 RD |
24222 | } |
24223 | { | |
32fe5131 | 24224 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH))); |
093d3ff1 RD |
24225 | } |
24226 | { | |
32fe5131 | 24227 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH))); |
093d3ff1 RD |
24228 | } |
24229 | { | |
32fe5131 | 24230 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH))); |
093d3ff1 RD |
24231 | } |
24232 | { | |
32fe5131 | 24233 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN))); |
093d3ff1 RD |
24234 | } |
24235 | { | |
32fe5131 | 24236 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH))); |
093d3ff1 RD |
24237 | } |
24238 | { | |
32fe5131 | 24239 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK))); |
093d3ff1 RD |
24240 | } |
24241 | { | |
32fe5131 | 24242 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US))); |
093d3ff1 RD |
24243 | } |
24244 | { | |
32fe5131 | 24245 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); |
093d3ff1 RD |
24246 | } |
24247 | { | |
32fe5131 | 24248 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE))); |
093d3ff1 RD |
24249 | } |
24250 | { | |
32fe5131 | 24251 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA))); |
093d3ff1 RD |
24252 | } |
24253 | { | |
32fe5131 | 24254 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA))); |
093d3ff1 RD |
24255 | } |
24256 | { | |
32fe5131 | 24257 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); |
093d3ff1 RD |
24258 | } |
24259 | { | |
32fe5131 | 24260 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK))); |
093d3ff1 RD |
24261 | } |
24262 | { | |
32fe5131 | 24263 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE))); |
093d3ff1 RD |
24264 | } |
24265 | { | |
32fe5131 | 24266 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA))); |
093d3ff1 RD |
24267 | } |
24268 | { | |
32fe5131 | 24269 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); |
093d3ff1 RD |
24270 | } |
24271 | { | |
32fe5131 | 24272 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); |
093d3ff1 RD |
24273 | } |
24274 | { | |
32fe5131 | 24275 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); |
093d3ff1 RD |
24276 | } |
24277 | { | |
32fe5131 | 24278 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD))); |
093d3ff1 RD |
24279 | } |
24280 | { | |
32fe5131 | 24281 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); |
093d3ff1 RD |
24282 | } |
24283 | { | |
32fe5131 | 24284 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO))); |
093d3ff1 RD |
24285 | } |
24286 | { | |
32fe5131 | 24287 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN))); |
093d3ff1 RD |
24288 | } |
24289 | { | |
32fe5131 | 24290 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE))); |
093d3ff1 RD |
24291 | } |
24292 | { | |
32fe5131 | 24293 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI))); |
093d3ff1 RD |
24294 | } |
24295 | { | |
32fe5131 | 24296 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI))); |
093d3ff1 RD |
24297 | } |
24298 | { | |
32fe5131 | 24299 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH))); |
093d3ff1 RD |
24300 | } |
24301 | { | |
32fe5131 | 24302 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH))); |
093d3ff1 RD |
24303 | } |
24304 | { | |
32fe5131 | 24305 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN))); |
093d3ff1 RD |
24306 | } |
24307 | { | |
32fe5131 | 24308 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN))); |
093d3ff1 RD |
24309 | } |
24310 | { | |
32fe5131 | 24311 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); |
093d3ff1 RD |
24312 | } |
24313 | { | |
32fe5131 | 24314 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO))); |
093d3ff1 RD |
24315 | } |
24316 | { | |
32fe5131 | 24317 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS))); |
093d3ff1 RD |
24318 | } |
24319 | { | |
32fe5131 | 24320 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN))); |
093d3ff1 RD |
24321 | } |
24322 | { | |
32fe5131 | 24323 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN))); |
093d3ff1 RD |
24324 | } |
24325 | { | |
32fe5131 | 24326 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN))); |
093d3ff1 RD |
24327 | } |
24328 | { | |
32fe5131 | 24329 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN))); |
093d3ff1 RD |
24330 | } |
24331 | { | |
32fe5131 | 24332 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN))); |
093d3ff1 RD |
24333 | } |
24334 | { | |
32fe5131 | 24335 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM))); |
093d3ff1 RD |
24336 | } |
24337 | { | |
32fe5131 | 24338 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); |
093d3ff1 RD |
24339 | } |
24340 | { | |
32fe5131 | 24341 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); |
093d3ff1 RD |
24342 | } |
24343 | { | |
32fe5131 | 24344 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS))); |
093d3ff1 RD |
24345 | } |
24346 | { | |
32fe5131 | 24347 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK))); |
093d3ff1 RD |
24348 | } |
24349 | { | |
32fe5131 | 24350 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC))); |
093d3ff1 RD |
24351 | } |
24352 | { | |
32fe5131 | 24353 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI))); |
093d3ff1 RD |
24354 | } |
24355 | { | |
32fe5131 | 24356 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI))); |
093d3ff1 RD |
24357 | } |
24358 | { | |
32fe5131 | 24359 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA))); |
093d3ff1 RD |
24360 | } |
24361 | { | |
32fe5131 | 24362 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW))); |
093d3ff1 RD |
24363 | } |
24364 | { | |
32fe5131 | 24365 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI))); |
093d3ff1 RD |
24366 | } |
24367 | { | |
32fe5131 | 24368 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN))); |
093d3ff1 RD |
24369 | } |
24370 | { | |
32fe5131 | 24371 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC))); |
093d3ff1 RD |
24372 | } |
24373 | { | |
32fe5131 | 24374 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN))); |
093d3ff1 RD |
24375 | } |
24376 | { | |
32fe5131 | 24377 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA))); |
093d3ff1 RD |
24378 | } |
24379 | { | |
32fe5131 | 24380 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE))); |
093d3ff1 RD |
24381 | } |
24382 | { | |
32fe5131 | 24383 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT))); |
093d3ff1 RD |
24384 | } |
24385 | { | |
32fe5131 | 24386 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK))); |
093d3ff1 RD |
24387 | } |
24388 | { | |
32fe5131 | 24389 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH))); |
093d3ff1 RD |
24390 | } |
24391 | { | |
32fe5131 | 24392 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN))); |
093d3ff1 RD |
24393 | } |
24394 | { | |
32fe5131 | 24395 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS))); |
093d3ff1 RD |
24396 | } |
24397 | { | |
32fe5131 | 24398 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE))); |
093d3ff1 RD |
24399 | } |
24400 | { | |
32fe5131 | 24401 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE))); |
093d3ff1 RD |
24402 | } |
24403 | { | |
32fe5131 | 24404 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA))); |
093d3ff1 RD |
24405 | } |
24406 | { | |
32fe5131 | 24407 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI))); |
093d3ff1 RD |
24408 | } |
24409 | { | |
32fe5131 | 24410 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA))); |
093d3ff1 RD |
24411 | } |
24412 | { | |
32fe5131 | 24413 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH))); |
093d3ff1 RD |
24414 | } |
24415 | { | |
32fe5131 | 24416 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK))); |
093d3ff1 RD |
24417 | } |
24418 | { | |
32fe5131 | 24419 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA))); |
093d3ff1 RD |
24420 | } |
24421 | { | |
32fe5131 | 24422 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ))); |
093d3ff1 RD |
24423 | } |
24424 | { | |
32fe5131 | 24425 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI))); |
093d3ff1 RD |
24426 | } |
24427 | { | |
32fe5131 | 24428 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI))); |
093d3ff1 RD |
24429 | } |
24430 | { | |
32fe5131 | 24431 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN))); |
093d3ff1 RD |
24432 | } |
24433 | { | |
32fe5131 | 24434 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH))); |
093d3ff1 RD |
24435 | } |
24436 | { | |
32fe5131 | 24437 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN))); |
093d3ff1 RD |
24438 | } |
24439 | { | |
32fe5131 | 24440 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN))); |
093d3ff1 RD |
24441 | } |
24442 | { | |
32fe5131 | 24443 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN))); |
093d3ff1 RD |
24444 | } |
24445 | { | |
32fe5131 | 24446 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA))); |
093d3ff1 RD |
24447 | } |
24448 | { | |
32fe5131 | 24449 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN))); |
093d3ff1 RD |
24450 | } |
24451 | { | |
32fe5131 | 24452 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN))); |
093d3ff1 RD |
24453 | } |
24454 | { | |
32fe5131 | 24455 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY))); |
093d3ff1 RD |
24456 | } |
24457 | { | |
32fe5131 | 24458 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY))); |
093d3ff1 RD |
24459 | } |
24460 | { | |
32fe5131 | 24461 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM))); |
093d3ff1 RD |
24462 | } |
24463 | { | |
32fe5131 | 24464 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); |
093d3ff1 RD |
24465 | } |
24466 | { | |
32fe5131 | 24467 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA))); |
093d3ff1 RD |
24468 | } |
24469 | { | |
32fe5131 | 24470 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE))); |
093d3ff1 RD |
24471 | } |
24472 | { | |
32fe5131 | 24473 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI))); |
093d3ff1 RD |
24474 | } |
24475 | { | |
32fe5131 | 24476 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI))); |
093d3ff1 RD |
24477 | } |
24478 | { | |
32fe5131 | 24479 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI))); |
093d3ff1 RD |
24480 | } |
24481 | { | |
32fe5131 | 24482 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN))); |
093d3ff1 RD |
24483 | } |
24484 | { | |
32fe5131 | 24485 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN))); |
093d3ff1 RD |
24486 | } |
24487 | { | |
32fe5131 | 24488 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU))); |
093d3ff1 RD |
24489 | } |
24490 | { | |
32fe5131 | 24491 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI))); |
093d3ff1 RD |
24492 | } |
24493 | { | |
32fe5131 | 24494 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA))); |
093d3ff1 RD |
24495 | } |
24496 | { | |
32fe5131 | 24497 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); |
093d3ff1 RD |
24498 | } |
24499 | { | |
32fe5131 | 24500 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); |
093d3ff1 RD |
24501 | } |
24502 | { | |
32fe5131 | 24503 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN))); |
093d3ff1 RD |
24504 | } |
24505 | { | |
32fe5131 | 24506 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA))); |
093d3ff1 RD |
24507 | } |
24508 | { | |
32fe5131 | 24509 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO))); |
093d3ff1 RD |
24510 | } |
24511 | { | |
32fe5131 | 24512 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO))); |
093d3ff1 RD |
24513 | } |
24514 | { | |
32fe5131 | 24515 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH))); |
093d3ff1 RD |
24516 | } |
24517 | { | |
32fe5131 | 24518 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE))); |
093d3ff1 RD |
24519 | } |
24520 | { | |
32fe5131 | 24521 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); |
093d3ff1 RD |
24522 | } |
24523 | { | |
32fe5131 | 24524 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI))); |
093d3ff1 RD |
24525 | } |
24526 | { | |
32fe5131 | 24527 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA))); |
093d3ff1 RD |
24528 | } |
24529 | { | |
32fe5131 | 24530 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE))); |
093d3ff1 RD |
24531 | } |
24532 | { | |
32fe5131 | 24533 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN))); |
093d3ff1 RD |
24534 | } |
24535 | { | |
32fe5131 | 24536 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN))); |
093d3ff1 RD |
24537 | } |
24538 | { | |
32fe5131 | 24539 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE))); |
093d3ff1 RD |
24540 | } |
24541 | { | |
32fe5131 | 24542 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN))); |
093d3ff1 RD |
24543 | } |
24544 | { | |
32fe5131 | 24545 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO))); |
093d3ff1 RD |
24546 | } |
24547 | { | |
32fe5131 | 24548 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT))); |
093d3ff1 RD |
24549 | } |
24550 | { | |
32fe5131 | 24551 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC))); |
093d3ff1 RD |
24552 | } |
24553 | { | |
32fe5131 | 24554 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN))); |
093d3ff1 RD |
24555 | } |
24556 | { | |
32fe5131 | 24557 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC))); |
093d3ff1 RD |
24558 | } |
24559 | { | |
32fe5131 | 24560 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN))); |
093d3ff1 RD |
24561 | } |
24562 | { | |
32fe5131 | 24563 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN))); |
093d3ff1 RD |
24564 | } |
24565 | { | |
32fe5131 | 24566 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO))); |
093d3ff1 RD |
24567 | } |
24568 | { | |
32fe5131 | 24569 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA))); |
093d3ff1 RD |
24570 | } |
24571 | { | |
32fe5131 | 24572 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA))); |
093d3ff1 RD |
24573 | } |
24574 | { | |
32fe5131 | 24575 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI))); |
093d3ff1 RD |
24576 | } |
24577 | { | |
32fe5131 | 24578 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE))); |
093d3ff1 RD |
24579 | } |
24580 | { | |
32fe5131 | 24581 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI))); |
093d3ff1 RD |
24582 | } |
24583 | { | |
32fe5131 | 24584 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK))); |
093d3ff1 RD |
24585 | } |
24586 | { | |
32fe5131 | 24587 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN))); |
093d3ff1 RD |
24588 | } |
24589 | { | |
32fe5131 | 24590 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI))); |
093d3ff1 RD |
24591 | } |
24592 | { | |
32fe5131 | 24593 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH))); |
093d3ff1 RD |
24594 | } |
24595 | { | |
32fe5131 | 24596 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA))); |
093d3ff1 RD |
24597 | } |
24598 | { | |
32fe5131 | 24599 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA))); |
093d3ff1 RD |
24600 | } |
24601 | { | |
32fe5131 | 24602 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE))); |
093d3ff1 RD |
24603 | } |
24604 | { | |
32fe5131 | 24605 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA))); |
093d3ff1 RD |
24606 | } |
24607 | { | |
32fe5131 | 24608 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA))); |
093d3ff1 RD |
24609 | } |
24610 | { | |
32fe5131 | 24611 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); |
093d3ff1 RD |
24612 | } |
24613 | { | |
32fe5131 | 24614 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR))); |
093d3ff1 RD |
24615 | } |
24616 | { | |
32fe5131 | 24617 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); |
093d3ff1 RD |
24618 | } |
24619 | { | |
32fe5131 | 24620 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA))); |
093d3ff1 RD |
24621 | } |
24622 | { | |
32fe5131 | 24623 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS))); |
093d3ff1 RD |
24624 | } |
24625 | { | |
32fe5131 | 24626 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN))); |
093d3ff1 RD |
24627 | } |
24628 | { | |
32fe5131 | 24629 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN))); |
093d3ff1 RD |
24630 | } |
24631 | { | |
32fe5131 | 24632 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA))); |
093d3ff1 RD |
24633 | } |
24634 | { | |
32fe5131 | 24635 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA))); |
093d3ff1 RD |
24636 | } |
24637 | { | |
32fe5131 | 24638 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY))); |
093d3ff1 RD |
24639 | } |
24640 | { | |
32fe5131 | 24641 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU))); |
093d3ff1 RD |
24642 | } |
24643 | { | |
32fe5131 | 24644 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); |
093d3ff1 RD |
24645 | } |
24646 | { | |
32fe5131 | 24647 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY))); |
093d3ff1 RD |
24648 | } |
24649 | { | |
32fe5131 | 24650 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US))); |
093d3ff1 RD |
24651 | } |
24652 | { | |
32fe5131 | 24653 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA))); |
093d3ff1 RD |
24654 | } |
24655 | { | |
32fe5131 | 24656 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE))); |
093d3ff1 RD |
24657 | } |
24658 | { | |
32fe5131 | 24659 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI))); |
093d3ff1 RD |
24660 | } |
24661 | { | |
32fe5131 | 24662 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH))); |
093d3ff1 RD |
24663 | } |
24664 | { | |
32fe5131 | 24665 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND))); |
093d3ff1 RD |
24666 | } |
24667 | { | |
32fe5131 | 24668 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG))); |
093d3ff1 RD |
24669 | } |
24670 | { | |
32fe5131 | 24671 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK))); |
093d3ff1 RD |
24672 | } |
24673 | { | |
32fe5131 | 24674 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL))); |
093d3ff1 RD |
24675 | } |
24676 | { | |
32fe5131 | 24677 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR))); |
093d3ff1 RD |
24678 | } |
24679 | { | |
32fe5131 | 24680 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU))); |
093d3ff1 RD |
24681 | } |
24682 | { | |
32fe5131 | 24683 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI))); |
093d3ff1 RD |
24684 | } |
24685 | { | |
32fe5131 | 24686 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN))); |
093d3ff1 RD |
24687 | } |
24688 | { | |
32fe5131 | 24689 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA))); |
093d3ff1 RD |
24690 | } |
24691 | { | |
32fe5131 | 24692 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA))); |
093d3ff1 RD |
24693 | } |
24694 | { | |
32fe5131 | 24695 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA))); |
093d3ff1 RD |
24696 | } |
24697 | { | |
32fe5131 | 24698 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH))); |
093d3ff1 RD |
24699 | } |
24700 | { | |
32fe5131 | 24701 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN))); |
093d3ff1 RD |
24702 | } |
24703 | { | |
32fe5131 | 24704 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI))); |
093d3ff1 RD |
24705 | } |
24706 | { | |
32fe5131 | 24707 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR))); |
093d3ff1 RD |
24708 | } |
24709 | { | |
32fe5131 | 24710 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN))); |
093d3ff1 RD |
24711 | } |
24712 | { | |
32fe5131 | 24713 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU))); |
093d3ff1 RD |
24714 | } |
24715 | { | |
32fe5131 | 24716 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA))); |
093d3ff1 RD |
24717 | } |
24718 | { | |
32fe5131 | 24719 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN))); |
093d3ff1 RD |
24720 | } |
24721 | { | |
32fe5131 | 24722 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK))); |
093d3ff1 RD |
24723 | } |
24724 | { | |
32fe5131 | 24725 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC))); |
093d3ff1 RD |
24726 | } |
24727 | { | |
32fe5131 | 24728 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN))); |
093d3ff1 RD |
24729 | } |
24730 | { | |
32fe5131 | 24731 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE))); |
093d3ff1 RD |
24732 | } |
24733 | { | |
32fe5131 | 24734 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK))); |
093d3ff1 RD |
24735 | } |
24736 | { | |
32fe5131 | 24737 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH))); |
093d3ff1 RD |
24738 | } |
24739 | { | |
32fe5131 | 24740 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF))); |
093d3ff1 RD |
24741 | } |
24742 | { | |
32fe5131 | 24743 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA))); |
093d3ff1 RD |
24744 | } |
24745 | { | |
32fe5131 | 24746 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH))); |
093d3ff1 RD |
24747 | } |
24748 | { | |
32fe5131 | 24749 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA))); |
093d3ff1 RD |
24750 | } |
24751 | { | |
32fe5131 | 24752 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG))); |
093d3ff1 RD |
24753 | } |
24754 | { | |
32fe5131 | 24755 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU))); |
093d3ff1 RD |
24756 | } |
24757 | { | |
32fe5131 | 24758 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED))); |
093d3ff1 RD |
24759 | } |
24760 | { | |
32fe5131 | 24761 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER))); |
093d3ff1 RD |
24762 | } |
24763 | { | |
32fe5131 | 24764 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE))); |
093d3ff1 RD |
24765 | } |
24766 | { | |
32fe5131 | 24767 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY))); |
093d3ff1 RD |
24768 | } |
24769 | { | |
32fe5131 | 24770 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX))); |
093d3ff1 RD |
24771 | } |
24772 | { | |
32fe5131 | 24773 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP))); |
093d3ff1 RD |
24774 | } |
24775 | { | |
32fe5131 | 24776 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT))); |
093d3ff1 RD |
24777 | } |
24778 | { | |
32fe5131 | 24779 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT))); |
093d3ff1 RD |
24780 | } |
24781 | { | |
32fe5131 | 24782 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING))); |
093d3ff1 RD |
24783 | } |
24784 | { | |
32fe5131 | 24785 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT))); |
093d3ff1 RD |
24786 | } |
24787 | { | |
32fe5131 | 24788 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE))); |
093d3ff1 RD |
24789 | } |
24790 | { | |
32fe5131 | 24791 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT))); |
093d3ff1 RD |
24792 | } |
24793 | { | |
32fe5131 | 24794 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX))); |
093d3ff1 RD |
24795 | } |
24796 | { | |
32fe5131 | 24797 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS))); |
093d3ff1 RD |
24798 | } |
24799 | { | |
32fe5131 | 24800 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2))); |
093d3ff1 RD |
24801 | } |
24802 | { | |
32fe5131 | 24803 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC))); |
093d3ff1 | 24804 | } |
e2950dbb | 24805 | { |
32fe5131 | 24806 | PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA))); |
e2950dbb RD |
24807 | } |
24808 | { | |
32fe5131 | 24809 | PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA))); |
e2950dbb | 24810 | } |
093d3ff1 | 24811 | { |
32fe5131 | 24812 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL))); |
093d3ff1 RD |
24813 | } |
24814 | { | |
32fe5131 | 24815 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT))); |
093d3ff1 RD |
24816 | } |
24817 | { | |
32fe5131 | 24818 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED))); |
093d3ff1 RD |
24819 | } |
24820 | { | |
32fe5131 | 24821 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED))); |
093d3ff1 RD |
24822 | } |
24823 | { | |
32fe5131 | 24824 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL))); |
093d3ff1 RD |
24825 | } |
24826 | { | |
32fe5131 | 24827 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL))); |
093d3ff1 RD |
24828 | } |
24829 | { | |
32fe5131 | 24830 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE))); |
093d3ff1 | 24831 | } |
d14a1e28 RD |
24832 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
24833 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
24834 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
24835 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
24836 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
24837 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
24838 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
24839 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
24840 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
24841 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
24842 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
24843 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
24844 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
24845 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
24846 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
24847 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
24848 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
24849 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
24850 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
24851 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
24852 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
24853 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
24854 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
24855 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
24856 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
24857 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
24858 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
24859 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
24860 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
24861 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
24862 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
24863 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
24864 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
24865 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
24866 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
24867 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
24868 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
24869 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
24870 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
24871 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
24872 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
24873 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
24874 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
24875 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
24876 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
24877 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
24878 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
8d38bd1d | 24879 | { |
32fe5131 | 24880 | PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED))); |
8d38bd1d RD |
24881 | } |
24882 | { | |
32fe5131 | 24883 | PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED))); |
8d38bd1d RD |
24884 | } |
24885 | { | |
32fe5131 | 24886 | PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED))); |
8d38bd1d RD |
24887 | } |
24888 | { | |
32fe5131 | 24889 | PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT))); |
8d38bd1d RD |
24890 | } |
24891 | { | |
32fe5131 | 24892 | PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU))); |
8d38bd1d RD |
24893 | } |
24894 | { | |
32fe5131 | 24895 | PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED))); |
8d38bd1d RD |
24896 | } |
24897 | { | |
32fe5131 | 24898 | PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT))); |
8d38bd1d RD |
24899 | } |
24900 | { | |
32fe5131 | 24901 | PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED))); |
8d38bd1d RD |
24902 | } |
24903 | { | |
32fe5131 | 24904 | PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED))); |
8d38bd1d RD |
24905 | } |
24906 | { | |
32fe5131 | 24907 | PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE))); |
8d38bd1d RD |
24908 | } |
24909 | { | |
32fe5131 | 24910 | PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED))); |
8d38bd1d RD |
24911 | } |
24912 | { | |
32fe5131 | 24913 | PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK))); |
8d38bd1d RD |
24914 | } |
24915 | { | |
32fe5131 | 24916 | PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY))); |
8d38bd1d RD |
24917 | } |
24918 | { | |
32fe5131 | 24919 | PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version))); |
8d38bd1d RD |
24920 | } |
24921 | { | |
32fe5131 | 24922 | PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age))); |
8d38bd1d | 24923 | } |
7722248d RD |
24924 | |
24925 | // Work around a chicken/egg problem in drawlist.cpp | |
24926 | wxPyDrawList_SetAPIPtr(); | |
24927 | ||
d14a1e28 RD |
24928 | } |
24929 |