]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d55e5bfc | 47 | |
7449af73 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
554f62e9 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
554f62e9 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
7449af73 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
554f62e9 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
7449af73 | 126 | |
d55e5bfc | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
7449af73 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
554f62e9 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
7449af73 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
7449af73 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
554f62e9 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
7449af73 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
7449af73 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
7449af73 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
554f62e9 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
7449af73 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
7449af73 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
7449af73 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
7449af73 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
7449af73 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
7449af73 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d55e5bfc | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
554f62e9 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
554f62e9 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
554f62e9 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
554f62e9 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
554f62e9 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d55e5bfc | 936 | |
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
554f62e9 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
554f62e9 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
554f62e9 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
554f62e9 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
d55e5bfc | 996 | |
554f62e9 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1000 | |
554f62e9 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1004 | |
554f62e9 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1008 | |
554f62e9 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
7449af73 | 1012 | |
c32bde28 | 1013 | |
554f62e9 | 1014 | /* Runtime API */ |
d55e5bfc | 1015 | |
554f62e9 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
7449af73 | 1019 | |
554f62e9 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
7449af73 | 1025 | |
d55e5bfc | 1026 | |
554f62e9 | 1027 | /* Runtime API implementation */ |
c32bde28 | 1028 | |
554f62e9 | 1029 | /* Error manipulation */ |
c32bde28 | 1030 | |
554f62e9 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1037 | } |
d55e5bfc | 1038 | |
554f62e9 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1044 | } |
d55e5bfc | 1045 | |
554f62e9 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1047 | |
554f62e9 | 1048 | /* Set a constant value */ |
c32bde28 | 1049 | |
554f62e9 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
d55e5bfc RD |
1054 | } |
1055 | ||
554f62e9 | 1056 | /* Append a value to the result obj */ |
d55e5bfc | 1057 | |
554f62e9 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
093d3ff1 | 1084 | } else { |
554f62e9 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
d55e5bfc | 1096 | } |
554f62e9 RD |
1097 | return result; |
1098 | #endif | |
093d3ff1 | 1099 | } |
d55e5bfc | 1100 | |
554f62e9 | 1101 | /* Unpack the argument tuple */ |
d55e5bfc | 1102 | |
554f62e9 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
7449af73 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
7449af73 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
554f62e9 | 1612 | static PyTypeObject pyswigobject_type; |
7449af73 | 1613 | static int type_init = 0; |
093d3ff1 | 1614 | if (!type_init) { |
554f62e9 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1628 | #endif |
554f62e9 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
554f62e9 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
554f62e9 | 1670 | 0, /* tp_del */ |
093d3ff1 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1674 | #endif |
554f62e9 | 1675 | }; |
7449af73 | 1676 | pyswigobject_type = tmp; |
554f62e9 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1678 | type_init = 1; |
c32bde28 | 1679 | } |
7449af73 | 1680 | return &pyswigobject_type; |
d55e5bfc RD |
1681 | } |
1682 | ||
093d3ff1 | 1683 | SWIGRUNTIME PyObject * |
554f62e9 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1685 | { |
554f62e9 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
7449af73 | 1692 | } |
554f62e9 | 1693 | return (PyObject *)sobj; |
093d3ff1 | 1694 | } |
c32bde28 | 1695 | |
093d3ff1 RD |
1696 | /* ----------------------------------------------------------------------------- |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
1699 | ||
1700 | typedef struct { | |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
554f62e9 | 1703 | swig_type_info *ty; |
093d3ff1 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
1706 | ||
1707 | SWIGRUNTIME int | |
554f62e9 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
c32bde28 | 1709 | { |
093d3ff1 RD |
1710 | char result[SWIG_BUFFER_SIZE]; |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
d55e5bfc | 1715 | } |
554f62e9 | 1716 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
c32bde28 | 1719 | } |
9d7dfdff | 1720 | |
093d3ff1 RD |
1721 | SWIGRUNTIME PyObject * |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
c32bde28 | 1723 | { |
093d3ff1 RD |
1724 | char result[SWIG_BUFFER_SIZE]; |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
554f62e9 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1727 | } else { |
554f62e9 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1729 | } |
d55e5bfc RD |
1730 | } |
1731 | ||
093d3ff1 RD |
1732 | SWIGRUNTIME PyObject * |
1733 | PySwigPacked_str(PySwigPacked *v) | |
d55e5bfc | 1734 | { |
093d3ff1 RD |
1735 | char result[SWIG_BUFFER_SIZE]; |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
554f62e9 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1738 | } else { |
554f62e9 | 1739 | return PyString_FromString(v->ty->name); |
093d3ff1 | 1740 | } |
d55e5bfc RD |
1741 | } |
1742 | ||
093d3ff1 RD |
1743 | SWIGRUNTIME int |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1745 | { |
554f62e9 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
d55e5bfc RD |
1750 | } |
1751 | ||
554f62e9 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1753 | |
093d3ff1 | 1754 | SWIGRUNTIME PyTypeObject* |
7449af73 | 1755 | PySwigPacked_type(void) { |
554f62e9 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
554f62e9 | 1833 | 0, /* tp_del */ |
093d3ff1 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1837 | #endif |
554f62e9 | 1838 | }; |
7449af73 | 1839 | pyswigpacked_type = tmp; |
554f62e9 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1841 | type_init = 1; |
1842 | } | |
7449af73 | 1843 | return &pyswigpacked_type; |
093d3ff1 RD |
1844 | } |
1845 | ||
1846 | SWIGRUNTIME PyObject * | |
554f62e9 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1848 | { |
554f62e9 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
093d3ff1 | 1851 | void *pack = malloc(size); |
7449af73 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
7449af73 | 1860 | } |
7e63a440 | 1861 | } |
554f62e9 | 1862 | return (PyObject *) sobj; |
093d3ff1 | 1863 | } |
d55e5bfc | 1864 | |
554f62e9 | 1865 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1867 | { | |
554f62e9 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
093d3ff1 | 1876 | } |
d55e5bfc | 1877 | |
093d3ff1 | 1878 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1879 | * pointers/data manipulation |
093d3ff1 | 1880 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1881 | |
554f62e9 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
d55e5bfc | 1887 | |
554f62e9 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
d55e5bfc | 1894 | |
554f62e9 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1896 | |
554f62e9 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1899 | { |
554f62e9 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
093d3ff1 | 1922 | } else { |
554f62e9 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
093d3ff1 | 1925 | } |
093d3ff1 | 1926 | } |
554f62e9 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1943 | } |
1944 | } | |
d55e5bfc | 1945 | |
554f62e9 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
d55e5bfc | 1957 | } |
554f62e9 | 1958 | return 0; |
c32bde28 RD |
1959 | } |
1960 | ||
554f62e9 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
093d3ff1 | 1963 | SWIGRUNTIME int |
554f62e9 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
093d3ff1 | 1988 | } else { |
554f62e9 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
093d3ff1 | 1991 | } |
093d3ff1 | 1992 | } |
554f62e9 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
093d3ff1 | 2038 | } |
d55e5bfc RD |
2039 | } |
2040 | ||
554f62e9 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
093d3ff1 | 2043 | SWIGRUNTIME int |
554f62e9 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2047 | } else { |
554f62e9 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
093d3ff1 RD |
2065 | } |
2066 | } | |
d55e5bfc | 2067 | |
554f62e9 | 2068 | /* Convert a packed value value */ |
d55e5bfc | 2069 | |
093d3ff1 | 2070 | SWIGRUNTIME int |
554f62e9 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
093d3ff1 | 2080 | } |
554f62e9 RD |
2081 | return SWIG_OK; |
2082 | } | |
d55e5bfc | 2083 | |
554f62e9 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2087 | |
554f62e9 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
d55e5bfc | 2092 | |
554f62e9 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
093d3ff1 | 2111 | } |
554f62e9 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
093d3ff1 | 2116 | } |
554f62e9 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
093d3ff1 | 2122 | } |
554f62e9 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
093d3ff1 | 2136 | } |
554f62e9 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
093d3ff1 | 2143 | } |
554f62e9 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
093d3ff1 | 2154 | } |
d55e5bfc | 2155 | |
554f62e9 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
093d3ff1 | 2171 | #endif |
554f62e9 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
d55e5bfc | 2176 | |
554f62e9 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2187 | } else { |
554f62e9 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2189 | } |
554f62e9 | 2190 | return SWIG_Py_Void(); |
093d3ff1 | 2191 | } |
554f62e9 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
093d3ff1 | 2195 | |
093d3ff1 | 2196 | SWIGRUNTIME PyObject * |
554f62e9 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2198 | if (!ptr) { |
554f62e9 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
093d3ff1 | 2209 | } |
093d3ff1 | 2210 | } |
554f62e9 | 2211 | return robj; |
093d3ff1 | 2212 | } |
093d3ff1 RD |
2213 | } |
2214 | ||
554f62e9 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
554f62e9 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 | 2220 | } |
d55e5bfc | 2221 | |
093d3ff1 RD |
2222 | /* -----------------------------------------------------------------------------* |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
d55e5bfc | 2225 | |
093d3ff1 RD |
2226 | #ifdef SWIG_LINK_RUNTIME |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
d55e5bfc | 2229 | |
7449af73 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
d55e5bfc | 2237 | #else |
093d3ff1 RD |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
d55e5bfc | 2244 | #endif |
7449af73 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2247 | } |
d55e5bfc | 2248 | |
7449af73 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
554f62e9 | 2259 | return SWIG_ERROR; |
7449af73 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2264 | return SWIG_ERROR; |
7449af73 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
554f62e9 | 2272 | return SWIG_ERROR; |
7449af73 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2275 | return SWIG_ERROR; |
7449af73 | 2276 | Py_DECREF(o); |
554f62e9 | 2277 | return SWIG_OK; |
093d3ff1 | 2278 | } |
7449af73 | 2279 | #endif |
d55e5bfc | 2280 | |
554f62e9 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
7449af73 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
554f62e9 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
7449af73 RD |
2308 | } |
2309 | } | |
d55e5bfc | 2310 | |
554f62e9 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
093d3ff1 | 2316 | } |
5e483524 | 2317 | |
554f62e9 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_char swig_types[0] | |
2463 | #define SWIGTYPE_p_double swig_types[1] | |
7449af73 RD |
2464 | #define SWIGTYPE_p_form_ops_t swig_types[2] |
2465 | #define SWIGTYPE_p_int swig_types[3] | |
2466 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2468 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2469 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2470 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2471 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2472 | #define SWIGTYPE_p_wxBMPHandler swig_types[10] | |
2473 | #define SWIGTYPE_p_wxBitmap swig_types[11] | |
2474 | #define SWIGTYPE_p_wxBoxSizer swig_types[12] | |
2475 | #define SWIGTYPE_p_wxBrush swig_types[13] | |
2476 | #define SWIGTYPE_p_wxBrushList swig_types[14] | |
2477 | #define SWIGTYPE_p_wxBufferedDC swig_types[15] | |
2478 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16] | |
2479 | #define SWIGTYPE_p_wxCURHandler swig_types[17] | |
2480 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[18] | |
2481 | #define SWIGTYPE_p_wxClientDC swig_types[19] | |
2482 | #define SWIGTYPE_p_wxCloseEvent swig_types[20] | |
2483 | #define SWIGTYPE_p_wxColour swig_types[21] | |
2484 | #define SWIGTYPE_p_wxColourDatabase swig_types[22] | |
2485 | #define SWIGTYPE_p_wxCommandEvent swig_types[23] | |
2486 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[24] | |
2487 | #define SWIGTYPE_p_wxControl swig_types[25] | |
2488 | #define SWIGTYPE_p_wxControlWithItems swig_types[26] | |
2489 | #define SWIGTYPE_p_wxCursor swig_types[27] | |
2490 | #define SWIGTYPE_p_wxDC swig_types[28] | |
2491 | #define SWIGTYPE_p_wxDash swig_types[29] | |
2492 | #define SWIGTYPE_p_wxDateEvent swig_types[30] | |
2493 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[32] | |
2495 | #define SWIGTYPE_p_wxDuplexMode swig_types[33] | |
2496 | #define SWIGTYPE_p_wxEffects swig_types[34] | |
2497 | #define SWIGTYPE_p_wxEncodingConverter swig_types[35] | |
2498 | #define SWIGTYPE_p_wxEraseEvent swig_types[36] | |
2499 | #define SWIGTYPE_p_wxEvent swig_types[37] | |
2500 | #define SWIGTYPE_p_wxEvtHandler swig_types[38] | |
2501 | #define SWIGTYPE_p_wxFSFile swig_types[39] | |
2502 | #define SWIGTYPE_p_wxFileSystem swig_types[40] | |
2503 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[41] | |
2504 | #define SWIGTYPE_p_wxFocusEvent swig_types[42] | |
2505 | #define SWIGTYPE_p_wxFont swig_types[43] | |
2506 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
2507 | #define SWIGTYPE_p_wxFontMapper swig_types[45] | |
2508 | #define SWIGTYPE_p_wxGBSizerItem swig_types[46] | |
2509 | #define SWIGTYPE_p_wxGDIObject swig_types[47] | |
2510 | #define SWIGTYPE_p_wxGIFHandler swig_types[48] | |
2511 | #define SWIGTYPE_p_wxGridBagSizer swig_types[49] | |
2512 | #define SWIGTYPE_p_wxGridSizer swig_types[50] | |
2513 | #define SWIGTYPE_p_wxICOHandler swig_types[51] | |
2514 | #define SWIGTYPE_p_wxIcon swig_types[52] | |
2515 | #define SWIGTYPE_p_wxIconBundle swig_types[53] | |
2516 | #define SWIGTYPE_p_wxIconLocation swig_types[54] | |
2517 | #define SWIGTYPE_p_wxIconizeEvent swig_types[55] | |
2518 | #define SWIGTYPE_p_wxIdleEvent swig_types[56] | |
2519 | #define SWIGTYPE_p_wxImage swig_types[57] | |
2520 | #define SWIGTYPE_p_wxImageHandler swig_types[58] | |
2521 | #define SWIGTYPE_p_wxImageList swig_types[59] | |
2522 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60] | |
2523 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[61] | |
2524 | #define SWIGTYPE_p_wxJPEGHandler swig_types[62] | |
2525 | #define SWIGTYPE_p_wxKeyEvent swig_types[63] | |
2526 | #define SWIGTYPE_p_wxLanguageInfo swig_types[64] | |
2527 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[65] | |
2528 | #define SWIGTYPE_p_wxLocale swig_types[66] | |
2529 | #define SWIGTYPE_p_wxMask swig_types[67] | |
2530 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[68] | |
2531 | #define SWIGTYPE_p_wxMemoryDC swig_types[69] | |
2532 | #define SWIGTYPE_p_wxMenu swig_types[70] | |
2533 | #define SWIGTYPE_p_wxMenuBar swig_types[71] | |
2534 | #define SWIGTYPE_p_wxMenuEvent swig_types[72] | |
2535 | #define SWIGTYPE_p_wxMenuItem swig_types[73] | |
2536 | #define SWIGTYPE_p_wxMetaFile swig_types[74] | |
2537 | #define SWIGTYPE_p_wxMetaFileDC swig_types[75] | |
2538 | #define SWIGTYPE_p_wxMirrorDC swig_types[76] | |
2539 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77] | |
2540 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
2541 | #define SWIGTYPE_p_wxMoveEvent swig_types[79] | |
2542 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80] | |
2543 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[81] | |
2544 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82] | |
2545 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[83] | |
2546 | #define SWIGTYPE_p_wxNotifyEvent swig_types[84] | |
2547 | #define SWIGTYPE_p_wxObject swig_types[85] | |
2548 | #define SWIGTYPE_p_wxPCXHandler swig_types[86] | |
2549 | #define SWIGTYPE_p_wxPNGHandler swig_types[87] | |
2550 | #define SWIGTYPE_p_wxPNMHandler swig_types[88] | |
2551 | #define SWIGTYPE_p_wxPaintDC swig_types[89] | |
2552 | #define SWIGTYPE_p_wxPaintEvent swig_types[90] | |
2553 | #define SWIGTYPE_p_wxPalette swig_types[91] | |
2554 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92] | |
2555 | #define SWIGTYPE_p_wxPaperSize swig_types[93] | |
2556 | #define SWIGTYPE_p_wxPen swig_types[94] | |
2557 | #define SWIGTYPE_p_wxPenList swig_types[95] | |
2558 | #define SWIGTYPE_p_wxPoint swig_types[96] | |
2559 | #define SWIGTYPE_p_wxPostScriptDC swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPrintData swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPrinterDC swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPyApp swig_types[100] | |
2563 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[101] | |
2564 | #define SWIGTYPE_p_wxPyEvent swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103] | |
2566 | #define SWIGTYPE_p_wxPyImageHandler swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPySizer swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyValidator swig_types[106] | |
2569 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107] | |
2570 | #define SWIGTYPE_p_wxRect swig_types[108] | |
2571 | #define SWIGTYPE_p_wxRegion swig_types[109] | |
2572 | #define SWIGTYPE_p_wxRegionIterator swig_types[110] | |
2573 | #define SWIGTYPE_p_wxRendererNative swig_types[111] | |
2574 | #define SWIGTYPE_p_wxRendererVersion swig_types[112] | |
2575 | #define SWIGTYPE_p_wxScreenDC swig_types[113] | |
2576 | #define SWIGTYPE_p_wxScrollEvent swig_types[114] | |
2577 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[115] | |
2578 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[116] | |
2579 | #define SWIGTYPE_p_wxShowEvent swig_types[117] | |
2580 | #define SWIGTYPE_p_wxSize swig_types[118] | |
2581 | #define SWIGTYPE_p_wxSizeEvent swig_types[119] | |
2582 | #define SWIGTYPE_p_wxSizer swig_types[120] | |
2583 | #define SWIGTYPE_p_wxSizerItem swig_types[121] | |
2584 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122] | |
2585 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123] | |
2586 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124] | |
2587 | #define SWIGTYPE_p_wxString swig_types[125] | |
2588 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126] | |
2589 | #define SWIGTYPE_p_wxTIFFHandler swig_types[127] | |
2590 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128] | |
2591 | #define SWIGTYPE_p_wxValidator swig_types[129] | |
2592 | #define SWIGTYPE_p_wxWindow swig_types[130] | |
2593 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131] | |
2594 | #define SWIGTYPE_p_wxWindowDC swig_types[132] | |
2595 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133] | |
2596 | #define SWIGTYPE_p_wxXPMHandler swig_types[134] | |
554f62e9 RD |
2597 | static swig_type_info *swig_types[136]; |
2598 | static swig_module_info swig_module = {swig_types, 135, 0, 0, 0, 0}; | |
7449af73 RD |
2599 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2600 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 2601 | |
093d3ff1 | 2602 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 2603 | |
554f62e9 RD |
2604 | #if (PY_VERSION_HEX <= 0x02000000) |
2605 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2606 | # error "This python version requires to use swig with the '-classic' option" | |
2607 | # endif | |
2608 | #endif | |
2609 | #if (PY_VERSION_HEX <= 0x02020000) | |
2610 | # error "This python version requires to use swig with the '-nomodern' option" | |
2611 | #endif | |
2612 | #if (PY_VERSION_HEX <= 0x02020000) | |
2613 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2614 | #endif | |
2615 | #ifndef METH_O | |
2616 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2617 | #endif | |
d55e5bfc | 2618 | |
093d3ff1 RD |
2619 | /*----------------------------------------------- |
2620 | @(target):= _gdi_.so | |
2621 | ------------------------------------------------*/ | |
2622 | #define SWIG_init init_gdi_ | |
d55e5bfc | 2623 | |
093d3ff1 | 2624 | #define SWIG_name "_gdi_" |
d55e5bfc | 2625 | |
554f62e9 | 2626 | #define SWIGVERSION 0x010329 |
d55e5bfc | 2627 | |
d55e5bfc | 2628 | |
554f62e9 RD |
2629 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2630 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d55e5bfc RD |
2631 | |
2632 | ||
554f62e9 RD |
2633 | #include <stdexcept> |
2634 | ||
2635 | ||
2636 | namespace swig { | |
2637 | class PyObject_ptr { | |
2638 | protected: | |
2639 | PyObject *_obj; | |
2640 | ||
2641 | public: | |
2642 | PyObject_ptr() :_obj(0) | |
2643 | { | |
093d3ff1 | 2644 | } |
554f62e9 RD |
2645 | |
2646 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2647 | { | |
2648 | Py_XINCREF(_obj); | |
093d3ff1 | 2649 | } |
554f62e9 RD |
2650 | |
2651 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2652 | { | |
2653 | if (initial_ref) Py_XINCREF(_obj); | |
2654 | } | |
2655 | ||
2656 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2657 | { | |
2658 | Py_XINCREF(item._obj); | |
2659 | Py_XDECREF(_obj); | |
2660 | _obj = item._obj; | |
2661 | return *this; | |
2662 | } | |
2663 | ||
2664 | ~PyObject_ptr() | |
2665 | { | |
2666 | Py_XDECREF(_obj); | |
2667 | } | |
2668 | ||
2669 | operator PyObject *() const | |
2670 | { | |
2671 | return _obj; | |
2672 | } | |
2673 | ||
2674 | PyObject *operator->() const | |
2675 | { | |
2676 | return _obj; | |
2677 | } | |
2678 | }; | |
093d3ff1 | 2679 | } |
d55e5bfc | 2680 | |
d55e5bfc | 2681 | |
554f62e9 RD |
2682 | namespace swig { |
2683 | struct PyObject_var : PyObject_ptr { | |
2684 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2685 | ||
2686 | PyObject_var & operator = (PyObject* obj) | |
2687 | { | |
2688 | Py_XDECREF(_obj); | |
2689 | _obj = obj; | |
2690 | return *this; | |
d55e5bfc | 2691 | } |
554f62e9 | 2692 | }; |
d55e5bfc RD |
2693 | } |
2694 | ||
2695 | ||
554f62e9 RD |
2696 | #include "wx/wxPython/wxPython.h" |
2697 | #include "wx/wxPython/pyclasses.h" | |
2698 | ||
2699 | ||
2700 | static const wxString wxPyEmptyString(wxEmptyString); | |
2701 | ||
093d3ff1 | 2702 | SWIGINTERN int |
554f62e9 | 2703 | SWIG_AsVal_long (PyObject* obj, long* val) |
d55e5bfc | 2704 | { |
554f62e9 RD |
2705 | if (PyNumber_Check(obj)) { |
2706 | if (val) *val = PyInt_AsLong(obj); | |
2707 | return SWIG_OK; | |
2708 | } | |
2709 | return SWIG_TypeError; | |
093d3ff1 | 2710 | } |
093d3ff1 RD |
2711 | |
2712 | ||
2713 | SWIGINTERN int | |
554f62e9 | 2714 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2715 | { |
2716 | if (obj == Py_True) { | |
2717 | if (val) *val = true; | |
554f62e9 RD |
2718 | return SWIG_OK; |
2719 | } else if (obj == Py_False) { | |
093d3ff1 | 2720 | if (val) *val = false; |
554f62e9 | 2721 | return SWIG_OK; |
093d3ff1 | 2722 | } else { |
554f62e9 RD |
2723 | long v = 0; |
2724 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2725 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2726 | return res; | |
093d3ff1 | 2727 | } |
093d3ff1 RD |
2728 | } |
2729 | ||
2730 | ||
554f62e9 RD |
2731 | #include <limits.h> |
2732 | #ifndef LLONG_MIN | |
2733 | # define LLONG_MIN LONG_LONG_MIN | |
2734 | #endif | |
2735 | #ifndef LLONG_MAX | |
2736 | # define LLONG_MAX LONG_LONG_MAX | |
2737 | #endif | |
2738 | #ifndef ULLONG_MAX | |
2739 | # define ULLONG_MAX ULONG_LONG_MAX | |
2740 | #endif | |
d55e5bfc | 2741 | |
c32bde28 | 2742 | |
093d3ff1 | 2743 | SWIGINTERN int |
554f62e9 | 2744 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2745 | { |
2746 | long v = 0; | |
2747 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
554f62e9 | 2748 | return SWIG_TypeError; |
093d3ff1 RD |
2749 | } |
2750 | else if (val) | |
2751 | *val = (unsigned long)v; | |
554f62e9 | 2752 | return SWIG_OK; |
093d3ff1 | 2753 | } |
c32bde28 | 2754 | |
d55e5bfc | 2755 | |
093d3ff1 | 2756 | SWIGINTERN int |
554f62e9 RD |
2757 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2758 | { | |
093d3ff1 | 2759 | unsigned long v; |
554f62e9 RD |
2760 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2761 | if (SWIG_IsOK(res)) { | |
2762 | if ((v > UCHAR_MAX)) { | |
2763 | return SWIG_OverflowError; | |
093d3ff1 | 2764 | } else { |
554f62e9 | 2765 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2766 | } |
554f62e9 RD |
2767 | } |
2768 | return res; | |
093d3ff1 | 2769 | } |
d55e5bfc RD |
2770 | |
2771 | ||
554f62e9 | 2772 | #define SWIG_From_long PyInt_FromLong |
d55e5bfc RD |
2773 | |
2774 | ||
554f62e9 RD |
2775 | SWIGINTERNINLINE PyObject* |
2776 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2777 | { |
554f62e9 RD |
2778 | return (value > LONG_MAX) ? |
2779 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2780 | } |
d55e5bfc RD |
2781 | |
2782 | ||
554f62e9 RD |
2783 | SWIGINTERNINLINE PyObject * |
2784 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2785 | { | |
2786 | return SWIG_From_unsigned_SS_long (value); | |
2787 | } | |
d55e5bfc | 2788 | |
e9d6f3a4 RD |
2789 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2790 | wxColour temp, *obj = &temp; | |
2791 | if ( other == Py_None ) return false; | |
2792 | if ( ! wxColour_helper(other, &obj) ) { | |
2793 | PyErr_Clear(); | |
2794 | return false; | |
2795 | } | |
2796 | return self->operator==(*obj); | |
2797 | } | |
2798 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2799 | wxColour temp, *obj = &temp; | |
2800 | if ( other == Py_None ) return true; | |
2801 | if ( ! wxColour_helper(other, &obj)) { | |
2802 | PyErr_Clear(); | |
2803 | return true; | |
2804 | } | |
2805 | return self->operator!=(*obj); | |
2806 | } | |
554f62e9 | 2807 | SWIGINTERN PyObject *wxColour_Get(wxColour *self){ |
093d3ff1 RD |
2808 | PyObject* rv = PyTuple_New(3); |
2809 | int red = -1; | |
2810 | int green = -1; | |
2811 | int blue = -1; | |
2812 | if (self->Ok()) { | |
2813 | red = self->Red(); | |
2814 | green = self->Green(); | |
2815 | blue = self->Blue(); | |
2816 | } | |
2817 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2818 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2819 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
2820 | return rv; | |
2821 | } | |
554f62e9 | 2822 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2823 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2824 | } | |
2825 | ||
554f62e9 RD |
2826 | SWIGINTERN int |
2827 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2828 | { |
554f62e9 RD |
2829 | long v; |
2830 | int res = SWIG_AsVal_long (obj, &v); | |
2831 | if (SWIG_IsOK(res)) { | |
2832 | if ((v < INT_MIN || v > INT_MAX)) { | |
2833 | return SWIG_OverflowError; | |
2834 | } else { | |
2835 | if (val) *val = static_cast< int >(v); | |
2836 | } | |
2837 | } | |
2838 | return res; | |
d55e5bfc RD |
2839 | } |
2840 | ||
2841 | ||
554f62e9 RD |
2842 | SWIGINTERNINLINE PyObject * |
2843 | SWIG_From_int (int value) | |
2844 | { | |
2845 | return SWIG_From_long (value); | |
2846 | } | |
d55e5bfc | 2847 | |
554f62e9 | 2848 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2849 | wxDash* dashes; |
2850 | int count = self->GetDashes(&dashes); | |
5a446332 | 2851 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2852 | PyObject* retval = PyList_New(0); |
2853 | for (int x=0; x<count; x++) { | |
2854 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2855 | PyList_Append(retval, pyint); | |
2856 | Py_DECREF(pyint); | |
2857 | } | |
2858 | wxPyEndBlockThreads(blocked); | |
2859 | return retval; | |
2860 | } | |
554f62e9 | 2861 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2862 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2863 | int size = PyList_Size(pyDashes); |
2864 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 2865 | |
093d3ff1 RD |
2866 | // black magic warning! The array of wxDashes needs to exist as |
2867 | // long as the pen does because wxPen does not copy the array. So | |
2868 | // stick a copy in a Python string object and attach it to _self, | |
2869 | // and then call SetDashes with a pointer to that array. Then | |
2870 | // when the Python pen object is destroyed the array will be | |
2871 | // cleaned up too. | |
2872 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2873 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2874 | ||
2875 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2876 | delete [] dashes; | |
2877 | Py_DECREF(strDashes); | |
2878 | wxPyEndBlockThreads(blocked); | |
2879 | } | |
554f62e9 RD |
2880 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2881 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2882 | |
093d3ff1 | 2883 | #include <wx/image.h> |
d55e5bfc | 2884 | |
093d3ff1 RD |
2885 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2886 | char** cArray = NULL; | |
2887 | int count; | |
d55e5bfc | 2888 | |
093d3ff1 RD |
2889 | if (!PyList_Check(listOfStrings)) { |
2890 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2891 | return NULL; | |
2892 | } | |
2893 | count = PyList_Size(listOfStrings); | |
2894 | cArray = new char*[count]; | |
d55e5bfc | 2895 | |
093d3ff1 RD |
2896 | for(int x=0; x<count; x++) { |
2897 | // TODO: Need some validation and error checking here | |
2898 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2899 | } | |
2900 | return cArray; | |
d55e5bfc | 2901 | } |
d55e5bfc RD |
2902 | |
2903 | ||
554f62e9 | 2904 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
093d3ff1 RD |
2905 | char** cArray = NULL; |
2906 | wxBitmap* bmp; | |
d55e5bfc | 2907 | |
093d3ff1 RD |
2908 | cArray = ConvertListOfStrings(listOfStrings); |
2909 | if (! cArray) | |
2910 | return NULL; | |
2911 | bmp = new wxBitmap(cArray); | |
2912 | delete [] cArray; | |
2913 | return bmp; | |
2914 | } | |
554f62e9 | 2915 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
093d3ff1 RD |
2916 | char* buf; |
2917 | int length; | |
2918 | PyString_AsStringAndSize(bits, &buf, &length); | |
2919 | return new wxBitmap(buf, width, height, depth); | |
2920 | } | |
554f62e9 RD |
2921 | SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2922 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ | |
093d3ff1 RD |
2923 | wxSize size(self->GetWidth(), self->GetHeight()); |
2924 | return size; | |
2925 | } | |
554f62e9 | 2926 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2927 | wxMask *mask = new wxMask(*self, colour); |
2928 | self->SetMask(mask); | |
2929 | } | |
554f62e9 | 2930 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2931 | self->SetWidth(size.x); |
2932 | self->SetHeight(size.y); | |
2933 | } | |
554f62e9 RD |
2934 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2935 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
2936 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
093d3ff1 RD |
2937 | if ( !colour.Ok() ) |
2938 | return new wxMask(bitmap, *wxBLACK); | |
2939 | else | |
2940 | return new wxMask(bitmap, colour); | |
2941 | } | |
d55e5bfc | 2942 | |
093d3ff1 | 2943 | #include <wx/iconbndl.h> |
d55e5bfc | 2944 | |
554f62e9 | 2945 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
2946 | wxIcon* icon = new wxIcon(); |
2947 | icon->CopyFromBitmap(bmp); | |
2948 | return icon; | |
2949 | } | |
554f62e9 | 2950 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
2951 | char** cArray = NULL; |
2952 | wxIcon* icon; | |
d55e5bfc | 2953 | |
093d3ff1 RD |
2954 | cArray = ConvertListOfStrings(listOfStrings); |
2955 | if (! cArray) | |
2956 | return NULL; | |
2957 | icon = new wxIcon(cArray); | |
2958 | delete [] cArray; | |
2959 | return icon; | |
2960 | } | |
554f62e9 RD |
2961 | SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2962 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc | 2963 | |
093d3ff1 | 2964 | return new wxIconLocation(*filename, num); |
d55e5bfc RD |
2965 | |
2966 | ||
d55e5bfc | 2967 | |
093d3ff1 | 2968 | } |
554f62e9 | 2969 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc | 2970 | |
093d3ff1 | 2971 | self->SetIndex(num); |
d55e5bfc RD |
2972 | |
2973 | ||
d55e5bfc | 2974 | |
093d3ff1 | 2975 | } |
554f62e9 | 2976 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
d55e5bfc | 2977 | |
093d3ff1 | 2978 | return self->GetIndex(); |
d55e5bfc RD |
2979 | |
2980 | ||
d55e5bfc | 2981 | |
093d3ff1 | 2982 | } |
554f62e9 | 2983 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 2984 | #ifdef __WXGTK__ |
fef4c27a RD |
2985 | wxImage img(cursorName, type); |
2986 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
2987 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
2988 | return new wxCursor(img); | |
093d3ff1 | 2989 | #else |
fef4c27a | 2990 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
2991 | #endif |
2992 | } | |
554f62e9 | 2993 | SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d55e5bfc | 2994 | |
093d3ff1 | 2995 | |
554f62e9 | 2996 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
2997 | (*self) ++; |
2998 | } | |
554f62e9 | 2999 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3000 | return self->operator bool(); |
3001 | } | |
3002 | ||
3003 | #include <wx/fontutil.h> | |
3004 | #include <wx/fontmap.h> | |
3005 | #include <wx/fontenum.h> | |
3006 | ||
554f62e9 | 3007 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3008 | return self->ToString(); |
3009 | } | |
3010 | ||
3011 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
3012 | { wxPyRaiseNotImplemented(); return NULL; } | |
3013 | ||
3014 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
3015 | { wxPyRaiseNotImplemented(); return false; } | |
3016 | ||
554f62e9 RD |
3017 | |
3018 | SWIGINTERNINLINE PyObject * | |
3019 | SWIG_From_size_t (size_t value) | |
3020 | { | |
3021 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3022 | } | |
3023 | ||
3024 | ||
3025 | SWIGINTERNINLINE int | |
3026 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3027 | { | |
3028 | unsigned long v; | |
3029 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3030 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3031 | return res; | |
3032 | } | |
3033 | ||
3034 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3035 | wxFontEncoding alt_enc; |
3036 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3037 | return PyInt_FromLong(alt_enc); | |
3038 | else { | |
3039 | Py_INCREF(Py_None); | |
3040 | return Py_None; | |
3041 | } | |
3042 | } | |
554f62e9 | 3043 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3044 | wxNativeFontInfo nfi; |
3045 | nfi.FromString(info); | |
3046 | return new wxFont(nfi); | |
3047 | } | |
554f62e9 | 3048 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3049 | return wxFont::New(pointSize, family, flags, face, encoding); |
3050 | } | |
554f62e9 | 3051 | SWIGINTERN 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 |
3052 | return wxFontBase::New(pixelSize, family, |
3053 | style, weight, underlined, | |
3054 | face, encoding); | |
3055 | } | |
554f62e9 | 3056 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3057 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3058 | } | |
554f62e9 RD |
3059 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3060 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3061 | |
3062 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3063 | public: | |
3064 | wxPyFontEnumerator() {} | |
3065 | ~wxPyFontEnumerator() {} | |
3066 | ||
3067 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3068 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3069 | ||
3070 | PYPRIVATE; | |
3071 | }; | |
3072 | ||
3073 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3074 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3075 | ||
3076 | ||
554f62e9 | 3077 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ |
e9d6f3a4 | 3078 | PyObject* ret; |
093d3ff1 | 3079 | wxArrayString* arr = self->GetEncodings(); |
e9d6f3a4 | 3080 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 | 3081 | if (arr) |
e9d6f3a4 | 3082 | ret = wxArrayString2PyList_helper(*arr); |
093d3ff1 | 3083 | else |
e9d6f3a4 RD |
3084 | ret = PyList_New(0); |
3085 | wxPyEndBlockThreads(blocked); | |
3086 | return ret; | |
093d3ff1 | 3087 | } |
554f62e9 | 3088 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ |
e9d6f3a4 | 3089 | PyObject* ret; |
093d3ff1 | 3090 | wxArrayString* arr = self->GetFacenames(); |
e9d6f3a4 | 3091 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 | 3092 | if (arr) |
e9d6f3a4 | 3093 | ret = wxArrayString2PyList_helper(*arr); |
093d3ff1 | 3094 | else |
e9d6f3a4 RD |
3095 | ret = PyList_New(0); |
3096 | wxPyEndBlockThreads(blocked); | |
3097 | return ret; | |
093d3ff1 RD |
3098 | } |
3099 | ||
3100 | #include <locale.h> | |
3101 | ||
554f62e9 | 3102 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3103 | wxLocale* loc; |
3104 | if (language == -1) | |
3105 | loc = new wxLocale(); | |
3106 | else | |
3107 | loc = new wxLocale(language, flags); | |
3108 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3109 | // for the floating point conversions and such to work right. | |
3110 | #if PY_VERSION_HEX < 0x02040000 | |
3111 | setlocale(LC_NUMERIC, "C"); | |
3112 | #endif | |
3113 | return loc; | |
3114 | } | |
554f62e9 | 3115 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
093d3ff1 RD |
3116 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3117 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3118 | // for the floating point conversions and such to work right. | |
3119 | #if PY_VERSION_HEX < 0x02040000 | |
3120 | setlocale(LC_NUMERIC, "C"); | |
3121 | #endif | |
3122 | return rc; | |
3123 | } | |
554f62e9 | 3124 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3125 | bool rc = self->Init(language, flags); |
3126 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3127 | // for the floating point conversions and such to work right. | |
3128 | #if PY_VERSION_HEX < 0x02040000 | |
3129 | setlocale(LC_NUMERIC, "C"); | |
3130 | #endif | |
3131 | return rc; | |
3132 | } | |
3133 | ||
3134 | #include "wx/wxPython/pydrawxxx.h" | |
3135 | ||
554f62e9 | 3136 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3137 | wxColour col; |
3138 | self->GetPixel(x, y, &col); | |
3139 | return col; | |
3140 | } | |
554f62e9 | 3141 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3142 | wxColour col; |
3143 | self->GetPixel(pt, &col); | |
3144 | return col; | |
3145 | } | |
3146 | ||
3147 | SWIGINTERN int | |
554f62e9 | 3148 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3149 | { |
3150 | if (PyNumber_Check(obj)) { | |
3151 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 3152 | return SWIG_OK; |
093d3ff1 | 3153 | } |
554f62e9 | 3154 | return SWIG_TypeError; |
093d3ff1 RD |
3155 | } |
3156 | ||
554f62e9 | 3157 | SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ |
093d3ff1 RD |
3158 | wxRect rv; |
3159 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3160 | return rv; | |
3161 | } | |
554f62e9 | 3162 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3163 | wxRect rect; |
3164 | self->GetClippingBox(rect); | |
3165 | return rect; | |
3166 | } | |
554f62e9 | 3167 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3168 | wxArrayInt widths; |
3169 | self->GetPartialTextExtents(text, widths); | |
3170 | return widths; | |
3171 | } | |
3172 | ||
554f62e9 | 3173 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3174 | |
554f62e9 | 3175 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3176 | self->SetLogicalOrigin(point.x, point.y); |
3177 | } | |
554f62e9 | 3178 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3179 | self->SetDeviceOrigin(point.x, point.y); |
3180 | } | |
554f62e9 | 3181 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3182 | self->CalcBoundingBox(point.x, point.y); |
3183 | } | |
554f62e9 | 3184 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3185 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3186 | } | |
554f62e9 | 3187 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3188 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3189 | } | |
554f62e9 | 3190 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3191 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3192 | } | |
554f62e9 | 3193 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3194 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3195 | } | |
554f62e9 | 3196 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3197 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3198 | } | |
554f62e9 | 3199 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3200 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3201 | } | |
3202 | ||
3203 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3204 | *x1 = dc->MinX(); | |
3205 | *y1 = dc->MinY(); | |
3206 | *x2 = dc->MaxX(); | |
3207 | *y2 = dc->MaxY(); | |
3208 | } | |
3209 | ||
3210 | ||
3211 | #include <wx/dcbuffer.h> | |
3212 | ||
3213 | ||
3214 | #include <wx/dcps.h> | |
3215 | ||
3216 | ||
3217 | #include <wx/metafile.h> | |
3218 | ||
3219 | ||
3220 | ||
554f62e9 | 3221 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3222 | self->AddColour(name, wxColour(red, green, blue)); |
3223 | } | |
3224 | ||
3225 | #include <wx/effects.h> | |
3226 | ||
be9b1dca RD |
3227 | |
3228 | #include "wx/renderer.h" | |
3229 | ||
3230 | ||
7449af73 | 3231 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3232 | SWIG_From_bool (bool value) |
be9b1dca | 3233 | { |
554f62e9 | 3234 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3235 | } |
3236 | ||
093d3ff1 RD |
3237 | #ifdef __cplusplus |
3238 | extern "C" { | |
3239 | #endif | |
554f62e9 RD |
3240 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3241 | PyObject *resultobj = 0; | |
3242 | wxGDIObject *result = 0 ; | |
3243 | ||
3244 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3245 | { | |
3246 | if (!wxPyCheckForApp()) SWIG_fail; | |
3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3248 | result = (wxGDIObject *)new wxGDIObject(); | |
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
3252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3253 | return resultobj; | |
3254 | fail: | |
3255 | return NULL; | |
d55e5bfc RD |
3256 | } |
3257 | ||
3258 | ||
554f62e9 RD |
3259 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3260 | PyObject *resultobj = 0; | |
3261 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3262 | void *argp1 = 0 ; | |
3263 | int res1 = 0 ; | |
3264 | PyObject *swig_obj[1] ; | |
3265 | ||
3266 | if (!args) SWIG_fail; | |
3267 | swig_obj[0] = args; | |
3268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3269 | if (!SWIG_IsOK(res1)) { | |
3270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3271 | } | |
3272 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3273 | { | |
3274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3275 | delete arg1; | |
d55e5bfc | 3276 | |
554f62e9 RD |
3277 | wxPyEndAllowThreads(__tstate); |
3278 | if (PyErr_Occurred()) SWIG_fail; | |
3279 | } | |
3280 | resultobj = SWIG_Py_Void(); | |
3281 | return resultobj; | |
3282 | fail: | |
3283 | return NULL; | |
d55e5bfc RD |
3284 | } |
3285 | ||
3286 | ||
554f62e9 RD |
3287 | SWIGINTERN PyObject *_wrap_GDIObject_GetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3288 | PyObject *resultobj = 0; | |
3289 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3290 | bool result; | |
3291 | void *argp1 = 0 ; | |
3292 | int res1 = 0 ; | |
3293 | PyObject *swig_obj[1] ; | |
3294 | ||
3295 | if (!args) SWIG_fail; | |
3296 | swig_obj[0] = args; | |
3297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3298 | if (!SWIG_IsOK(res1)) { | |
3299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_GetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3300 | } | |
3301 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3302 | { | |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | result = (bool)(arg1)->GetVisible(); | |
3305 | wxPyEndAllowThreads(__tstate); | |
3306 | if (PyErr_Occurred()) SWIG_fail; | |
3307 | } | |
3308 | { | |
3309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3310 | } | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
3317 | SWIGINTERN PyObject *_wrap_GDIObject_SetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3318 | PyObject *resultobj = 0; | |
3319 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3320 | bool arg2 ; | |
3321 | void *argp1 = 0 ; | |
3322 | int res1 = 0 ; | |
3323 | bool val2 ; | |
3324 | int ecode2 = 0 ; | |
3325 | PyObject * obj0 = 0 ; | |
3326 | PyObject * obj1 = 0 ; | |
3327 | char * kwnames[] = { | |
3328 | (char *) "self",(char *) "visible", NULL | |
3329 | }; | |
3330 | ||
3331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
3332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3333 | if (!SWIG_IsOK(res1)) { | |
3334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_SetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3335 | } | |
3336 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3337 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
3338 | if (!SWIG_IsOK(ecode2)) { | |
3339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDIObject_SetVisible" "', expected argument " "2"" of type '" "bool""'"); | |
3340 | } | |
3341 | arg2 = static_cast< bool >(val2); | |
3342 | { | |
3343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3344 | (arg1)->SetVisible(arg2); | |
3345 | wxPyEndAllowThreads(__tstate); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | } | |
3348 | resultobj = SWIG_Py_Void(); | |
3349 | return resultobj; | |
3350 | fail: | |
3351 | return NULL; | |
d55e5bfc RD |
3352 | } |
3353 | ||
3354 | ||
554f62e9 RD |
3355 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3356 | PyObject *resultobj = 0; | |
3357 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3358 | bool result; | |
3359 | void *argp1 = 0 ; | |
3360 | int res1 = 0 ; | |
3361 | PyObject *swig_obj[1] ; | |
3362 | ||
3363 | if (!args) SWIG_fail; | |
3364 | swig_obj[0] = args; | |
3365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3366 | if (!SWIG_IsOK(res1)) { | |
3367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3368 | } | |
3369 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3370 | { | |
3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3372 | result = (bool)(arg1)->IsNull(); | |
3373 | wxPyEndAllowThreads(__tstate); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
3375 | } | |
3376 | { | |
3377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3378 | } | |
3379 | return resultobj; | |
3380 | fail: | |
3381 | return NULL; | |
3382 | } | |
3383 | ||
3384 | ||
3385 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3386 | PyObject *obj; | |
3387 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3388 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3389 | return SWIG_Py_Void(); | |
3390 | } | |
3391 | ||
3392 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3393 | return SWIG_Python_InitShadowInstance(args); | |
3394 | } | |
3395 | ||
3396 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3397 | PyObject *resultobj = 0; | |
3398 | byte arg1 = (byte) 0 ; | |
3399 | byte arg2 = (byte) 0 ; | |
3400 | byte arg3 = (byte) 0 ; | |
3401 | wxColour *result = 0 ; | |
3402 | unsigned char val1 ; | |
3403 | int ecode1 = 0 ; | |
3404 | unsigned char val2 ; | |
3405 | int ecode2 = 0 ; | |
3406 | unsigned char val3 ; | |
3407 | int ecode3 = 0 ; | |
3408 | PyObject * obj0 = 0 ; | |
3409 | PyObject * obj1 = 0 ; | |
3410 | PyObject * obj2 = 0 ; | |
3411 | char * kwnames[] = { | |
3412 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
3413 | }; | |
3414 | ||
3415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3416 | if (obj0) { | |
3417 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
3418 | if (!SWIG_IsOK(ecode1)) { | |
3419 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
3420 | } | |
3421 | arg1 = static_cast< byte >(val1); | |
3422 | } | |
3423 | if (obj1) { | |
3424 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3425 | if (!SWIG_IsOK(ecode2)) { | |
3426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
3427 | } | |
3428 | arg2 = static_cast< byte >(val2); | |
3429 | } | |
3430 | if (obj2) { | |
3431 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3432 | if (!SWIG_IsOK(ecode3)) { | |
3433 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
3434 | } | |
3435 | arg3 = static_cast< byte >(val3); | |
3436 | } | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) SWIG_fail; | |
3442 | } | |
3443 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
3444 | return resultobj; | |
3445 | fail: | |
3446 | return NULL; | |
d55e5bfc RD |
3447 | } |
3448 | ||
3449 | ||
554f62e9 RD |
3450 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3451 | PyObject *resultobj = 0; | |
3452 | wxString *arg1 = 0 ; | |
3453 | wxColour *result = 0 ; | |
3454 | bool temp1 = false ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | char * kwnames[] = { | |
3457 | (char *) "colorName", NULL | |
3458 | }; | |
3459 | ||
3460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
3461 | { | |
3462 | arg1 = wxString_in_helper(obj0); | |
3463 | if (arg1 == NULL) SWIG_fail; | |
3464 | temp1 = true; | |
3465 | } | |
3466 | { | |
3467 | if (!wxPyCheckForApp()) SWIG_fail; | |
3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3469 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3474 | { | |
3475 | if (temp1) | |
3476 | delete arg1; | |
3477 | } | |
3478 | return resultobj; | |
3479 | fail: | |
3480 | { | |
3481 | if (temp1) | |
3482 | delete arg1; | |
3483 | } | |
3484 | return NULL; | |
b519803b RD |
3485 | } |
3486 | ||
3487 | ||
554f62e9 RD |
3488 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3489 | PyObject *resultobj = 0; | |
3490 | unsigned long arg1 ; | |
3491 | wxColour *result = 0 ; | |
3492 | unsigned long val1 ; | |
3493 | int ecode1 = 0 ; | |
3494 | PyObject * obj0 = 0 ; | |
3495 | char * kwnames[] = { | |
3496 | (char *) "colRGB", NULL | |
3497 | }; | |
3498 | ||
3499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
3500 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
3501 | if (!SWIG_IsOK(ecode1)) { | |
3502 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
3503 | } | |
3504 | arg1 = static_cast< unsigned long >(val1); | |
3505 | { | |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | result = (wxColour *)new wxColour(arg1); | |
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3512 | return resultobj; | |
3513 | fail: | |
3514 | return NULL; | |
d55e5bfc RD |
3515 | } |
3516 | ||
3517 | ||
554f62e9 RD |
3518 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3519 | PyObject *resultobj = 0; | |
3520 | wxColour *arg1 = (wxColour *) 0 ; | |
3521 | void *argp1 = 0 ; | |
3522 | int res1 = 0 ; | |
3523 | PyObject *swig_obj[1] ; | |
3524 | ||
3525 | if (!args) SWIG_fail; | |
3526 | swig_obj[0] = args; | |
3527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
3528 | if (!SWIG_IsOK(res1)) { | |
3529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3530 | } | |
3531 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3532 | { | |
3533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3534 | delete arg1; | |
d55e5bfc | 3535 | |
554f62e9 RD |
3536 | wxPyEndAllowThreads(__tstate); |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
3538 | } | |
3539 | resultobj = SWIG_Py_Void(); | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | return NULL; | |
d55e5bfc RD |
3543 | } |
3544 | ||
3545 | ||
554f62e9 RD |
3546 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3547 | PyObject *resultobj = 0; | |
3548 | wxColour *arg1 = (wxColour *) 0 ; | |
3549 | byte result; | |
3550 | void *argp1 = 0 ; | |
3551 | int res1 = 0 ; | |
3552 | PyObject *swig_obj[1] ; | |
3553 | ||
3554 | if (!args) SWIG_fail; | |
3555 | swig_obj[0] = args; | |
3556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3557 | if (!SWIG_IsOK(res1)) { | |
3558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3559 | } | |
3560 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3561 | { | |
3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3563 | result = (byte)(arg1)->Red(); | |
3564 | wxPyEndAllowThreads(__tstate); | |
3565 | if (PyErr_Occurred()) SWIG_fail; | |
3566 | } | |
3567 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3568 | return resultobj; | |
3569 | fail: | |
3570 | return NULL; | |
d55e5bfc RD |
3571 | } |
3572 | ||
3573 | ||
554f62e9 RD |
3574 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3575 | PyObject *resultobj = 0; | |
3576 | wxColour *arg1 = (wxColour *) 0 ; | |
3577 | byte result; | |
3578 | void *argp1 = 0 ; | |
3579 | int res1 = 0 ; | |
3580 | PyObject *swig_obj[1] ; | |
3581 | ||
3582 | if (!args) SWIG_fail; | |
3583 | swig_obj[0] = args; | |
3584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3585 | if (!SWIG_IsOK(res1)) { | |
3586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3587 | } | |
3588 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3589 | { | |
3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3591 | result = (byte)(arg1)->Green(); | |
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3596 | return resultobj; | |
3597 | fail: | |
3598 | return NULL; | |
d55e5bfc RD |
3599 | } |
3600 | ||
3601 | ||
554f62e9 RD |
3602 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3603 | PyObject *resultobj = 0; | |
3604 | wxColour *arg1 = (wxColour *) 0 ; | |
3605 | byte result; | |
3606 | void *argp1 = 0 ; | |
3607 | int res1 = 0 ; | |
3608 | PyObject *swig_obj[1] ; | |
3609 | ||
3610 | if (!args) SWIG_fail; | |
3611 | swig_obj[0] = args; | |
3612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3613 | if (!SWIG_IsOK(res1)) { | |
3614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3615 | } | |
3616 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | result = (byte)(arg1)->Blue(); | |
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3624 | return resultobj; | |
3625 | fail: | |
3626 | return NULL; | |
d55e5bfc RD |
3627 | } |
3628 | ||
3629 | ||
554f62e9 RD |
3630 | SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3631 | PyObject *resultobj = 0; | |
3632 | wxColour *arg1 = (wxColour *) 0 ; | |
3633 | bool result; | |
3634 | void *argp1 = 0 ; | |
3635 | int res1 = 0 ; | |
3636 | PyObject *swig_obj[1] ; | |
3637 | ||
3638 | if (!args) SWIG_fail; | |
3639 | swig_obj[0] = args; | |
3640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3641 | if (!SWIG_IsOK(res1)) { | |
3642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3643 | } | |
3644 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3645 | { | |
3646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3647 | result = (bool)(arg1)->Ok(); | |
3648 | wxPyEndAllowThreads(__tstate); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3653 | } | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3661 | PyObject *resultobj = 0; | |
3662 | wxColour *arg1 = (wxColour *) 0 ; | |
3663 | byte arg2 ; | |
3664 | byte arg3 ; | |
3665 | byte arg4 ; | |
3666 | void *argp1 = 0 ; | |
3667 | int res1 = 0 ; | |
3668 | unsigned char val2 ; | |
3669 | int ecode2 = 0 ; | |
3670 | unsigned char val3 ; | |
3671 | int ecode3 = 0 ; | |
3672 | unsigned char val4 ; | |
3673 | int ecode4 = 0 ; | |
3674 | PyObject * obj0 = 0 ; | |
3675 | PyObject * obj1 = 0 ; | |
3676 | PyObject * obj2 = 0 ; | |
3677 | PyObject * obj3 = 0 ; | |
3678 | char * kwnames[] = { | |
3679 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3680 | }; | |
3681 | ||
3682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3684 | if (!SWIG_IsOK(res1)) { | |
3685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3686 | } | |
3687 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3688 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3689 | if (!SWIG_IsOK(ecode2)) { | |
3690 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
3691 | } | |
3692 | arg2 = static_cast< byte >(val2); | |
3693 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3694 | if (!SWIG_IsOK(ecode3)) { | |
3695 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
3696 | } | |
3697 | arg3 = static_cast< byte >(val3); | |
3698 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
3699 | if (!SWIG_IsOK(ecode4)) { | |
3700 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
3701 | } | |
3702 | arg4 = static_cast< byte >(val4); | |
3703 | { | |
3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3705 | (arg1)->Set(arg2,arg3,arg4); | |
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
3709 | resultobj = SWIG_Py_Void(); | |
3710 | return resultobj; | |
3711 | fail: | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
3716 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3717 | PyObject *resultobj = 0; | |
3718 | wxColour *arg1 = (wxColour *) 0 ; | |
3719 | unsigned long arg2 ; | |
3720 | void *argp1 = 0 ; | |
3721 | int res1 = 0 ; | |
3722 | unsigned long val2 ; | |
3723 | int ecode2 = 0 ; | |
3724 | PyObject * obj0 = 0 ; | |
3725 | PyObject * obj1 = 0 ; | |
3726 | char * kwnames[] = { | |
3727 | (char *) "self",(char *) "colRGB", NULL | |
3728 | }; | |
3729 | ||
3730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
3731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3732 | if (!SWIG_IsOK(res1)) { | |
3733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3734 | } | |
3735 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3736 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
3737 | if (!SWIG_IsOK(ecode2)) { | |
3738 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
3739 | } | |
3740 | arg2 = static_cast< unsigned long >(val2); | |
3741 | { | |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | (arg1)->Set(arg2); | |
3744 | wxPyEndAllowThreads(__tstate); | |
3745 | if (PyErr_Occurred()) SWIG_fail; | |
3746 | } | |
3747 | resultobj = SWIG_Py_Void(); | |
3748 | return resultobj; | |
3749 | fail: | |
3750 | return NULL; | |
3751 | } | |
3752 | ||
3753 | ||
3754 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3755 | PyObject *resultobj = 0; | |
3756 | wxColour *arg1 = (wxColour *) 0 ; | |
3757 | wxString *arg2 = 0 ; | |
3758 | void *argp1 = 0 ; | |
3759 | int res1 = 0 ; | |
3760 | bool temp2 = false ; | |
3761 | PyObject * obj0 = 0 ; | |
3762 | PyObject * obj1 = 0 ; | |
3763 | char * kwnames[] = { | |
3764 | (char *) "self",(char *) "colourName", NULL | |
3765 | }; | |
3766 | ||
3767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
3768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3769 | if (!SWIG_IsOK(res1)) { | |
3770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3771 | } | |
3772 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3773 | { | |
3774 | arg2 = wxString_in_helper(obj1); | |
3775 | if (arg2 == NULL) SWIG_fail; | |
3776 | temp2 = true; | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | (arg1)->InitFromName((wxString const &)*arg2); | |
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | resultobj = SWIG_Py_Void(); | |
3785 | { | |
3786 | if (temp2) | |
3787 | delete arg2; | |
3788 | } | |
3789 | return resultobj; | |
3790 | fail: | |
3791 | { | |
3792 | if (temp2) | |
3793 | delete arg2; | |
3794 | } | |
3795 | return NULL; | |
d55e5bfc RD |
3796 | } |
3797 | ||
3798 | ||
554f62e9 RD |
3799 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3800 | PyObject *resultobj = 0; | |
3801 | wxColour *arg1 = (wxColour *) 0 ; | |
3802 | long result; | |
3803 | void *argp1 = 0 ; | |
3804 | int res1 = 0 ; | |
3805 | PyObject *swig_obj[1] ; | |
3806 | ||
3807 | if (!args) SWIG_fail; | |
3808 | swig_obj[0] = args; | |
3809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3810 | if (!SWIG_IsOK(res1)) { | |
3811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3812 | } | |
3813 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3814 | { | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3821 | return resultobj; | |
3822 | fail: | |
3823 | return NULL; | |
3824 | } | |
3825 | ||
3826 | ||
3827 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3828 | PyObject *resultobj = 0; | |
3829 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 3830 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
3831 | bool result; |
3832 | void *argp1 = 0 ; | |
3833 | int res1 = 0 ; | |
554f62e9 RD |
3834 | PyObject * obj0 = 0 ; |
3835 | PyObject * obj1 = 0 ; | |
3836 | char * kwnames[] = { | |
e9d6f3a4 | 3837 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
3838 | }; |
3839 | ||
3840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3842 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 3843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
3844 | } |
3845 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 3846 | arg2 = obj1; |
554f62e9 | 3847 | { |
e9d6f3a4 | 3848 | result = (bool)wxColour___eq__(arg1,arg2); |
554f62e9 RD |
3849 | if (PyErr_Occurred()) SWIG_fail; |
3850 | } | |
3851 | { | |
3852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3853 | } | |
3854 | return resultobj; | |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3861 | PyObject *resultobj = 0; | |
3862 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 3863 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
3864 | bool result; |
3865 | void *argp1 = 0 ; | |
3866 | int res1 = 0 ; | |
554f62e9 RD |
3867 | PyObject * obj0 = 0 ; |
3868 | PyObject * obj1 = 0 ; | |
3869 | char * kwnames[] = { | |
e9d6f3a4 | 3870 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
3871 | }; |
3872 | ||
3873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3875 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 3876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
3877 | } |
3878 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 3879 | arg2 = obj1; |
554f62e9 | 3880 | { |
e9d6f3a4 | 3881 | result = (bool)wxColour___ne__(arg1,arg2); |
554f62e9 RD |
3882 | if (PyErr_Occurred()) SWIG_fail; |
3883 | } | |
3884 | { | |
3885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3886 | } | |
3887 | return resultobj; | |
3888 | fail: | |
3889 | return NULL; | |
d55e5bfc RD |
3890 | } |
3891 | ||
3892 | ||
554f62e9 RD |
3893 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3894 | PyObject *resultobj = 0; | |
3895 | wxColour *arg1 = (wxColour *) 0 ; | |
3896 | PyObject *result = 0 ; | |
3897 | void *argp1 = 0 ; | |
3898 | int res1 = 0 ; | |
3899 | PyObject *swig_obj[1] ; | |
3900 | ||
3901 | if (!args) SWIG_fail; | |
3902 | swig_obj[0] = args; | |
3903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3904 | if (!SWIG_IsOK(res1)) { | |
3905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3906 | } | |
3907 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3908 | { | |
3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3910 | result = (PyObject *)wxColour_Get(arg1); | |
3911 | wxPyEndAllowThreads(__tstate); | |
3912 | if (PyErr_Occurred()) SWIG_fail; | |
3913 | } | |
3914 | resultobj = result; | |
3915 | return resultobj; | |
3916 | fail: | |
3917 | return NULL; | |
d55e5bfc RD |
3918 | } |
3919 | ||
3920 | ||
554f62e9 RD |
3921 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3922 | PyObject *resultobj = 0; | |
3923 | wxColour *arg1 = (wxColour *) 0 ; | |
3924 | unsigned long result; | |
3925 | void *argp1 = 0 ; | |
3926 | int res1 = 0 ; | |
3927 | PyObject *swig_obj[1] ; | |
3928 | ||
3929 | if (!args) SWIG_fail; | |
3930 | swig_obj[0] = args; | |
3931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3932 | if (!SWIG_IsOK(res1)) { | |
3933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3934 | } | |
3935 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3936 | { | |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3938 | result = (unsigned long)wxColour_GetRGB(arg1); | |
3939 | wxPyEndAllowThreads(__tstate); | |
3940 | if (PyErr_Occurred()) SWIG_fail; | |
3941 | } | |
3942 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
3943 | return resultobj; | |
3944 | fail: | |
3945 | return NULL; | |
3946 | } | |
3947 | ||
3948 | ||
3949 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3950 | PyObject *obj; | |
3951 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3952 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
3953 | return SWIG_Py_Void(); | |
3954 | } | |
3955 | ||
3956 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3957 | return SWIG_Python_InitShadowInstance(args); | |
3958 | } | |
3959 | ||
3960 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3961 | PyObject *resultobj = 0; | |
3962 | int arg1 ; | |
3963 | unsigned char *arg2 = (unsigned char *) 0 ; | |
3964 | unsigned char *arg3 = (unsigned char *) 0 ; | |
3965 | unsigned char *arg4 = (unsigned char *) 0 ; | |
3966 | wxPalette *result = 0 ; | |
3967 | int val1 ; | |
3968 | int ecode1 = 0 ; | |
3969 | void *argp2 = 0 ; | |
3970 | int res2 = 0 ; | |
3971 | void *argp3 = 0 ; | |
3972 | int res3 = 0 ; | |
3973 | void *argp4 = 0 ; | |
3974 | int res4 = 0 ; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | PyObject * obj1 = 0 ; | |
3977 | PyObject * obj2 = 0 ; | |
3978 | PyObject * obj3 = 0 ; | |
3979 | char * kwnames[] = { | |
3980 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3981 | }; | |
3982 | ||
3983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3984 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3985 | if (!SWIG_IsOK(ecode1)) { | |
3986 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
3987 | } | |
3988 | arg1 = static_cast< int >(val1); | |
3989 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3990 | if (!SWIG_IsOK(res2)) { | |
3991 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
3992 | } | |
3993 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
3994 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3995 | if (!SWIG_IsOK(res3)) { | |
3996 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
3997 | } | |
3998 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
3999 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4000 | if (!SWIG_IsOK(res4)) { | |
4001 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4002 | } | |
4003 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4004 | { | |
4005 | if (!wxPyCheckForApp()) SWIG_fail; | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
093d3ff1 RD |
4015 | } |
4016 | ||
4017 | ||
554f62e9 RD |
4018 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4019 | PyObject *resultobj = 0; | |
4020 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4021 | void *argp1 = 0 ; | |
4022 | int res1 = 0 ; | |
4023 | PyObject *swig_obj[1] ; | |
4024 | ||
4025 | if (!args) SWIG_fail; | |
4026 | swig_obj[0] = args; | |
4027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4028 | if (!SWIG_IsOK(res1)) { | |
4029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4030 | } | |
4031 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | delete arg1; | |
093d3ff1 | 4035 | |
554f62e9 RD |
4036 | wxPyEndAllowThreads(__tstate); |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = SWIG_Py_Void(); | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4047 | PyObject *resultobj = 0; | |
4048 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4049 | byte arg2 ; | |
4050 | byte arg3 ; | |
4051 | byte arg4 ; | |
4052 | int result; | |
4053 | void *argp1 = 0 ; | |
4054 | int res1 = 0 ; | |
4055 | unsigned char val2 ; | |
4056 | int ecode2 = 0 ; | |
4057 | unsigned char val3 ; | |
4058 | int ecode3 = 0 ; | |
4059 | unsigned char val4 ; | |
4060 | int ecode4 = 0 ; | |
4061 | PyObject * obj0 = 0 ; | |
4062 | PyObject * obj1 = 0 ; | |
4063 | PyObject * obj2 = 0 ; | |
4064 | PyObject * obj3 = 0 ; | |
4065 | char * kwnames[] = { | |
4066 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4067 | }; | |
4068 | ||
4069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4071 | if (!SWIG_IsOK(res1)) { | |
4072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4073 | } | |
4074 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4075 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4076 | if (!SWIG_IsOK(ecode2)) { | |
4077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4078 | } | |
4079 | arg2 = static_cast< byte >(val2); | |
4080 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4081 | if (!SWIG_IsOK(ecode3)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4083 | } | |
4084 | arg3 = static_cast< byte >(val3); | |
4085 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4086 | if (!SWIG_IsOK(ecode4)) { | |
4087 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4088 | } | |
4089 | arg4 = static_cast< byte >(val4); | |
4090 | { | |
4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4092 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4093 | wxPyEndAllowThreads(__tstate); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
4095 | } | |
4096 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj = 0; | |
4105 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4106 | int arg2 ; | |
4107 | byte *arg3 = (byte *) 0 ; | |
4108 | byte *arg4 = (byte *) 0 ; | |
4109 | byte *arg5 = (byte *) 0 ; | |
4110 | bool result; | |
4111 | void *argp1 = 0 ; | |
4112 | int res1 = 0 ; | |
4113 | int val2 ; | |
4114 | int ecode2 = 0 ; | |
4115 | byte temp3 ; | |
4116 | int res3 = SWIG_TMPOBJ ; | |
4117 | byte temp4 ; | |
4118 | int res4 = SWIG_TMPOBJ ; | |
4119 | byte temp5 ; | |
4120 | int res5 = SWIG_TMPOBJ ; | |
4121 | PyObject * obj0 = 0 ; | |
4122 | PyObject * obj1 = 0 ; | |
4123 | char * kwnames[] = { | |
4124 | (char *) "self",(char *) "pixel", NULL | |
4125 | }; | |
4126 | ||
4127 | arg3 = &temp3; | |
4128 | arg4 = &temp4; | |
4129 | arg5 = &temp5; | |
4130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4132 | if (!SWIG_IsOK(res1)) { | |
4133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4134 | } | |
4135 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4136 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4137 | if (!SWIG_IsOK(ecode2)) { | |
4138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4139 | } | |
4140 | arg2 = static_cast< int >(val2); | |
4141 | { | |
4142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4143 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | { | |
4148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4149 | } | |
4150 | if (SWIG_IsTmpObj(res3)) { | |
4151 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4152 | } else { | |
4153 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4154 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4155 | } | |
4156 | if (SWIG_IsTmpObj(res4)) { | |
4157 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4158 | } else { | |
4159 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4160 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4161 | } | |
4162 | if (SWIG_IsTmpObj(res5)) { | |
4163 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4164 | } else { | |
4165 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4166 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4167 | } | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | return NULL; | |
d55e5bfc RD |
4171 | } |
4172 | ||
4173 | ||
554f62e9 RD |
4174 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4175 | PyObject *resultobj = 0; | |
4176 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4177 | int result; | |
4178 | void *argp1 = 0 ; | |
4179 | int res1 = 0 ; | |
4180 | PyObject *swig_obj[1] ; | |
4181 | ||
4182 | if (!args) SWIG_fail; | |
4183 | swig_obj[0] = args; | |
4184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4185 | if (!SWIG_IsOK(res1)) { | |
4186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4187 | } | |
4188 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4189 | { | |
4190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4191 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4192 | wxPyEndAllowThreads(__tstate); | |
4193 | if (PyErr_Occurred()) SWIG_fail; | |
4194 | } | |
4195 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4196 | return resultobj; | |
4197 | fail: | |
4198 | return NULL; | |
d55e5bfc RD |
4199 | } |
4200 | ||
4201 | ||
554f62e9 RD |
4202 | SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4203 | PyObject *resultobj = 0; | |
4204 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4205 | bool result; | |
4206 | void *argp1 = 0 ; | |
4207 | int res1 = 0 ; | |
4208 | PyObject *swig_obj[1] ; | |
4209 | ||
4210 | if (!args) SWIG_fail; | |
4211 | swig_obj[0] = args; | |
4212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4213 | if (!SWIG_IsOK(res1)) { | |
4214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4215 | } | |
4216 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4217 | { | |
4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4219 | result = (bool)(arg1)->Ok(); | |
4220 | wxPyEndAllowThreads(__tstate); | |
4221 | if (PyErr_Occurred()) SWIG_fail; | |
4222 | } | |
4223 | { | |
4224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4225 | } | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4233 | PyObject *obj; | |
4234 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4235 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4236 | return SWIG_Py_Void(); | |
4237 | } | |
4238 | ||
4239 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4240 | return SWIG_Python_InitShadowInstance(args); | |
4241 | } | |
4242 | ||
4243 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj = 0; | |
4245 | wxColour *arg1 = 0 ; | |
4246 | int arg2 = (int) 1 ; | |
4247 | int arg3 = (int) wxSOLID ; | |
4248 | wxPen *result = 0 ; | |
4249 | wxColour temp1 ; | |
4250 | int val2 ; | |
4251 | int ecode2 = 0 ; | |
4252 | int val3 ; | |
4253 | int ecode3 = 0 ; | |
4254 | PyObject * obj0 = 0 ; | |
4255 | PyObject * obj1 = 0 ; | |
4256 | PyObject * obj2 = 0 ; | |
4257 | char * kwnames[] = { | |
4258 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4259 | }; | |
4260 | ||
4261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4262 | { | |
4263 | arg1 = &temp1; | |
4264 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4265 | } | |
4266 | if (obj1) { | |
4267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4268 | if (!SWIG_IsOK(ecode2)) { | |
4269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4270 | } | |
4271 | arg2 = static_cast< int >(val2); | |
4272 | } | |
4273 | if (obj2) { | |
4274 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4275 | if (!SWIG_IsOK(ecode3)) { | |
4276 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4277 | } | |
4278 | arg3 = static_cast< int >(val3); | |
4279 | } | |
4280 | { | |
4281 | if (!wxPyCheckForApp()) SWIG_fail; | |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
4287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
d55e5bfc RD |
4291 | } |
4292 | ||
4293 | ||
554f62e9 RD |
4294 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4295 | PyObject *resultobj = 0; | |
4296 | wxPen *arg1 = (wxPen *) 0 ; | |
4297 | void *argp1 = 0 ; | |
4298 | int res1 = 0 ; | |
4299 | PyObject *swig_obj[1] ; | |
4300 | ||
4301 | if (!args) SWIG_fail; | |
4302 | swig_obj[0] = args; | |
4303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
4304 | if (!SWIG_IsOK(res1)) { | |
4305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4306 | } | |
4307 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4308 | { | |
4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4310 | delete arg1; | |
d55e5bfc | 4311 | |
554f62e9 RD |
4312 | wxPyEndAllowThreads(__tstate); |
4313 | if (PyErr_Occurred()) SWIG_fail; | |
4314 | } | |
4315 | resultobj = SWIG_Py_Void(); | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | return NULL; | |
d55e5bfc RD |
4319 | } |
4320 | ||
4321 | ||
554f62e9 RD |
4322 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4323 | PyObject *resultobj = 0; | |
4324 | wxPen *arg1 = (wxPen *) 0 ; | |
4325 | int result; | |
4326 | void *argp1 = 0 ; | |
4327 | int res1 = 0 ; | |
4328 | PyObject *swig_obj[1] ; | |
4329 | ||
4330 | if (!args) SWIG_fail; | |
4331 | swig_obj[0] = args; | |
4332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4333 | if (!SWIG_IsOK(res1)) { | |
4334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4335 | } | |
4336 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4337 | { | |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4339 | result = (int)(arg1)->GetCap(); | |
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
d55e5bfc RD |
4347 | } |
4348 | ||
4349 | ||
554f62e9 RD |
4350 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4351 | PyObject *resultobj = 0; | |
4352 | wxPen *arg1 = (wxPen *) 0 ; | |
4353 | wxColour result; | |
4354 | void *argp1 = 0 ; | |
4355 | int res1 = 0 ; | |
4356 | PyObject *swig_obj[1] ; | |
4357 | ||
4358 | if (!args) SWIG_fail; | |
4359 | swig_obj[0] = args; | |
4360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4361 | if (!SWIG_IsOK(res1)) { | |
4362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4363 | } | |
4364 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (arg1)->GetColour(); | |
4368 | wxPyEndAllowThreads(__tstate); | |
4369 | if (PyErr_Occurred()) SWIG_fail; | |
4370 | } | |
4371 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4372 | return resultobj; | |
4373 | fail: | |
4374 | return NULL; | |
d55e5bfc RD |
4375 | } |
4376 | ||
4377 | ||
554f62e9 RD |
4378 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4379 | PyObject *resultobj = 0; | |
4380 | wxPen *arg1 = (wxPen *) 0 ; | |
4381 | int result; | |
4382 | void *argp1 = 0 ; | |
4383 | int res1 = 0 ; | |
4384 | PyObject *swig_obj[1] ; | |
4385 | ||
4386 | if (!args) SWIG_fail; | |
4387 | swig_obj[0] = args; | |
4388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4389 | if (!SWIG_IsOK(res1)) { | |
4390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4391 | } | |
4392 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4393 | { | |
4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4395 | result = (int)(arg1)->GetJoin(); | |
4396 | wxPyEndAllowThreads(__tstate); | |
4397 | if (PyErr_Occurred()) SWIG_fail; | |
4398 | } | |
4399 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | return NULL; | |
d55e5bfc RD |
4403 | } |
4404 | ||
4405 | ||
554f62e9 RD |
4406 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4407 | PyObject *resultobj = 0; | |
4408 | wxPen *arg1 = (wxPen *) 0 ; | |
4409 | int result; | |
4410 | void *argp1 = 0 ; | |
4411 | int res1 = 0 ; | |
4412 | PyObject *swig_obj[1] ; | |
4413 | ||
4414 | if (!args) SWIG_fail; | |
4415 | swig_obj[0] = args; | |
4416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4417 | if (!SWIG_IsOK(res1)) { | |
4418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4419 | } | |
4420 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (int)(arg1)->GetStyle(); | |
4424 | wxPyEndAllowThreads(__tstate); | |
4425 | if (PyErr_Occurred()) SWIG_fail; | |
4426 | } | |
4427 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | return NULL; | |
d55e5bfc RD |
4431 | } |
4432 | ||
4433 | ||
554f62e9 RD |
4434 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4435 | PyObject *resultobj = 0; | |
4436 | wxPen *arg1 = (wxPen *) 0 ; | |
4437 | int result; | |
4438 | void *argp1 = 0 ; | |
4439 | int res1 = 0 ; | |
4440 | PyObject *swig_obj[1] ; | |
4441 | ||
4442 | if (!args) SWIG_fail; | |
4443 | swig_obj[0] = args; | |
4444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4445 | if (!SWIG_IsOK(res1)) { | |
4446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4447 | } | |
4448 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4449 | { | |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | result = (int)(arg1)->GetWidth(); | |
4452 | wxPyEndAllowThreads(__tstate); | |
4453 | if (PyErr_Occurred()) SWIG_fail; | |
4454 | } | |
4455 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4456 | return resultobj; | |
4457 | fail: | |
4458 | return NULL; | |
d55e5bfc RD |
4459 | } |
4460 | ||
4461 | ||
554f62e9 RD |
4462 | SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4463 | PyObject *resultobj = 0; | |
4464 | wxPen *arg1 = (wxPen *) 0 ; | |
4465 | bool result; | |
4466 | void *argp1 = 0 ; | |
4467 | int res1 = 0 ; | |
4468 | PyObject *swig_obj[1] ; | |
4469 | ||
4470 | if (!args) SWIG_fail; | |
4471 | swig_obj[0] = args; | |
4472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4473 | if (!SWIG_IsOK(res1)) { | |
4474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4475 | } | |
4476 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4477 | { | |
4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4479 | result = (bool)(arg1)->Ok(); | |
4480 | wxPyEndAllowThreads(__tstate); | |
4481 | if (PyErr_Occurred()) SWIG_fail; | |
4482 | } | |
4483 | { | |
4484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4485 | } | |
4486 | return resultobj; | |
4487 | fail: | |
4488 | return NULL; | |
4489 | } | |
4490 | ||
4491 | ||
4492 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4493 | PyObject *resultobj = 0; | |
4494 | wxPen *arg1 = (wxPen *) 0 ; | |
4495 | int arg2 ; | |
4496 | void *argp1 = 0 ; | |
4497 | int res1 = 0 ; | |
4498 | int val2 ; | |
4499 | int ecode2 = 0 ; | |
4500 | PyObject * obj0 = 0 ; | |
4501 | PyObject * obj1 = 0 ; | |
4502 | char * kwnames[] = { | |
4503 | (char *) "self",(char *) "cap_style", NULL | |
4504 | }; | |
4505 | ||
4506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4508 | if (!SWIG_IsOK(res1)) { | |
4509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4510 | } | |
4511 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4512 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4513 | if (!SWIG_IsOK(ecode2)) { | |
4514 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
4515 | } | |
4516 | arg2 = static_cast< int >(val2); | |
4517 | { | |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | (arg1)->SetCap(arg2); | |
4520 | wxPyEndAllowThreads(__tstate); | |
4521 | if (PyErr_Occurred()) SWIG_fail; | |
4522 | } | |
4523 | resultobj = SWIG_Py_Void(); | |
4524 | return resultobj; | |
4525 | fail: | |
4526 | return NULL; | |
4527 | } | |
4528 | ||
4529 | ||
4530 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4531 | PyObject *resultobj = 0; | |
4532 | wxPen *arg1 = (wxPen *) 0 ; | |
4533 | wxColour *arg2 = 0 ; | |
4534 | void *argp1 = 0 ; | |
4535 | int res1 = 0 ; | |
4536 | wxColour temp2 ; | |
4537 | PyObject * obj0 = 0 ; | |
4538 | PyObject * obj1 = 0 ; | |
4539 | char * kwnames[] = { | |
4540 | (char *) "self",(char *) "colour", NULL | |
4541 | }; | |
4542 | ||
4543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
4544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4545 | if (!SWIG_IsOK(res1)) { | |
4546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4547 | } | |
4548 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4549 | { | |
4550 | arg2 = &temp2; | |
4551 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4552 | } | |
4553 | { | |
4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4555 | (arg1)->SetColour(*arg2); | |
4556 | wxPyEndAllowThreads(__tstate); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | resultobj = SWIG_Py_Void(); | |
4560 | return resultobj; | |
4561 | fail: | |
4562 | return NULL; | |
4563 | } | |
4564 | ||
4565 | ||
4566 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4567 | PyObject *resultobj = 0; | |
4568 | wxPen *arg1 = (wxPen *) 0 ; | |
4569 | int arg2 ; | |
4570 | void *argp1 = 0 ; | |
4571 | int res1 = 0 ; | |
4572 | int val2 ; | |
4573 | int ecode2 = 0 ; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | PyObject * obj1 = 0 ; | |
4576 | char * kwnames[] = { | |
4577 | (char *) "self",(char *) "join_style", NULL | |
4578 | }; | |
4579 | ||
4580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
4581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4582 | if (!SWIG_IsOK(res1)) { | |
4583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4584 | } | |
4585 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4586 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4587 | if (!SWIG_IsOK(ecode2)) { | |
4588 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
4589 | } | |
4590 | arg2 = static_cast< int >(val2); | |
4591 | { | |
4592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4593 | (arg1)->SetJoin(arg2); | |
4594 | wxPyEndAllowThreads(__tstate); | |
4595 | if (PyErr_Occurred()) SWIG_fail; | |
4596 | } | |
4597 | resultobj = SWIG_Py_Void(); | |
4598 | return resultobj; | |
4599 | fail: | |
4600 | return NULL; | |
4601 | } | |
4602 | ||
4603 | ||
4604 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4605 | PyObject *resultobj = 0; | |
4606 | wxPen *arg1 = (wxPen *) 0 ; | |
4607 | int arg2 ; | |
4608 | void *argp1 = 0 ; | |
4609 | int res1 = 0 ; | |
4610 | int val2 ; | |
4611 | int ecode2 = 0 ; | |
4612 | PyObject * obj0 = 0 ; | |
4613 | PyObject * obj1 = 0 ; | |
4614 | char * kwnames[] = { | |
4615 | (char *) "self",(char *) "style", NULL | |
4616 | }; | |
4617 | ||
4618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4620 | if (!SWIG_IsOK(res1)) { | |
4621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4622 | } | |
4623 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4624 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4625 | if (!SWIG_IsOK(ecode2)) { | |
4626 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
4627 | } | |
4628 | arg2 = static_cast< int >(val2); | |
4629 | { | |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4631 | (arg1)->SetStyle(arg2); | |
4632 | wxPyEndAllowThreads(__tstate); | |
4633 | if (PyErr_Occurred()) SWIG_fail; | |
4634 | } | |
4635 | resultobj = SWIG_Py_Void(); | |
4636 | return resultobj; | |
4637 | fail: | |
4638 | return NULL; | |
4639 | } | |
4640 | ||
4641 | ||
4642 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4643 | PyObject *resultobj = 0; | |
4644 | wxPen *arg1 = (wxPen *) 0 ; | |
4645 | int arg2 ; | |
4646 | void *argp1 = 0 ; | |
4647 | int res1 = 0 ; | |
4648 | int val2 ; | |
4649 | int ecode2 = 0 ; | |
4650 | PyObject * obj0 = 0 ; | |
4651 | PyObject * obj1 = 0 ; | |
4652 | char * kwnames[] = { | |
4653 | (char *) "self",(char *) "width", NULL | |
4654 | }; | |
4655 | ||
4656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
4657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4658 | if (!SWIG_IsOK(res1)) { | |
4659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4660 | } | |
4661 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4662 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4663 | if (!SWIG_IsOK(ecode2)) { | |
4664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
4665 | } | |
4666 | arg2 = static_cast< int >(val2); | |
4667 | { | |
4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4669 | (arg1)->SetWidth(arg2); | |
4670 | wxPyEndAllowThreads(__tstate); | |
4671 | if (PyErr_Occurred()) SWIG_fail; | |
4672 | } | |
4673 | resultobj = SWIG_Py_Void(); | |
4674 | return resultobj; | |
4675 | fail: | |
4676 | return NULL; | |
4677 | } | |
4678 | ||
4679 | ||
4680 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4681 | PyObject *resultobj = 0; | |
4682 | wxPen *arg1 = (wxPen *) 0 ; | |
4683 | int arg2 ; | |
4684 | wxDash *arg3 = (wxDash *) 0 ; | |
4685 | void *argp1 = 0 ; | |
4686 | int res1 = 0 ; | |
4687 | PyObject * obj0 = 0 ; | |
4688 | PyObject * obj1 = 0 ; | |
4689 | char * kwnames[] = { | |
4690 | (char *) "self",(char *) "dashes", NULL | |
4691 | }; | |
4692 | ||
4693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
4694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4695 | if (!SWIG_IsOK(res1)) { | |
4696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4697 | } | |
4698 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4699 | { | |
4700 | arg2 = PyList_Size(obj1); | |
4701 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
4702 | if (arg3 == NULL) SWIG_fail; | |
4703 | } | |
4704 | { | |
4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4706 | (arg1)->SetDashes(arg2,arg3); | |
4707 | wxPyEndAllowThreads(__tstate); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
4709 | } | |
4710 | resultobj = SWIG_Py_Void(); | |
4711 | { | |
4712 | if (arg3) delete [] arg3; | |
4713 | } | |
4714 | return resultobj; | |
4715 | fail: | |
4716 | { | |
4717 | if (arg3) delete [] arg3; | |
4718 | } | |
4719 | return NULL; | |
d55e5bfc RD |
4720 | } |
4721 | ||
4722 | ||
554f62e9 RD |
4723 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4724 | PyObject *resultobj = 0; | |
4725 | wxPen *arg1 = (wxPen *) 0 ; | |
4726 | PyObject *result = 0 ; | |
4727 | void *argp1 = 0 ; | |
4728 | int res1 = 0 ; | |
4729 | PyObject *swig_obj[1] ; | |
4730 | ||
4731 | if (!args) SWIG_fail; | |
4732 | swig_obj[0] = args; | |
4733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4734 | if (!SWIG_IsOK(res1)) { | |
4735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4736 | } | |
4737 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4738 | { | |
4739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4740 | result = (PyObject *)wxPen_GetDashes(arg1); | |
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4744 | resultobj = result; | |
4745 | return resultobj; | |
4746 | fail: | |
4747 | return NULL; | |
4748 | } | |
4749 | ||
4750 | ||
4751 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj = 0; | |
4753 | wxPen *arg1 = (wxPen *) 0 ; | |
4754 | PyObject *arg2 = (PyObject *) 0 ; | |
4755 | PyObject *arg3 = (PyObject *) 0 ; | |
4756 | void *argp1 = 0 ; | |
4757 | int res1 = 0 ; | |
4758 | PyObject * obj0 = 0 ; | |
4759 | PyObject * obj1 = 0 ; | |
4760 | PyObject * obj2 = 0 ; | |
4761 | char * kwnames[] = { | |
4762 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
4763 | }; | |
4764 | ||
4765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4767 | if (!SWIG_IsOK(res1)) { | |
4768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4769 | } | |
4770 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4771 | arg2 = obj1; | |
4772 | arg3 = obj2; | |
4773 | { | |
4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4775 | wxPen__SetDashes(arg1,arg2,arg3); | |
4776 | wxPyEndAllowThreads(__tstate); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | resultobj = SWIG_Py_Void(); | |
4780 | return resultobj; | |
4781 | fail: | |
4782 | return NULL; | |
d55e5bfc RD |
4783 | } |
4784 | ||
4785 | ||
554f62e9 RD |
4786 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4787 | PyObject *resultobj = 0; | |
4788 | wxPen *arg1 = (wxPen *) 0 ; | |
4789 | int result; | |
4790 | void *argp1 = 0 ; | |
4791 | int res1 = 0 ; | |
4792 | PyObject *swig_obj[1] ; | |
4793 | ||
4794 | if (!args) SWIG_fail; | |
4795 | swig_obj[0] = args; | |
4796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4797 | if (!SWIG_IsOK(res1)) { | |
4798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
4799 | } | |
4800 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4801 | { | |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4803 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
4804 | wxPyEndAllowThreads(__tstate); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | } | |
4807 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4808 | return resultobj; | |
4809 | fail: | |
4810 | return NULL; | |
d55e5bfc RD |
4811 | } |
4812 | ||
4813 | ||
554f62e9 RD |
4814 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4815 | PyObject *resultobj = 0; | |
4816 | wxPen *arg1 = (wxPen *) 0 ; | |
4817 | wxBitmap *result = 0 ; | |
4818 | void *argp1 = 0 ; | |
4819 | int res1 = 0 ; | |
4820 | PyObject *swig_obj[1] ; | |
4821 | ||
4822 | if (!args) SWIG_fail; | |
4823 | swig_obj[0] = args; | |
4824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4825 | if (!SWIG_IsOK(res1)) { | |
4826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4827 | } | |
4828 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4829 | { | |
4830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4831 | result = (wxBitmap *)(arg1)->GetStipple(); | |
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
4835 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
4836 | return resultobj; | |
4837 | fail: | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj = 0; | |
4844 | wxPen *arg1 = (wxPen *) 0 ; | |
4845 | wxBitmap *arg2 = 0 ; | |
4846 | void *argp1 = 0 ; | |
4847 | int res1 = 0 ; | |
4848 | void *argp2 = 0 ; | |
4849 | int res2 = 0 ; | |
4850 | PyObject * obj0 = 0 ; | |
4851 | PyObject * obj1 = 0 ; | |
4852 | char * kwnames[] = { | |
4853 | (char *) "self",(char *) "stipple", NULL | |
4854 | }; | |
4855 | ||
4856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
4857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4858 | if (!SWIG_IsOK(res1)) { | |
4859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4860 | } | |
4861 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4862 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
4863 | if (!SWIG_IsOK(res2)) { | |
4864 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
4865 | } | |
4866 | if (!argp2) { | |
4867 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
4868 | } | |
4869 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4870 | { | |
4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4872 | (arg1)->SetStipple(*arg2); | |
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | resultobj = SWIG_Py_Void(); | |
4877 | return resultobj; | |
4878 | fail: | |
4879 | return NULL; | |
4880 | } | |
4881 | ||
4882 | ||
4883 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4884 | PyObject *resultobj = 0; | |
4885 | wxPen *arg1 = (wxPen *) 0 ; | |
4886 | wxPen *arg2 = (wxPen *) 0 ; | |
4887 | bool result; | |
4888 | void *argp1 = 0 ; | |
4889 | int res1 = 0 ; | |
4890 | void *argp2 = 0 ; | |
4891 | int res2 = 0 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | PyObject * obj1 = 0 ; | |
4894 | char * kwnames[] = { | |
4895 | (char *) "self",(char *) "other", NULL | |
4896 | }; | |
4897 | ||
4898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4900 | if (!SWIG_IsOK(res1)) { | |
4901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4902 | } | |
4903 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4904 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4905 | if (!SWIG_IsOK(res2)) { | |
4906 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4907 | } | |
4908 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
4912 | wxPyEndAllowThreads(__tstate); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | } | |
4915 | { | |
4916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4917 | } | |
4918 | return resultobj; | |
4919 | fail: | |
4920 | return NULL; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4925 | PyObject *resultobj = 0; | |
4926 | wxPen *arg1 = (wxPen *) 0 ; | |
4927 | wxPen *arg2 = (wxPen *) 0 ; | |
4928 | bool result; | |
4929 | void *argp1 = 0 ; | |
4930 | int res1 = 0 ; | |
4931 | void *argp2 = 0 ; | |
4932 | int res2 = 0 ; | |
4933 | PyObject * obj0 = 0 ; | |
4934 | PyObject * obj1 = 0 ; | |
4935 | char * kwnames[] = { | |
4936 | (char *) "self",(char *) "other", NULL | |
4937 | }; | |
4938 | ||
4939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4941 | if (!SWIG_IsOK(res1)) { | |
4942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4943 | } | |
4944 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4945 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4946 | if (!SWIG_IsOK(res2)) { | |
4947 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4948 | } | |
4949 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | } | |
4956 | { | |
4957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4958 | } | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | return NULL; | |
d55e5bfc RD |
4962 | } |
4963 | ||
4964 | ||
554f62e9 RD |
4965 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4966 | PyObject *obj; | |
4967 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4968 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
4969 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4970 | } |
4971 | ||
554f62e9 RD |
4972 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4973 | return SWIG_Python_InitShadowInstance(args); | |
4974 | } | |
d55e5bfc | 4975 | |
554f62e9 RD |
4976 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4977 | PyObject *resultobj = 0; | |
4978 | wxColour *arg1 = 0 ; | |
4979 | int arg2 = (int) wxSOLID ; | |
4980 | wxBrush *result = 0 ; | |
4981 | wxColour temp1 ; | |
4982 | int val2 ; | |
4983 | int ecode2 = 0 ; | |
4984 | PyObject * obj0 = 0 ; | |
4985 | PyObject * obj1 = 0 ; | |
4986 | char * kwnames[] = { | |
4987 | (char *) "colour",(char *) "style", NULL | |
4988 | }; | |
4989 | ||
4990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
4991 | { | |
4992 | arg1 = &temp1; | |
4993 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4994 | } | |
4995 | if (obj1) { | |
4996 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4997 | if (!SWIG_IsOK(ecode2)) { | |
4998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
4999 | } | |
5000 | arg2 = static_cast< int >(val2); | |
5001 | } | |
5002 | { | |
5003 | if (!wxPyCheckForApp()) SWIG_fail; | |
5004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5005 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5010 | return resultobj; | |
5011 | fail: | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
5016 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj = 0; | |
5018 | wxBitmap *arg1 = 0 ; | |
5019 | wxBrush *result = 0 ; | |
5020 | void *argp1 = 0 ; | |
5021 | int res1 = 0 ; | |
5022 | PyObject * obj0 = 0 ; | |
5023 | char * kwnames[] = { | |
5024 | (char *) "stippleBitmap", NULL | |
5025 | }; | |
5026 | ||
5027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5028 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5029 | if (!SWIG_IsOK(res1)) { | |
5030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5031 | } | |
5032 | if (!argp1) { | |
5033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5034 | } | |
5035 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5036 | { | |
5037 | if (!wxPyCheckForApp()) SWIG_fail; | |
5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5039 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5040 | wxPyEndAllowThreads(__tstate); | |
5041 | if (PyErr_Occurred()) SWIG_fail; | |
5042 | } | |
5043 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5044 | return resultobj; | |
5045 | fail: | |
5046 | return NULL; | |
d55e5bfc RD |
5047 | } |
5048 | ||
5049 | ||
554f62e9 RD |
5050 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5051 | PyObject *resultobj = 0; | |
5052 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5053 | void *argp1 = 0 ; | |
5054 | int res1 = 0 ; | |
5055 | PyObject *swig_obj[1] ; | |
5056 | ||
5057 | if (!args) SWIG_fail; | |
5058 | swig_obj[0] = args; | |
5059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5060 | if (!SWIG_IsOK(res1)) { | |
5061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5062 | } | |
5063 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | delete arg1; | |
d55e5bfc | 5067 | |
554f62e9 RD |
5068 | wxPyEndAllowThreads(__tstate); |
5069 | if (PyErr_Occurred()) SWIG_fail; | |
5070 | } | |
5071 | resultobj = SWIG_Py_Void(); | |
5072 | return resultobj; | |
5073 | fail: | |
5074 | return NULL; | |
5075 | } | |
5076 | ||
5077 | ||
5078 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5079 | PyObject *resultobj = 0; | |
5080 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5081 | wxColour *arg2 = 0 ; | |
5082 | void *argp1 = 0 ; | |
5083 | int res1 = 0 ; | |
5084 | wxColour temp2 ; | |
5085 | PyObject * obj0 = 0 ; | |
5086 | PyObject * obj1 = 0 ; | |
5087 | char * kwnames[] = { | |
5088 | (char *) "self",(char *) "col", NULL | |
5089 | }; | |
5090 | ||
5091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5093 | if (!SWIG_IsOK(res1)) { | |
5094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5095 | } | |
5096 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5097 | { | |
5098 | arg2 = &temp2; | |
5099 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5100 | } | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | (arg1)->SetColour((wxColour const &)*arg2); | |
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | resultobj = SWIG_Py_Void(); | |
5108 | return resultobj; | |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5115 | PyObject *resultobj = 0; | |
5116 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5117 | int arg2 ; | |
5118 | void *argp1 = 0 ; | |
5119 | int res1 = 0 ; | |
5120 | int val2 ; | |
5121 | int ecode2 = 0 ; | |
5122 | PyObject * obj0 = 0 ; | |
5123 | PyObject * obj1 = 0 ; | |
5124 | char * kwnames[] = { | |
5125 | (char *) "self",(char *) "style", NULL | |
5126 | }; | |
5127 | ||
5128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5130 | if (!SWIG_IsOK(res1)) { | |
5131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5132 | } | |
5133 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5134 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5135 | if (!SWIG_IsOK(ecode2)) { | |
5136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5137 | } | |
5138 | arg2 = static_cast< int >(val2); | |
5139 | { | |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | (arg1)->SetStyle(arg2); | |
5142 | wxPyEndAllowThreads(__tstate); | |
5143 | if (PyErr_Occurred()) SWIG_fail; | |
5144 | } | |
5145 | resultobj = SWIG_Py_Void(); | |
5146 | return resultobj; | |
5147 | fail: | |
5148 | return NULL; | |
5149 | } | |
5150 | ||
5151 | ||
5152 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5153 | PyObject *resultobj = 0; | |
5154 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5155 | wxBitmap *arg2 = 0 ; | |
5156 | void *argp1 = 0 ; | |
5157 | int res1 = 0 ; | |
5158 | void *argp2 = 0 ; | |
5159 | int res2 = 0 ; | |
5160 | PyObject * obj0 = 0 ; | |
5161 | PyObject * obj1 = 0 ; | |
5162 | char * kwnames[] = { | |
5163 | (char *) "self",(char *) "stipple", NULL | |
5164 | }; | |
5165 | ||
5166 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5168 | if (!SWIG_IsOK(res1)) { | |
5169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5170 | } | |
5171 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5172 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5173 | if (!SWIG_IsOK(res2)) { | |
5174 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5175 | } | |
5176 | if (!argp2) { | |
5177 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5178 | } | |
5179 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5180 | { | |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5183 | wxPyEndAllowThreads(__tstate); | |
5184 | if (PyErr_Occurred()) SWIG_fail; | |
5185 | } | |
5186 | resultobj = SWIG_Py_Void(); | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | return NULL; | |
d55e5bfc RD |
5190 | } |
5191 | ||
5192 | ||
554f62e9 RD |
5193 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5194 | PyObject *resultobj = 0; | |
5195 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5196 | wxColour result; | |
5197 | void *argp1 = 0 ; | |
5198 | int res1 = 0 ; | |
5199 | PyObject *swig_obj[1] ; | |
5200 | ||
5201 | if (!args) SWIG_fail; | |
5202 | swig_obj[0] = args; | |
5203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5204 | if (!SWIG_IsOK(res1)) { | |
5205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5206 | } | |
5207 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = ((wxBrush const *)arg1)->GetColour(); | |
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | return NULL; | |
d55e5bfc RD |
5218 | } |
5219 | ||
5220 | ||
554f62e9 RD |
5221 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5222 | PyObject *resultobj = 0; | |
5223 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5224 | int result; | |
5225 | void *argp1 = 0 ; | |
5226 | int res1 = 0 ; | |
5227 | PyObject *swig_obj[1] ; | |
5228 | ||
5229 | if (!args) SWIG_fail; | |
5230 | swig_obj[0] = args; | |
5231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5232 | if (!SWIG_IsOK(res1)) { | |
5233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5234 | } | |
5235 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5236 | { | |
5237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5238 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | } | |
5242 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5243 | return resultobj; | |
5244 | fail: | |
5245 | return NULL; | |
d55e5bfc RD |
5246 | } |
5247 | ||
5248 | ||
554f62e9 RD |
5249 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5250 | PyObject *resultobj = 0; | |
5251 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5252 | wxBitmap *result = 0 ; | |
5253 | void *argp1 = 0 ; | |
5254 | int res1 = 0 ; | |
5255 | PyObject *swig_obj[1] ; | |
5256 | ||
5257 | if (!args) SWIG_fail; | |
5258 | swig_obj[0] = args; | |
5259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5260 | if (!SWIG_IsOK(res1)) { | |
5261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5262 | } | |
5263 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5264 | { | |
5265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5266 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | return NULL; | |
d55e5bfc RD |
5274 | } |
5275 | ||
5276 | ||
554f62e9 RD |
5277 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5278 | PyObject *resultobj = 0; | |
5279 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5280 | bool result; | |
5281 | void *argp1 = 0 ; | |
5282 | int res1 = 0 ; | |
5283 | PyObject *swig_obj[1] ; | |
5284 | ||
5285 | if (!args) SWIG_fail; | |
5286 | swig_obj[0] = args; | |
5287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5288 | if (!SWIG_IsOK(res1)) { | |
5289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5290 | } | |
5291 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5295 | wxPyEndAllowThreads(__tstate); | |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
5298 | { | |
5299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5300 | } | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
f78cc896 RD |
5304 | } |
5305 | ||
5306 | ||
554f62e9 RD |
5307 | SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5308 | PyObject *resultobj = 0; | |
5309 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5310 | bool result; | |
5311 | void *argp1 = 0 ; | |
5312 | int res1 = 0 ; | |
5313 | PyObject *swig_obj[1] ; | |
5314 | ||
5315 | if (!args) SWIG_fail; | |
5316 | swig_obj[0] = args; | |
5317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5318 | if (!SWIG_IsOK(res1)) { | |
5319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5320 | } | |
5321 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | result = (bool)(arg1)->Ok(); | |
5325 | wxPyEndAllowThreads(__tstate); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | } | |
5328 | { | |
5329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5330 | } | |
5331 | return resultobj; | |
5332 | fail: | |
5333 | return NULL; | |
d55e5bfc RD |
5334 | } |
5335 | ||
5336 | ||
554f62e9 RD |
5337 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5338 | PyObject *obj; | |
5339 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5340 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5341 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5342 | } |
5343 | ||
554f62e9 RD |
5344 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5345 | return SWIG_Python_InitShadowInstance(args); | |
5346 | } | |
d55e5bfc | 5347 | |
554f62e9 RD |
5348 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5349 | PyObject *resultobj = 0; | |
5350 | wxString *arg1 = 0 ; | |
5351 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5352 | wxBitmap *result = 0 ; | |
5353 | bool temp1 = false ; | |
5354 | int val2 ; | |
5355 | int ecode2 = 0 ; | |
5356 | PyObject * obj0 = 0 ; | |
5357 | PyObject * obj1 = 0 ; | |
5358 | char * kwnames[] = { | |
5359 | (char *) "name",(char *) "type", NULL | |
5360 | }; | |
5361 | ||
5362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5363 | { | |
5364 | arg1 = wxString_in_helper(obj0); | |
5365 | if (arg1 == NULL) SWIG_fail; | |
5366 | temp1 = true; | |
5367 | } | |
5368 | if (obj1) { | |
5369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5370 | if (!SWIG_IsOK(ecode2)) { | |
5371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
5372 | } | |
5373 | arg2 = static_cast< wxBitmapType >(val2); | |
5374 | } | |
5375 | { | |
5376 | if (!wxPyCheckForApp()) SWIG_fail; | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
5382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
5383 | { | |
5384 | if (temp1) | |
5385 | delete arg1; | |
5386 | } | |
5387 | return resultobj; | |
5388 | fail: | |
5389 | { | |
5390 | if (temp1) | |
5391 | delete arg1; | |
5392 | } | |
5393 | return NULL; | |
d55e5bfc RD |
5394 | } |
5395 | ||
5396 | ||
554f62e9 RD |
5397 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5398 | PyObject *resultobj = 0; | |
5399 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5400 | void *argp1 = 0 ; | |
5401 | int res1 = 0 ; | |
5402 | PyObject *swig_obj[1] ; | |
5403 | ||
5404 | if (!args) SWIG_fail; | |
5405 | swig_obj[0] = args; | |
5406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
5407 | if (!SWIG_IsOK(res1)) { | |
5408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5409 | } | |
5410 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5411 | { | |
5412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5413 | delete arg1; | |
c24da6d6 | 5414 | |
554f62e9 RD |
5415 | wxPyEndAllowThreads(__tstate); |
5416 | if (PyErr_Occurred()) SWIG_fail; | |
5417 | } | |
5418 | resultobj = SWIG_Py_Void(); | |
5419 | return resultobj; | |
5420 | fail: | |
5421 | return NULL; | |
5422 | } | |
5423 | ||
5424 | ||
5425 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5426 | PyObject *resultobj = 0; | |
5427 | int arg1 ; | |
5428 | int arg2 ; | |
5429 | int arg3 = (int) -1 ; | |
5430 | wxBitmap *result = 0 ; | |
5431 | int val1 ; | |
5432 | int ecode1 = 0 ; | |
5433 | int val2 ; | |
5434 | int ecode2 = 0 ; | |
5435 | int val3 ; | |
5436 | int ecode3 = 0 ; | |
5437 | PyObject * obj0 = 0 ; | |
5438 | PyObject * obj1 = 0 ; | |
5439 | PyObject * obj2 = 0 ; | |
5440 | char * kwnames[] = { | |
5441 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
5442 | }; | |
5443 | ||
5444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5445 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5446 | if (!SWIG_IsOK(ecode1)) { | |
5447 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
5448 | } | |
5449 | arg1 = static_cast< int >(val1); | |
5450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5451 | if (!SWIG_IsOK(ecode2)) { | |
5452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
5453 | } | |
5454 | arg2 = static_cast< int >(val2); | |
5455 | if (obj2) { | |
5456 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5457 | if (!SWIG_IsOK(ecode3)) { | |
5458 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
5459 | } | |
5460 | arg3 = static_cast< int >(val3); | |
5461 | } | |
5462 | { | |
5463 | if (!wxPyCheckForApp()) SWIG_fail; | |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
5466 | wxPyEndAllowThreads(__tstate); | |
5467 | if (PyErr_Occurred()) SWIG_fail; | |
5468 | } | |
5469 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5470 | return resultobj; | |
5471 | fail: | |
5472 | return NULL; | |
5473 | } | |
5474 | ||
5475 | ||
5476 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5477 | PyObject *resultobj = 0; | |
5478 | wxIcon *arg1 = 0 ; | |
5479 | wxBitmap *result = 0 ; | |
5480 | void *argp1 = 0 ; | |
5481 | int res1 = 0 ; | |
5482 | PyObject * obj0 = 0 ; | |
5483 | char * kwnames[] = { | |
5484 | (char *) "icon", NULL | |
5485 | }; | |
5486 | ||
5487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
5488 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
5489 | if (!SWIG_IsOK(res1)) { | |
5490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5491 | } | |
5492 | if (!argp1) { | |
5493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5494 | } | |
5495 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
5496 | { | |
5497 | if (!wxPyCheckForApp()) SWIG_fail; | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5499 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
5500 | wxPyEndAllowThreads(__tstate); | |
5501 | if (PyErr_Occurred()) SWIG_fail; | |
5502 | } | |
5503 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5504 | return resultobj; | |
5505 | fail: | |
5506 | return NULL; | |
5507 | } | |
5508 | ||
5509 | ||
5510 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5511 | PyObject *resultobj = 0; | |
5512 | wxImage *arg1 = 0 ; | |
5513 | int arg2 = (int) -1 ; | |
5514 | wxBitmap *result = 0 ; | |
5515 | void *argp1 = 0 ; | |
5516 | int res1 = 0 ; | |
5517 | int val2 ; | |
5518 | int ecode2 = 0 ; | |
5519 | PyObject * obj0 = 0 ; | |
5520 | PyObject * obj1 = 0 ; | |
5521 | char * kwnames[] = { | |
5522 | (char *) "image",(char *) "depth", NULL | |
5523 | }; | |
5524 | ||
5525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
5526 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
5527 | if (!SWIG_IsOK(res1)) { | |
5528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5529 | } | |
5530 | if (!argp1) { | |
5531 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5532 | } | |
5533 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
5534 | if (obj1) { | |
5535 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5536 | if (!SWIG_IsOK(ecode2)) { | |
5537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
5538 | } | |
5539 | arg2 = static_cast< int >(val2); | |
5540 | } | |
5541 | { | |
5542 | if (!wxPyCheckForApp()) SWIG_fail; | |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5549 | return resultobj; | |
5550 | fail: | |
5551 | return NULL; | |
c24da6d6 RD |
5552 | } |
5553 | ||
5554 | ||
554f62e9 RD |
5555 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5556 | PyObject *resultobj = 0; | |
5557 | PyObject *arg1 = (PyObject *) 0 ; | |
5558 | wxBitmap *result = 0 ; | |
5559 | PyObject * obj0 = 0 ; | |
5560 | char * kwnames[] = { | |
5561 | (char *) "listOfStrings", NULL | |
5562 | }; | |
5563 | ||
5564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
5565 | arg1 = obj0; | |
5566 | { | |
5567 | if (!wxPyCheckForApp()) SWIG_fail; | |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | result = (wxBitmap *)new_wxBitmap(arg1); | |
5570 | wxPyEndAllowThreads(__tstate); | |
5571 | if (PyErr_Occurred()) SWIG_fail; | |
5572 | } | |
5573 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
5580 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5581 | PyObject *resultobj = 0; | |
5582 | PyObject *arg1 = (PyObject *) 0 ; | |
5583 | int arg2 ; | |
5584 | int arg3 ; | |
5585 | int arg4 = (int) 1 ; | |
5586 | wxBitmap *result = 0 ; | |
5587 | int val2 ; | |
5588 | int ecode2 = 0 ; | |
5589 | int val3 ; | |
5590 | int ecode3 = 0 ; | |
5591 | int val4 ; | |
5592 | int ecode4 = 0 ; | |
5593 | PyObject * obj0 = 0 ; | |
5594 | PyObject * obj1 = 0 ; | |
5595 | PyObject * obj2 = 0 ; | |
5596 | PyObject * obj3 = 0 ; | |
5597 | char * kwnames[] = { | |
5598 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
5599 | }; | |
5600 | ||
5601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
5602 | arg1 = obj0; | |
5603 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5604 | if (!SWIG_IsOK(ecode2)) { | |
5605 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
5606 | } | |
5607 | arg2 = static_cast< int >(val2); | |
5608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5609 | if (!SWIG_IsOK(ecode3)) { | |
5610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
5611 | } | |
5612 | arg3 = static_cast< int >(val3); | |
5613 | if (obj3) { | |
5614 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
5615 | if (!SWIG_IsOK(ecode4)) { | |
5616 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
5617 | } | |
5618 | arg4 = static_cast< int >(val4); | |
5619 | } | |
5620 | { | |
5621 | if (!wxPyCheckForApp()) SWIG_fail; | |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
5624 | wxPyEndAllowThreads(__tstate); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
5627 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5628 | return resultobj; | |
5629 | fail: | |
5630 | return NULL; | |
d55e5bfc RD |
5631 | } |
5632 | ||
5633 | ||
554f62e9 RD |
5634 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5635 | PyObject *resultobj = 0; | |
5636 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5637 | long result; | |
5638 | void *argp1 = 0 ; | |
5639 | int res1 = 0 ; | |
5640 | PyObject *swig_obj[1] ; | |
5641 | ||
5642 | if (!args) SWIG_fail; | |
5643 | swig_obj[0] = args; | |
5644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5645 | if (!SWIG_IsOK(res1)) { | |
5646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5647 | } | |
5648 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5649 | { | |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5651 | result = (long)(arg1)->GetHandle(); | |
5652 | wxPyEndAllowThreads(__tstate); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
5655 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
5662 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5663 | PyObject *resultobj = 0; | |
5664 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5665 | long arg2 ; | |
5666 | void *argp1 = 0 ; | |
5667 | int res1 = 0 ; | |
5668 | long val2 ; | |
5669 | int ecode2 = 0 ; | |
5670 | PyObject * obj0 = 0 ; | |
5671 | PyObject * obj1 = 0 ; | |
5672 | char * kwnames[] = { | |
5673 | (char *) "self",(char *) "handle", NULL | |
5674 | }; | |
5675 | ||
5676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5678 | if (!SWIG_IsOK(res1)) { | |
5679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5680 | } | |
5681 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5682 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5683 | if (!SWIG_IsOK(ecode2)) { | |
5684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
5685 | } | |
5686 | arg2 = static_cast< long >(val2); | |
5687 | { | |
5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5689 | wxBitmap_SetHandle(arg1,arg2); | |
5690 | wxPyEndAllowThreads(__tstate); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | resultobj = SWIG_Py_Void(); | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
d55e5bfc RD |
5697 | } |
5698 | ||
5699 | ||
554f62e9 RD |
5700 | SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5701 | PyObject *resultobj = 0; | |
5702 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5703 | bool result; | |
5704 | void *argp1 = 0 ; | |
5705 | int res1 = 0 ; | |
5706 | PyObject *swig_obj[1] ; | |
5707 | ||
5708 | if (!args) SWIG_fail; | |
5709 | swig_obj[0] = args; | |
5710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5711 | if (!SWIG_IsOK(res1)) { | |
5712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5713 | } | |
5714 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5715 | { | |
5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5717 | result = (bool)(arg1)->Ok(); | |
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
5721 | { | |
5722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5723 | } | |
5724 | return resultobj; | |
5725 | fail: | |
5726 | return NULL; | |
d55e5bfc RD |
5727 | } |
5728 | ||
5729 | ||
554f62e9 RD |
5730 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5731 | PyObject *resultobj = 0; | |
5732 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5733 | int result; | |
5734 | void *argp1 = 0 ; | |
5735 | int res1 = 0 ; | |
5736 | PyObject *swig_obj[1] ; | |
5737 | ||
5738 | if (!args) SWIG_fail; | |
5739 | swig_obj[0] = args; | |
5740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5741 | if (!SWIG_IsOK(res1)) { | |
5742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5743 | } | |
5744 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5745 | { | |
5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5747 | result = (int)(arg1)->GetWidth(); | |
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
d55e5bfc RD |
5755 | } |
5756 | ||
5757 | ||
554f62e9 RD |
5758 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5759 | PyObject *resultobj = 0; | |
5760 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5761 | int result; | |
5762 | void *argp1 = 0 ; | |
5763 | int res1 = 0 ; | |
5764 | PyObject *swig_obj[1] ; | |
5765 | ||
5766 | if (!args) SWIG_fail; | |
5767 | swig_obj[0] = args; | |
5768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5769 | if (!SWIG_IsOK(res1)) { | |
5770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5771 | } | |
5772 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5773 | { | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | result = (int)(arg1)->GetHeight(); | |
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
c24da6d6 RD |
5783 | } |
5784 | ||
5785 | ||
554f62e9 RD |
5786 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5787 | PyObject *resultobj = 0; | |
5788 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5789 | int result; | |
5790 | void *argp1 = 0 ; | |
5791 | int res1 = 0 ; | |
5792 | PyObject *swig_obj[1] ; | |
5793 | ||
5794 | if (!args) SWIG_fail; | |
5795 | swig_obj[0] = args; | |
5796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5797 | if (!SWIG_IsOK(res1)) { | |
5798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5799 | } | |
5800 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5801 | { | |
5802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5803 | result = (int)(arg1)->GetDepth(); | |
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
5807 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
d55e5bfc RD |
5811 | } |
5812 | ||
5813 | ||
554f62e9 RD |
5814 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5815 | PyObject *resultobj = 0; | |
5816 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5817 | wxSize result; | |
5818 | void *argp1 = 0 ; | |
5819 | int res1 = 0 ; | |
5820 | PyObject *swig_obj[1] ; | |
5821 | ||
5822 | if (!args) SWIG_fail; | |
5823 | swig_obj[0] = args; | |
5824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5825 | if (!SWIG_IsOK(res1)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5827 | } | |
5828 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = wxBitmap_GetSize(arg1); | |
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
5836 | return resultobj; | |
5837 | fail: | |
5838 | return NULL; | |
d55e5bfc RD |
5839 | } |
5840 | ||
5841 | ||
554f62e9 RD |
5842 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5843 | PyObject *resultobj = 0; | |
5844 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5845 | SwigValueWrapper<wxImage > result; | |
5846 | void *argp1 = 0 ; | |
5847 | int res1 = 0 ; | |
5848 | PyObject *swig_obj[1] ; | |
5849 | ||
5850 | if (!args) SWIG_fail; | |
5851 | swig_obj[0] = args; | |
5852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5853 | if (!SWIG_IsOK(res1)) { | |
5854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5855 | } | |
5856 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
5864 | return resultobj; | |
5865 | fail: | |
5866 | return NULL; | |
d55e5bfc RD |
5867 | } |
5868 | ||
5869 | ||
554f62e9 RD |
5870 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5871 | PyObject *resultobj = 0; | |
5872 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5873 | wxMask *result = 0 ; | |
5874 | void *argp1 = 0 ; | |
5875 | int res1 = 0 ; | |
5876 | PyObject *swig_obj[1] ; | |
5877 | ||
5878 | if (!args) SWIG_fail; | |
5879 | swig_obj[0] = args; | |
5880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5881 | if (!SWIG_IsOK(res1)) { | |
5882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5883 | } | |
5884 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5885 | { | |
5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5887 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
5891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
5892 | return resultobj; | |
5893 | fail: | |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
5898 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5899 | PyObject *resultobj = 0; | |
5900 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5901 | wxMask *arg2 = (wxMask *) 0 ; | |
5902 | void *argp1 = 0 ; | |
5903 | int res1 = 0 ; | |
5904 | int res2 = 0 ; | |
5905 | PyObject * obj0 = 0 ; | |
5906 | PyObject * obj1 = 0 ; | |
5907 | char * kwnames[] = { | |
5908 | (char *) "self",(char *) "mask", NULL | |
5909 | }; | |
5910 | ||
5911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
5912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5913 | if (!SWIG_IsOK(res1)) { | |
5914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5915 | } | |
5916 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5917 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
5918 | if (!SWIG_IsOK(res2)) { | |
5919 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
5920 | } | |
5921 | { | |
5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5923 | (arg1)->SetMask(arg2); | |
5924 | wxPyEndAllowThreads(__tstate); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | } | |
5927 | resultobj = SWIG_Py_Void(); | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5935 | PyObject *resultobj = 0; | |
5936 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5937 | wxColour *arg2 = 0 ; | |
5938 | void *argp1 = 0 ; | |
5939 | int res1 = 0 ; | |
5940 | wxColour temp2 ; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | PyObject * obj1 = 0 ; | |
5943 | char * kwnames[] = { | |
5944 | (char *) "self",(char *) "colour", NULL | |
5945 | }; | |
5946 | ||
5947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5949 | if (!SWIG_IsOK(res1)) { | |
5950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5951 | } | |
5952 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5953 | { | |
5954 | arg2 = &temp2; | |
5955 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5956 | } | |
5957 | { | |
5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5959 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
5960 | wxPyEndAllowThreads(__tstate); | |
5961 | if (PyErr_Occurred()) SWIG_fail; | |
5962 | } | |
5963 | resultobj = SWIG_Py_Void(); | |
5964 | return resultobj; | |
5965 | fail: | |
5966 | return NULL; | |
5967 | } | |
5968 | ||
5969 | ||
5970 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5971 | PyObject *resultobj = 0; | |
5972 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5973 | wxRect *arg2 = 0 ; | |
5974 | SwigValueWrapper<wxBitmap > result; | |
5975 | void *argp1 = 0 ; | |
5976 | int res1 = 0 ; | |
5977 | wxRect temp2 ; | |
5978 | PyObject * obj0 = 0 ; | |
5979 | PyObject * obj1 = 0 ; | |
5980 | char * kwnames[] = { | |
5981 | (char *) "self",(char *) "rect", NULL | |
5982 | }; | |
5983 | ||
5984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5986 | if (!SWIG_IsOK(res1)) { | |
5987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5988 | } | |
5989 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5990 | { | |
5991 | arg2 = &temp2; | |
5992 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5993 | } | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
6007 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6008 | PyObject *resultobj = 0; | |
6009 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6010 | wxString *arg2 = 0 ; | |
6011 | wxBitmapType arg3 ; | |
6012 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6013 | bool result; | |
6014 | void *argp1 = 0 ; | |
6015 | int res1 = 0 ; | |
6016 | bool temp2 = false ; | |
6017 | int val3 ; | |
6018 | int ecode3 = 0 ; | |
6019 | void *argp4 = 0 ; | |
6020 | int res4 = 0 ; | |
6021 | PyObject * obj0 = 0 ; | |
6022 | PyObject * obj1 = 0 ; | |
6023 | PyObject * obj2 = 0 ; | |
6024 | PyObject * obj3 = 0 ; | |
6025 | char * kwnames[] = { | |
6026 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6027 | }; | |
6028 | ||
6029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6031 | if (!SWIG_IsOK(res1)) { | |
6032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6033 | } | |
6034 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6035 | { | |
6036 | arg2 = wxString_in_helper(obj1); | |
6037 | if (arg2 == NULL) SWIG_fail; | |
6038 | temp2 = true; | |
6039 | } | |
6040 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6041 | if (!SWIG_IsOK(ecode3)) { | |
6042 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6043 | } | |
6044 | arg3 = static_cast< wxBitmapType >(val3); | |
6045 | if (obj3) { | |
6046 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6047 | if (!SWIG_IsOK(res4)) { | |
6048 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6049 | } |
554f62e9 RD |
6050 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6051 | } | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); | |
6055 | wxPyEndAllowThreads(__tstate); | |
6056 | if (PyErr_Occurred()) SWIG_fail; | |
6057 | } | |
6058 | { | |
6059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6060 | } | |
6061 | { | |
6062 | if (temp2) | |
6063 | delete arg2; | |
6064 | } | |
6065 | return resultobj; | |
6066 | fail: | |
6067 | { | |
6068 | if (temp2) | |
6069 | delete arg2; | |
6070 | } | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj = 0; | |
6077 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6078 | wxString *arg2 = 0 ; | |
6079 | wxBitmapType arg3 ; | |
6080 | bool result; | |
6081 | void *argp1 = 0 ; | |
6082 | int res1 = 0 ; | |
6083 | bool temp2 = false ; | |
6084 | int val3 ; | |
6085 | int ecode3 = 0 ; | |
6086 | PyObject * obj0 = 0 ; | |
6087 | PyObject * obj1 = 0 ; | |
6088 | PyObject * obj2 = 0 ; | |
6089 | char * kwnames[] = { | |
6090 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6091 | }; | |
6092 | ||
6093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6095 | if (!SWIG_IsOK(res1)) { | |
6096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6097 | } | |
6098 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6099 | { | |
6100 | arg2 = wxString_in_helper(obj1); | |
6101 | if (arg2 == NULL) SWIG_fail; | |
6102 | temp2 = true; | |
6103 | } | |
6104 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6105 | if (!SWIG_IsOK(ecode3)) { | |
6106 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6107 | } | |
6108 | arg3 = static_cast< wxBitmapType >(val3); | |
6109 | { | |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6112 | wxPyEndAllowThreads(__tstate); | |
6113 | if (PyErr_Occurred()) SWIG_fail; | |
6114 | } | |
6115 | { | |
6116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6117 | } | |
6118 | { | |
6119 | if (temp2) | |
6120 | delete arg2; | |
6121 | } | |
6122 | return resultobj; | |
6123 | fail: | |
6124 | { | |
6125 | if (temp2) | |
6126 | delete arg2; | |
6127 | } | |
6128 | return NULL; | |
d04418a7 RD |
6129 | } |
6130 | ||
6131 | ||
554f62e9 RD |
6132 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6133 | PyObject *resultobj = 0; | |
6134 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6135 | wxPalette *result = 0 ; | |
6136 | void *argp1 = 0 ; | |
6137 | int res1 = 0 ; | |
6138 | PyObject *swig_obj[1] ; | |
6139 | ||
6140 | if (!args) SWIG_fail; | |
6141 | swig_obj[0] = args; | |
6142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6143 | if (!SWIG_IsOK(res1)) { | |
6144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6145 | } | |
6146 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6147 | { | |
6148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6149 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6161 | PyObject *resultobj = 0; | |
6162 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6163 | wxPalette *arg2 = 0 ; | |
6164 | void *argp1 = 0 ; | |
6165 | int res1 = 0 ; | |
6166 | void *argp2 = 0 ; | |
6167 | int res2 = 0 ; | |
6168 | PyObject * obj0 = 0 ; | |
6169 | PyObject * obj1 = 0 ; | |
6170 | char * kwnames[] = { | |
6171 | (char *) "self",(char *) "palette", NULL | |
6172 | }; | |
6173 | ||
6174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6176 | if (!SWIG_IsOK(res1)) { | |
6177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6178 | } | |
6179 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6180 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6181 | if (!SWIG_IsOK(res2)) { | |
6182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6183 | } | |
6184 | if (!argp2) { | |
6185 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6186 | } | |
6187 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6188 | { | |
6189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6190 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
6191 | wxPyEndAllowThreads(__tstate); | |
6192 | if (PyErr_Occurred()) SWIG_fail; | |
6193 | } | |
6194 | resultobj = SWIG_Py_Void(); | |
6195 | return resultobj; | |
6196 | fail: | |
6197 | return NULL; | |
6198 | } | |
6199 | ||
6200 | ||
6201 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6202 | PyObject *resultobj = 0; | |
6203 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6204 | wxIcon *arg2 = 0 ; | |
6205 | bool result; | |
6206 | void *argp1 = 0 ; | |
6207 | int res1 = 0 ; | |
6208 | void *argp2 = 0 ; | |
6209 | int res2 = 0 ; | |
6210 | PyObject * obj0 = 0 ; | |
6211 | PyObject * obj1 = 0 ; | |
6212 | char * kwnames[] = { | |
6213 | (char *) "self",(char *) "icon", NULL | |
6214 | }; | |
6215 | ||
6216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6218 | if (!SWIG_IsOK(res1)) { | |
6219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6220 | } | |
6221 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6222 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6223 | if (!SWIG_IsOK(res2)) { | |
6224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6225 | } | |
6226 | if (!argp2) { | |
6227 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6228 | } | |
6229 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6230 | { | |
6231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6232 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
6233 | wxPyEndAllowThreads(__tstate); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | { | |
6237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6238 | } | |
6239 | return resultobj; | |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
6245 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6246 | PyObject *resultobj = 0; | |
6247 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6248 | int arg2 ; | |
6249 | void *argp1 = 0 ; | |
6250 | int res1 = 0 ; | |
6251 | int val2 ; | |
6252 | int ecode2 = 0 ; | |
6253 | PyObject * obj0 = 0 ; | |
6254 | PyObject * obj1 = 0 ; | |
6255 | char * kwnames[] = { | |
6256 | (char *) "self",(char *) "height", NULL | |
6257 | }; | |
6258 | ||
6259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6261 | if (!SWIG_IsOK(res1)) { | |
6262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6263 | } | |
6264 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6265 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6266 | if (!SWIG_IsOK(ecode2)) { | |
6267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6268 | } | |
6269 | arg2 = static_cast< int >(val2); | |
6270 | { | |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | (arg1)->SetHeight(arg2); | |
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | resultobj = SWIG_Py_Void(); | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | return NULL; | |
6280 | } | |
6281 | ||
6282 | ||
6283 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6284 | PyObject *resultobj = 0; | |
6285 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6286 | int arg2 ; | |
6287 | void *argp1 = 0 ; | |
6288 | int res1 = 0 ; | |
6289 | int val2 ; | |
6290 | int ecode2 = 0 ; | |
6291 | PyObject * obj0 = 0 ; | |
6292 | PyObject * obj1 = 0 ; | |
6293 | char * kwnames[] = { | |
6294 | (char *) "self",(char *) "width", NULL | |
6295 | }; | |
6296 | ||
6297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6299 | if (!SWIG_IsOK(res1)) { | |
6300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6301 | } | |
6302 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6303 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6304 | if (!SWIG_IsOK(ecode2)) { | |
6305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6306 | } | |
6307 | arg2 = static_cast< int >(val2); | |
6308 | { | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | (arg1)->SetWidth(arg2); | |
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | resultobj = SWIG_Py_Void(); | |
6315 | return resultobj; | |
6316 | fail: | |
6317 | return NULL; | |
6318 | } | |
6319 | ||
6320 | ||
6321 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6322 | PyObject *resultobj = 0; | |
6323 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6324 | int arg2 ; | |
6325 | void *argp1 = 0 ; | |
6326 | int res1 = 0 ; | |
6327 | int val2 ; | |
6328 | int ecode2 = 0 ; | |
6329 | PyObject * obj0 = 0 ; | |
6330 | PyObject * obj1 = 0 ; | |
6331 | char * kwnames[] = { | |
6332 | (char *) "self",(char *) "depth", NULL | |
6333 | }; | |
6334 | ||
6335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6337 | if (!SWIG_IsOK(res1)) { | |
6338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6339 | } | |
6340 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6341 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6342 | if (!SWIG_IsOK(ecode2)) { | |
6343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6344 | } | |
6345 | arg2 = static_cast< int >(val2); | |
6346 | { | |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | (arg1)->SetDepth(arg2); | |
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | resultobj = SWIG_Py_Void(); | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj = 0; | |
6361 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6362 | wxSize *arg2 = 0 ; | |
6363 | void *argp1 = 0 ; | |
6364 | int res1 = 0 ; | |
6365 | wxSize temp2 ; | |
6366 | PyObject * obj0 = 0 ; | |
6367 | PyObject * obj1 = 0 ; | |
6368 | char * kwnames[] = { | |
6369 | (char *) "self",(char *) "size", NULL | |
6370 | }; | |
6371 | ||
6372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6374 | if (!SWIG_IsOK(res1)) { | |
6375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6376 | } | |
6377 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6378 | { | |
6379 | arg2 = &temp2; | |
6380 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6381 | } | |
6382 | { | |
6383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6384 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
6388 | resultobj = SWIG_Py_Void(); | |
6389 | return resultobj; | |
6390 | fail: | |
6391 | return NULL; | |
6392 | } | |
6393 | ||
6394 | ||
6395 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6396 | PyObject *resultobj = 0; | |
6397 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6398 | wxCursor *arg2 = 0 ; | |
6399 | bool result; | |
6400 | void *argp1 = 0 ; | |
6401 | int res1 = 0 ; | |
6402 | void *argp2 = 0 ; | |
6403 | int res2 = 0 ; | |
6404 | PyObject * obj0 = 0 ; | |
6405 | PyObject * obj1 = 0 ; | |
6406 | char * kwnames[] = { | |
6407 | (char *) "self",(char *) "cursor", NULL | |
6408 | }; | |
6409 | ||
6410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
6411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6412 | if (!SWIG_IsOK(res1)) { | |
6413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6414 | } | |
6415 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6416 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
6417 | if (!SWIG_IsOK(res2)) { | |
6418 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6419 | } | |
6420 | if (!argp2) { | |
6421 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6422 | } | |
6423 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
6424 | { | |
6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6426 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | { | |
6431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj = 0; | |
6441 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6442 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6443 | bool result; | |
6444 | void *argp1 = 0 ; | |
6445 | int res1 = 0 ; | |
6446 | void *argp2 = 0 ; | |
6447 | int res2 = 0 ; | |
6448 | PyObject * obj0 = 0 ; | |
6449 | PyObject * obj1 = 0 ; | |
6450 | char * kwnames[] = { | |
6451 | (char *) "self",(char *) "other", NULL | |
6452 | }; | |
6453 | ||
6454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6456 | if (!SWIG_IsOK(res1)) { | |
6457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6458 | } | |
6459 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6460 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6461 | if (!SWIG_IsOK(res2)) { | |
6462 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6463 | } | |
6464 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6465 | { | |
6466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6467 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
6468 | wxPyEndAllowThreads(__tstate); | |
6469 | if (PyErr_Occurred()) SWIG_fail; | |
6470 | } | |
6471 | { | |
6472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6473 | } | |
6474 | return resultobj; | |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6481 | PyObject *resultobj = 0; | |
6482 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6483 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6484 | bool result; | |
6485 | void *argp1 = 0 ; | |
6486 | int res1 = 0 ; | |
6487 | void *argp2 = 0 ; | |
6488 | int res2 = 0 ; | |
6489 | PyObject * obj0 = 0 ; | |
6490 | PyObject * obj1 = 0 ; | |
6491 | char * kwnames[] = { | |
6492 | (char *) "self",(char *) "other", NULL | |
6493 | }; | |
6494 | ||
6495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6497 | if (!SWIG_IsOK(res1)) { | |
6498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6499 | } | |
6500 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6501 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6502 | if (!SWIG_IsOK(res2)) { | |
6503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6504 | } | |
6505 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | { | |
6513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6514 | } | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | return NULL; | |
d55e5bfc RD |
6518 | } |
6519 | ||
6520 | ||
554f62e9 RD |
6521 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6522 | PyObject *obj; | |
6523 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6524 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
6525 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6526 | } |
6527 | ||
554f62e9 RD |
6528 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6529 | return SWIG_Python_InitShadowInstance(args); | |
093d3ff1 RD |
6530 | } |
6531 | ||
554f62e9 RD |
6532 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6533 | PyObject *resultobj = 0; | |
6534 | wxBitmap *arg1 = 0 ; | |
6535 | wxColour const &arg2_defvalue = wxNullColour ; | |
6536 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6537 | wxMask *result = 0 ; | |
6538 | void *argp1 = 0 ; | |
6539 | int res1 = 0 ; | |
6540 | wxColour temp2 ; | |
6541 | PyObject * obj0 = 0 ; | |
6542 | PyObject * obj1 = 0 ; | |
6543 | char * kwnames[] = { | |
6544 | (char *) "bitmap",(char *) "colour", NULL | |
6545 | }; | |
6546 | ||
6547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6548 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6549 | if (!SWIG_IsOK(res1)) { | |
6550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6551 | } | |
6552 | if (!argp1) { | |
6553 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6554 | } | |
6555 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6556 | if (obj1) { | |
d55e5bfc | 6557 | { |
554f62e9 RD |
6558 | arg2 = &temp2; |
6559 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 6560 | } |
554f62e9 RD |
6561 | } |
6562 | { | |
6563 | if (!wxPyCheckForApp()) SWIG_fail; | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
6566 | wxPyEndAllowThreads(__tstate); | |
6567 | if (PyErr_Occurred()) SWIG_fail; | |
6568 | } | |
6569 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
6570 | return resultobj; | |
6571 | fail: | |
6572 | return NULL; | |
d55e5bfc RD |
6573 | } |
6574 | ||
6575 | ||
554f62e9 RD |
6576 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6577 | PyObject *resultobj = 0; | |
6578 | wxMask *arg1 = (wxMask *) 0 ; | |
6579 | void *argp1 = 0 ; | |
6580 | int res1 = 0 ; | |
6581 | PyObject *swig_obj[1] ; | |
6582 | ||
6583 | if (!args) SWIG_fail; | |
6584 | swig_obj[0] = args; | |
6585 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6586 | if (!SWIG_IsOK(res1)) { | |
6587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
6588 | } | |
6589 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
6590 | { | |
6591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6592 | delete arg1; | |
d55e5bfc | 6593 | |
554f62e9 RD |
6594 | wxPyEndAllowThreads(__tstate); |
6595 | if (PyErr_Occurred()) SWIG_fail; | |
6596 | } | |
6597 | resultobj = SWIG_Py_Void(); | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6605 | PyObject *obj; | |
6606 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6607 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
6608 | return SWIG_Py_Void(); | |
6609 | } | |
6610 | ||
6611 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6612 | return SWIG_Python_InitShadowInstance(args); | |
6613 | } | |
6614 | ||
6615 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6616 | PyObject *resultobj = 0; | |
6617 | wxString *arg1 = 0 ; | |
6618 | wxBitmapType arg2 ; | |
6619 | int arg3 = (int) -1 ; | |
6620 | int arg4 = (int) -1 ; | |
6621 | wxIcon *result = 0 ; | |
6622 | bool temp1 = false ; | |
6623 | int val2 ; | |
6624 | int ecode2 = 0 ; | |
6625 | int val3 ; | |
6626 | int ecode3 = 0 ; | |
6627 | int val4 ; | |
6628 | int ecode4 = 0 ; | |
6629 | PyObject * obj0 = 0 ; | |
6630 | PyObject * obj1 = 0 ; | |
6631 | PyObject * obj2 = 0 ; | |
6632 | PyObject * obj3 = 0 ; | |
6633 | char * kwnames[] = { | |
6634 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
6635 | }; | |
6636 | ||
6637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6638 | { | |
6639 | arg1 = wxString_in_helper(obj0); | |
6640 | if (arg1 == NULL) SWIG_fail; | |
6641 | temp1 = true; | |
6642 | } | |
6643 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6644 | if (!SWIG_IsOK(ecode2)) { | |
6645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6646 | } | |
6647 | arg2 = static_cast< wxBitmapType >(val2); | |
6648 | if (obj2) { | |
6649 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6650 | if (!SWIG_IsOK(ecode3)) { | |
6651 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
6652 | } | |
6653 | arg3 = static_cast< int >(val3); | |
6654 | } | |
6655 | if (obj3) { | |
6656 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6657 | if (!SWIG_IsOK(ecode4)) { | |
6658 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
6659 | } | |
6660 | arg4 = static_cast< int >(val4); | |
6661 | } | |
6662 | { | |
6663 | if (!wxPyCheckForApp()) SWIG_fail; | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
6666 | wxPyEndAllowThreads(__tstate); | |
6667 | if (PyErr_Occurred()) SWIG_fail; | |
6668 | } | |
6669 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
6670 | { | |
6671 | if (temp1) | |
6672 | delete arg1; | |
6673 | } | |
6674 | return resultobj; | |
6675 | fail: | |
6676 | { | |
6677 | if (temp1) | |
6678 | delete arg1; | |
6679 | } | |
6680 | return NULL; | |
d55e5bfc RD |
6681 | } |
6682 | ||
6683 | ||
554f62e9 RD |
6684 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6685 | PyObject *resultobj = 0; | |
6686 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6687 | void *argp1 = 0 ; | |
6688 | int res1 = 0 ; | |
6689 | PyObject *swig_obj[1] ; | |
6690 | ||
6691 | if (!args) SWIG_fail; | |
6692 | swig_obj[0] = args; | |
6693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
6694 | if (!SWIG_IsOK(res1)) { | |
6695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6696 | } | |
6697 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | delete arg1; | |
d55e5bfc | 6701 | |
554f62e9 RD |
6702 | wxPyEndAllowThreads(__tstate); |
6703 | if (PyErr_Occurred()) SWIG_fail; | |
6704 | } | |
6705 | resultobj = SWIG_Py_Void(); | |
6706 | return resultobj; | |
6707 | fail: | |
6708 | return NULL; | |
d55e5bfc RD |
6709 | } |
6710 | ||
6711 | ||
554f62e9 RD |
6712 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6713 | PyObject *resultobj = 0; | |
6714 | wxIcon *result = 0 ; | |
6715 | ||
6716 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
6717 | { | |
6718 | if (!wxPyCheckForApp()) SWIG_fail; | |
6719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6720 | result = (wxIcon *)new wxIcon(); | |
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) SWIG_fail; | |
6723 | } | |
6724 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6725 | return resultobj; | |
6726 | fail: | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
6731 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6732 | PyObject *resultobj = 0; | |
6733 | wxIconLocation *arg1 = 0 ; | |
6734 | wxIcon *result = 0 ; | |
6735 | void *argp1 = 0 ; | |
6736 | int res1 = 0 ; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | char * kwnames[] = { | |
6739 | (char *) "loc", NULL | |
6740 | }; | |
6741 | ||
6742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
6743 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
6744 | if (!SWIG_IsOK(res1)) { | |
6745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6746 | } | |
6747 | if (!argp1) { | |
6748 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6749 | } | |
6750 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
6751 | { | |
6752 | if (!wxPyCheckForApp()) SWIG_fail; | |
6753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6754 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
6755 | wxPyEndAllowThreads(__tstate); | |
6756 | if (PyErr_Occurred()) SWIG_fail; | |
6757 | } | |
6758 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6759 | return resultobj; | |
6760 | fail: | |
6761 | return NULL; | |
6762 | } | |
6763 | ||
6764 | ||
6765 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6766 | PyObject *resultobj = 0; | |
6767 | wxBitmap *arg1 = 0 ; | |
6768 | wxIcon *result = 0 ; | |
6769 | void *argp1 = 0 ; | |
6770 | int res1 = 0 ; | |
6771 | PyObject * obj0 = 0 ; | |
6772 | char * kwnames[] = { | |
6773 | (char *) "bmp", NULL | |
6774 | }; | |
6775 | ||
6776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
6777 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6778 | if (!SWIG_IsOK(res1)) { | |
6779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6780 | } | |
6781 | if (!argp1) { | |
6782 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6783 | } | |
6784 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6785 | { | |
6786 | if (!wxPyCheckForApp()) SWIG_fail; | |
6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6788 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6793 | return resultobj; | |
6794 | fail: | |
6795 | return NULL; | |
d55e5bfc RD |
6796 | } |
6797 | ||
6798 | ||
554f62e9 RD |
6799 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6800 | PyObject *resultobj = 0; | |
6801 | PyObject *arg1 = (PyObject *) 0 ; | |
6802 | wxIcon *result = 0 ; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | char * kwnames[] = { | |
6805 | (char *) "listOfStrings", NULL | |
6806 | }; | |
6807 | ||
6808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6809 | arg1 = obj0; | |
6810 | { | |
6811 | if (!wxPyCheckForApp()) SWIG_fail; | |
6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6813 | result = (wxIcon *)new_wxIcon(arg1); | |
6814 | wxPyEndAllowThreads(__tstate); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | } | |
6817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6818 | return resultobj; | |
6819 | fail: | |
6820 | return NULL; | |
6821 | } | |
6822 | ||
6823 | ||
6824 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6825 | PyObject *resultobj = 0; | |
6826 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6827 | wxString *arg2 = 0 ; | |
6828 | wxBitmapType arg3 ; | |
6829 | bool result; | |
6830 | void *argp1 = 0 ; | |
6831 | int res1 = 0 ; | |
6832 | bool temp2 = false ; | |
6833 | int val3 ; | |
6834 | int ecode3 = 0 ; | |
6835 | PyObject * obj0 = 0 ; | |
6836 | PyObject * obj1 = 0 ; | |
6837 | PyObject * obj2 = 0 ; | |
6838 | char * kwnames[] = { | |
6839 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6840 | }; | |
6841 | ||
6842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6844 | if (!SWIG_IsOK(res1)) { | |
6845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6846 | } | |
6847 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6848 | { | |
6849 | arg2 = wxString_in_helper(obj1); | |
6850 | if (arg2 == NULL) SWIG_fail; | |
6851 | temp2 = true; | |
6852 | } | |
6853 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6854 | if (!SWIG_IsOK(ecode3)) { | |
6855 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6856 | } | |
6857 | arg3 = static_cast< wxBitmapType >(val3); | |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6861 | wxPyEndAllowThreads(__tstate); | |
6862 | if (PyErr_Occurred()) SWIG_fail; | |
6863 | } | |
6864 | { | |
6865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6866 | } | |
6867 | { | |
6868 | if (temp2) | |
6869 | delete arg2; | |
6870 | } | |
6871 | return resultobj; | |
6872 | fail: | |
6873 | { | |
6874 | if (temp2) | |
6875 | delete arg2; | |
6876 | } | |
6877 | return NULL; | |
d55e5bfc RD |
6878 | } |
6879 | ||
6880 | ||
554f62e9 RD |
6881 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6882 | PyObject *resultobj = 0; | |
6883 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6884 | long result; | |
6885 | void *argp1 = 0 ; | |
6886 | int res1 = 0 ; | |
6887 | PyObject *swig_obj[1] ; | |
6888 | ||
6889 | if (!args) SWIG_fail; | |
6890 | swig_obj[0] = args; | |
6891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6892 | if (!SWIG_IsOK(res1)) { | |
6893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6894 | } | |
6895 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6896 | { | |
6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6898 | result = (long)(arg1)->GetHandle(); | |
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj = 0; | |
6911 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6912 | long arg2 ; | |
6913 | void *argp1 = 0 ; | |
6914 | int res1 = 0 ; | |
6915 | long val2 ; | |
6916 | int ecode2 = 0 ; | |
6917 | PyObject * obj0 = 0 ; | |
6918 | PyObject * obj1 = 0 ; | |
6919 | char * kwnames[] = { | |
6920 | (char *) "self",(char *) "handle", NULL | |
6921 | }; | |
6922 | ||
6923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6925 | if (!SWIG_IsOK(res1)) { | |
6926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6927 | } | |
6928 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6929 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6930 | if (!SWIG_IsOK(ecode2)) { | |
6931 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6932 | } | |
6933 | arg2 = static_cast< long >(val2); | |
6934 | { | |
6935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6936 | wxIcon_SetHandle(arg1,arg2); | |
6937 | wxPyEndAllowThreads(__tstate); | |
6938 | if (PyErr_Occurred()) SWIG_fail; | |
6939 | } | |
6940 | resultobj = SWIG_Py_Void(); | |
6941 | return resultobj; | |
6942 | fail: | |
6943 | return NULL; | |
d55e5bfc RD |
6944 | } |
6945 | ||
6946 | ||
554f62e9 RD |
6947 | SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6948 | PyObject *resultobj = 0; | |
6949 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6950 | bool result; | |
6951 | void *argp1 = 0 ; | |
6952 | int res1 = 0 ; | |
6953 | PyObject *swig_obj[1] ; | |
6954 | ||
6955 | if (!args) SWIG_fail; | |
6956 | swig_obj[0] = args; | |
6957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6958 | if (!SWIG_IsOK(res1)) { | |
6959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6960 | } | |
6961 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6962 | { | |
6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6964 | result = (bool)(arg1)->Ok(); | |
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | { | |
6969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6970 | } | |
6971 | return resultobj; | |
6972 | fail: | |
6973 | return NULL; | |
d55e5bfc RD |
6974 | } |
6975 | ||
6976 | ||
554f62e9 RD |
6977 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6978 | PyObject *resultobj = 0; | |
6979 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6980 | int result; | |
6981 | void *argp1 = 0 ; | |
6982 | int res1 = 0 ; | |
6983 | PyObject *swig_obj[1] ; | |
6984 | ||
6985 | if (!args) SWIG_fail; | |
6986 | swig_obj[0] = args; | |
6987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6988 | if (!SWIG_IsOK(res1)) { | |
6989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6990 | } | |
6991 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6992 | { | |
6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6994 | result = (int)(arg1)->GetWidth(); | |
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
c1cb24a4 RD |
7002 | } |
7003 | ||
7004 | ||
554f62e9 RD |
7005 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7006 | PyObject *resultobj = 0; | |
7007 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7008 | int result; | |
7009 | void *argp1 = 0 ; | |
7010 | int res1 = 0 ; | |
7011 | PyObject *swig_obj[1] ; | |
7012 | ||
7013 | if (!args) SWIG_fail; | |
7014 | swig_obj[0] = args; | |
7015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7016 | if (!SWIG_IsOK(res1)) { | |
7017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7018 | } | |
7019 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7020 | { | |
7021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7022 | result = (int)(arg1)->GetHeight(); | |
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
7026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | return NULL; | |
c1cb24a4 RD |
7030 | } |
7031 | ||
7032 | ||
554f62e9 RD |
7033 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7034 | PyObject *resultobj = 0; | |
7035 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7036 | int result; | |
7037 | void *argp1 = 0 ; | |
7038 | int res1 = 0 ; | |
7039 | PyObject *swig_obj[1] ; | |
7040 | ||
7041 | if (!args) SWIG_fail; | |
7042 | swig_obj[0] = args; | |
7043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7044 | if (!SWIG_IsOK(res1)) { | |
7045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7046 | } | |
7047 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7048 | { | |
7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7050 | result = (int)(arg1)->GetDepth(); | |
7051 | wxPyEndAllowThreads(__tstate); | |
7052 | if (PyErr_Occurred()) SWIG_fail; | |
7053 | } | |
7054 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7055 | return resultobj; | |
7056 | fail: | |
7057 | return NULL; | |
7058 | } | |
7059 | ||
7060 | ||
7061 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7062 | PyObject *resultobj = 0; | |
7063 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7064 | int arg2 ; | |
7065 | void *argp1 = 0 ; | |
7066 | int res1 = 0 ; | |
7067 | int val2 ; | |
7068 | int ecode2 = 0 ; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | PyObject * obj1 = 0 ; | |
7071 | char * kwnames[] = { | |
7072 | (char *) "self",(char *) "w", NULL | |
7073 | }; | |
7074 | ||
7075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7077 | if (!SWIG_IsOK(res1)) { | |
7078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7079 | } | |
7080 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7082 | if (!SWIG_IsOK(ecode2)) { | |
7083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
7084 | } | |
7085 | arg2 = static_cast< int >(val2); | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | (arg1)->SetWidth(arg2); | |
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
7092 | resultobj = SWIG_Py_Void(); | |
7093 | return resultobj; | |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
7099 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7100 | PyObject *resultobj = 0; | |
7101 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7102 | int arg2 ; | |
7103 | void *argp1 = 0 ; | |
7104 | int res1 = 0 ; | |
7105 | int val2 ; | |
7106 | int ecode2 = 0 ; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | PyObject * obj1 = 0 ; | |
7109 | char * kwnames[] = { | |
7110 | (char *) "self",(char *) "h", NULL | |
7111 | }; | |
7112 | ||
7113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
7114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7115 | if (!SWIG_IsOK(res1)) { | |
7116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7117 | } | |
7118 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7119 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7120 | if (!SWIG_IsOK(ecode2)) { | |
7121 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
7122 | } | |
7123 | arg2 = static_cast< int >(val2); | |
7124 | { | |
7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7126 | (arg1)->SetHeight(arg2); | |
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | resultobj = SWIG_Py_Void(); | |
7131 | return resultobj; | |
7132 | fail: | |
7133 | return NULL; | |
7134 | } | |
7135 | ||
7136 | ||
7137 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7138 | PyObject *resultobj = 0; | |
7139 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7140 | int arg2 ; | |
7141 | void *argp1 = 0 ; | |
7142 | int res1 = 0 ; | |
7143 | int val2 ; | |
7144 | int ecode2 = 0 ; | |
7145 | PyObject * obj0 = 0 ; | |
7146 | PyObject * obj1 = 0 ; | |
7147 | char * kwnames[] = { | |
7148 | (char *) "self",(char *) "d", NULL | |
7149 | }; | |
7150 | ||
7151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7153 | if (!SWIG_IsOK(res1)) { | |
7154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7155 | } | |
7156 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7157 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7158 | if (!SWIG_IsOK(ecode2)) { | |
7159 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
7160 | } | |
7161 | arg2 = static_cast< int >(val2); | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | (arg1)->SetDepth(arg2); | |
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | } | |
7168 | resultobj = SWIG_Py_Void(); | |
7169 | return resultobj; | |
7170 | fail: | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj = 0; | |
7177 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7178 | wxSize *arg2 = 0 ; | |
7179 | void *argp1 = 0 ; | |
7180 | int res1 = 0 ; | |
7181 | wxSize temp2 ; | |
7182 | PyObject * obj0 = 0 ; | |
7183 | PyObject * obj1 = 0 ; | |
7184 | char * kwnames[] = { | |
7185 | (char *) "self",(char *) "size", NULL | |
7186 | }; | |
7187 | ||
7188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7190 | if (!SWIG_IsOK(res1)) { | |
7191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7192 | } | |
7193 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7194 | { | |
7195 | arg2 = &temp2; | |
7196 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7197 | } | |
7198 | { | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | (arg1)->SetSize((wxSize const &)*arg2); | |
7201 | wxPyEndAllowThreads(__tstate); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
7204 | resultobj = SWIG_Py_Void(); | |
7205 | return resultobj; | |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
7211 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7212 | PyObject *resultobj = 0; | |
7213 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7214 | wxBitmap *arg2 = 0 ; | |
7215 | void *argp1 = 0 ; | |
7216 | int res1 = 0 ; | |
7217 | void *argp2 = 0 ; | |
7218 | int res2 = 0 ; | |
7219 | PyObject * obj0 = 0 ; | |
7220 | PyObject * obj1 = 0 ; | |
7221 | char * kwnames[] = { | |
7222 | (char *) "self",(char *) "bmp", NULL | |
7223 | }; | |
7224 | ||
7225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
7226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7227 | if (!SWIG_IsOK(res1)) { | |
7228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7229 | } | |
7230 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7231 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
7232 | if (!SWIG_IsOK(res2)) { | |
7233 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
7234 | } | |
7235 | if (!argp2) { | |
7236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
7237 | } | |
7238 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7239 | { | |
7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7241 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | resultobj = SWIG_Py_Void(); | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
d55e5bfc RD |
7249 | } |
7250 | ||
7251 | ||
554f62e9 RD |
7252 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7253 | PyObject *obj; | |
7254 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7255 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
7256 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7257 | } |
7258 | ||
554f62e9 RD |
7259 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7260 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
7261 | } |
7262 | ||
554f62e9 RD |
7263 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7264 | PyObject *resultobj = 0; | |
7265 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
7266 | int arg2 = (int) 0 ; | |
7267 | wxIconLocation *result = 0 ; | |
7268 | bool temp1 = false ; | |
7269 | int val2 ; | |
7270 | int ecode2 = 0 ; | |
7271 | PyObject * obj0 = 0 ; | |
7272 | PyObject * obj1 = 0 ; | |
7273 | char * kwnames[] = { | |
7274 | (char *) "filename",(char *) "num", NULL | |
7275 | }; | |
7276 | ||
7277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
7278 | if (obj0) { | |
d55e5bfc | 7279 | { |
554f62e9 RD |
7280 | arg1 = wxString_in_helper(obj0); |
7281 | if (arg1 == NULL) SWIG_fail; | |
7282 | temp1 = true; | |
d55e5bfc | 7283 | } |
554f62e9 RD |
7284 | } |
7285 | if (obj1) { | |
7286 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7287 | if (!SWIG_IsOK(ecode2)) { | |
7288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
7289 | } | |
7290 | arg2 = static_cast< int >(val2); | |
7291 | } | |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
7295 | wxPyEndAllowThreads(__tstate); | |
7296 | if (PyErr_Occurred()) SWIG_fail; | |
7297 | } | |
7298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
7299 | { | |
7300 | if (temp1) | |
7301 | delete arg1; | |
7302 | } | |
7303 | return resultobj; | |
7304 | fail: | |
7305 | { | |
7306 | if (temp1) | |
7307 | delete arg1; | |
7308 | } | |
7309 | return NULL; | |
d55e5bfc RD |
7310 | } |
7311 | ||
7312 | ||
554f62e9 RD |
7313 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7314 | PyObject *resultobj = 0; | |
7315 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7316 | void *argp1 = 0 ; | |
7317 | int res1 = 0 ; | |
7318 | PyObject *swig_obj[1] ; | |
7319 | ||
7320 | if (!args) SWIG_fail; | |
7321 | swig_obj[0] = args; | |
7322 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
7323 | if (!SWIG_IsOK(res1)) { | |
7324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7325 | } | |
7326 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7327 | { | |
7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7329 | delete arg1; | |
d55e5bfc | 7330 | |
554f62e9 RD |
7331 | wxPyEndAllowThreads(__tstate); |
7332 | if (PyErr_Occurred()) SWIG_fail; | |
7333 | } | |
7334 | resultobj = SWIG_Py_Void(); | |
7335 | return resultobj; | |
7336 | fail: | |
7337 | return NULL; | |
d55e5bfc RD |
7338 | } |
7339 | ||
7340 | ||
554f62e9 RD |
7341 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7342 | PyObject *resultobj = 0; | |
7343 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7344 | bool result; | |
7345 | void *argp1 = 0 ; | |
7346 | int res1 = 0 ; | |
7347 | PyObject *swig_obj[1] ; | |
7348 | ||
7349 | if (!args) SWIG_fail; | |
7350 | swig_obj[0] = args; | |
7351 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7352 | if (!SWIG_IsOK(res1)) { | |
7353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7354 | } | |
7355 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7356 | { | |
7357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7358 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
7359 | wxPyEndAllowThreads(__tstate); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
7361 | } | |
7362 | { | |
7363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7364 | } | |
7365 | return resultobj; | |
7366 | fail: | |
7367 | return NULL; | |
7368 | } | |
7369 | ||
7370 | ||
7371 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7372 | PyObject *resultobj = 0; | |
7373 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7374 | wxString *arg2 = 0 ; | |
7375 | void *argp1 = 0 ; | |
7376 | int res1 = 0 ; | |
7377 | bool temp2 = false ; | |
7378 | PyObject * obj0 = 0 ; | |
7379 | PyObject * obj1 = 0 ; | |
7380 | char * kwnames[] = { | |
7381 | (char *) "self",(char *) "filename", NULL | |
7382 | }; | |
7383 | ||
7384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
7385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7386 | if (!SWIG_IsOK(res1)) { | |
7387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7388 | } | |
7389 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7390 | { | |
7391 | arg2 = wxString_in_helper(obj1); | |
7392 | if (arg2 == NULL) SWIG_fail; | |
7393 | temp2 = true; | |
7394 | } | |
7395 | { | |
7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7397 | (arg1)->SetFileName((wxString const &)*arg2); | |
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | resultobj = SWIG_Py_Void(); | |
7402 | { | |
7403 | if (temp2) | |
7404 | delete arg2; | |
7405 | } | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | { | |
7409 | if (temp2) | |
7410 | delete arg2; | |
7411 | } | |
7412 | return NULL; | |
d55e5bfc RD |
7413 | } |
7414 | ||
7415 | ||
554f62e9 RD |
7416 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7417 | PyObject *resultobj = 0; | |
7418 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7419 | wxString *result = 0 ; | |
7420 | void *argp1 = 0 ; | |
7421 | int res1 = 0 ; | |
7422 | PyObject *swig_obj[1] ; | |
7423 | ||
7424 | if (!args) SWIG_fail; | |
7425 | swig_obj[0] = args; | |
7426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7427 | if (!SWIG_IsOK(res1)) { | |
7428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7429 | } | |
7430 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7431 | { | |
7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7433 | { |
554f62e9 RD |
7434 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
7435 | result = (wxString *) &_result_ref; | |
093d3ff1 | 7436 | } |
554f62e9 RD |
7437 | wxPyEndAllowThreads(__tstate); |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | { | |
7441 | #if wxUSE_UNICODE | |
7442 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7443 | #else | |
7444 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7445 | #endif | |
7446 | } | |
7447 | return resultobj; | |
7448 | fail: | |
7449 | return NULL; | |
7450 | } | |
7451 | ||
7452 | ||
7453 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7454 | PyObject *resultobj = 0; | |
7455 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7456 | int arg2 ; | |
7457 | void *argp1 = 0 ; | |
7458 | int res1 = 0 ; | |
7459 | int val2 ; | |
7460 | int ecode2 = 0 ; | |
7461 | PyObject * obj0 = 0 ; | |
7462 | PyObject * obj1 = 0 ; | |
7463 | char * kwnames[] = { | |
7464 | (char *) "self",(char *) "num", NULL | |
7465 | }; | |
7466 | ||
7467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
7468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7469 | if (!SWIG_IsOK(res1)) { | |
7470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7471 | } | |
7472 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7473 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7474 | if (!SWIG_IsOK(ecode2)) { | |
7475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
7476 | } | |
7477 | arg2 = static_cast< int >(val2); | |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7480 | wxIconLocation_SetIndex(arg1,arg2); | |
7481 | wxPyEndAllowThreads(__tstate); | |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
7483 | } | |
7484 | resultobj = SWIG_Py_Void(); | |
7485 | return resultobj; | |
7486 | fail: | |
7487 | return NULL; | |
d55e5bfc RD |
7488 | } |
7489 | ||
7490 | ||
554f62e9 RD |
7491 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7492 | PyObject *resultobj = 0; | |
7493 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7494 | int result; | |
7495 | void *argp1 = 0 ; | |
7496 | int res1 = 0 ; | |
7497 | PyObject *swig_obj[1] ; | |
7498 | ||
7499 | if (!args) SWIG_fail; | |
7500 | swig_obj[0] = args; | |
7501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7502 | if (!SWIG_IsOK(res1)) { | |
7503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7504 | } | |
7505 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7506 | { | |
7507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7508 | result = (int)wxIconLocation_GetIndex(arg1); | |
7509 | wxPyEndAllowThreads(__tstate); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7513 | return resultobj; | |
7514 | fail: | |
7515 | return NULL; | |
d55e5bfc RD |
7516 | } |
7517 | ||
7518 | ||
554f62e9 RD |
7519 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7520 | PyObject *obj; | |
7521 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7522 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
7523 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7524 | } |
7525 | ||
554f62e9 RD |
7526 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7527 | return SWIG_Python_InitShadowInstance(args); | |
7528 | } | |
d55e5bfc | 7529 | |
554f62e9 RD |
7530 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7531 | PyObject *resultobj = 0; | |
7532 | wxIconBundle *result = 0 ; | |
7533 | ||
7534 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | result = (wxIconBundle *)new wxIconBundle(); | |
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | return NULL; | |
7545 | } | |
7546 | ||
7547 | ||
7548 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7549 | PyObject *resultobj = 0; | |
7550 | wxString *arg1 = 0 ; | |
7551 | long arg2 ; | |
7552 | wxIconBundle *result = 0 ; | |
7553 | bool temp1 = false ; | |
7554 | long val2 ; | |
7555 | int ecode2 = 0 ; | |
7556 | PyObject * obj0 = 0 ; | |
7557 | PyObject * obj1 = 0 ; | |
7558 | char * kwnames[] = { | |
7559 | (char *) "file",(char *) "type", NULL | |
7560 | }; | |
7561 | ||
7562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
7563 | { | |
7564 | arg1 = wxString_in_helper(obj0); | |
7565 | if (arg1 == NULL) SWIG_fail; | |
7566 | temp1 = true; | |
7567 | } | |
7568 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7569 | if (!SWIG_IsOK(ecode2)) { | |
7570 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
7571 | } | |
7572 | arg2 = static_cast< long >(val2); | |
7573 | { | |
7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7575 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
7579 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7580 | { | |
7581 | if (temp1) | |
7582 | delete arg1; | |
7583 | } | |
7584 | return resultobj; | |
7585 | fail: | |
7586 | { | |
7587 | if (temp1) | |
7588 | delete arg1; | |
7589 | } | |
7590 | return NULL; | |
d55e5bfc RD |
7591 | } |
7592 | ||
7593 | ||
554f62e9 RD |
7594 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7595 | PyObject *resultobj = 0; | |
7596 | wxIcon *arg1 = 0 ; | |
7597 | wxIconBundle *result = 0 ; | |
7598 | void *argp1 = 0 ; | |
7599 | int res1 = 0 ; | |
7600 | PyObject * obj0 = 0 ; | |
7601 | char * kwnames[] = { | |
7602 | (char *) "icon", NULL | |
7603 | }; | |
7604 | ||
7605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
7606 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
7607 | if (!SWIG_IsOK(res1)) { | |
7608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7609 | } | |
7610 | if (!argp1) { | |
7611 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7612 | } | |
7613 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | return NULL; | |
d55e5bfc RD |
7624 | } |
7625 | ||
7626 | ||
554f62e9 RD |
7627 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7628 | PyObject *resultobj = 0; | |
7629 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7630 | void *argp1 = 0 ; | |
7631 | int res1 = 0 ; | |
7632 | PyObject *swig_obj[1] ; | |
7633 | ||
7634 | if (!args) SWIG_fail; | |
7635 | swig_obj[0] = args; | |
7636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
7637 | if (!SWIG_IsOK(res1)) { | |
7638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7639 | } | |
7640 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | delete arg1; | |
d55e5bfc | 7644 | |
554f62e9 RD |
7645 | wxPyEndAllowThreads(__tstate); |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | resultobj = SWIG_Py_Void(); | |
7649 | return resultobj; | |
7650 | fail: | |
7651 | return NULL; | |
7652 | } | |
7653 | ||
7654 | ||
7655 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7656 | PyObject *resultobj = 0; | |
7657 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7658 | wxIcon *arg2 = 0 ; | |
7659 | void *argp1 = 0 ; | |
7660 | int res1 = 0 ; | |
7661 | void *argp2 = 0 ; | |
7662 | int res2 = 0 ; | |
7663 | PyObject * obj0 = 0 ; | |
7664 | PyObject * obj1 = 0 ; | |
7665 | char * kwnames[] = { | |
7666 | (char *) "self",(char *) "icon", NULL | |
7667 | }; | |
7668 | ||
7669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7671 | if (!SWIG_IsOK(res1)) { | |
7672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7673 | } | |
7674 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7675 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
7676 | if (!SWIG_IsOK(res2)) { | |
7677 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7678 | } | |
7679 | if (!argp2) { | |
7680 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7681 | } | |
7682 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
7683 | { | |
7684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7685 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
7686 | wxPyEndAllowThreads(__tstate); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | } | |
7689 | resultobj = SWIG_Py_Void(); | |
7690 | return resultobj; | |
7691 | fail: | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
7696 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7697 | PyObject *resultobj = 0; | |
7698 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7699 | wxString *arg2 = 0 ; | |
7700 | long arg3 ; | |
7701 | void *argp1 = 0 ; | |
7702 | int res1 = 0 ; | |
7703 | bool temp2 = false ; | |
7704 | long val3 ; | |
7705 | int ecode3 = 0 ; | |
7706 | PyObject * obj0 = 0 ; | |
7707 | PyObject * obj1 = 0 ; | |
7708 | PyObject * obj2 = 0 ; | |
7709 | char * kwnames[] = { | |
7710 | (char *) "self",(char *) "file",(char *) "type", NULL | |
7711 | }; | |
7712 | ||
7713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7715 | if (!SWIG_IsOK(res1)) { | |
7716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7717 | } | |
7718 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7719 | { | |
7720 | arg2 = wxString_in_helper(obj1); | |
7721 | if (arg2 == NULL) SWIG_fail; | |
7722 | temp2 = true; | |
7723 | } | |
7724 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7725 | if (!SWIG_IsOK(ecode3)) { | |
7726 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
7727 | } | |
7728 | arg3 = static_cast< long >(val3); | |
7729 | { | |
7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7731 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
7732 | wxPyEndAllowThreads(__tstate); | |
7733 | if (PyErr_Occurred()) SWIG_fail; | |
7734 | } | |
7735 | resultobj = SWIG_Py_Void(); | |
7736 | { | |
7737 | if (temp2) | |
7738 | delete arg2; | |
7739 | } | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | { | |
7743 | if (temp2) | |
7744 | delete arg2; | |
7745 | } | |
7746 | return NULL; | |
7747 | } | |
7748 | ||
7749 | ||
7750 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7751 | PyObject *resultobj = 0; | |
7752 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7753 | wxSize *arg2 = 0 ; | |
7754 | wxIcon *result = 0 ; | |
7755 | void *argp1 = 0 ; | |
7756 | int res1 = 0 ; | |
7757 | wxSize temp2 ; | |
7758 | PyObject * obj0 = 0 ; | |
7759 | PyObject * obj1 = 0 ; | |
7760 | char * kwnames[] = { | |
7761 | (char *) "self",(char *) "size", NULL | |
7762 | }; | |
7763 | ||
7764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7766 | if (!SWIG_IsOK(res1)) { | |
7767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
7768 | } | |
7769 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7770 | { | |
7771 | arg2 = &temp2; | |
7772 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7773 | } | |
7774 | { | |
7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 7776 | { |
554f62e9 RD |
7777 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
7778 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 7779 | } |
554f62e9 RD |
7780 | wxPyEndAllowThreads(__tstate); |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | { | |
7784 | wxIcon* resultptr = new wxIcon(*result); | |
7785 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
7786 | } | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7794 | PyObject *obj; | |
7795 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7796 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
7797 | return SWIG_Py_Void(); | |
7798 | } | |
7799 | ||
7800 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7801 | return SWIG_Python_InitShadowInstance(args); | |
7802 | } | |
7803 | ||
7804 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7805 | PyObject *resultobj = 0; | |
7806 | wxString *arg1 = 0 ; | |
7807 | long arg2 ; | |
7808 | int arg3 = (int) 0 ; | |
7809 | int arg4 = (int) 0 ; | |
7810 | wxCursor *result = 0 ; | |
7811 | bool temp1 = false ; | |
7812 | long val2 ; | |
7813 | int ecode2 = 0 ; | |
7814 | int val3 ; | |
7815 | int ecode3 = 0 ; | |
7816 | int val4 ; | |
7817 | int ecode4 = 0 ; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | PyObject * obj1 = 0 ; | |
7820 | PyObject * obj2 = 0 ; | |
7821 | PyObject * obj3 = 0 ; | |
7822 | char * kwnames[] = { | |
7823 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
7824 | }; | |
7825 | ||
7826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7827 | { | |
7828 | arg1 = wxString_in_helper(obj0); | |
7829 | if (arg1 == NULL) SWIG_fail; | |
7830 | temp1 = true; | |
7831 | } | |
7832 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7833 | if (!SWIG_IsOK(ecode2)) { | |
7834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
7835 | } | |
7836 | arg2 = static_cast< long >(val2); | |
7837 | if (obj2) { | |
7838 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7839 | if (!SWIG_IsOK(ecode3)) { | |
7840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
7841 | } | |
7842 | arg3 = static_cast< int >(val3); | |
7843 | } | |
7844 | if (obj3) { | |
7845 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7846 | if (!SWIG_IsOK(ecode4)) { | |
7847 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
7848 | } | |
7849 | arg4 = static_cast< int >(val4); | |
7850 | } | |
7851 | { | |
7852 | if (!wxPyCheckForApp()) SWIG_fail; | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
7855 | wxPyEndAllowThreads(__tstate); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
7859 | { | |
7860 | if (temp1) | |
7861 | delete arg1; | |
7862 | } | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | { | |
7866 | if (temp1) | |
7867 | delete arg1; | |
7868 | } | |
7869 | return NULL; | |
d55e5bfc RD |
7870 | } |
7871 | ||
7872 | ||
554f62e9 RD |
7873 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7874 | PyObject *resultobj = 0; | |
7875 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7876 | void *argp1 = 0 ; | |
7877 | int res1 = 0 ; | |
7878 | PyObject *swig_obj[1] ; | |
7879 | ||
7880 | if (!args) SWIG_fail; | |
7881 | swig_obj[0] = args; | |
7882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
7883 | if (!SWIG_IsOK(res1)) { | |
7884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7885 | } | |
7886 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7887 | { | |
7888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7889 | delete arg1; | |
d55e5bfc | 7890 | |
554f62e9 RD |
7891 | wxPyEndAllowThreads(__tstate); |
7892 | if (PyErr_Occurred()) SWIG_fail; | |
7893 | } | |
7894 | resultobj = SWIG_Py_Void(); | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
7901 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7902 | PyObject *resultobj = 0; | |
7903 | int arg1 ; | |
7904 | wxCursor *result = 0 ; | |
7905 | int val1 ; | |
7906 | int ecode1 = 0 ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | char * kwnames[] = { | |
7909 | (char *) "id", NULL | |
7910 | }; | |
7911 | ||
7912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
7913 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7914 | if (!SWIG_IsOK(ecode1)) { | |
7915 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
7916 | } | |
7917 | arg1 = static_cast< int >(val1); | |
7918 | { | |
7919 | if (!wxPyCheckForApp()) SWIG_fail; | |
7920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7921 | result = (wxCursor *)new wxCursor(arg1); | |
7922 | wxPyEndAllowThreads(__tstate); | |
7923 | if (PyErr_Occurred()) SWIG_fail; | |
7924 | } | |
7925 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7926 | return resultobj; | |
7927 | fail: | |
7928 | return NULL; | |
7929 | } | |
7930 | ||
7931 | ||
7932 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7933 | PyObject *resultobj = 0; | |
7934 | wxImage *arg1 = 0 ; | |
7935 | wxCursor *result = 0 ; | |
7936 | void *argp1 = 0 ; | |
7937 | int res1 = 0 ; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | char * kwnames[] = { | |
7940 | (char *) "image", NULL | |
7941 | }; | |
7942 | ||
7943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
7944 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
7945 | if (!SWIG_IsOK(res1)) { | |
7946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7947 | } | |
7948 | if (!argp1) { | |
7949 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7950 | } | |
7951 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
7952 | { | |
7953 | if (!wxPyCheckForApp()) SWIG_fail; | |
7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7955 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | return NULL; | |
d55e5bfc RD |
7963 | } |
7964 | ||
7965 | ||
554f62e9 RD |
7966 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7967 | PyObject *resultobj = 0; | |
7968 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7969 | long result; | |
7970 | void *argp1 = 0 ; | |
7971 | int res1 = 0 ; | |
7972 | PyObject *swig_obj[1] ; | |
7973 | ||
7974 | if (!args) SWIG_fail; | |
7975 | swig_obj[0] = args; | |
7976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
7977 | if (!SWIG_IsOK(res1)) { | |
7978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7979 | } | |
7980 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7981 | { | |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7983 | result = (long)(arg1)->GetHandle(); | |
7984 | wxPyEndAllowThreads(__tstate); | |
7985 | if (PyErr_Occurred()) SWIG_fail; | |
7986 | } | |
7987 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7988 | return resultobj; | |
7989 | fail: | |
7990 | return NULL; | |
7991 | } | |
7992 | ||
7993 | ||
7994 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7995 | PyObject *resultobj = 0; | |
7996 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7997 | long arg2 ; | |
7998 | void *argp1 = 0 ; | |
7999 | int res1 = 0 ; | |
8000 | long val2 ; | |
8001 | int ecode2 = 0 ; | |
8002 | PyObject * obj0 = 0 ; | |
8003 | PyObject * obj1 = 0 ; | |
8004 | char * kwnames[] = { | |
8005 | (char *) "self",(char *) "handle", NULL | |
8006 | }; | |
8007 | ||
8008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
8009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8010 | if (!SWIG_IsOK(res1)) { | |
8011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8012 | } | |
8013 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8014 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8015 | if (!SWIG_IsOK(ecode2)) { | |
8016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
8017 | } | |
8018 | arg2 = static_cast< long >(val2); | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | wxCursor_SetHandle(arg1,arg2); | |
8022 | wxPyEndAllowThreads(__tstate); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8025 | resultobj = SWIG_Py_Void(); | |
8026 | return resultobj; | |
8027 | fail: | |
8028 | return NULL; | |
d55e5bfc RD |
8029 | } |
8030 | ||
8031 | ||
554f62e9 RD |
8032 | SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8033 | PyObject *resultobj = 0; | |
8034 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8035 | bool result; | |
8036 | void *argp1 = 0 ; | |
8037 | int res1 = 0 ; | |
8038 | PyObject *swig_obj[1] ; | |
8039 | ||
8040 | if (!args) SWIG_fail; | |
8041 | swig_obj[0] = args; | |
8042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8043 | if (!SWIG_IsOK(res1)) { | |
8044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8045 | } | |
8046 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8047 | { | |
8048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8049 | result = (bool)(arg1)->Ok(); | |
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | { | |
8054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8055 | } | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
d55e5bfc RD |
8059 | } |
8060 | ||
8061 | ||
554f62e9 RD |
8062 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8063 | PyObject *resultobj = 0; | |
8064 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8065 | int result; | |
8066 | void *argp1 = 0 ; | |
8067 | int res1 = 0 ; | |
8068 | PyObject *swig_obj[1] ; | |
8069 | ||
8070 | if (!args) SWIG_fail; | |
8071 | swig_obj[0] = args; | |
8072 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8073 | if (!SWIG_IsOK(res1)) { | |
8074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8075 | } | |
8076 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8077 | { | |
8078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8079 | result = (int)(arg1)->GetWidth(); | |
8080 | wxPyEndAllowThreads(__tstate); | |
8081 | if (PyErr_Occurred()) SWIG_fail; | |
8082 | } | |
8083 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8084 | return resultobj; | |
8085 | fail: | |
8086 | return NULL; | |
d55e5bfc RD |
8087 | } |
8088 | ||
8089 | ||
554f62e9 RD |
8090 | SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8091 | PyObject *resultobj = 0; | |
8092 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8093 | int result; | |
8094 | void *argp1 = 0 ; | |
8095 | int res1 = 0 ; | |
8096 | PyObject *swig_obj[1] ; | |
8097 | ||
8098 | if (!args) SWIG_fail; | |
8099 | swig_obj[0] = args; | |
8100 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8101 | if (!SWIG_IsOK(res1)) { | |
8102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8103 | } | |
8104 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8105 | { | |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | result = (int)(arg1)->GetHeight(); | |
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
d55e5bfc RD |
8115 | } |
8116 | ||
8117 | ||
554f62e9 RD |
8118 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8119 | PyObject *resultobj = 0; | |
8120 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8121 | int result; | |
8122 | void *argp1 = 0 ; | |
8123 | int res1 = 0 ; | |
8124 | PyObject *swig_obj[1] ; | |
8125 | ||
8126 | if (!args) SWIG_fail; | |
8127 | swig_obj[0] = args; | |
8128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8129 | if (!SWIG_IsOK(res1)) { | |
8130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8131 | } | |
8132 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8133 | { | |
8134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8135 | result = (int)(arg1)->GetDepth(); | |
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8140 | return resultobj; | |
8141 | fail: | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj = 0; | |
8148 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8149 | int arg2 ; | |
8150 | void *argp1 = 0 ; | |
8151 | int res1 = 0 ; | |
8152 | int val2 ; | |
8153 | int ecode2 = 0 ; | |
8154 | PyObject * obj0 = 0 ; | |
8155 | PyObject * obj1 = 0 ; | |
8156 | char * kwnames[] = { | |
8157 | (char *) "self",(char *) "w", NULL | |
8158 | }; | |
8159 | ||
8160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
8161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8162 | if (!SWIG_IsOK(res1)) { | |
8163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8164 | } | |
8165 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8166 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8167 | if (!SWIG_IsOK(ecode2)) { | |
8168 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
8169 | } | |
8170 | arg2 = static_cast< int >(val2); | |
8171 | { | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | (arg1)->SetWidth(arg2); | |
8174 | wxPyEndAllowThreads(__tstate); | |
8175 | if (PyErr_Occurred()) SWIG_fail; | |
8176 | } | |
8177 | resultobj = SWIG_Py_Void(); | |
8178 | return resultobj; | |
8179 | fail: | |
8180 | return NULL; | |
8181 | } | |
8182 | ||
8183 | ||
8184 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8185 | PyObject *resultobj = 0; | |
8186 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8187 | int arg2 ; | |
8188 | void *argp1 = 0 ; | |
8189 | int res1 = 0 ; | |
8190 | int val2 ; | |
8191 | int ecode2 = 0 ; | |
8192 | PyObject * obj0 = 0 ; | |
8193 | PyObject * obj1 = 0 ; | |
8194 | char * kwnames[] = { | |
8195 | (char *) "self",(char *) "h", NULL | |
8196 | }; | |
8197 | ||
8198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
8199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8200 | if (!SWIG_IsOK(res1)) { | |
8201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8202 | } | |
8203 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8204 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8205 | if (!SWIG_IsOK(ecode2)) { | |
8206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
8207 | } | |
8208 | arg2 = static_cast< int >(val2); | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | (arg1)->SetHeight(arg2); | |
8212 | wxPyEndAllowThreads(__tstate); | |
8213 | if (PyErr_Occurred()) SWIG_fail; | |
8214 | } | |
8215 | resultobj = SWIG_Py_Void(); | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
8222 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8223 | PyObject *resultobj = 0; | |
8224 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8225 | int arg2 ; | |
8226 | void *argp1 = 0 ; | |
8227 | int res1 = 0 ; | |
8228 | int val2 ; | |
8229 | int ecode2 = 0 ; | |
8230 | PyObject * obj0 = 0 ; | |
8231 | PyObject * obj1 = 0 ; | |
8232 | char * kwnames[] = { | |
8233 | (char *) "self",(char *) "d", NULL | |
8234 | }; | |
8235 | ||
8236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
8237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8238 | if (!SWIG_IsOK(res1)) { | |
8239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8240 | } | |
8241 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8242 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8243 | if (!SWIG_IsOK(ecode2)) { | |
8244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
8245 | } | |
8246 | arg2 = static_cast< int >(val2); | |
8247 | { | |
8248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8249 | (arg1)->SetDepth(arg2); | |
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | resultobj = SWIG_Py_Void(); | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj = 0; | |
8262 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8263 | wxSize *arg2 = 0 ; | |
8264 | void *argp1 = 0 ; | |
8265 | int res1 = 0 ; | |
8266 | wxSize temp2 ; | |
8267 | PyObject * obj0 = 0 ; | |
8268 | PyObject * obj1 = 0 ; | |
8269 | char * kwnames[] = { | |
8270 | (char *) "self",(char *) "size", NULL | |
8271 | }; | |
8272 | ||
8273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8275 | if (!SWIG_IsOK(res1)) { | |
8276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8277 | } | |
8278 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8279 | { | |
8280 | arg2 = &temp2; | |
8281 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8282 | } | |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | (arg1)->SetSize((wxSize const &)*arg2); | |
8286 | wxPyEndAllowThreads(__tstate); | |
8287 | if (PyErr_Occurred()) SWIG_fail; | |
8288 | } | |
8289 | resultobj = SWIG_Py_Void(); | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8297 | PyObject *obj; | |
8298 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8299 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
8300 | return SWIG_Py_Void(); | |
8301 | } | |
8302 | ||
8303 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8304 | return SWIG_Python_InitShadowInstance(args); | |
8305 | } | |
8306 | ||
8307 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8308 | PyObject *resultobj = 0; | |
8309 | int arg1 = (int) 0 ; | |
8310 | int arg2 = (int) 0 ; | |
8311 | int arg3 = (int) 0 ; | |
8312 | int arg4 = (int) 0 ; | |
8313 | wxRegion *result = 0 ; | |
8314 | int val1 ; | |
8315 | int ecode1 = 0 ; | |
8316 | int val2 ; | |
8317 | int ecode2 = 0 ; | |
8318 | int val3 ; | |
8319 | int ecode3 = 0 ; | |
8320 | int val4 ; | |
8321 | int ecode4 = 0 ; | |
8322 | PyObject * obj0 = 0 ; | |
8323 | PyObject * obj1 = 0 ; | |
8324 | PyObject * obj2 = 0 ; | |
8325 | PyObject * obj3 = 0 ; | |
8326 | char * kwnames[] = { | |
8327 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8328 | }; | |
8329 | ||
8330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8331 | if (obj0) { | |
8332 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8333 | if (!SWIG_IsOK(ecode1)) { | |
8334 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
8335 | } | |
8336 | arg1 = static_cast< int >(val1); | |
8337 | } | |
8338 | if (obj1) { | |
8339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8340 | if (!SWIG_IsOK(ecode2)) { | |
8341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
8342 | } | |
8343 | arg2 = static_cast< int >(val2); | |
8344 | } | |
8345 | if (obj2) { | |
8346 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8347 | if (!SWIG_IsOK(ecode3)) { | |
8348 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
8349 | } | |
8350 | arg3 = static_cast< int >(val3); | |
8351 | } | |
8352 | if (obj3) { | |
8353 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8354 | if (!SWIG_IsOK(ecode4)) { | |
8355 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
8356 | } | |
8357 | arg4 = static_cast< int >(val4); | |
8358 | } | |
8359 | { | |
8360 | if (!wxPyCheckForApp()) SWIG_fail; | |
8361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8362 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
8366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
8373 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8374 | PyObject *resultobj = 0; | |
8375 | wxBitmap *arg1 = 0 ; | |
8376 | wxRegion *result = 0 ; | |
8377 | void *argp1 = 0 ; | |
8378 | int res1 = 0 ; | |
8379 | PyObject * obj0 = 0 ; | |
8380 | char * kwnames[] = { | |
8381 | (char *) "bmp", NULL | |
8382 | }; | |
8383 | ||
8384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
8385 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8386 | if (!SWIG_IsOK(res1)) { | |
8387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8388 | } | |
8389 | if (!argp1) { | |
8390 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8391 | } | |
8392 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8393 | { | |
8394 | if (!wxPyCheckForApp()) SWIG_fail; | |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
8397 | wxPyEndAllowThreads(__tstate); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
8400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8401 | return resultobj; | |
8402 | fail: | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj = 0; | |
8409 | wxBitmap *arg1 = 0 ; | |
8410 | wxColour *arg2 = 0 ; | |
8411 | int arg3 = (int) 0 ; | |
8412 | wxRegion *result = 0 ; | |
8413 | void *argp1 = 0 ; | |
8414 | int res1 = 0 ; | |
8415 | wxColour temp2 ; | |
8416 | int val3 ; | |
8417 | int ecode3 = 0 ; | |
8418 | PyObject * obj0 = 0 ; | |
8419 | PyObject * obj1 = 0 ; | |
8420 | PyObject * obj2 = 0 ; | |
8421 | char * kwnames[] = { | |
8422 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
8423 | }; | |
8424 | ||
8425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8426 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8427 | if (!SWIG_IsOK(res1)) { | |
8428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8429 | } | |
8430 | if (!argp1) { | |
8431 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8432 | } | |
8433 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8434 | { | |
8435 | arg2 = &temp2; | |
8436 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8437 | } | |
8438 | if (obj2) { | |
8439 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8440 | if (!SWIG_IsOK(ecode3)) { | |
8441 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
8442 | } | |
8443 | arg3 = static_cast< int >(val3); | |
8444 | } | |
8445 | { | |
8446 | if (!wxPyCheckForApp()) SWIG_fail; | |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8453 | return resultobj; | |
8454 | fail: | |
8455 | return NULL; | |
8456 | } | |
8457 | ||
8458 | ||
8459 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8460 | PyObject *resultobj = 0; | |
8461 | int arg1 ; | |
8462 | wxPoint *arg2 = (wxPoint *) 0 ; | |
8463 | int arg3 = (int) wxWINDING_RULE ; | |
8464 | wxRegion *result = 0 ; | |
8465 | int val3 ; | |
8466 | int ecode3 = 0 ; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | PyObject * obj1 = 0 ; | |
8469 | char * kwnames[] = { | |
8470 | (char *) "points",(char *) "fillStyle", NULL | |
8471 | }; | |
8472 | ||
8473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
8474 | { | |
8475 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
8476 | if (arg2 == NULL) SWIG_fail; | |
8477 | } | |
8478 | if (obj1) { | |
8479 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
8480 | if (!SWIG_IsOK(ecode3)) { | |
8481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
8482 | } | |
8483 | arg3 = static_cast< int >(val3); | |
8484 | } | |
8485 | { | |
8486 | if (!wxPyCheckForApp()) SWIG_fail; | |
8487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8488 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
8489 | wxPyEndAllowThreads(__tstate); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8493 | { | |
8494 | if (arg2) delete [] arg2; | |
8495 | } | |
8496 | return resultobj; | |
8497 | fail: | |
8498 | { | |
8499 | if (arg2) delete [] arg2; | |
8500 | } | |
8501 | return NULL; | |
d55e5bfc RD |
8502 | } |
8503 | ||
8504 | ||
554f62e9 RD |
8505 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8506 | PyObject *resultobj = 0; | |
8507 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8508 | void *argp1 = 0 ; | |
8509 | int res1 = 0 ; | |
8510 | PyObject *swig_obj[1] ; | |
8511 | ||
8512 | if (!args) SWIG_fail; | |
8513 | swig_obj[0] = args; | |
8514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
8515 | if (!SWIG_IsOK(res1)) { | |
8516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8517 | } | |
8518 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8519 | { | |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | delete arg1; | |
d55e5bfc | 8522 | |
554f62e9 RD |
8523 | wxPyEndAllowThreads(__tstate); |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8526 | resultobj = SWIG_Py_Void(); | |
8527 | return resultobj; | |
8528 | fail: | |
8529 | return NULL; | |
d55e5bfc RD |
8530 | } |
8531 | ||
8532 | ||
554f62e9 RD |
8533 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8534 | PyObject *resultobj = 0; | |
8535 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8536 | void *argp1 = 0 ; | |
8537 | int res1 = 0 ; | |
8538 | PyObject *swig_obj[1] ; | |
8539 | ||
8540 | if (!args) SWIG_fail; | |
8541 | swig_obj[0] = args; | |
8542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8543 | if (!SWIG_IsOK(res1)) { | |
8544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8545 | } | |
8546 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8547 | { | |
8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8549 | (arg1)->Clear(); | |
8550 | wxPyEndAllowThreads(__tstate); | |
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | resultobj = SWIG_Py_Void(); | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8561 | PyObject *resultobj = 0; | |
8562 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8563 | int arg2 ; | |
8564 | int arg3 ; | |
8565 | bool result; | |
8566 | void *argp1 = 0 ; | |
8567 | int res1 = 0 ; | |
8568 | int val2 ; | |
8569 | int ecode2 = 0 ; | |
8570 | int val3 ; | |
8571 | int ecode3 = 0 ; | |
8572 | PyObject * obj0 = 0 ; | |
8573 | PyObject * obj1 = 0 ; | |
8574 | PyObject * obj2 = 0 ; | |
8575 | char * kwnames[] = { | |
8576 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8577 | }; | |
8578 | ||
8579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8581 | if (!SWIG_IsOK(res1)) { | |
8582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8583 | } | |
8584 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8585 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8586 | if (!SWIG_IsOK(ecode2)) { | |
8587 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
8588 | } | |
8589 | arg2 = static_cast< int >(val2); | |
8590 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8591 | if (!SWIG_IsOK(ecode3)) { | |
8592 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8593 | } | |
8594 | arg3 = static_cast< int >(val3); | |
8595 | { | |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | result = (bool)(arg1)->Offset(arg2,arg3); | |
8598 | wxPyEndAllowThreads(__tstate); | |
8599 | if (PyErr_Occurred()) SWIG_fail; | |
8600 | } | |
8601 | { | |
8602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8603 | } | |
8604 | return resultobj; | |
8605 | fail: | |
8606 | return NULL; | |
8607 | } | |
8608 | ||
8609 | ||
8610 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8611 | PyObject *resultobj = 0; | |
8612 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8613 | int arg2 ; | |
8614 | int arg3 ; | |
8615 | wxRegionContain result; | |
8616 | void *argp1 = 0 ; | |
8617 | int res1 = 0 ; | |
8618 | int val2 ; | |
8619 | int ecode2 = 0 ; | |
8620 | int val3 ; | |
8621 | int ecode3 = 0 ; | |
8622 | PyObject * obj0 = 0 ; | |
8623 | PyObject * obj1 = 0 ; | |
8624 | PyObject * obj2 = 0 ; | |
8625 | char * kwnames[] = { | |
8626 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8627 | }; | |
8628 | ||
8629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8631 | if (!SWIG_IsOK(res1)) { | |
8632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8633 | } | |
8634 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8635 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8636 | if (!SWIG_IsOK(ecode2)) { | |
8637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
8638 | } | |
8639 | arg2 = static_cast< int >(val2); | |
8640 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8641 | if (!SWIG_IsOK(ecode3)) { | |
8642 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
8643 | } | |
8644 | arg3 = static_cast< int >(val3); | |
8645 | { | |
8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8647 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
8648 | wxPyEndAllowThreads(__tstate); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
8651 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8652 | return resultobj; | |
8653 | fail: | |
8654 | return NULL; | |
8655 | } | |
8656 | ||
8657 | ||
8658 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8659 | PyObject *resultobj = 0; | |
8660 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8661 | wxPoint *arg2 = 0 ; | |
8662 | wxRegionContain result; | |
8663 | void *argp1 = 0 ; | |
8664 | int res1 = 0 ; | |
8665 | wxPoint temp2 ; | |
8666 | PyObject * obj0 = 0 ; | |
8667 | PyObject * obj1 = 0 ; | |
8668 | char * kwnames[] = { | |
8669 | (char *) "self",(char *) "pt", NULL | |
8670 | }; | |
8671 | ||
8672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8674 | if (!SWIG_IsOK(res1)) { | |
8675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8676 | } | |
8677 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8678 | { | |
8679 | arg2 = &temp2; | |
8680 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8681 | } | |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8689 | return resultobj; | |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
8695 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8696 | PyObject *resultobj = 0; | |
8697 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8698 | wxRect *arg2 = 0 ; | |
8699 | wxRegionContain result; | |
8700 | void *argp1 = 0 ; | |
8701 | int res1 = 0 ; | |
8702 | wxRect temp2 ; | |
8703 | PyObject * obj0 = 0 ; | |
8704 | PyObject * obj1 = 0 ; | |
8705 | char * kwnames[] = { | |
8706 | (char *) "self",(char *) "rect", NULL | |
8707 | }; | |
8708 | ||
8709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8711 | if (!SWIG_IsOK(res1)) { | |
8712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8713 | } | |
8714 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8715 | { | |
8716 | arg2 = &temp2; | |
8717 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8718 | } | |
8719 | { | |
8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8721 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8726 | return resultobj; | |
8727 | fail: | |
8728 | return NULL; | |
8729 | } | |
8730 | ||
8731 | ||
8732 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8733 | PyObject *resultobj = 0; | |
8734 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8735 | int arg2 ; | |
8736 | int arg3 ; | |
8737 | int arg4 ; | |
8738 | int arg5 ; | |
8739 | wxRegionContain result; | |
8740 | void *argp1 = 0 ; | |
8741 | int res1 = 0 ; | |
8742 | int val2 ; | |
8743 | int ecode2 = 0 ; | |
8744 | int val3 ; | |
8745 | int ecode3 = 0 ; | |
8746 | int val4 ; | |
8747 | int ecode4 = 0 ; | |
8748 | int val5 ; | |
8749 | int ecode5 = 0 ; | |
8750 | PyObject * obj0 = 0 ; | |
8751 | PyObject * obj1 = 0 ; | |
8752 | PyObject * obj2 = 0 ; | |
8753 | PyObject * obj3 = 0 ; | |
8754 | PyObject * obj4 = 0 ; | |
8755 | char * kwnames[] = { | |
8756 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
8757 | }; | |
8758 | ||
8759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8761 | if (!SWIG_IsOK(res1)) { | |
8762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8763 | } | |
8764 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8765 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8766 | if (!SWIG_IsOK(ecode2)) { | |
8767 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
8768 | } | |
8769 | arg2 = static_cast< int >(val2); | |
8770 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8771 | if (!SWIG_IsOK(ecode3)) { | |
8772 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
8773 | } | |
8774 | arg3 = static_cast< int >(val3); | |
8775 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8776 | if (!SWIG_IsOK(ecode4)) { | |
8777 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
8778 | } | |
8779 | arg4 = static_cast< int >(val4); | |
8780 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8781 | if (!SWIG_IsOK(ecode5)) { | |
8782 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
8783 | } | |
8784 | arg5 = static_cast< int >(val5); | |
8785 | { | |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | return NULL; | |
d55e5bfc RD |
8795 | } |
8796 | ||
8797 | ||
554f62e9 RD |
8798 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8799 | PyObject *resultobj = 0; | |
8800 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8801 | wxRect result; | |
8802 | void *argp1 = 0 ; | |
8803 | int res1 = 0 ; | |
8804 | PyObject *swig_obj[1] ; | |
8805 | ||
8806 | if (!args) SWIG_fail; | |
8807 | swig_obj[0] = args; | |
8808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8809 | if (!SWIG_IsOK(res1)) { | |
8810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8811 | } | |
8812 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8813 | { | |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = (arg1)->GetBox(); | |
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj = 0; | |
8828 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8829 | int arg2 ; | |
8830 | int arg3 ; | |
8831 | int arg4 ; | |
8832 | int arg5 ; | |
8833 | bool result; | |
8834 | void *argp1 = 0 ; | |
8835 | int res1 = 0 ; | |
8836 | int val2 ; | |
8837 | int ecode2 = 0 ; | |
8838 | int val3 ; | |
8839 | int ecode3 = 0 ; | |
8840 | int val4 ; | |
8841 | int ecode4 = 0 ; | |
8842 | int val5 ; | |
8843 | int ecode5 = 0 ; | |
8844 | PyObject * obj0 = 0 ; | |
8845 | PyObject * obj1 = 0 ; | |
8846 | PyObject * obj2 = 0 ; | |
8847 | PyObject * obj3 = 0 ; | |
8848 | PyObject * obj4 = 0 ; | |
8849 | char * kwnames[] = { | |
8850 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8851 | }; | |
8852 | ||
8853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8855 | if (!SWIG_IsOK(res1)) { | |
8856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8857 | } | |
8858 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8859 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8860 | if (!SWIG_IsOK(ecode2)) { | |
8861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
8862 | } | |
8863 | arg2 = static_cast< int >(val2); | |
8864 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8865 | if (!SWIG_IsOK(ecode3)) { | |
8866 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
8867 | } | |
8868 | arg3 = static_cast< int >(val3); | |
8869 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8870 | if (!SWIG_IsOK(ecode4)) { | |
8871 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
8872 | } | |
8873 | arg4 = static_cast< int >(val4); | |
8874 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8875 | if (!SWIG_IsOK(ecode5)) { | |
8876 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
8877 | } | |
8878 | arg5 = static_cast< int >(val5); | |
8879 | { | |
8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8881 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
8885 | { | |
8886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8887 | } | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8895 | PyObject *resultobj = 0; | |
8896 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8897 | wxRect *arg2 = 0 ; | |
8898 | bool result; | |
8899 | void *argp1 = 0 ; | |
8900 | int res1 = 0 ; | |
8901 | wxRect temp2 ; | |
8902 | PyObject * obj0 = 0 ; | |
8903 | PyObject * obj1 = 0 ; | |
8904 | char * kwnames[] = { | |
8905 | (char *) "self",(char *) "rect", NULL | |
8906 | }; | |
8907 | ||
8908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8910 | if (!SWIG_IsOK(res1)) { | |
8911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8912 | } | |
8913 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8914 | { | |
8915 | arg2 = &temp2; | |
8916 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8917 | } | |
8918 | { | |
8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8920 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
8921 | wxPyEndAllowThreads(__tstate); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
8923 | } | |
8924 | { | |
8925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8926 | } | |
8927 | return resultobj; | |
8928 | fail: | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
8933 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8934 | PyObject *resultobj = 0; | |
8935 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8936 | wxRegion *arg2 = 0 ; | |
8937 | bool result; | |
8938 | void *argp1 = 0 ; | |
8939 | int res1 = 0 ; | |
8940 | void *argp2 = 0 ; | |
8941 | int res2 = 0 ; | |
8942 | PyObject * obj0 = 0 ; | |
8943 | PyObject * obj1 = 0 ; | |
8944 | char * kwnames[] = { | |
8945 | (char *) "self",(char *) "region", NULL | |
8946 | }; | |
8947 | ||
8948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8950 | if (!SWIG_IsOK(res1)) { | |
8951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8952 | } | |
8953 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8954 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8955 | if (!SWIG_IsOK(res2)) { | |
8956 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8957 | } | |
8958 | if (!argp2) { | |
8959 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8960 | } | |
8961 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8962 | { | |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | { | |
8969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8970 | } | |
8971 | return resultobj; | |
8972 | fail: | |
8973 | return NULL; | |
d55e5bfc RD |
8974 | } |
8975 | ||
8976 | ||
554f62e9 RD |
8977 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8978 | PyObject *resultobj = 0; | |
8979 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8980 | bool result; | |
8981 | void *argp1 = 0 ; | |
8982 | int res1 = 0 ; | |
8983 | PyObject *swig_obj[1] ; | |
8984 | ||
8985 | if (!args) SWIG_fail; | |
8986 | swig_obj[0] = args; | |
8987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8988 | if (!SWIG_IsOK(res1)) { | |
8989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8990 | } | |
8991 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8992 | { | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | result = (bool)(arg1)->IsEmpty(); | |
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | { | |
8999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9000 | } | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj = 0; | |
9009 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9010 | int arg2 ; | |
9011 | int arg3 ; | |
9012 | int arg4 ; | |
9013 | int arg5 ; | |
9014 | bool result; | |
9015 | void *argp1 = 0 ; | |
9016 | int res1 = 0 ; | |
9017 | int val2 ; | |
9018 | int ecode2 = 0 ; | |
9019 | int val3 ; | |
9020 | int ecode3 = 0 ; | |
9021 | int val4 ; | |
9022 | int ecode4 = 0 ; | |
9023 | int val5 ; | |
9024 | int ecode5 = 0 ; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | PyObject * obj1 = 0 ; | |
9027 | PyObject * obj2 = 0 ; | |
9028 | PyObject * obj3 = 0 ; | |
9029 | PyObject * obj4 = 0 ; | |
9030 | char * kwnames[] = { | |
9031 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9032 | }; | |
9033 | ||
9034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9036 | if (!SWIG_IsOK(res1)) { | |
9037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9038 | } | |
9039 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9041 | if (!SWIG_IsOK(ecode2)) { | |
9042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
9043 | } | |
9044 | arg2 = static_cast< int >(val2); | |
9045 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9046 | if (!SWIG_IsOK(ecode3)) { | |
9047 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
9048 | } | |
9049 | arg3 = static_cast< int >(val3); | |
9050 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9051 | if (!SWIG_IsOK(ecode4)) { | |
9052 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
9053 | } | |
9054 | arg4 = static_cast< int >(val4); | |
9055 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9056 | if (!SWIG_IsOK(ecode5)) { | |
9057 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
9058 | } | |
9059 | arg5 = static_cast< int >(val5); | |
9060 | { | |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
9066 | { | |
9067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9068 | } | |
9069 | return resultobj; | |
9070 | fail: | |
9071 | return NULL; | |
9072 | } | |
9073 | ||
9074 | ||
9075 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9076 | PyObject *resultobj = 0; | |
9077 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9078 | wxRect *arg2 = 0 ; | |
9079 | bool result; | |
9080 | void *argp1 = 0 ; | |
9081 | int res1 = 0 ; | |
9082 | wxRect temp2 ; | |
9083 | PyObject * obj0 = 0 ; | |
9084 | PyObject * obj1 = 0 ; | |
9085 | char * kwnames[] = { | |
9086 | (char *) "self",(char *) "rect", NULL | |
9087 | }; | |
9088 | ||
9089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9091 | if (!SWIG_IsOK(res1)) { | |
9092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9093 | } | |
9094 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9095 | { | |
9096 | arg2 = &temp2; | |
9097 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9098 | } | |
9099 | { | |
9100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9101 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | { | |
9106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9107 | } | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj = 0; | |
9116 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9117 | wxRegion *arg2 = 0 ; | |
9118 | bool result; | |
9119 | void *argp1 = 0 ; | |
9120 | int res1 = 0 ; | |
9121 | void *argp2 = 0 ; | |
9122 | int res2 = 0 ; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | PyObject * obj1 = 0 ; | |
9125 | char * kwnames[] = { | |
9126 | (char *) "self",(char *) "region", NULL | |
9127 | }; | |
9128 | ||
9129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9131 | if (!SWIG_IsOK(res1)) { | |
9132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9133 | } | |
9134 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9135 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9136 | if (!SWIG_IsOK(res2)) { | |
9137 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9138 | } | |
9139 | if (!argp2) { | |
9140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9141 | } | |
9142 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9143 | { | |
9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9145 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
9146 | wxPyEndAllowThreads(__tstate); | |
9147 | if (PyErr_Occurred()) SWIG_fail; | |
9148 | } | |
9149 | { | |
9150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9151 | } | |
9152 | return resultobj; | |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9159 | PyObject *resultobj = 0; | |
9160 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9161 | int arg2 ; | |
9162 | int arg3 ; | |
9163 | int arg4 ; | |
9164 | int arg5 ; | |
9165 | bool result; | |
9166 | void *argp1 = 0 ; | |
9167 | int res1 = 0 ; | |
9168 | int val2 ; | |
9169 | int ecode2 = 0 ; | |
9170 | int val3 ; | |
9171 | int ecode3 = 0 ; | |
9172 | int val4 ; | |
9173 | int ecode4 = 0 ; | |
9174 | int val5 ; | |
9175 | int ecode5 = 0 ; | |
9176 | PyObject * obj0 = 0 ; | |
9177 | PyObject * obj1 = 0 ; | |
9178 | PyObject * obj2 = 0 ; | |
9179 | PyObject * obj3 = 0 ; | |
9180 | PyObject * obj4 = 0 ; | |
9181 | char * kwnames[] = { | |
9182 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9183 | }; | |
9184 | ||
9185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9187 | if (!SWIG_IsOK(res1)) { | |
9188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9189 | } | |
9190 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9192 | if (!SWIG_IsOK(ecode2)) { | |
9193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
9194 | } | |
9195 | arg2 = static_cast< int >(val2); | |
9196 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9197 | if (!SWIG_IsOK(ecode3)) { | |
9198 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
9199 | } | |
9200 | arg3 = static_cast< int >(val3); | |
9201 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9202 | if (!SWIG_IsOK(ecode4)) { | |
9203 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
9204 | } | |
9205 | arg4 = static_cast< int >(val4); | |
9206 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9207 | if (!SWIG_IsOK(ecode5)) { | |
9208 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
9209 | } | |
9210 | arg5 = static_cast< int >(val5); | |
9211 | { | |
9212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9213 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
9214 | wxPyEndAllowThreads(__tstate); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | } | |
9217 | { | |
9218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9219 | } | |
9220 | return resultobj; | |
9221 | fail: | |
9222 | return NULL; | |
9223 | } | |
9224 | ||
9225 | ||
9226 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9227 | PyObject *resultobj = 0; | |
9228 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9229 | wxRect *arg2 = 0 ; | |
9230 | bool result; | |
9231 | void *argp1 = 0 ; | |
9232 | int res1 = 0 ; | |
9233 | wxRect temp2 ; | |
9234 | PyObject * obj0 = 0 ; | |
9235 | PyObject * obj1 = 0 ; | |
9236 | char * kwnames[] = { | |
9237 | (char *) "self",(char *) "rect", NULL | |
9238 | }; | |
9239 | ||
9240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9242 | if (!SWIG_IsOK(res1)) { | |
9243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9244 | } | |
9245 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9246 | { | |
9247 | arg2 = &temp2; | |
9248 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9249 | } | |
9250 | { | |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9252 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
9253 | wxPyEndAllowThreads(__tstate); | |
9254 | if (PyErr_Occurred()) SWIG_fail; | |
9255 | } | |
9256 | { | |
9257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9258 | } | |
9259 | return resultobj; | |
9260 | fail: | |
9261 | return NULL; | |
9262 | } | |
9263 | ||
9264 | ||
9265 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9266 | PyObject *resultobj = 0; | |
9267 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9268 | wxRegion *arg2 = 0 ; | |
9269 | bool result; | |
9270 | void *argp1 = 0 ; | |
9271 | int res1 = 0 ; | |
9272 | void *argp2 = 0 ; | |
9273 | int res2 = 0 ; | |
9274 | PyObject * obj0 = 0 ; | |
9275 | PyObject * obj1 = 0 ; | |
9276 | char * kwnames[] = { | |
9277 | (char *) "self",(char *) "region", NULL | |
9278 | }; | |
9279 | ||
9280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9282 | if (!SWIG_IsOK(res1)) { | |
9283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9284 | } | |
9285 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9286 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9287 | if (!SWIG_IsOK(res2)) { | |
9288 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9289 | } | |
9290 | if (!argp2) { | |
9291 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9292 | } | |
9293 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9294 | { | |
9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9296 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | { | |
9301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9302 | } | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj = 0; | |
9311 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9312 | int arg2 ; | |
9313 | int arg3 ; | |
9314 | int arg4 ; | |
9315 | int arg5 ; | |
9316 | bool result; | |
9317 | void *argp1 = 0 ; | |
9318 | int res1 = 0 ; | |
9319 | int val2 ; | |
9320 | int ecode2 = 0 ; | |
9321 | int val3 ; | |
9322 | int ecode3 = 0 ; | |
9323 | int val4 ; | |
9324 | int ecode4 = 0 ; | |
9325 | int val5 ; | |
9326 | int ecode5 = 0 ; | |
9327 | PyObject * obj0 = 0 ; | |
9328 | PyObject * obj1 = 0 ; | |
9329 | PyObject * obj2 = 0 ; | |
9330 | PyObject * obj3 = 0 ; | |
9331 | PyObject * obj4 = 0 ; | |
9332 | char * kwnames[] = { | |
9333 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9334 | }; | |
9335 | ||
9336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9338 | if (!SWIG_IsOK(res1)) { | |
9339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9340 | } | |
9341 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9342 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9343 | if (!SWIG_IsOK(ecode2)) { | |
9344 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
9345 | } | |
9346 | arg2 = static_cast< int >(val2); | |
9347 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9348 | if (!SWIG_IsOK(ecode3)) { | |
9349 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
9350 | } | |
9351 | arg3 = static_cast< int >(val3); | |
9352 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9353 | if (!SWIG_IsOK(ecode4)) { | |
9354 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
9355 | } | |
9356 | arg4 = static_cast< int >(val4); | |
9357 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9358 | if (!SWIG_IsOK(ecode5)) { | |
9359 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
9360 | } | |
9361 | arg5 = static_cast< int >(val5); | |
9362 | { | |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | { | |
9369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9370 | } | |
9371 | return resultobj; | |
9372 | fail: | |
9373 | return NULL; | |
9374 | } | |
9375 | ||
9376 | ||
9377 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9378 | PyObject *resultobj = 0; | |
9379 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9380 | wxRect *arg2 = 0 ; | |
9381 | bool result; | |
9382 | void *argp1 = 0 ; | |
9383 | int res1 = 0 ; | |
9384 | wxRect temp2 ; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | PyObject * obj1 = 0 ; | |
9387 | char * kwnames[] = { | |
9388 | (char *) "self",(char *) "rect", NULL | |
9389 | }; | |
9390 | ||
9391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9393 | if (!SWIG_IsOK(res1)) { | |
9394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9395 | } | |
9396 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9397 | { | |
9398 | arg2 = &temp2; | |
9399 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9400 | } | |
9401 | { | |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
9404 | wxPyEndAllowThreads(__tstate); | |
9405 | if (PyErr_Occurred()) SWIG_fail; | |
9406 | } | |
9407 | { | |
9408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9409 | } | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj = 0; | |
9418 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9419 | wxRegion *arg2 = 0 ; | |
9420 | bool result; | |
9421 | void *argp1 = 0 ; | |
9422 | int res1 = 0 ; | |
9423 | void *argp2 = 0 ; | |
9424 | int res2 = 0 ; | |
9425 | PyObject * obj0 = 0 ; | |
9426 | PyObject * obj1 = 0 ; | |
9427 | char * kwnames[] = { | |
9428 | (char *) "self",(char *) "region", NULL | |
9429 | }; | |
9430 | ||
9431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9433 | if (!SWIG_IsOK(res1)) { | |
9434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9435 | } | |
9436 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9437 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9438 | if (!SWIG_IsOK(res2)) { | |
9439 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9440 | } | |
9441 | if (!argp2) { | |
9442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9443 | } | |
9444 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9445 | { | |
9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9447 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | { | |
9452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9453 | } | |
9454 | return resultobj; | |
9455 | fail: | |
9456 | return NULL; | |
d55e5bfc RD |
9457 | } |
9458 | ||
9459 | ||
554f62e9 RD |
9460 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9461 | PyObject *resultobj = 0; | |
9462 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9463 | SwigValueWrapper<wxBitmap > result; | |
9464 | void *argp1 = 0 ; | |
9465 | int res1 = 0 ; | |
9466 | PyObject *swig_obj[1] ; | |
9467 | ||
9468 | if (!args) SWIG_fail; | |
9469 | swig_obj[0] = args; | |
9470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9471 | if (!SWIG_IsOK(res1)) { | |
9472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9473 | } | |
9474 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9475 | { | |
9476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9477 | result = (arg1)->ConvertToBitmap(); | |
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
9481 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
9482 | return resultobj; | |
9483 | fail: | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
9488 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9489 | PyObject *resultobj = 0; | |
9490 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9491 | wxBitmap *arg2 = 0 ; | |
9492 | bool result; | |
9493 | void *argp1 = 0 ; | |
9494 | int res1 = 0 ; | |
9495 | void *argp2 = 0 ; | |
9496 | int res2 = 0 ; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | PyObject * obj1 = 0 ; | |
9499 | char * kwnames[] = { | |
9500 | (char *) "self",(char *) "bmp", NULL | |
9501 | }; | |
9502 | ||
9503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9505 | if (!SWIG_IsOK(res1)) { | |
9506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9507 | } | |
9508 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9509 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9510 | if (!SWIG_IsOK(res2)) { | |
9511 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9512 | } | |
9513 | if (!argp2) { | |
9514 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9515 | } | |
9516 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9517 | { | |
9518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9519 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
9520 | wxPyEndAllowThreads(__tstate); | |
9521 | if (PyErr_Occurred()) SWIG_fail; | |
9522 | } | |
9523 | { | |
9524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9525 | } | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj = 0; | |
9534 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9535 | wxBitmap *arg2 = 0 ; | |
9536 | wxColour *arg3 = 0 ; | |
9537 | int arg4 = (int) 0 ; | |
9538 | bool result; | |
9539 | void *argp1 = 0 ; | |
9540 | int res1 = 0 ; | |
9541 | void *argp2 = 0 ; | |
9542 | int res2 = 0 ; | |
9543 | wxColour temp3 ; | |
9544 | int val4 ; | |
9545 | int ecode4 = 0 ; | |
9546 | PyObject * obj0 = 0 ; | |
9547 | PyObject * obj1 = 0 ; | |
9548 | PyObject * obj2 = 0 ; | |
9549 | PyObject * obj3 = 0 ; | |
9550 | char * kwnames[] = { | |
9551 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
9552 | }; | |
9553 | ||
9554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9556 | if (!SWIG_IsOK(res1)) { | |
9557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9558 | } | |
9559 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9560 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9561 | if (!SWIG_IsOK(res2)) { | |
9562 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9563 | } | |
9564 | if (!argp2) { | |
9565 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9566 | } | |
9567 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9568 | { | |
9569 | arg3 = &temp3; | |
9570 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9571 | } | |
9572 | if (obj3) { | |
9573 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9574 | if (!SWIG_IsOK(ecode4)) { | |
9575 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
9576 | } | |
9577 | arg4 = static_cast< int >(val4); | |
9578 | } | |
9579 | { | |
9580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9581 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | { | |
9586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9587 | } | |
9588 | return resultobj; | |
9589 | fail: | |
9590 | return NULL; | |
d55e5bfc RD |
9591 | } |
9592 | ||
9593 | ||
554f62e9 RD |
9594 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9595 | PyObject *obj; | |
9596 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9597 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
9598 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9599 | } |
9600 | ||
554f62e9 RD |
9601 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9602 | return SWIG_Python_InitShadowInstance(args); | |
9603 | } | |
d55e5bfc | 9604 | |
554f62e9 RD |
9605 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9606 | PyObject *resultobj = 0; | |
9607 | wxRegion *arg1 = 0 ; | |
9608 | wxRegionIterator *result = 0 ; | |
9609 | void *argp1 = 0 ; | |
9610 | int res1 = 0 ; | |
9611 | PyObject * obj0 = 0 ; | |
9612 | char * kwnames[] = { | |
9613 | (char *) "region", NULL | |
9614 | }; | |
9615 | ||
9616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
9617 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
9618 | if (!SWIG_IsOK(res1)) { | |
9619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
9620 | } | |
9621 | if (!argp1) { | |
9622 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
9623 | } | |
9624 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9625 | { | |
9626 | if (!wxPyCheckForApp()) SWIG_fail; | |
9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9628 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) SWIG_fail; | |
9631 | } | |
9632 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
9633 | return resultobj; | |
9634 | fail: | |
9635 | return NULL; | |
d55e5bfc RD |
9636 | } |
9637 | ||
9638 | ||
554f62e9 RD |
9639 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9640 | PyObject *resultobj = 0; | |
9641 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9642 | void *argp1 = 0 ; | |
9643 | int res1 = 0 ; | |
9644 | PyObject *swig_obj[1] ; | |
9645 | ||
9646 | if (!args) SWIG_fail; | |
9647 | swig_obj[0] = args; | |
9648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
9649 | if (!SWIG_IsOK(res1)) { | |
9650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9651 | } | |
9652 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | delete arg1; | |
d55e5bfc | 9656 | |
554f62e9 RD |
9657 | wxPyEndAllowThreads(__tstate); |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | resultobj = SWIG_Py_Void(); | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
d55e5bfc RD |
9664 | } |
9665 | ||
9666 | ||
554f62e9 RD |
9667 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9668 | PyObject *resultobj = 0; | |
9669 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9670 | int result; | |
9671 | void *argp1 = 0 ; | |
9672 | int res1 = 0 ; | |
9673 | PyObject *swig_obj[1] ; | |
9674 | ||
9675 | if (!args) SWIG_fail; | |
9676 | swig_obj[0] = args; | |
9677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9678 | if (!SWIG_IsOK(res1)) { | |
9679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9680 | } | |
9681 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9682 | { | |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9684 | result = (int)(arg1)->GetX(); | |
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
9687 | } | |
9688 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9689 | return resultobj; | |
9690 | fail: | |
9691 | return NULL; | |
d55e5bfc RD |
9692 | } |
9693 | ||
9694 | ||
554f62e9 RD |
9695 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9696 | PyObject *resultobj = 0; | |
9697 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9698 | int result; | |
9699 | void *argp1 = 0 ; | |
9700 | int res1 = 0 ; | |
9701 | PyObject *swig_obj[1] ; | |
9702 | ||
9703 | if (!args) SWIG_fail; | |
9704 | swig_obj[0] = args; | |
9705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9706 | if (!SWIG_IsOK(res1)) { | |
9707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9708 | } | |
9709 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9712 | result = (int)(arg1)->GetY(); | |
9713 | wxPyEndAllowThreads(__tstate); | |
9714 | if (PyErr_Occurred()) SWIG_fail; | |
9715 | } | |
9716 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9717 | return resultobj; | |
9718 | fail: | |
9719 | return NULL; | |
d55e5bfc RD |
9720 | } |
9721 | ||
9722 | ||
554f62e9 RD |
9723 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9724 | PyObject *resultobj = 0; | |
9725 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9726 | int result; | |
9727 | void *argp1 = 0 ; | |
9728 | int res1 = 0 ; | |
9729 | PyObject *swig_obj[1] ; | |
9730 | ||
9731 | if (!args) SWIG_fail; | |
9732 | swig_obj[0] = args; | |
9733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9734 | if (!SWIG_IsOK(res1)) { | |
9735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9736 | } | |
9737 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9738 | { | |
9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9740 | result = (int)(arg1)->GetW(); | |
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | return NULL; | |
d55e5bfc RD |
9748 | } |
9749 | ||
9750 | ||
554f62e9 RD |
9751 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9752 | PyObject *resultobj = 0; | |
9753 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9754 | int result; | |
9755 | void *argp1 = 0 ; | |
9756 | int res1 = 0 ; | |
9757 | PyObject *swig_obj[1] ; | |
9758 | ||
9759 | if (!args) SWIG_fail; | |
9760 | swig_obj[0] = args; | |
9761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9762 | if (!SWIG_IsOK(res1)) { | |
9763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9764 | } | |
9765 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9766 | { | |
9767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9768 | result = (int)(arg1)->GetWidth(); | |
9769 | wxPyEndAllowThreads(__tstate); | |
9770 | if (PyErr_Occurred()) SWIG_fail; | |
9771 | } | |
9772 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9773 | return resultobj; | |
9774 | fail: | |
9775 | return NULL; | |
d55e5bfc RD |
9776 | } |
9777 | ||
9778 | ||
554f62e9 RD |
9779 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9780 | PyObject *resultobj = 0; | |
9781 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9782 | int result; | |
9783 | void *argp1 = 0 ; | |
9784 | int res1 = 0 ; | |
9785 | PyObject *swig_obj[1] ; | |
9786 | ||
9787 | if (!args) SWIG_fail; | |
9788 | swig_obj[0] = args; | |
9789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9790 | if (!SWIG_IsOK(res1)) { | |
9791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9792 | } | |
9793 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9794 | { | |
9795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9796 | result = (int)(arg1)->GetH(); | |
9797 | wxPyEndAllowThreads(__tstate); | |
9798 | if (PyErr_Occurred()) SWIG_fail; | |
9799 | } | |
9800 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | return NULL; | |
d55e5bfc RD |
9804 | } |
9805 | ||
9806 | ||
554f62e9 RD |
9807 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9808 | PyObject *resultobj = 0; | |
9809 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9810 | int result; | |
9811 | void *argp1 = 0 ; | |
9812 | int res1 = 0 ; | |
9813 | PyObject *swig_obj[1] ; | |
9814 | ||
9815 | if (!args) SWIG_fail; | |
9816 | swig_obj[0] = args; | |
9817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9818 | if (!SWIG_IsOK(res1)) { | |
9819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9820 | } | |
9821 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | result = (int)(arg1)->GetHeight(); | |
9825 | wxPyEndAllowThreads(__tstate); | |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
9827 | } | |
9828 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9829 | return resultobj; | |
9830 | fail: | |
9831 | return NULL; | |
d55e5bfc RD |
9832 | } |
9833 | ||
9834 | ||
554f62e9 RD |
9835 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9836 | PyObject *resultobj = 0; | |
9837 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9838 | wxRect result; | |
9839 | void *argp1 = 0 ; | |
9840 | int res1 = 0 ; | |
9841 | PyObject *swig_obj[1] ; | |
9842 | ||
9843 | if (!args) SWIG_fail; | |
9844 | swig_obj[0] = args; | |
9845 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9846 | if (!SWIG_IsOK(res1)) { | |
9847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9848 | } | |
9849 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9850 | { | |
9851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9852 | result = (arg1)->GetRect(); | |
9853 | wxPyEndAllowThreads(__tstate); | |
9854 | if (PyErr_Occurred()) SWIG_fail; | |
9855 | } | |
9856 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9857 | return resultobj; | |
9858 | fail: | |
9859 | return NULL; | |
d55e5bfc RD |
9860 | } |
9861 | ||
9862 | ||
554f62e9 RD |
9863 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9864 | PyObject *resultobj = 0; | |
9865 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9866 | bool result; | |
9867 | void *argp1 = 0 ; | |
9868 | int res1 = 0 ; | |
9869 | PyObject *swig_obj[1] ; | |
9870 | ||
9871 | if (!args) SWIG_fail; | |
9872 | swig_obj[0] = args; | |
9873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9874 | if (!SWIG_IsOK(res1)) { | |
9875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9876 | } | |
9877 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9878 | { | |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | result = (bool)(arg1)->HaveRects(); | |
9881 | wxPyEndAllowThreads(__tstate); | |
9882 | if (PyErr_Occurred()) SWIG_fail; | |
9883 | } | |
9884 | { | |
9885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9886 | } | |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
d55e5bfc RD |
9890 | } |
9891 | ||
9892 | ||
554f62e9 RD |
9893 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9894 | PyObject *resultobj = 0; | |
9895 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9896 | void *argp1 = 0 ; | |
9897 | int res1 = 0 ; | |
9898 | PyObject *swig_obj[1] ; | |
9899 | ||
9900 | if (!args) SWIG_fail; | |
9901 | swig_obj[0] = args; | |
9902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9903 | if (!SWIG_IsOK(res1)) { | |
9904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9905 | } | |
9906 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | (arg1)->Reset(); | |
9910 | wxPyEndAllowThreads(__tstate); | |
9911 | if (PyErr_Occurred()) SWIG_fail; | |
9912 | } | |
9913 | resultobj = SWIG_Py_Void(); | |
9914 | return resultobj; | |
9915 | fail: | |
9916 | return NULL; | |
d55e5bfc RD |
9917 | } |
9918 | ||
9919 | ||
554f62e9 RD |
9920 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9921 | PyObject *resultobj = 0; | |
9922 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9923 | void *argp1 = 0 ; | |
9924 | int res1 = 0 ; | |
9925 | PyObject *swig_obj[1] ; | |
9926 | ||
9927 | if (!args) SWIG_fail; | |
9928 | swig_obj[0] = args; | |
9929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9930 | if (!SWIG_IsOK(res1)) { | |
9931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9932 | } | |
9933 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9934 | { | |
9935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9936 | wxRegionIterator_Next(arg1); | |
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | resultobj = SWIG_Py_Void(); | |
9941 | return resultobj; | |
9942 | fail: | |
9943 | return NULL; | |
d55e5bfc RD |
9944 | } |
9945 | ||
9946 | ||
554f62e9 RD |
9947 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9948 | PyObject *resultobj = 0; | |
9949 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9950 | bool result; | |
9951 | void *argp1 = 0 ; | |
9952 | int res1 = 0 ; | |
9953 | PyObject *swig_obj[1] ; | |
9954 | ||
9955 | if (!args) SWIG_fail; | |
9956 | swig_obj[0] = args; | |
9957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9958 | if (!SWIG_IsOK(res1)) { | |
9959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9960 | } | |
9961 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
9965 | wxPyEndAllowThreads(__tstate); | |
9966 | if (PyErr_Occurred()) SWIG_fail; | |
9967 | } | |
9968 | { | |
9969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9970 | } | |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
d55e5bfc RD |
9974 | } |
9975 | ||
9976 | ||
554f62e9 RD |
9977 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9978 | PyObject *obj; | |
9979 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9980 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
9981 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9982 | } |
9983 | ||
554f62e9 RD |
9984 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9985 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9986 | } |
9987 | ||
554f62e9 RD |
9988 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9989 | PyObject *resultobj = 0; | |
9990 | wxNativeFontInfo *result = 0 ; | |
9991 | ||
9992 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
9993 | { | |
9994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9995 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
9999 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
10000 | return resultobj; | |
10001 | fail: | |
10002 | return NULL; | |
d55e5bfc RD |
10003 | } |
10004 | ||
10005 | ||
554f62e9 RD |
10006 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10007 | PyObject *resultobj = 0; | |
10008 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10009 | void *argp1 = 0 ; | |
10010 | int res1 = 0 ; | |
10011 | PyObject *swig_obj[1] ; | |
10012 | ||
10013 | if (!args) SWIG_fail; | |
10014 | swig_obj[0] = args; | |
10015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
10016 | if (!SWIG_IsOK(res1)) { | |
10017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10018 | } | |
10019 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | delete arg1; | |
d55e5bfc | 10023 | |
554f62e9 RD |
10024 | wxPyEndAllowThreads(__tstate); |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
10027 | resultobj = SWIG_Py_Void(); | |
10028 | return resultobj; | |
10029 | fail: | |
10030 | return NULL; | |
d55e5bfc RD |
10031 | } |
10032 | ||
10033 | ||
554f62e9 RD |
10034 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10035 | PyObject *resultobj = 0; | |
10036 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10037 | void *argp1 = 0 ; | |
10038 | int res1 = 0 ; | |
10039 | PyObject *swig_obj[1] ; | |
10040 | ||
10041 | if (!args) SWIG_fail; | |
10042 | swig_obj[0] = args; | |
10043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10044 | if (!SWIG_IsOK(res1)) { | |
10045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10046 | } | |
10047 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | (arg1)->Init(); | |
10051 | wxPyEndAllowThreads(__tstate); | |
10052 | if (PyErr_Occurred()) SWIG_fail; | |
10053 | } | |
10054 | resultobj = SWIG_Py_Void(); | |
10055 | return resultobj; | |
10056 | fail: | |
10057 | return NULL; | |
10058 | } | |
10059 | ||
10060 | ||
10061 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10062 | PyObject *resultobj = 0; | |
10063 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10064 | wxFont *arg2 = 0 ; | |
10065 | void *argp1 = 0 ; | |
10066 | int res1 = 0 ; | |
10067 | void *argp2 = 0 ; | |
10068 | int res2 = 0 ; | |
10069 | PyObject * obj0 = 0 ; | |
10070 | PyObject * obj1 = 0 ; | |
10071 | char * kwnames[] = { | |
10072 | (char *) "self",(char *) "font", NULL | |
10073 | }; | |
10074 | ||
10075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
10076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10077 | if (!SWIG_IsOK(res1)) { | |
10078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10079 | } | |
10080 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10081 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10082 | if (!SWIG_IsOK(res2)) { | |
10083 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10084 | } | |
10085 | if (!argp2) { | |
10086 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10087 | } | |
10088 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10089 | { | |
10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10091 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
10095 | resultobj = SWIG_Py_Void(); | |
10096 | return resultobj; | |
10097 | fail: | |
10098 | return NULL; | |
d55e5bfc RD |
10099 | } |
10100 | ||
10101 | ||
554f62e9 RD |
10102 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10103 | PyObject *resultobj = 0; | |
10104 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10105 | int result; | |
10106 | void *argp1 = 0 ; | |
10107 | int res1 = 0 ; | |
10108 | PyObject *swig_obj[1] ; | |
10109 | ||
10110 | if (!args) SWIG_fail; | |
10111 | swig_obj[0] = args; | |
10112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10113 | if (!SWIG_IsOK(res1)) { | |
10114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10115 | } | |
10116 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10117 | { | |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10119 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
10123 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10124 | return resultobj; | |
10125 | fail: | |
10126 | return NULL; | |
d55e5bfc RD |
10127 | } |
10128 | ||
10129 | ||
554f62e9 RD |
10130 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10131 | PyObject *resultobj = 0; | |
10132 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10133 | wxSize result; | |
10134 | void *argp1 = 0 ; | |
10135 | int res1 = 0 ; | |
10136 | PyObject *swig_obj[1] ; | |
10137 | ||
10138 | if (!args) SWIG_fail; | |
10139 | swig_obj[0] = args; | |
10140 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10141 | if (!SWIG_IsOK(res1)) { | |
10142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10143 | } | |
10144 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10147 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
10148 | wxPyEndAllowThreads(__tstate); | |
10149 | if (PyErr_Occurred()) SWIG_fail; | |
10150 | } | |
10151 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
10152 | return resultobj; | |
10153 | fail: | |
10154 | return NULL; | |
d55e5bfc RD |
10155 | } |
10156 | ||
10157 | ||
554f62e9 RD |
10158 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10159 | PyObject *resultobj = 0; | |
10160 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10161 | wxFontStyle result; | |
10162 | void *argp1 = 0 ; | |
10163 | int res1 = 0 ; | |
10164 | PyObject *swig_obj[1] ; | |
10165 | ||
10166 | if (!args) SWIG_fail; | |
10167 | swig_obj[0] = args; | |
10168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10169 | if (!SWIG_IsOK(res1)) { | |
10170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10171 | } | |
10172 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10173 | { | |
10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10175 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
10176 | wxPyEndAllowThreads(__tstate); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
10179 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10180 | return resultobj; | |
10181 | fail: | |
10182 | return NULL; | |
d55e5bfc RD |
10183 | } |
10184 | ||
10185 | ||
554f62e9 RD |
10186 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10187 | PyObject *resultobj = 0; | |
10188 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10189 | wxFontWeight result; | |
10190 | void *argp1 = 0 ; | |
10191 | int res1 = 0 ; | |
10192 | PyObject *swig_obj[1] ; | |
10193 | ||
10194 | if (!args) SWIG_fail; | |
10195 | swig_obj[0] = args; | |
10196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10197 | if (!SWIG_IsOK(res1)) { | |
10198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10199 | } | |
10200 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10201 | { | |
10202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10203 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
10204 | wxPyEndAllowThreads(__tstate); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10208 | return resultobj; | |
10209 | fail: | |
10210 | return NULL; | |
d55e5bfc RD |
10211 | } |
10212 | ||
10213 | ||
554f62e9 RD |
10214 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10215 | PyObject *resultobj = 0; | |
10216 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10217 | bool result; | |
10218 | void *argp1 = 0 ; | |
10219 | int res1 = 0 ; | |
10220 | PyObject *swig_obj[1] ; | |
10221 | ||
10222 | if (!args) SWIG_fail; | |
10223 | swig_obj[0] = args; | |
10224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10225 | if (!SWIG_IsOK(res1)) { | |
10226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10227 | } | |
10228 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10229 | { | |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | { | |
10236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10237 | } | |
10238 | return resultobj; | |
10239 | fail: | |
10240 | return NULL; | |
d55e5bfc RD |
10241 | } |
10242 | ||
10243 | ||
554f62e9 RD |
10244 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10245 | PyObject *resultobj = 0; | |
10246 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10247 | wxString result; | |
10248 | void *argp1 = 0 ; | |
10249 | int res1 = 0 ; | |
10250 | PyObject *swig_obj[1] ; | |
10251 | ||
10252 | if (!args) SWIG_fail; | |
10253 | swig_obj[0] = args; | |
10254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10255 | if (!SWIG_IsOK(res1)) { | |
10256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10257 | } | |
10258 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10261 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
10262 | wxPyEndAllowThreads(__tstate); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
10265 | { | |
093d3ff1 | 10266 | #if wxUSE_UNICODE |
554f62e9 | 10267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 10268 | #else |
554f62e9 | 10269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 10270 | #endif |
554f62e9 RD |
10271 | } |
10272 | return resultobj; | |
10273 | fail: | |
10274 | return NULL; | |
d55e5bfc RD |
10275 | } |
10276 | ||
10277 | ||
554f62e9 RD |
10278 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10279 | PyObject *resultobj = 0; | |
10280 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10281 | wxFontFamily result; | |
10282 | void *argp1 = 0 ; | |
10283 | int res1 = 0 ; | |
10284 | PyObject *swig_obj[1] ; | |
10285 | ||
10286 | if (!args) SWIG_fail; | |
10287 | swig_obj[0] = args; | |
10288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10289 | if (!SWIG_IsOK(res1)) { | |
10290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10291 | } | |
10292 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10293 | { | |
10294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10295 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
10296 | wxPyEndAllowThreads(__tstate); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10300 | return resultobj; | |
10301 | fail: | |
10302 | return NULL; | |
d55e5bfc RD |
10303 | } |
10304 | ||
10305 | ||
554f62e9 RD |
10306 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10307 | PyObject *resultobj = 0; | |
10308 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10309 | wxFontEncoding result; | |
10310 | void *argp1 = 0 ; | |
10311 | int res1 = 0 ; | |
10312 | PyObject *swig_obj[1] ; | |
10313 | ||
10314 | if (!args) SWIG_fail; | |
10315 | swig_obj[0] = args; | |
10316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10317 | if (!SWIG_IsOK(res1)) { | |
10318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10319 | } | |
10320 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10321 | { | |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
10324 | wxPyEndAllowThreads(__tstate); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | } | |
10327 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10328 | return resultobj; | |
10329 | fail: | |
10330 | return NULL; | |
10331 | } | |
10332 | ||
10333 | ||
10334 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10335 | PyObject *resultobj = 0; | |
10336 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10337 | int arg2 ; | |
10338 | void *argp1 = 0 ; | |
10339 | int res1 = 0 ; | |
10340 | int val2 ; | |
10341 | int ecode2 = 0 ; | |
10342 | PyObject * obj0 = 0 ; | |
10343 | PyObject * obj1 = 0 ; | |
10344 | char * kwnames[] = { | |
10345 | (char *) "self",(char *) "pointsize", NULL | |
10346 | }; | |
10347 | ||
10348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10350 | if (!SWIG_IsOK(res1)) { | |
10351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10352 | } | |
10353 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10354 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10355 | if (!SWIG_IsOK(ecode2)) { | |
10356 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
10357 | } | |
10358 | arg2 = static_cast< int >(val2); | |
10359 | { | |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | (arg1)->SetPointSize(arg2); | |
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | resultobj = SWIG_Py_Void(); | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10373 | PyObject *resultobj = 0; | |
10374 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10375 | wxSize *arg2 = 0 ; | |
10376 | void *argp1 = 0 ; | |
10377 | int res1 = 0 ; | |
10378 | wxSize temp2 ; | |
10379 | PyObject * obj0 = 0 ; | |
10380 | PyObject * obj1 = 0 ; | |
10381 | char * kwnames[] = { | |
10382 | (char *) "self",(char *) "pixelSize", NULL | |
10383 | }; | |
10384 | ||
10385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10387 | if (!SWIG_IsOK(res1)) { | |
10388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10389 | } | |
10390 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10391 | { | |
10392 | arg2 = &temp2; | |
10393 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10394 | } | |
10395 | { | |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | resultobj = SWIG_Py_Void(); | |
10402 | return resultobj; | |
10403 | fail: | |
10404 | return NULL; | |
10405 | } | |
10406 | ||
10407 | ||
10408 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj = 0; | |
10410 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10411 | wxFontStyle arg2 ; | |
10412 | void *argp1 = 0 ; | |
10413 | int res1 = 0 ; | |
10414 | int val2 ; | |
10415 | int ecode2 = 0 ; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | PyObject * obj1 = 0 ; | |
10418 | char * kwnames[] = { | |
10419 | (char *) "self",(char *) "style", NULL | |
10420 | }; | |
10421 | ||
10422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10424 | if (!SWIG_IsOK(res1)) { | |
10425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10426 | } | |
10427 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10428 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10429 | if (!SWIG_IsOK(ecode2)) { | |
10430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
10431 | } | |
10432 | arg2 = static_cast< wxFontStyle >(val2); | |
10433 | { | |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | (arg1)->SetStyle(arg2); | |
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
10439 | resultobj = SWIG_Py_Void(); | |
10440 | return resultobj; | |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj = 0; | |
10448 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10449 | wxFontWeight arg2 ; | |
10450 | void *argp1 = 0 ; | |
10451 | int res1 = 0 ; | |
10452 | int val2 ; | |
10453 | int ecode2 = 0 ; | |
10454 | PyObject * obj0 = 0 ; | |
10455 | PyObject * obj1 = 0 ; | |
10456 | char * kwnames[] = { | |
10457 | (char *) "self",(char *) "weight", NULL | |
10458 | }; | |
10459 | ||
10460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10462 | if (!SWIG_IsOK(res1)) { | |
10463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10464 | } | |
10465 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10466 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10467 | if (!SWIG_IsOK(ecode2)) { | |
10468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
10469 | } | |
10470 | arg2 = static_cast< wxFontWeight >(val2); | |
10471 | { | |
10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10473 | (arg1)->SetWeight(arg2); | |
10474 | wxPyEndAllowThreads(__tstate); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | } | |
10477 | resultobj = SWIG_Py_Void(); | |
10478 | return resultobj; | |
10479 | fail: | |
10480 | return NULL; | |
10481 | } | |
10482 | ||
10483 | ||
10484 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10485 | PyObject *resultobj = 0; | |
10486 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10487 | bool arg2 ; | |
10488 | void *argp1 = 0 ; | |
10489 | int res1 = 0 ; | |
10490 | bool val2 ; | |
10491 | int ecode2 = 0 ; | |
10492 | PyObject * obj0 = 0 ; | |
10493 | PyObject * obj1 = 0 ; | |
10494 | char * kwnames[] = { | |
10495 | (char *) "self",(char *) "underlined", NULL | |
10496 | }; | |
10497 | ||
10498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
10499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10500 | if (!SWIG_IsOK(res1)) { | |
10501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10502 | } | |
10503 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10504 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10505 | if (!SWIG_IsOK(ecode2)) { | |
10506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
10507 | } | |
10508 | arg2 = static_cast< bool >(val2); | |
10509 | { | |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | (arg1)->SetUnderlined(arg2); | |
10512 | wxPyEndAllowThreads(__tstate); | |
10513 | if (PyErr_Occurred()) SWIG_fail; | |
10514 | } | |
10515 | resultobj = SWIG_Py_Void(); | |
10516 | return resultobj; | |
10517 | fail: | |
10518 | return NULL; | |
10519 | } | |
10520 | ||
10521 | ||
10522 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10523 | PyObject *resultobj = 0; | |
10524 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10525 | wxString arg2 ; | |
10526 | void *argp1 = 0 ; | |
10527 | int res1 = 0 ; | |
10528 | PyObject * obj0 = 0 ; | |
10529 | PyObject * obj1 = 0 ; | |
10530 | char * kwnames[] = { | |
10531 | (char *) "self",(char *) "facename", NULL | |
10532 | }; | |
10533 | ||
10534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
10535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10536 | if (!SWIG_IsOK(res1)) { | |
10537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10538 | } | |
10539 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10540 | { | |
10541 | wxString* sptr = wxString_in_helper(obj1); | |
10542 | if (sptr == NULL) SWIG_fail; | |
10543 | arg2 = *sptr; | |
10544 | delete sptr; | |
10545 | } | |
10546 | { | |
10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10548 | (arg1)->SetFaceName(arg2); | |
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | resultobj = SWIG_Py_Void(); | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj = 0; | |
10561 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10562 | wxFontFamily arg2 ; | |
10563 | void *argp1 = 0 ; | |
10564 | int res1 = 0 ; | |
10565 | int val2 ; | |
10566 | int ecode2 = 0 ; | |
10567 | PyObject * obj0 = 0 ; | |
10568 | PyObject * obj1 = 0 ; | |
10569 | char * kwnames[] = { | |
10570 | (char *) "self",(char *) "family", NULL | |
10571 | }; | |
10572 | ||
10573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
10574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10575 | if (!SWIG_IsOK(res1)) { | |
10576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10577 | } | |
10578 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10579 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10580 | if (!SWIG_IsOK(ecode2)) { | |
10581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
10582 | } | |
10583 | arg2 = static_cast< wxFontFamily >(val2); | |
10584 | { | |
10585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10586 | (arg1)->SetFamily(arg2); | |
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | resultobj = SWIG_Py_Void(); | |
10591 | return resultobj; | |
10592 | fail: | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
10597 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10598 | PyObject *resultobj = 0; | |
10599 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10600 | wxFontEncoding arg2 ; | |
10601 | void *argp1 = 0 ; | |
10602 | int res1 = 0 ; | |
10603 | int val2 ; | |
10604 | int ecode2 = 0 ; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | PyObject * obj1 = 0 ; | |
10607 | char * kwnames[] = { | |
10608 | (char *) "self",(char *) "encoding", NULL | |
10609 | }; | |
10610 | ||
10611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
10612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10613 | if (!SWIG_IsOK(res1)) { | |
10614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10615 | } | |
10616 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10617 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10618 | if (!SWIG_IsOK(ecode2)) { | |
10619 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10620 | } | |
10621 | arg2 = static_cast< wxFontEncoding >(val2); | |
10622 | { | |
10623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10624 | (arg1)->SetEncoding(arg2); | |
10625 | wxPyEndAllowThreads(__tstate); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
10628 | resultobj = SWIG_Py_Void(); | |
10629 | return resultobj; | |
10630 | fail: | |
10631 | return NULL; | |
10632 | } | |
10633 | ||
10634 | ||
10635 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10636 | PyObject *resultobj = 0; | |
10637 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10638 | wxString *arg2 = 0 ; | |
10639 | bool result; | |
10640 | void *argp1 = 0 ; | |
10641 | int res1 = 0 ; | |
10642 | bool temp2 = false ; | |
10643 | PyObject * obj0 = 0 ; | |
10644 | PyObject * obj1 = 0 ; | |
10645 | char * kwnames[] = { | |
10646 | (char *) "self",(char *) "s", NULL | |
10647 | }; | |
10648 | ||
10649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10651 | if (!SWIG_IsOK(res1)) { | |
10652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10653 | } | |
10654 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10655 | { | |
10656 | arg2 = wxString_in_helper(obj1); | |
10657 | if (arg2 == NULL) SWIG_fail; | |
10658 | temp2 = true; | |
10659 | } | |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
10663 | wxPyEndAllowThreads(__tstate); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | } | |
10666 | { | |
10667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10668 | } | |
10669 | { | |
10670 | if (temp2) | |
10671 | delete arg2; | |
10672 | } | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | { | |
10676 | if (temp2) | |
10677 | delete arg2; | |
10678 | } | |
10679 | return NULL; | |
d55e5bfc RD |
10680 | } |
10681 | ||
10682 | ||
554f62e9 RD |
10683 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10684 | PyObject *resultobj = 0; | |
10685 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10686 | wxString result; | |
10687 | void *argp1 = 0 ; | |
10688 | int res1 = 0 ; | |
10689 | PyObject *swig_obj[1] ; | |
10690 | ||
10691 | if (!args) SWIG_fail; | |
10692 | swig_obj[0] = args; | |
10693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10694 | if (!SWIG_IsOK(res1)) { | |
10695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10696 | } | |
10697 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10698 | { | |
10699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10700 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
10701 | wxPyEndAllowThreads(__tstate); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | } | |
10704 | { | |
10705 | #if wxUSE_UNICODE | |
10706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10707 | #else | |
10708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10709 | #endif | |
10710 | } | |
10711 | return resultobj; | |
10712 | fail: | |
10713 | return NULL; | |
d55e5bfc RD |
10714 | } |
10715 | ||
10716 | ||
554f62e9 RD |
10717 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10718 | PyObject *resultobj = 0; | |
10719 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10720 | wxString result; | |
10721 | void *argp1 = 0 ; | |
10722 | int res1 = 0 ; | |
10723 | PyObject *swig_obj[1] ; | |
10724 | ||
10725 | if (!args) SWIG_fail; | |
10726 | swig_obj[0] = args; | |
10727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10728 | if (!SWIG_IsOK(res1)) { | |
10729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10730 | } | |
10731 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10732 | { | |
10733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10734 | result = wxNativeFontInfo___str__(arg1); | |
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
10738 | { | |
10739 | #if wxUSE_UNICODE | |
10740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10741 | #else | |
10742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10743 | #endif | |
10744 | } | |
10745 | return resultobj; | |
10746 | fail: | |
10747 | return NULL; | |
10748 | } | |
10749 | ||
10750 | ||
10751 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10752 | PyObject *resultobj = 0; | |
10753 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10754 | wxString *arg2 = 0 ; | |
10755 | bool result; | |
10756 | void *argp1 = 0 ; | |
10757 | int res1 = 0 ; | |
10758 | bool temp2 = false ; | |
10759 | PyObject * obj0 = 0 ; | |
10760 | PyObject * obj1 = 0 ; | |
10761 | char * kwnames[] = { | |
10762 | (char *) "self",(char *) "s", NULL | |
10763 | }; | |
10764 | ||
10765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10767 | if (!SWIG_IsOK(res1)) { | |
10768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10769 | } | |
10770 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10771 | { | |
10772 | arg2 = wxString_in_helper(obj1); | |
10773 | if (arg2 == NULL) SWIG_fail; | |
10774 | temp2 = true; | |
10775 | } | |
10776 | { | |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | { | |
10783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10784 | } | |
10785 | { | |
10786 | if (temp2) | |
10787 | delete arg2; | |
10788 | } | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | { | |
10792 | if (temp2) | |
10793 | delete arg2; | |
10794 | } | |
10795 | return NULL; | |
a2569024 RD |
10796 | } |
10797 | ||
10798 | ||
554f62e9 RD |
10799 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10800 | PyObject *resultobj = 0; | |
10801 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10802 | wxString result; | |
10803 | void *argp1 = 0 ; | |
10804 | int res1 = 0 ; | |
10805 | PyObject *swig_obj[1] ; | |
10806 | ||
10807 | if (!args) SWIG_fail; | |
10808 | swig_obj[0] = args; | |
10809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10810 | if (!SWIG_IsOK(res1)) { | |
10811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10812 | } | |
10813 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | { | |
10821 | #if wxUSE_UNICODE | |
10822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10823 | #else | |
10824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10825 | #endif | |
10826 | } | |
10827 | return resultobj; | |
10828 | fail: | |
10829 | return NULL; | |
d55e5bfc RD |
10830 | } |
10831 | ||
10832 | ||
554f62e9 RD |
10833 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10834 | PyObject *obj; | |
10835 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10836 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
10837 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10838 | } |
10839 | ||
554f62e9 RD |
10840 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10841 | return SWIG_Python_InitShadowInstance(args); | |
10842 | } | |
d55e5bfc | 10843 | |
554f62e9 RD |
10844 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10845 | PyObject *resultobj = 0; | |
10846 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10847 | wxString *arg2 = (wxString *) 0 ; | |
10848 | void *argp1 = 0 ; | |
10849 | int res1 = 0 ; | |
10850 | bool temp2 = false ; | |
10851 | PyObject *swig_obj[2] ; | |
10852 | ||
10853 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
10854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10855 | if (!SWIG_IsOK(res1)) { | |
10856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10857 | } | |
10858 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10859 | { | |
10860 | arg2 = wxString_in_helper(swig_obj[1]); | |
10861 | if (arg2 == NULL) SWIG_fail; | |
10862 | temp2 = true; | |
10863 | } | |
10864 | if (arg1) (arg1)->facename = *arg2; | |
10865 | ||
10866 | resultobj = SWIG_Py_Void(); | |
10867 | { | |
10868 | if (temp2) | |
10869 | delete arg2; | |
10870 | } | |
10871 | return resultobj; | |
10872 | fail: | |
10873 | { | |
10874 | if (temp2) | |
10875 | delete arg2; | |
10876 | } | |
10877 | return NULL; | |
d55e5bfc RD |
10878 | } |
10879 | ||
10880 | ||
554f62e9 RD |
10881 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10882 | PyObject *resultobj = 0; | |
10883 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10884 | wxString *result = 0 ; | |
10885 | void *argp1 = 0 ; | |
10886 | int res1 = 0 ; | |
10887 | PyObject *swig_obj[1] ; | |
10888 | ||
10889 | if (!args) SWIG_fail; | |
10890 | swig_obj[0] = args; | |
10891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10892 | if (!SWIG_IsOK(res1)) { | |
10893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10894 | } | |
10895 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10896 | result = (wxString *)& ((arg1)->facename); | |
10897 | { | |
10898 | #if wxUSE_UNICODE | |
10899 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10900 | #else | |
10901 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10902 | #endif | |
10903 | } | |
10904 | return resultobj; | |
10905 | fail: | |
10906 | return NULL; | |
d55e5bfc RD |
10907 | } |
10908 | ||
10909 | ||
554f62e9 RD |
10910 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10911 | PyObject *resultobj = 0; | |
10912 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10913 | wxFontEncoding arg2 ; | |
10914 | void *argp1 = 0 ; | |
10915 | int res1 = 0 ; | |
10916 | int val2 ; | |
10917 | int ecode2 = 0 ; | |
10918 | PyObject *swig_obj[2] ; | |
10919 | ||
10920 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
10921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10922 | if (!SWIG_IsOK(res1)) { | |
10923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10924 | } | |
10925 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10926 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
10927 | if (!SWIG_IsOK(ecode2)) { | |
10928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10929 | } | |
10930 | arg2 = static_cast< wxFontEncoding >(val2); | |
10931 | if (arg1) (arg1)->encoding = arg2; | |
10932 | ||
10933 | resultobj = SWIG_Py_Void(); | |
10934 | return resultobj; | |
10935 | fail: | |
10936 | return NULL; | |
d55e5bfc RD |
10937 | } |
10938 | ||
10939 | ||
554f62e9 RD |
10940 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10941 | PyObject *resultobj = 0; | |
10942 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10943 | wxFontEncoding result; | |
10944 | void *argp1 = 0 ; | |
10945 | int res1 = 0 ; | |
10946 | PyObject *swig_obj[1] ; | |
10947 | ||
10948 | if (!args) SWIG_fail; | |
10949 | swig_obj[0] = args; | |
10950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10951 | if (!SWIG_IsOK(res1)) { | |
10952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10953 | } | |
10954 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10955 | result = (wxFontEncoding) ((arg1)->encoding); | |
10956 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
d55e5bfc RD |
10960 | } |
10961 | ||
10962 | ||
554f62e9 RD |
10963 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10964 | PyObject *resultobj = 0; | |
10965 | wxNativeEncodingInfo *result = 0 ; | |
10966 | ||
10967 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
10968 | { | |
10969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10970 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
10971 | wxPyEndAllowThreads(__tstate); | |
10972 | if (PyErr_Occurred()) SWIG_fail; | |
10973 | } | |
10974 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
10975 | return resultobj; | |
10976 | fail: | |
10977 | return NULL; | |
d55e5bfc RD |
10978 | } |
10979 | ||
10980 | ||
554f62e9 RD |
10981 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10982 | PyObject *resultobj = 0; | |
10983 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10984 | void *argp1 = 0 ; | |
10985 | int res1 = 0 ; | |
10986 | PyObject *swig_obj[1] ; | |
10987 | ||
10988 | if (!args) SWIG_fail; | |
10989 | swig_obj[0] = args; | |
10990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
10991 | if (!SWIG_IsOK(res1)) { | |
10992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10993 | } | |
10994 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10995 | { | |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | delete arg1; | |
d55e5bfc | 10998 | |
554f62e9 RD |
10999 | wxPyEndAllowThreads(__tstate); |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | resultobj = SWIG_Py_Void(); | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
11009 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11010 | PyObject *resultobj = 0; | |
11011 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
11012 | wxString *arg2 = 0 ; | |
11013 | bool result; | |
11014 | void *argp1 = 0 ; | |
11015 | int res1 = 0 ; | |
11016 | bool temp2 = false ; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | PyObject * obj1 = 0 ; | |
11019 | char * kwnames[] = { | |
11020 | (char *) "self",(char *) "s", NULL | |
11021 | }; | |
11022 | ||
11023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
11024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11025 | if (!SWIG_IsOK(res1)) { | |
11026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
11027 | } | |
11028 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11029 | { | |
11030 | arg2 = wxString_in_helper(obj1); | |
11031 | if (arg2 == NULL) SWIG_fail; | |
11032 | temp2 = true; | |
11033 | } | |
11034 | { | |
11035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11036 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | { | |
11041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11042 | } | |
11043 | { | |
11044 | if (temp2) | |
11045 | delete arg2; | |
11046 | } | |
11047 | return resultobj; | |
11048 | fail: | |
11049 | { | |
11050 | if (temp2) | |
11051 | delete arg2; | |
11052 | } | |
11053 | return NULL; | |
d55e5bfc RD |
11054 | } |
11055 | ||
11056 | ||
554f62e9 RD |
11057 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11058 | PyObject *resultobj = 0; | |
11059 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
11060 | wxString result; | |
11061 | void *argp1 = 0 ; | |
11062 | int res1 = 0 ; | |
11063 | PyObject *swig_obj[1] ; | |
11064 | ||
11065 | if (!args) SWIG_fail; | |
11066 | swig_obj[0] = args; | |
11067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11068 | if (!SWIG_IsOK(res1)) { | |
11069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
11070 | } | |
11071 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11072 | { | |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11074 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | { | |
11079 | #if wxUSE_UNICODE | |
11080 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11081 | #else | |
11082 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11083 | #endif | |
11084 | } | |
11085 | return resultobj; | |
11086 | fail: | |
11087 | return NULL; | |
d55e5bfc RD |
11088 | } |
11089 | ||
11090 | ||
554f62e9 RD |
11091 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11092 | PyObject *obj; | |
11093 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11094 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
11095 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11096 | } |
11097 | ||
554f62e9 RD |
11098 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11099 | return SWIG_Python_InitShadowInstance(args); | |
11100 | } | |
d55e5bfc | 11101 | |
554f62e9 RD |
11102 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11103 | PyObject *resultobj = 0; | |
11104 | wxFontEncoding arg1 ; | |
11105 | wxNativeEncodingInfo *result = 0 ; | |
11106 | int val1 ; | |
11107 | int ecode1 = 0 ; | |
11108 | PyObject * obj0 = 0 ; | |
11109 | char * kwnames[] = { | |
11110 | (char *) "encoding", NULL | |
11111 | }; | |
11112 | ||
11113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
11114 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11115 | if (!SWIG_IsOK(ecode1)) { | |
11116 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11117 | } | |
11118 | arg1 = static_cast< wxFontEncoding >(val1); | |
11119 | { | |
11120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11121 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
11122 | wxPyEndAllowThreads(__tstate); | |
11123 | if (PyErr_Occurred()) SWIG_fail; | |
11124 | } | |
11125 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11126 | return resultobj; | |
11127 | fail: | |
11128 | return NULL; | |
11129 | } | |
11130 | ||
11131 | ||
11132 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11133 | PyObject *resultobj = 0; | |
11134 | wxNativeEncodingInfo *arg1 = 0 ; | |
11135 | bool result; | |
11136 | void *argp1 = 0 ; | |
11137 | int res1 = 0 ; | |
11138 | PyObject * obj0 = 0 ; | |
11139 | char * kwnames[] = { | |
11140 | (char *) "info", NULL | |
11141 | }; | |
11142 | ||
11143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
11144 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
11145 | if (!SWIG_IsOK(res1)) { | |
11146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
11147 | } | |
11148 | if (!argp1) { | |
11149 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
11150 | } | |
11151 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11152 | { | |
11153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11154 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | { | |
11159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11160 | } | |
11161 | return resultobj; | |
11162 | fail: | |
11163 | return NULL; | |
d55e5bfc RD |
11164 | } |
11165 | ||
11166 | ||
554f62e9 RD |
11167 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11168 | PyObject *resultobj = 0; | |
11169 | wxFontMapper *result = 0 ; | |
11170 | ||
11171 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
11172 | { | |
11173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11174 | result = (wxFontMapper *)new wxFontMapper(); | |
11175 | wxPyEndAllowThreads(__tstate); | |
11176 | if (PyErr_Occurred()) SWIG_fail; | |
11177 | } | |
11178 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
11179 | return resultobj; | |
11180 | fail: | |
11181 | return NULL; | |
d55e5bfc RD |
11182 | } |
11183 | ||
11184 | ||
554f62e9 RD |
11185 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11186 | PyObject *resultobj = 0; | |
11187 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11188 | void *argp1 = 0 ; | |
11189 | int res1 = 0 ; | |
11190 | PyObject *swig_obj[1] ; | |
11191 | ||
11192 | if (!args) SWIG_fail; | |
11193 | swig_obj[0] = args; | |
11194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
11195 | if (!SWIG_IsOK(res1)) { | |
11196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11197 | } | |
11198 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11199 | { | |
11200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11201 | delete arg1; | |
d55e5bfc | 11202 | |
554f62e9 RD |
11203 | wxPyEndAllowThreads(__tstate); |
11204 | if (PyErr_Occurred()) SWIG_fail; | |
11205 | } | |
11206 | resultobj = SWIG_Py_Void(); | |
11207 | return resultobj; | |
11208 | fail: | |
11209 | return NULL; | |
d55e5bfc RD |
11210 | } |
11211 | ||
11212 | ||
554f62e9 RD |
11213 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11214 | PyObject *resultobj = 0; | |
11215 | wxFontMapper *result = 0 ; | |
11216 | ||
11217 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | result = (wxFontMapper *)wxFontMapper::Get(); | |
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | return NULL; | |
11228 | } | |
11229 | ||
11230 | ||
11231 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11232 | PyObject *resultobj = 0; | |
11233 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11234 | wxFontMapper *result = 0 ; | |
11235 | void *argp1 = 0 ; | |
11236 | int res1 = 0 ; | |
11237 | PyObject * obj0 = 0 ; | |
11238 | char * kwnames[] = { | |
11239 | (char *) "mapper", NULL | |
11240 | }; | |
11241 | ||
11242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
11243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11244 | if (!SWIG_IsOK(res1)) { | |
11245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11246 | } | |
11247 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11248 | { | |
11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11250 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
11251 | wxPyEndAllowThreads(__tstate); | |
11252 | if (PyErr_Occurred()) SWIG_fail; | |
11253 | } | |
11254 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11255 | return resultobj; | |
11256 | fail: | |
11257 | return NULL; | |
11258 | } | |
11259 | ||
11260 | ||
11261 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11262 | PyObject *resultobj = 0; | |
11263 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11264 | wxString *arg2 = 0 ; | |
11265 | bool arg3 = (bool) true ; | |
11266 | wxFontEncoding result; | |
11267 | void *argp1 = 0 ; | |
11268 | int res1 = 0 ; | |
11269 | bool temp2 = false ; | |
11270 | bool val3 ; | |
11271 | int ecode3 = 0 ; | |
11272 | PyObject * obj0 = 0 ; | |
11273 | PyObject * obj1 = 0 ; | |
11274 | PyObject * obj2 = 0 ; | |
11275 | char * kwnames[] = { | |
11276 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
11277 | }; | |
11278 | ||
11279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11281 | if (!SWIG_IsOK(res1)) { | |
11282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11283 | } | |
11284 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11285 | { | |
11286 | arg2 = wxString_in_helper(obj1); | |
11287 | if (arg2 == NULL) SWIG_fail; | |
11288 | temp2 = true; | |
11289 | } | |
11290 | if (obj2) { | |
11291 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11292 | if (!SWIG_IsOK(ecode3)) { | |
11293 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
11294 | } | |
11295 | arg3 = static_cast< bool >(val3); | |
11296 | } | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11304 | { | |
11305 | if (temp2) | |
11306 | delete arg2; | |
11307 | } | |
11308 | return resultobj; | |
11309 | fail: | |
11310 | { | |
11311 | if (temp2) | |
11312 | delete arg2; | |
11313 | } | |
11314 | return NULL; | |
d55e5bfc RD |
11315 | } |
11316 | ||
11317 | ||
554f62e9 RD |
11318 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11319 | PyObject *resultobj = 0; | |
11320 | size_t result; | |
11321 | ||
11322 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
11323 | { | |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
11326 | wxPyEndAllowThreads(__tstate); | |
11327 | if (PyErr_Occurred()) SWIG_fail; | |
11328 | } | |
11329 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
11330 | return resultobj; | |
11331 | fail: | |
11332 | return NULL; | |
11333 | } | |
11334 | ||
11335 | ||
11336 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11337 | PyObject *resultobj = 0; | |
11338 | size_t arg1 ; | |
11339 | wxFontEncoding result; | |
11340 | size_t val1 ; | |
11341 | int ecode1 = 0 ; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | char * kwnames[] = { | |
11344 | (char *) "n", NULL | |
11345 | }; | |
11346 | ||
11347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
11348 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
11349 | if (!SWIG_IsOK(ecode1)) { | |
11350 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
11351 | } | |
11352 | arg1 = static_cast< size_t >(val1); | |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
11359 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11360 | return resultobj; | |
11361 | fail: | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
11366 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11367 | PyObject *resultobj = 0; | |
11368 | wxFontEncoding arg1 ; | |
11369 | wxString result; | |
11370 | int val1 ; | |
11371 | int ecode1 = 0 ; | |
11372 | PyObject * obj0 = 0 ; | |
11373 | char * kwnames[] = { | |
11374 | (char *) "encoding", NULL | |
11375 | }; | |
11376 | ||
11377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
11378 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11379 | if (!SWIG_IsOK(ecode1)) { | |
11380 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11381 | } | |
11382 | arg1 = static_cast< wxFontEncoding >(val1); | |
11383 | { | |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | result = wxFontMapper::GetEncodingName(arg1); | |
11386 | wxPyEndAllowThreads(__tstate); | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | } | |
11389 | { | |
11390 | #if wxUSE_UNICODE | |
11391 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11392 | #else | |
11393 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11394 | #endif | |
11395 | } | |
11396 | return resultobj; | |
11397 | fail: | |
11398 | return NULL; | |
d55e5bfc RD |
11399 | } |
11400 | ||
11401 | ||
554f62e9 RD |
11402 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11403 | PyObject *resultobj = 0; | |
11404 | wxFontEncoding arg1 ; | |
11405 | wxString result; | |
11406 | int val1 ; | |
11407 | int ecode1 = 0 ; | |
11408 | PyObject * obj0 = 0 ; | |
11409 | char * kwnames[] = { | |
11410 | (char *) "encoding", NULL | |
11411 | }; | |
11412 | ||
11413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
11414 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11415 | if (!SWIG_IsOK(ecode1)) { | |
11416 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11417 | } | |
11418 | arg1 = static_cast< wxFontEncoding >(val1); | |
11419 | { | |
11420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11421 | result = wxFontMapper::GetEncodingDescription(arg1); | |
11422 | wxPyEndAllowThreads(__tstate); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
11425 | { | |
11426 | #if wxUSE_UNICODE | |
11427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11428 | #else | |
11429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11430 | #endif | |
11431 | } | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
d55e5bfc RD |
11435 | } |
11436 | ||
11437 | ||
554f62e9 RD |
11438 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11439 | PyObject *resultobj = 0; | |
11440 | wxString *arg1 = 0 ; | |
11441 | wxFontEncoding result; | |
11442 | bool temp1 = false ; | |
11443 | PyObject * obj0 = 0 ; | |
11444 | char * kwnames[] = { | |
11445 | (char *) "name", NULL | |
11446 | }; | |
11447 | ||
11448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
11449 | { | |
11450 | arg1 = wxString_in_helper(obj0); | |
11451 | if (arg1 == NULL) SWIG_fail; | |
11452 | temp1 = true; | |
11453 | } | |
11454 | { | |
11455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11456 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
11457 | wxPyEndAllowThreads(__tstate); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
11460 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11461 | { | |
11462 | if (temp1) | |
11463 | delete arg1; | |
11464 | } | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | { | |
11468 | if (temp1) | |
11469 | delete arg1; | |
11470 | } | |
11471 | return NULL; | |
d55e5bfc RD |
11472 | } |
11473 | ||
11474 | ||
554f62e9 RD |
11475 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11476 | PyObject *resultobj = 0; | |
11477 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11478 | wxString *arg2 = 0 ; | |
11479 | void *argp1 = 0 ; | |
11480 | int res1 = 0 ; | |
11481 | bool temp2 = false ; | |
11482 | PyObject * obj0 = 0 ; | |
11483 | PyObject * obj1 = 0 ; | |
11484 | char * kwnames[] = { | |
11485 | (char *) "self",(char *) "prefix", NULL | |
11486 | }; | |
11487 | ||
11488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
11489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11490 | if (!SWIG_IsOK(res1)) { | |
11491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11492 | } | |
11493 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11494 | { | |
11495 | arg2 = wxString_in_helper(obj1); | |
11496 | if (arg2 == NULL) SWIG_fail; | |
11497 | temp2 = true; | |
11498 | } | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | resultobj = SWIG_Py_Void(); | |
11506 | { | |
11507 | if (temp2) | |
11508 | delete arg2; | |
11509 | } | |
11510 | return resultobj; | |
11511 | fail: | |
11512 | { | |
11513 | if (temp2) | |
11514 | delete arg2; | |
11515 | } | |
11516 | return NULL; | |
d55e5bfc RD |
11517 | } |
11518 | ||
11519 | ||
554f62e9 RD |
11520 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11521 | PyObject *resultobj = 0; | |
11522 | wxString result; | |
11523 | ||
11524 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = wxFontMapper::GetDefaultConfigPath(); | |
11528 | wxPyEndAllowThreads(__tstate); | |
11529 | if (PyErr_Occurred()) SWIG_fail; | |
11530 | } | |
11531 | { | |
11532 | #if wxUSE_UNICODE | |
11533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11534 | #else | |
11535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11536 | #endif | |
11537 | } | |
11538 | return resultobj; | |
11539 | fail: | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
11544 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11545 | PyObject *resultobj = 0; | |
11546 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11547 | wxFontEncoding arg2 ; | |
11548 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11549 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11550 | bool arg4 = (bool) true ; | |
11551 | PyObject *result = 0 ; | |
11552 | void *argp1 = 0 ; | |
11553 | int res1 = 0 ; | |
11554 | int val2 ; | |
11555 | int ecode2 = 0 ; | |
11556 | bool temp3 = false ; | |
11557 | bool val4 ; | |
11558 | int ecode4 = 0 ; | |
11559 | PyObject * obj0 = 0 ; | |
11560 | PyObject * obj1 = 0 ; | |
11561 | PyObject * obj2 = 0 ; | |
11562 | PyObject * obj3 = 0 ; | |
11563 | char * kwnames[] = { | |
11564 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
11565 | }; | |
11566 | ||
11567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11569 | if (!SWIG_IsOK(res1)) { | |
11570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11571 | } | |
11572 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11573 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11574 | if (!SWIG_IsOK(ecode2)) { | |
11575 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
11576 | } | |
11577 | arg2 = static_cast< wxFontEncoding >(val2); | |
11578 | if (obj2) { | |
d55e5bfc | 11579 | { |
554f62e9 RD |
11580 | arg3 = wxString_in_helper(obj2); |
11581 | if (arg3 == NULL) SWIG_fail; | |
11582 | temp3 = true; | |
d55e5bfc | 11583 | } |
554f62e9 RD |
11584 | } |
11585 | if (obj3) { | |
11586 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
11587 | if (!SWIG_IsOK(ecode4)) { | |
11588 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
11589 | } | |
11590 | arg4 = static_cast< bool >(val4); | |
11591 | } | |
11592 | { | |
11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11594 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | resultobj = result; | |
11599 | { | |
11600 | if (temp3) | |
11601 | delete arg3; | |
11602 | } | |
11603 | return resultobj; | |
11604 | fail: | |
11605 | { | |
11606 | if (temp3) | |
11607 | delete arg3; | |
11608 | } | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
11613 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11614 | PyObject *resultobj = 0; | |
11615 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11616 | wxFontEncoding arg2 ; | |
11617 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11618 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11619 | bool result; | |
11620 | void *argp1 = 0 ; | |
11621 | int res1 = 0 ; | |
11622 | int val2 ; | |
11623 | int ecode2 = 0 ; | |
11624 | bool temp3 = false ; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | PyObject * obj1 = 0 ; | |
11627 | PyObject * obj2 = 0 ; | |
11628 | char * kwnames[] = { | |
11629 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
11630 | }; | |
11631 | ||
11632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11634 | if (!SWIG_IsOK(res1)) { | |
11635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11636 | } | |
11637 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11638 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11639 | if (!SWIG_IsOK(ecode2)) { | |
11640 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
11641 | } | |
11642 | arg2 = static_cast< wxFontEncoding >(val2); | |
11643 | if (obj2) { | |
093d3ff1 | 11644 | { |
554f62e9 RD |
11645 | arg3 = wxString_in_helper(obj2); |
11646 | if (arg3 == NULL) SWIG_fail; | |
11647 | temp3 = true; | |
d55e5bfc | 11648 | } |
554f62e9 RD |
11649 | } |
11650 | { | |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11652 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
11653 | wxPyEndAllowThreads(__tstate); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
11656 | { | |
11657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11658 | } | |
11659 | { | |
11660 | if (temp3) | |
11661 | delete arg3; | |
11662 | } | |
11663 | return resultobj; | |
11664 | fail: | |
11665 | { | |
11666 | if (temp3) | |
11667 | delete arg3; | |
11668 | } | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
11673 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11674 | PyObject *resultobj = 0; | |
11675 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11676 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11677 | void *argp1 = 0 ; | |
11678 | int res1 = 0 ; | |
11679 | void *argp2 = 0 ; | |
11680 | int res2 = 0 ; | |
11681 | PyObject * obj0 = 0 ; | |
11682 | PyObject * obj1 = 0 ; | |
11683 | char * kwnames[] = { | |
11684 | (char *) "self",(char *) "parent", NULL | |
11685 | }; | |
11686 | ||
11687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11689 | if (!SWIG_IsOK(res1)) { | |
11690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11691 | } | |
11692 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11693 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11694 | if (!SWIG_IsOK(res2)) { | |
11695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11696 | } | |
11697 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11698 | { | |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | (arg1)->SetDialogParent(arg2); | |
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | resultobj = SWIG_Py_Void(); | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11712 | PyObject *resultobj = 0; | |
11713 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11714 | wxString *arg2 = 0 ; | |
11715 | void *argp1 = 0 ; | |
11716 | int res1 = 0 ; | |
11717 | bool temp2 = false ; | |
11718 | PyObject * obj0 = 0 ; | |
11719 | PyObject * obj1 = 0 ; | |
11720 | char * kwnames[] = { | |
11721 | (char *) "self",(char *) "title", NULL | |
11722 | }; | |
11723 | ||
11724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
11725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11726 | if (!SWIG_IsOK(res1)) { | |
11727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11728 | } | |
11729 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11730 | { | |
11731 | arg2 = wxString_in_helper(obj1); | |
11732 | if (arg2 == NULL) SWIG_fail; | |
11733 | temp2 = true; | |
11734 | } | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
11738 | wxPyEndAllowThreads(__tstate); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | resultobj = SWIG_Py_Void(); | |
11742 | { | |
11743 | if (temp2) | |
11744 | delete arg2; | |
11745 | } | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | { | |
11749 | if (temp2) | |
11750 | delete arg2; | |
11751 | } | |
11752 | return NULL; | |
11753 | } | |
11754 | ||
11755 | ||
11756 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11757 | PyObject *obj; | |
11758 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11759 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
11760 | return SWIG_Py_Void(); | |
11761 | } | |
11762 | ||
11763 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11764 | return SWIG_Python_InitShadowInstance(args); | |
11765 | } | |
11766 | ||
11767 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11768 | PyObject *resultobj = 0; | |
11769 | int arg1 ; | |
11770 | int arg2 ; | |
11771 | int arg3 ; | |
11772 | int arg4 ; | |
11773 | bool arg5 = (bool) false ; | |
11774 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
11775 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11776 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11777 | wxFont *result = 0 ; | |
11778 | int val1 ; | |
11779 | int ecode1 = 0 ; | |
11780 | int val2 ; | |
11781 | int ecode2 = 0 ; | |
11782 | int val3 ; | |
11783 | int ecode3 = 0 ; | |
11784 | int val4 ; | |
11785 | int ecode4 = 0 ; | |
11786 | bool val5 ; | |
11787 | int ecode5 = 0 ; | |
11788 | bool temp6 = false ; | |
11789 | int val7 ; | |
11790 | int ecode7 = 0 ; | |
11791 | PyObject * obj0 = 0 ; | |
11792 | PyObject * obj1 = 0 ; | |
11793 | PyObject * obj2 = 0 ; | |
11794 | PyObject * obj3 = 0 ; | |
11795 | PyObject * obj4 = 0 ; | |
11796 | PyObject * obj5 = 0 ; | |
11797 | PyObject * obj6 = 0 ; | |
11798 | char * kwnames[] = { | |
11799 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
11800 | }; | |
11801 | ||
11802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
11803 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11804 | if (!SWIG_IsOK(ecode1)) { | |
11805 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
11806 | } | |
11807 | arg1 = static_cast< int >(val1); | |
11808 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11809 | if (!SWIG_IsOK(ecode2)) { | |
11810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
11811 | } | |
11812 | arg2 = static_cast< int >(val2); | |
11813 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11814 | if (!SWIG_IsOK(ecode3)) { | |
11815 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
11816 | } | |
11817 | arg3 = static_cast< int >(val3); | |
11818 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11819 | if (!SWIG_IsOK(ecode4)) { | |
11820 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
11821 | } | |
11822 | arg4 = static_cast< int >(val4); | |
11823 | if (obj4) { | |
11824 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
11825 | if (!SWIG_IsOK(ecode5)) { | |
11826 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
11827 | } | |
11828 | arg5 = static_cast< bool >(val5); | |
11829 | } | |
11830 | if (obj5) { | |
d55e5bfc | 11831 | { |
554f62e9 RD |
11832 | arg6 = wxString_in_helper(obj5); |
11833 | if (arg6 == NULL) SWIG_fail; | |
11834 | temp6 = true; | |
d55e5bfc | 11835 | } |
554f62e9 RD |
11836 | } |
11837 | if (obj6) { | |
11838 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
11839 | if (!SWIG_IsOK(ecode7)) { | |
11840 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
11841 | } | |
11842 | arg7 = static_cast< wxFontEncoding >(val7); | |
11843 | } | |
11844 | { | |
11845 | if (!wxPyCheckForApp()) SWIG_fail; | |
11846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11847 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
11848 | wxPyEndAllowThreads(__tstate); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
11852 | { | |
11853 | if (temp6) | |
11854 | delete arg6; | |
11855 | } | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | { | |
11859 | if (temp6) | |
11860 | delete arg6; | |
11861 | } | |
11862 | return NULL; | |
d55e5bfc RD |
11863 | } |
11864 | ||
11865 | ||
554f62e9 RD |
11866 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11867 | PyObject *resultobj = 0; | |
11868 | wxFont *arg1 = (wxFont *) 0 ; | |
11869 | void *argp1 = 0 ; | |
11870 | int res1 = 0 ; | |
11871 | PyObject *swig_obj[1] ; | |
11872 | ||
11873 | if (!args) SWIG_fail; | |
11874 | swig_obj[0] = args; | |
11875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
11876 | if (!SWIG_IsOK(res1)) { | |
11877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
11878 | } | |
11879 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | delete arg1; | |
d55e5bfc | 11883 | |
554f62e9 RD |
11884 | wxPyEndAllowThreads(__tstate); |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | } | |
11887 | resultobj = SWIG_Py_Void(); | |
11888 | return resultobj; | |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
11894 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11895 | PyObject *resultobj = 0; | |
11896 | wxNativeFontInfo *arg1 = 0 ; | |
11897 | wxFont *result = 0 ; | |
11898 | void *argp1 = 0 ; | |
11899 | int res1 = 0 ; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | char * kwnames[] = { | |
11902 | (char *) "info", NULL | |
11903 | }; | |
11904 | ||
11905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
11906 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
11907 | if (!SWIG_IsOK(res1)) { | |
11908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11909 | } | |
11910 | if (!argp1) { | |
11911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11912 | } | |
11913 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11914 | { | |
11915 | if (!wxPyCheckForApp()) SWIG_fail; | |
11916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11917 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
11918 | wxPyEndAllowThreads(__tstate); | |
11919 | if (PyErr_Occurred()) SWIG_fail; | |
11920 | } | |
11921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11922 | return resultobj; | |
11923 | fail: | |
11924 | return NULL; | |
d55e5bfc RD |
11925 | } |
11926 | ||
11927 | ||
554f62e9 RD |
11928 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11929 | PyObject *resultobj = 0; | |
11930 | wxString *arg1 = 0 ; | |
11931 | wxFont *result = 0 ; | |
11932 | bool temp1 = false ; | |
11933 | PyObject * obj0 = 0 ; | |
11934 | char * kwnames[] = { | |
11935 | (char *) "info", NULL | |
11936 | }; | |
11937 | ||
11938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
11939 | { | |
11940 | arg1 = wxString_in_helper(obj0); | |
11941 | if (arg1 == NULL) SWIG_fail; | |
11942 | temp1 = true; | |
11943 | } | |
11944 | { | |
11945 | if (!wxPyCheckForApp()) SWIG_fail; | |
11946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11947 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
11948 | wxPyEndAllowThreads(__tstate); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | } | |
11951 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11952 | { | |
11953 | if (temp1) | |
11954 | delete arg1; | |
11955 | } | |
11956 | return resultobj; | |
11957 | fail: | |
11958 | { | |
11959 | if (temp1) | |
11960 | delete arg1; | |
11961 | } | |
11962 | return NULL; | |
11963 | } | |
11964 | ||
11965 | ||
11966 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11967 | PyObject *resultobj = 0; | |
11968 | int arg1 ; | |
11969 | wxFontFamily arg2 ; | |
11970 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
11971 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11972 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11973 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11974 | wxFont *result = 0 ; | |
11975 | int val1 ; | |
11976 | int ecode1 = 0 ; | |
11977 | int val2 ; | |
11978 | int ecode2 = 0 ; | |
11979 | int val3 ; | |
11980 | int ecode3 = 0 ; | |
11981 | bool temp4 = false ; | |
11982 | int val5 ; | |
11983 | int ecode5 = 0 ; | |
11984 | PyObject * obj0 = 0 ; | |
11985 | PyObject * obj1 = 0 ; | |
11986 | PyObject * obj2 = 0 ; | |
11987 | PyObject * obj3 = 0 ; | |
11988 | PyObject * obj4 = 0 ; | |
11989 | char * kwnames[] = { | |
11990 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
11991 | }; | |
11992 | ||
11993 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11994 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11995 | if (!SWIG_IsOK(ecode1)) { | |
11996 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
11997 | } | |
11998 | arg1 = static_cast< int >(val1); | |
11999 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12000 | if (!SWIG_IsOK(ecode2)) { | |
12001 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12002 | } | |
12003 | arg2 = static_cast< wxFontFamily >(val2); | |
12004 | if (obj2) { | |
12005 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12006 | if (!SWIG_IsOK(ecode3)) { | |
12007 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
12008 | } | |
12009 | arg3 = static_cast< int >(val3); | |
12010 | } | |
12011 | if (obj3) { | |
d55e5bfc | 12012 | { |
554f62e9 RD |
12013 | arg4 = wxString_in_helper(obj3); |
12014 | if (arg4 == NULL) SWIG_fail; | |
12015 | temp4 = true; | |
d55e5bfc | 12016 | } |
554f62e9 RD |
12017 | } |
12018 | if (obj4) { | |
12019 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12020 | if (!SWIG_IsOK(ecode5)) { | |
12021 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
12022 | } | |
12023 | arg5 = static_cast< wxFontEncoding >(val5); | |
12024 | } | |
12025 | { | |
12026 | if (!wxPyCheckForApp()) SWIG_fail; | |
12027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12028 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
12029 | wxPyEndAllowThreads(__tstate); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | } | |
12032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12033 | { | |
12034 | if (temp4) | |
12035 | delete arg4; | |
12036 | } | |
12037 | return resultobj; | |
12038 | fail: | |
12039 | { | |
12040 | if (temp4) | |
12041 | delete arg4; | |
12042 | } | |
12043 | return NULL; | |
12044 | } | |
12045 | ||
12046 | ||
12047 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12048 | PyObject *resultobj = 0; | |
12049 | wxSize *arg1 = 0 ; | |
12050 | int arg2 ; | |
12051 | int arg3 ; | |
12052 | int arg4 ; | |
12053 | bool arg5 = (bool) false ; | |
12054 | wxString const &arg6_defvalue = wxEmptyString ; | |
12055 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12056 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
12057 | wxFont *result = 0 ; | |
12058 | wxSize temp1 ; | |
12059 | int val2 ; | |
12060 | int ecode2 = 0 ; | |
12061 | int val3 ; | |
12062 | int ecode3 = 0 ; | |
12063 | int val4 ; | |
12064 | int ecode4 = 0 ; | |
12065 | bool val5 ; | |
12066 | int ecode5 = 0 ; | |
12067 | bool temp6 = false ; | |
12068 | int val7 ; | |
12069 | int ecode7 = 0 ; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | PyObject * obj1 = 0 ; | |
12072 | PyObject * obj2 = 0 ; | |
12073 | PyObject * obj3 = 0 ; | |
12074 | PyObject * obj4 = 0 ; | |
12075 | PyObject * obj5 = 0 ; | |
12076 | PyObject * obj6 = 0 ; | |
12077 | char * kwnames[] = { | |
12078 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
12079 | }; | |
12080 | ||
12081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12082 | { | |
12083 | arg1 = &temp1; | |
12084 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
12085 | } | |
12086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12087 | if (!SWIG_IsOK(ecode2)) { | |
12088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
12089 | } | |
12090 | arg2 = static_cast< int >(val2); | |
12091 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12092 | if (!SWIG_IsOK(ecode3)) { | |
12093 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
12094 | } | |
12095 | arg3 = static_cast< int >(val3); | |
12096 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12097 | if (!SWIG_IsOK(ecode4)) { | |
12098 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
12099 | } | |
12100 | arg4 = static_cast< int >(val4); | |
12101 | if (obj4) { | |
12102 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
12103 | if (!SWIG_IsOK(ecode5)) { | |
12104 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
12105 | } | |
12106 | arg5 = static_cast< bool >(val5); | |
12107 | } | |
12108 | if (obj5) { | |
d55e5bfc | 12109 | { |
554f62e9 RD |
12110 | arg6 = wxString_in_helper(obj5); |
12111 | if (arg6 == NULL) SWIG_fail; | |
12112 | temp6 = true; | |
d55e5bfc | 12113 | } |
554f62e9 RD |
12114 | } |
12115 | if (obj6) { | |
12116 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
12117 | if (!SWIG_IsOK(ecode7)) { | |
12118 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
12119 | } | |
12120 | arg7 = static_cast< wxFontEncoding >(val7); | |
12121 | } | |
12122 | { | |
12123 | if (!wxPyCheckForApp()) SWIG_fail; | |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
12126 | wxPyEndAllowThreads(__tstate); | |
12127 | if (PyErr_Occurred()) SWIG_fail; | |
12128 | } | |
12129 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12130 | { | |
12131 | if (temp6) | |
12132 | delete arg6; | |
12133 | } | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | { | |
12137 | if (temp6) | |
12138 | delete arg6; | |
12139 | } | |
12140 | return NULL; | |
12141 | } | |
12142 | ||
12143 | ||
12144 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12145 | PyObject *resultobj = 0; | |
12146 | wxSize *arg1 = 0 ; | |
12147 | wxFontFamily arg2 ; | |
12148 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
12149 | wxString const &arg4_defvalue = wxEmptyString ; | |
12150 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12151 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
12152 | wxFont *result = 0 ; | |
12153 | wxSize temp1 ; | |
12154 | int val2 ; | |
12155 | int ecode2 = 0 ; | |
12156 | int val3 ; | |
12157 | int ecode3 = 0 ; | |
12158 | bool temp4 = false ; | |
12159 | int val5 ; | |
12160 | int ecode5 = 0 ; | |
12161 | PyObject * obj0 = 0 ; | |
12162 | PyObject * obj1 = 0 ; | |
12163 | PyObject * obj2 = 0 ; | |
12164 | PyObject * obj3 = 0 ; | |
12165 | PyObject * obj4 = 0 ; | |
12166 | char * kwnames[] = { | |
12167 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
12168 | }; | |
12169 | ||
12170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
12171 | { | |
12172 | arg1 = &temp1; | |
12173 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
12174 | } | |
12175 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12176 | if (!SWIG_IsOK(ecode2)) { | |
12177 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12178 | } | |
12179 | arg2 = static_cast< wxFontFamily >(val2); | |
12180 | if (obj2) { | |
12181 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12182 | if (!SWIG_IsOK(ecode3)) { | |
12183 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
12184 | } | |
12185 | arg3 = static_cast< int >(val3); | |
12186 | } | |
12187 | if (obj3) { | |
d55e5bfc | 12188 | { |
554f62e9 RD |
12189 | arg4 = wxString_in_helper(obj3); |
12190 | if (arg4 == NULL) SWIG_fail; | |
12191 | temp4 = true; | |
d55e5bfc | 12192 | } |
554f62e9 RD |
12193 | } |
12194 | if (obj4) { | |
12195 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12196 | if (!SWIG_IsOK(ecode5)) { | |
12197 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
12198 | } | |
12199 | arg5 = static_cast< wxFontEncoding >(val5); | |
12200 | } | |
12201 | { | |
12202 | if (!wxPyCheckForApp()) SWIG_fail; | |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12204 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
12205 | wxPyEndAllowThreads(__tstate); | |
12206 | if (PyErr_Occurred()) SWIG_fail; | |
12207 | } | |
12208 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12209 | { | |
12210 | if (temp4) | |
12211 | delete arg4; | |
12212 | } | |
12213 | return resultobj; | |
12214 | fail: | |
12215 | { | |
12216 | if (temp4) | |
12217 | delete arg4; | |
12218 | } | |
12219 | return NULL; | |
d55e5bfc RD |
12220 | } |
12221 | ||
12222 | ||
554f62e9 RD |
12223 | SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12224 | PyObject *resultobj = 0; | |
12225 | wxFont *arg1 = (wxFont *) 0 ; | |
12226 | bool result; | |
12227 | void *argp1 = 0 ; | |
12228 | int res1 = 0 ; | |
12229 | PyObject *swig_obj[1] ; | |
12230 | ||
12231 | if (!args) SWIG_fail; | |
12232 | swig_obj[0] = args; | |
12233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12234 | if (!SWIG_IsOK(res1)) { | |
12235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12236 | } | |
12237 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | result = (bool)((wxFont const *)arg1)->Ok(); | |
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
12244 | { | |
12245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12246 | } | |
12247 | return resultobj; | |
12248 | fail: | |
12249 | return NULL; | |
12250 | } | |
12251 | ||
12252 | ||
12253 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12254 | PyObject *resultobj = 0; | |
12255 | wxFont *arg1 = (wxFont *) 0 ; | |
12256 | wxFont *arg2 = (wxFont *) 0 ; | |
12257 | bool result; | |
12258 | void *argp1 = 0 ; | |
12259 | int res1 = 0 ; | |
12260 | void *argp2 = 0 ; | |
12261 | int res2 = 0 ; | |
12262 | PyObject * obj0 = 0 ; | |
12263 | PyObject * obj1 = 0 ; | |
12264 | char * kwnames[] = { | |
12265 | (char *) "self",(char *) "other", NULL | |
12266 | }; | |
12267 | ||
12268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
12269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12270 | if (!SWIG_IsOK(res1)) { | |
12271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12272 | } | |
12273 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12274 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12275 | if (!SWIG_IsOK(res2)) { | |
12276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
12277 | } | |
12278 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12279 | { | |
12280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12281 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
12282 | wxPyEndAllowThreads(__tstate); | |
12283 | if (PyErr_Occurred()) SWIG_fail; | |
12284 | } | |
12285 | { | |
12286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12287 | } | |
12288 | return resultobj; | |
12289 | fail: | |
12290 | return NULL; | |
12291 | } | |
12292 | ||
12293 | ||
12294 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12295 | PyObject *resultobj = 0; | |
12296 | wxFont *arg1 = (wxFont *) 0 ; | |
12297 | wxFont *arg2 = (wxFont *) 0 ; | |
12298 | bool result; | |
12299 | void *argp1 = 0 ; | |
12300 | int res1 = 0 ; | |
12301 | void *argp2 = 0 ; | |
12302 | int res2 = 0 ; | |
12303 | PyObject * obj0 = 0 ; | |
12304 | PyObject * obj1 = 0 ; | |
12305 | char * kwnames[] = { | |
12306 | (char *) "self",(char *) "other", NULL | |
12307 | }; | |
12308 | ||
12309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
12310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12311 | if (!SWIG_IsOK(res1)) { | |
12312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12313 | } | |
12314 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12315 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12316 | if (!SWIG_IsOK(res2)) { | |
12317 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
12318 | } | |
12319 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12320 | { | |
12321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12322 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | { | |
12327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12328 | } | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
a2569024 RD |
12332 | } |
12333 | ||
12334 | ||
554f62e9 RD |
12335 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12336 | PyObject *resultobj = 0; | |
12337 | wxFont *arg1 = (wxFont *) 0 ; | |
12338 | int result; | |
12339 | void *argp1 = 0 ; | |
12340 | int res1 = 0 ; | |
12341 | PyObject *swig_obj[1] ; | |
12342 | ||
12343 | if (!args) SWIG_fail; | |
12344 | swig_obj[0] = args; | |
12345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12346 | if (!SWIG_IsOK(res1)) { | |
12347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12348 | } | |
12349 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12350 | { | |
12351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12352 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
12353 | wxPyEndAllowThreads(__tstate); | |
12354 | if (PyErr_Occurred()) SWIG_fail; | |
12355 | } | |
12356 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12357 | return resultobj; | |
12358 | fail: | |
12359 | return NULL; | |
d55e5bfc RD |
12360 | } |
12361 | ||
12362 | ||
554f62e9 RD |
12363 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12364 | PyObject *resultobj = 0; | |
12365 | wxFont *arg1 = (wxFont *) 0 ; | |
12366 | wxSize result; | |
12367 | void *argp1 = 0 ; | |
12368 | int res1 = 0 ; | |
12369 | PyObject *swig_obj[1] ; | |
12370 | ||
12371 | if (!args) SWIG_fail; | |
12372 | swig_obj[0] = args; | |
12373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12374 | if (!SWIG_IsOK(res1)) { | |
12375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12376 | } | |
12377 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12378 | { | |
12379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12380 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
12381 | wxPyEndAllowThreads(__tstate); | |
12382 | if (PyErr_Occurred()) SWIG_fail; | |
12383 | } | |
12384 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12385 | return resultobj; | |
12386 | fail: | |
12387 | return NULL; | |
d55e5bfc RD |
12388 | } |
12389 | ||
12390 | ||
554f62e9 RD |
12391 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12392 | PyObject *resultobj = 0; | |
12393 | wxFont *arg1 = (wxFont *) 0 ; | |
12394 | bool result; | |
12395 | void *argp1 = 0 ; | |
12396 | int res1 = 0 ; | |
12397 | PyObject *swig_obj[1] ; | |
12398 | ||
12399 | if (!args) SWIG_fail; | |
12400 | swig_obj[0] = args; | |
12401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12402 | if (!SWIG_IsOK(res1)) { | |
12403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12404 | } | |
12405 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | { | |
12413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12414 | } | |
12415 | return resultobj; | |
12416 | fail: | |
12417 | return NULL; | |
d55e5bfc RD |
12418 | } |
12419 | ||
12420 | ||
554f62e9 RD |
12421 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12422 | PyObject *resultobj = 0; | |
12423 | wxFont *arg1 = (wxFont *) 0 ; | |
12424 | int result; | |
12425 | void *argp1 = 0 ; | |
12426 | int res1 = 0 ; | |
12427 | PyObject *swig_obj[1] ; | |
12428 | ||
12429 | if (!args) SWIG_fail; | |
12430 | swig_obj[0] = args; | |
12431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12432 | if (!SWIG_IsOK(res1)) { | |
12433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12434 | } | |
12435 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12436 | { | |
12437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12438 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
12442 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12443 | return resultobj; | |
12444 | fail: | |
12445 | return NULL; | |
d55e5bfc RD |
12446 | } |
12447 | ||
12448 | ||
554f62e9 RD |
12449 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12450 | PyObject *resultobj = 0; | |
12451 | wxFont *arg1 = (wxFont *) 0 ; | |
12452 | int result; | |
12453 | void *argp1 = 0 ; | |
12454 | int res1 = 0 ; | |
12455 | PyObject *swig_obj[1] ; | |
12456 | ||
12457 | if (!args) SWIG_fail; | |
12458 | swig_obj[0] = args; | |
12459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12460 | if (!SWIG_IsOK(res1)) { | |
12461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12462 | } | |
12463 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12464 | { | |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
12467 | wxPyEndAllowThreads(__tstate); | |
12468 | if (PyErr_Occurred()) SWIG_fail; | |
12469 | } | |
12470 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12471 | return resultobj; | |
12472 | fail: | |
12473 | return NULL; | |
d55e5bfc RD |
12474 | } |
12475 | ||
12476 | ||
554f62e9 RD |
12477 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12478 | PyObject *resultobj = 0; | |
12479 | wxFont *arg1 = (wxFont *) 0 ; | |
12480 | int result; | |
12481 | void *argp1 = 0 ; | |
12482 | int res1 = 0 ; | |
12483 | PyObject *swig_obj[1] ; | |
12484 | ||
12485 | if (!args) SWIG_fail; | |
12486 | swig_obj[0] = args; | |
12487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12488 | if (!SWIG_IsOK(res1)) { | |
12489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12490 | } | |
12491 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12492 | { | |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
d55e5bfc RD |
12502 | } |
12503 | ||
12504 | ||
554f62e9 RD |
12505 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12506 | PyObject *resultobj = 0; | |
12507 | wxFont *arg1 = (wxFont *) 0 ; | |
12508 | bool result; | |
12509 | void *argp1 = 0 ; | |
12510 | int res1 = 0 ; | |
12511 | PyObject *swig_obj[1] ; | |
12512 | ||
12513 | if (!args) SWIG_fail; | |
12514 | swig_obj[0] = args; | |
12515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12516 | if (!SWIG_IsOK(res1)) { | |
12517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12518 | } | |
12519 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | { | |
12527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12528 | } | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | return NULL; | |
d55e5bfc RD |
12532 | } |
12533 | ||
12534 | ||
554f62e9 RD |
12535 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12536 | PyObject *resultobj = 0; | |
12537 | wxFont *arg1 = (wxFont *) 0 ; | |
12538 | wxString result; | |
12539 | void *argp1 = 0 ; | |
12540 | int res1 = 0 ; | |
12541 | PyObject *swig_obj[1] ; | |
12542 | ||
12543 | if (!args) SWIG_fail; | |
12544 | swig_obj[0] = args; | |
12545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12546 | if (!SWIG_IsOK(res1)) { | |
12547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12548 | } | |
12549 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12550 | { | |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | result = ((wxFont const *)arg1)->GetFaceName(); | |
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | { | |
12557 | #if wxUSE_UNICODE | |
12558 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12559 | #else | |
12560 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12561 | #endif | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
d55e5bfc RD |
12566 | } |
12567 | ||
12568 | ||
554f62e9 RD |
12569 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12570 | PyObject *resultobj = 0; | |
12571 | wxFont *arg1 = (wxFont *) 0 ; | |
12572 | wxFontEncoding result; | |
12573 | void *argp1 = 0 ; | |
12574 | int res1 = 0 ; | |
12575 | PyObject *swig_obj[1] ; | |
12576 | ||
12577 | if (!args) SWIG_fail; | |
12578 | swig_obj[0] = args; | |
12579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12580 | if (!SWIG_IsOK(res1)) { | |
12581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12582 | } | |
12583 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12584 | { | |
12585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12586 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12591 | return resultobj; | |
12592 | fail: | |
12593 | return NULL; | |
d55e5bfc RD |
12594 | } |
12595 | ||
12596 | ||
554f62e9 RD |
12597 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12598 | PyObject *resultobj = 0; | |
12599 | wxFont *arg1 = (wxFont *) 0 ; | |
12600 | wxNativeFontInfo *result = 0 ; | |
12601 | void *argp1 = 0 ; | |
12602 | int res1 = 0 ; | |
12603 | PyObject *swig_obj[1] ; | |
12604 | ||
12605 | if (!args) SWIG_fail; | |
12606 | swig_obj[0] = args; | |
12607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12608 | if (!SWIG_IsOK(res1)) { | |
12609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12610 | } | |
12611 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12612 | { | |
12613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12614 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | return NULL; | |
d55e5bfc RD |
12622 | } |
12623 | ||
12624 | ||
554f62e9 RD |
12625 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12626 | PyObject *resultobj = 0; | |
12627 | wxFont *arg1 = (wxFont *) 0 ; | |
12628 | bool result; | |
12629 | void *argp1 = 0 ; | |
12630 | int res1 = 0 ; | |
12631 | PyObject *swig_obj[1] ; | |
12632 | ||
12633 | if (!args) SWIG_fail; | |
12634 | swig_obj[0] = args; | |
12635 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12636 | if (!SWIG_IsOK(res1)) { | |
12637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12638 | } | |
12639 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12640 | { | |
12641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12642 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | { | |
12647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12648 | } | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | return NULL; | |
d55e5bfc RD |
12652 | } |
12653 | ||
12654 | ||
554f62e9 RD |
12655 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12656 | PyObject *resultobj = 0; | |
12657 | wxFont *arg1 = (wxFont *) 0 ; | |
12658 | wxString result; | |
12659 | void *argp1 = 0 ; | |
12660 | int res1 = 0 ; | |
12661 | PyObject *swig_obj[1] ; | |
12662 | ||
12663 | if (!args) SWIG_fail; | |
12664 | swig_obj[0] = args; | |
12665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12666 | if (!SWIG_IsOK(res1)) { | |
12667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12668 | } | |
12669 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12670 | { | |
12671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12672 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
12673 | wxPyEndAllowThreads(__tstate); | |
12674 | if (PyErr_Occurred()) SWIG_fail; | |
12675 | } | |
12676 | { | |
12677 | #if wxUSE_UNICODE | |
12678 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12679 | #else | |
12680 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12681 | #endif | |
12682 | } | |
12683 | return resultobj; | |
12684 | fail: | |
12685 | return NULL; | |
d55e5bfc RD |
12686 | } |
12687 | ||
12688 | ||
554f62e9 RD |
12689 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12690 | PyObject *resultobj = 0; | |
12691 | wxFont *arg1 = (wxFont *) 0 ; | |
12692 | wxString result; | |
12693 | void *argp1 = 0 ; | |
12694 | int res1 = 0 ; | |
12695 | PyObject *swig_obj[1] ; | |
12696 | ||
12697 | if (!args) SWIG_fail; | |
12698 | swig_obj[0] = args; | |
12699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12700 | if (!SWIG_IsOK(res1)) { | |
12701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12702 | } | |
12703 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
12707 | wxPyEndAllowThreads(__tstate); | |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
12709 | } | |
12710 | { | |
12711 | #if wxUSE_UNICODE | |
12712 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12713 | #else | |
12714 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12715 | #endif | |
12716 | } | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj = 0; | |
12725 | wxFont *arg1 = (wxFont *) 0 ; | |
12726 | int arg2 ; | |
12727 | void *argp1 = 0 ; | |
12728 | int res1 = 0 ; | |
12729 | int val2 ; | |
12730 | int ecode2 = 0 ; | |
12731 | PyObject * obj0 = 0 ; | |
12732 | PyObject * obj1 = 0 ; | |
12733 | char * kwnames[] = { | |
12734 | (char *) "self",(char *) "pointSize", NULL | |
12735 | }; | |
12736 | ||
12737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12739 | if (!SWIG_IsOK(res1)) { | |
12740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12741 | } | |
12742 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12743 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12744 | if (!SWIG_IsOK(ecode2)) { | |
12745 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12746 | } | |
12747 | arg2 = static_cast< int >(val2); | |
12748 | { | |
12749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12750 | (arg1)->SetPointSize(arg2); | |
12751 | wxPyEndAllowThreads(__tstate); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | resultobj = SWIG_Py_Void(); | |
12755 | return resultobj; | |
12756 | fail: | |
12757 | return NULL; | |
12758 | } | |
12759 | ||
12760 | ||
12761 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12762 | PyObject *resultobj = 0; | |
12763 | wxFont *arg1 = (wxFont *) 0 ; | |
12764 | wxSize *arg2 = 0 ; | |
12765 | void *argp1 = 0 ; | |
12766 | int res1 = 0 ; | |
12767 | wxSize temp2 ; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | PyObject * obj1 = 0 ; | |
12770 | char * kwnames[] = { | |
12771 | (char *) "self",(char *) "pixelSize", NULL | |
12772 | }; | |
12773 | ||
12774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12776 | if (!SWIG_IsOK(res1)) { | |
12777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12778 | } | |
12779 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12780 | { | |
12781 | arg2 = &temp2; | |
12782 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12783 | } | |
12784 | { | |
12785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12786 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | resultobj = SWIG_Py_Void(); | |
12791 | return resultobj; | |
12792 | fail: | |
12793 | return NULL; | |
12794 | } | |
12795 | ||
12796 | ||
12797 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12798 | PyObject *resultobj = 0; | |
12799 | wxFont *arg1 = (wxFont *) 0 ; | |
12800 | int arg2 ; | |
12801 | void *argp1 = 0 ; | |
12802 | int res1 = 0 ; | |
12803 | int val2 ; | |
12804 | int ecode2 = 0 ; | |
12805 | PyObject * obj0 = 0 ; | |
12806 | PyObject * obj1 = 0 ; | |
12807 | char * kwnames[] = { | |
12808 | (char *) "self",(char *) "family", NULL | |
12809 | }; | |
12810 | ||
12811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12813 | if (!SWIG_IsOK(res1)) { | |
12814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12815 | } | |
12816 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12818 | if (!SWIG_IsOK(ecode2)) { | |
12819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
12820 | } | |
12821 | arg2 = static_cast< int >(val2); | |
12822 | { | |
12823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12824 | (arg1)->SetFamily(arg2); | |
12825 | wxPyEndAllowThreads(__tstate); | |
12826 | if (PyErr_Occurred()) SWIG_fail; | |
12827 | } | |
12828 | resultobj = SWIG_Py_Void(); | |
12829 | return resultobj; | |
12830 | fail: | |
12831 | return NULL; | |
12832 | } | |
12833 | ||
12834 | ||
12835 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12836 | PyObject *resultobj = 0; | |
12837 | wxFont *arg1 = (wxFont *) 0 ; | |
12838 | int arg2 ; | |
12839 | void *argp1 = 0 ; | |
12840 | int res1 = 0 ; | |
12841 | int val2 ; | |
12842 | int ecode2 = 0 ; | |
12843 | PyObject * obj0 = 0 ; | |
12844 | PyObject * obj1 = 0 ; | |
12845 | char * kwnames[] = { | |
12846 | (char *) "self",(char *) "style", NULL | |
12847 | }; | |
12848 | ||
12849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12851 | if (!SWIG_IsOK(res1)) { | |
12852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12853 | } | |
12854 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12855 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12856 | if (!SWIG_IsOK(ecode2)) { | |
12857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
12858 | } | |
12859 | arg2 = static_cast< int >(val2); | |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12862 | (arg1)->SetStyle(arg2); | |
12863 | wxPyEndAllowThreads(__tstate); | |
12864 | if (PyErr_Occurred()) SWIG_fail; | |
12865 | } | |
12866 | resultobj = SWIG_Py_Void(); | |
12867 | return resultobj; | |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
12873 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12874 | PyObject *resultobj = 0; | |
12875 | wxFont *arg1 = (wxFont *) 0 ; | |
12876 | int arg2 ; | |
12877 | void *argp1 = 0 ; | |
12878 | int res1 = 0 ; | |
12879 | int val2 ; | |
12880 | int ecode2 = 0 ; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | PyObject * obj1 = 0 ; | |
12883 | char * kwnames[] = { | |
12884 | (char *) "self",(char *) "weight", NULL | |
12885 | }; | |
12886 | ||
12887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12889 | if (!SWIG_IsOK(res1)) { | |
12890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12891 | } | |
12892 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12893 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12894 | if (!SWIG_IsOK(ecode2)) { | |
12895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
12896 | } | |
12897 | arg2 = static_cast< int >(val2); | |
12898 | { | |
12899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12900 | (arg1)->SetWeight(arg2); | |
12901 | wxPyEndAllowThreads(__tstate); | |
12902 | if (PyErr_Occurred()) SWIG_fail; | |
12903 | } | |
12904 | resultobj = SWIG_Py_Void(); | |
12905 | return resultobj; | |
12906 | fail: | |
12907 | return NULL; | |
12908 | } | |
12909 | ||
12910 | ||
12911 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12912 | PyObject *resultobj = 0; | |
12913 | wxFont *arg1 = (wxFont *) 0 ; | |
12914 | wxString *arg2 = 0 ; | |
12915 | void *argp1 = 0 ; | |
12916 | int res1 = 0 ; | |
12917 | bool temp2 = false ; | |
12918 | PyObject * obj0 = 0 ; | |
12919 | PyObject * obj1 = 0 ; | |
12920 | char * kwnames[] = { | |
12921 | (char *) "self",(char *) "faceName", NULL | |
12922 | }; | |
12923 | ||
12924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12926 | if (!SWIG_IsOK(res1)) { | |
12927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12928 | } | |
12929 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12930 | { | |
12931 | arg2 = wxString_in_helper(obj1); | |
12932 | if (arg2 == NULL) SWIG_fail; | |
12933 | temp2 = true; | |
12934 | } | |
12935 | { | |
12936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12937 | (arg1)->SetFaceName((wxString const &)*arg2); | |
12938 | wxPyEndAllowThreads(__tstate); | |
12939 | if (PyErr_Occurred()) SWIG_fail; | |
12940 | } | |
12941 | resultobj = SWIG_Py_Void(); | |
12942 | { | |
12943 | if (temp2) | |
12944 | delete arg2; | |
12945 | } | |
12946 | return resultobj; | |
12947 | fail: | |
12948 | { | |
12949 | if (temp2) | |
12950 | delete arg2; | |
12951 | } | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj = 0; | |
12958 | wxFont *arg1 = (wxFont *) 0 ; | |
12959 | bool arg2 ; | |
12960 | void *argp1 = 0 ; | |
12961 | int res1 = 0 ; | |
12962 | bool val2 ; | |
12963 | int ecode2 = 0 ; | |
12964 | PyObject * obj0 = 0 ; | |
12965 | PyObject * obj1 = 0 ; | |
12966 | char * kwnames[] = { | |
12967 | (char *) "self",(char *) "underlined", NULL | |
12968 | }; | |
12969 | ||
12970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12972 | if (!SWIG_IsOK(res1)) { | |
12973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12974 | } | |
12975 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12976 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12977 | if (!SWIG_IsOK(ecode2)) { | |
12978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12979 | } | |
12980 | arg2 = static_cast< bool >(val2); | |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | (arg1)->SetUnderlined(arg2); | |
12984 | wxPyEndAllowThreads(__tstate); | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | } | |
12987 | resultobj = SWIG_Py_Void(); | |
12988 | return resultobj; | |
12989 | fail: | |
12990 | return NULL; | |
12991 | } | |
12992 | ||
12993 | ||
12994 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12995 | PyObject *resultobj = 0; | |
12996 | wxFont *arg1 = (wxFont *) 0 ; | |
12997 | wxFontEncoding arg2 ; | |
12998 | void *argp1 = 0 ; | |
12999 | int res1 = 0 ; | |
13000 | int val2 ; | |
13001 | int ecode2 = 0 ; | |
13002 | PyObject * obj0 = 0 ; | |
13003 | PyObject * obj1 = 0 ; | |
13004 | char * kwnames[] = { | |
13005 | (char *) "self",(char *) "encoding", NULL | |
13006 | }; | |
13007 | ||
13008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
13009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13010 | if (!SWIG_IsOK(res1)) { | |
13011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13012 | } | |
13013 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13014 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13015 | if (!SWIG_IsOK(ecode2)) { | |
13016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13017 | } | |
13018 | arg2 = static_cast< wxFontEncoding >(val2); | |
13019 | { | |
13020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13021 | (arg1)->SetEncoding(arg2); | |
13022 | wxPyEndAllowThreads(__tstate); | |
13023 | if (PyErr_Occurred()) SWIG_fail; | |
13024 | } | |
13025 | resultobj = SWIG_Py_Void(); | |
13026 | return resultobj; | |
13027 | fail: | |
13028 | return NULL; | |
13029 | } | |
13030 | ||
13031 | ||
13032 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13033 | PyObject *resultobj = 0; | |
13034 | wxFont *arg1 = (wxFont *) 0 ; | |
13035 | wxNativeFontInfo *arg2 = 0 ; | |
13036 | void *argp1 = 0 ; | |
13037 | int res1 = 0 ; | |
13038 | void *argp2 = 0 ; | |
13039 | int res2 = 0 ; | |
13040 | PyObject * obj0 = 0 ; | |
13041 | PyObject * obj1 = 0 ; | |
13042 | char * kwnames[] = { | |
13043 | (char *) "self",(char *) "info", NULL | |
13044 | }; | |
13045 | ||
13046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
13047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13048 | if (!SWIG_IsOK(res1)) { | |
13049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13050 | } | |
13051 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13052 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13053 | if (!SWIG_IsOK(res2)) { | |
13054 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
13055 | } | |
13056 | if (!argp2) { | |
13057 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
13058 | } | |
13059 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
13060 | { | |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
13063 | wxPyEndAllowThreads(__tstate); | |
13064 | if (PyErr_Occurred()) SWIG_fail; | |
13065 | } | |
13066 | resultobj = SWIG_Py_Void(); | |
13067 | return resultobj; | |
13068 | fail: | |
13069 | return NULL; | |
13070 | } | |
13071 | ||
13072 | ||
13073 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13074 | PyObject *resultobj = 0; | |
13075 | wxFont *arg1 = (wxFont *) 0 ; | |
13076 | wxString *arg2 = 0 ; | |
13077 | void *argp1 = 0 ; | |
13078 | int res1 = 0 ; | |
13079 | bool temp2 = false ; | |
13080 | PyObject * obj0 = 0 ; | |
13081 | PyObject * obj1 = 0 ; | |
13082 | char * kwnames[] = { | |
13083 | (char *) "self",(char *) "info", NULL | |
13084 | }; | |
13085 | ||
13086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13088 | if (!SWIG_IsOK(res1)) { | |
13089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13090 | } | |
13091 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13092 | { | |
13093 | arg2 = wxString_in_helper(obj1); | |
13094 | if (arg2 == NULL) SWIG_fail; | |
13095 | temp2 = true; | |
13096 | } | |
13097 | { | |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
13100 | wxPyEndAllowThreads(__tstate); | |
13101 | if (PyErr_Occurred()) SWIG_fail; | |
13102 | } | |
13103 | resultobj = SWIG_Py_Void(); | |
13104 | { | |
13105 | if (temp2) | |
13106 | delete arg2; | |
13107 | } | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | { | |
13111 | if (temp2) | |
13112 | delete arg2; | |
13113 | } | |
13114 | return NULL; | |
d55e5bfc RD |
13115 | } |
13116 | ||
13117 | ||
554f62e9 RD |
13118 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13119 | PyObject *resultobj = 0; | |
13120 | wxFont *arg1 = (wxFont *) 0 ; | |
13121 | wxString *arg2 = 0 ; | |
13122 | void *argp1 = 0 ; | |
13123 | int res1 = 0 ; | |
13124 | bool temp2 = false ; | |
13125 | PyObject * obj0 = 0 ; | |
13126 | PyObject * obj1 = 0 ; | |
13127 | char * kwnames[] = { | |
13128 | (char *) "self",(char *) "info", NULL | |
13129 | }; | |
13130 | ||
13131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
13132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13133 | if (!SWIG_IsOK(res1)) { | |
13134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13135 | } | |
13136 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13137 | { | |
13138 | arg2 = wxString_in_helper(obj1); | |
13139 | if (arg2 == NULL) SWIG_fail; | |
13140 | temp2 = true; | |
13141 | } | |
13142 | { | |
13143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13144 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | resultobj = SWIG_Py_Void(); | |
13149 | { | |
13150 | if (temp2) | |
13151 | delete arg2; | |
13152 | } | |
13153 | return resultobj; | |
13154 | fail: | |
13155 | { | |
13156 | if (temp2) | |
13157 | delete arg2; | |
13158 | } | |
13159 | return NULL; | |
d55e5bfc RD |
13160 | } |
13161 | ||
13162 | ||
554f62e9 RD |
13163 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13164 | PyObject *resultobj = 0; | |
13165 | wxFont *arg1 = (wxFont *) 0 ; | |
13166 | wxString result; | |
13167 | void *argp1 = 0 ; | |
13168 | int res1 = 0 ; | |
13169 | PyObject *swig_obj[1] ; | |
13170 | ||
13171 | if (!args) SWIG_fail; | |
13172 | swig_obj[0] = args; | |
13173 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13174 | if (!SWIG_IsOK(res1)) { | |
13175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13176 | } | |
13177 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13178 | { | |
13179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13180 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
13184 | { | |
13185 | #if wxUSE_UNICODE | |
13186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13187 | #else | |
13188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13189 | #endif | |
13190 | } | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | return NULL; | |
d55e5bfc RD |
13194 | } |
13195 | ||
13196 | ||
554f62e9 RD |
13197 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13198 | PyObject *resultobj = 0; | |
13199 | wxFont *arg1 = (wxFont *) 0 ; | |
13200 | wxString result; | |
13201 | void *argp1 = 0 ; | |
13202 | int res1 = 0 ; | |
13203 | PyObject *swig_obj[1] ; | |
13204 | ||
13205 | if (!args) SWIG_fail; | |
13206 | swig_obj[0] = args; | |
13207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13208 | if (!SWIG_IsOK(res1)) { | |
13209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13210 | } | |
13211 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = ((wxFont const *)arg1)->GetStyleString(); | |
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | { | |
13219 | #if wxUSE_UNICODE | |
13220 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13221 | #else | |
13222 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13223 | #endif | |
13224 | } | |
13225 | return resultobj; | |
13226 | fail: | |
13227 | return NULL; | |
d55e5bfc RD |
13228 | } |
13229 | ||
13230 | ||
554f62e9 RD |
13231 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13232 | PyObject *resultobj = 0; | |
13233 | wxFont *arg1 = (wxFont *) 0 ; | |
13234 | wxString result; | |
13235 | void *argp1 = 0 ; | |
13236 | int res1 = 0 ; | |
13237 | PyObject *swig_obj[1] ; | |
13238 | ||
13239 | if (!args) SWIG_fail; | |
13240 | swig_obj[0] = args; | |
13241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13242 | if (!SWIG_IsOK(res1)) { | |
13243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13244 | } | |
13245 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13246 | { | |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13248 | result = ((wxFont const *)arg1)->GetWeightString(); | |
13249 | wxPyEndAllowThreads(__tstate); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
13252 | { | |
13253 | #if wxUSE_UNICODE | |
13254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13255 | #else | |
13256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13257 | #endif | |
13258 | } | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
13265 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13266 | PyObject *resultobj = 0; | |
13267 | wxFont *arg1 = (wxFont *) 0 ; | |
13268 | bool arg2 = (bool) true ; | |
13269 | void *argp1 = 0 ; | |
13270 | int res1 = 0 ; | |
13271 | bool val2 ; | |
13272 | int ecode2 = 0 ; | |
13273 | PyObject * obj0 = 0 ; | |
13274 | PyObject * obj1 = 0 ; | |
13275 | char * kwnames[] = { | |
13276 | (char *) "self",(char *) "no", NULL | |
13277 | }; | |
13278 | ||
13279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
13280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13281 | if (!SWIG_IsOK(res1)) { | |
13282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13283 | } | |
13284 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13285 | if (obj1) { | |
13286 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13287 | if (!SWIG_IsOK(ecode2)) { | |
13288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
13289 | } | |
13290 | arg2 = static_cast< bool >(val2); | |
13291 | } | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | (arg1)->SetNoAntiAliasing(arg2); | |
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
13298 | resultobj = SWIG_Py_Void(); | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
d55e5bfc RD |
13302 | } |
13303 | ||
13304 | ||
554f62e9 RD |
13305 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13306 | PyObject *resultobj = 0; | |
13307 | wxFont *arg1 = (wxFont *) 0 ; | |
13308 | bool result; | |
13309 | void *argp1 = 0 ; | |
13310 | int res1 = 0 ; | |
13311 | PyObject *swig_obj[1] ; | |
13312 | ||
13313 | if (!args) SWIG_fail; | |
13314 | swig_obj[0] = args; | |
13315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13316 | if (!SWIG_IsOK(res1)) { | |
13317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13318 | } | |
13319 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
13323 | wxPyEndAllowThreads(__tstate); | |
13324 | if (PyErr_Occurred()) SWIG_fail; | |
13325 | } | |
13326 | { | |
13327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13328 | } | |
13329 | return resultobj; | |
13330 | fail: | |
13331 | return NULL; | |
d55e5bfc RD |
13332 | } |
13333 | ||
13334 | ||
554f62e9 RD |
13335 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13336 | PyObject *resultobj = 0; | |
13337 | wxFontEncoding result; | |
13338 | ||
13339 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
13340 | { | |
13341 | if (!wxPyCheckForApp()) SWIG_fail; | |
13342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13343 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
13344 | wxPyEndAllowThreads(__tstate); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
13346 | } | |
13347 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13348 | return resultobj; | |
13349 | fail: | |
13350 | return NULL; | |
d55e5bfc RD |
13351 | } |
13352 | ||
13353 | ||
554f62e9 RD |
13354 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13355 | PyObject *resultobj = 0; | |
13356 | wxFontEncoding arg1 ; | |
13357 | int val1 ; | |
13358 | int ecode1 = 0 ; | |
13359 | PyObject * obj0 = 0 ; | |
13360 | char * kwnames[] = { | |
13361 | (char *) "encoding", NULL | |
13362 | }; | |
13363 | ||
13364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
13365 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13366 | if (!SWIG_IsOK(ecode1)) { | |
13367 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13368 | } | |
13369 | arg1 = static_cast< wxFontEncoding >(val1); | |
13370 | { | |
13371 | if (!wxPyCheckForApp()) SWIG_fail; | |
13372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13373 | wxFont::SetDefaultEncoding(arg1); | |
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | resultobj = SWIG_Py_Void(); | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
5e483524 RD |
13381 | } |
13382 | ||
13383 | ||
554f62e9 RD |
13384 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13385 | PyObject *obj; | |
13386 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13387 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
13388 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13389 | } |
13390 | ||
554f62e9 RD |
13391 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13392 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13393 | } |
13394 | ||
554f62e9 RD |
13395 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13396 | PyObject *resultobj = 0; | |
13397 | wxPyFontEnumerator *result = 0 ; | |
13398 | ||
13399 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
13400 | { | |
13401 | if (!wxPyCheckForApp()) SWIG_fail; | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
13404 | wxPyEndAllowThreads(__tstate); | |
13405 | if (PyErr_Occurred()) SWIG_fail; | |
13406 | } | |
13407 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
13408 | return resultobj; | |
13409 | fail: | |
13410 | return NULL; | |
d55e5bfc RD |
13411 | } |
13412 | ||
13413 | ||
554f62e9 RD |
13414 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13415 | PyObject *resultobj = 0; | |
13416 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13417 | void *argp1 = 0 ; | |
13418 | int res1 = 0 ; | |
13419 | PyObject *swig_obj[1] ; | |
13420 | ||
13421 | if (!args) SWIG_fail; | |
13422 | swig_obj[0] = args; | |
13423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
13424 | if (!SWIG_IsOK(res1)) { | |
13425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13426 | } | |
13427 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13428 | { | |
13429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13430 | delete arg1; | |
d55e5bfc | 13431 | |
554f62e9 RD |
13432 | wxPyEndAllowThreads(__tstate); |
13433 | if (PyErr_Occurred()) SWIG_fail; | |
13434 | } | |
13435 | resultobj = SWIG_Py_Void(); | |
13436 | return resultobj; | |
13437 | fail: | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
13442 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13443 | PyObject *resultobj = 0; | |
13444 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13445 | PyObject *arg2 = (PyObject *) 0 ; | |
13446 | PyObject *arg3 = (PyObject *) 0 ; | |
13447 | bool arg4 ; | |
13448 | void *argp1 = 0 ; | |
13449 | int res1 = 0 ; | |
13450 | bool val4 ; | |
13451 | int ecode4 = 0 ; | |
13452 | PyObject * obj0 = 0 ; | |
13453 | PyObject * obj1 = 0 ; | |
13454 | PyObject * obj2 = 0 ; | |
13455 | PyObject * obj3 = 0 ; | |
13456 | char * kwnames[] = { | |
13457 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
13458 | }; | |
13459 | ||
13460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13462 | if (!SWIG_IsOK(res1)) { | |
13463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13464 | } | |
13465 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13466 | arg2 = obj1; | |
13467 | arg3 = obj2; | |
13468 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13469 | if (!SWIG_IsOK(ecode4)) { | |
13470 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
13471 | } | |
13472 | arg4 = static_cast< bool >(val4); | |
13473 | { | |
13474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13475 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
13476 | wxPyEndAllowThreads(__tstate); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | } | |
13479 | resultobj = SWIG_Py_Void(); | |
13480 | return resultobj; | |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
13486 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13487 | PyObject *resultobj = 0; | |
13488 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13489 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
13490 | bool arg3 = (bool) false ; | |
13491 | bool result; | |
13492 | void *argp1 = 0 ; | |
13493 | int res1 = 0 ; | |
13494 | int val2 ; | |
13495 | int ecode2 = 0 ; | |
13496 | bool val3 ; | |
13497 | int ecode3 = 0 ; | |
13498 | PyObject * obj0 = 0 ; | |
13499 | PyObject * obj1 = 0 ; | |
13500 | PyObject * obj2 = 0 ; | |
13501 | char * kwnames[] = { | |
13502 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
13503 | }; | |
13504 | ||
13505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13507 | if (!SWIG_IsOK(res1)) { | |
13508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13509 | } | |
13510 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13511 | if (obj1) { | |
13512 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13513 | if (!SWIG_IsOK(ecode2)) { | |
13514 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13515 | } | |
13516 | arg2 = static_cast< wxFontEncoding >(val2); | |
13517 | } | |
13518 | if (obj2) { | |
13519 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13520 | if (!SWIG_IsOK(ecode3)) { | |
13521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
13522 | } | |
13523 | arg3 = static_cast< bool >(val3); | |
13524 | } | |
13525 | { | |
13526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13527 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
13528 | wxPyEndAllowThreads(__tstate); | |
13529 | if (PyErr_Occurred()) SWIG_fail; | |
13530 | } | |
13531 | { | |
13532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13533 | } | |
13534 | return resultobj; | |
13535 | fail: | |
13536 | return NULL; | |
13537 | } | |
13538 | ||
13539 | ||
13540 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13541 | PyObject *resultobj = 0; | |
13542 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13543 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13544 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13545 | bool result; | |
13546 | void *argp1 = 0 ; | |
13547 | int res1 = 0 ; | |
13548 | bool temp2 = false ; | |
13549 | PyObject * obj0 = 0 ; | |
13550 | PyObject * obj1 = 0 ; | |
13551 | char * kwnames[] = { | |
13552 | (char *) "self",(char *) "facename", NULL | |
13553 | }; | |
13554 | ||
13555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
13556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13557 | if (!SWIG_IsOK(res1)) { | |
13558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13559 | } | |
13560 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13561 | if (obj1) { | |
093d3ff1 | 13562 | { |
554f62e9 RD |
13563 | arg2 = wxString_in_helper(obj1); |
13564 | if (arg2 == NULL) SWIG_fail; | |
13565 | temp2 = true; | |
093d3ff1 | 13566 | } |
554f62e9 RD |
13567 | } |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13570 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
13571 | wxPyEndAllowThreads(__tstate); | |
13572 | if (PyErr_Occurred()) SWIG_fail; | |
13573 | } | |
13574 | { | |
13575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13576 | } | |
13577 | { | |
13578 | if (temp2) | |
13579 | delete arg2; | |
13580 | } | |
13581 | return resultobj; | |
13582 | fail: | |
13583 | { | |
13584 | if (temp2) | |
13585 | delete arg2; | |
13586 | } | |
13587 | return NULL; | |
d55e5bfc RD |
13588 | } |
13589 | ||
13590 | ||
554f62e9 RD |
13591 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13592 | PyObject *resultobj = 0; | |
13593 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13594 | PyObject *result = 0 ; | |
13595 | void *argp1 = 0 ; | |
13596 | int res1 = 0 ; | |
13597 | PyObject *swig_obj[1] ; | |
13598 | ||
13599 | if (!args) SWIG_fail; | |
13600 | swig_obj[0] = args; | |
13601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13602 | if (!SWIG_IsOK(res1)) { | |
13603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13604 | } | |
13605 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13606 | { | |
13607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13608 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
13612 | resultobj = result; | |
13613 | return resultobj; | |
13614 | fail: | |
13615 | return NULL; | |
d55e5bfc RD |
13616 | } |
13617 | ||
13618 | ||
554f62e9 RD |
13619 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13620 | PyObject *resultobj = 0; | |
13621 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13622 | PyObject *result = 0 ; | |
13623 | void *argp1 = 0 ; | |
13624 | int res1 = 0 ; | |
13625 | PyObject *swig_obj[1] ; | |
13626 | ||
13627 | if (!args) SWIG_fail; | |
13628 | swig_obj[0] = args; | |
13629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13630 | if (!SWIG_IsOK(res1)) { | |
13631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13632 | } | |
13633 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
13637 | wxPyEndAllowThreads(__tstate); | |
13638 | if (PyErr_Occurred()) SWIG_fail; | |
13639 | } | |
13640 | resultobj = result; | |
13641 | return resultobj; | |
13642 | fail: | |
13643 | return NULL; | |
d55e5bfc RD |
13644 | } |
13645 | ||
13646 | ||
554f62e9 RD |
13647 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13648 | PyObject *obj; | |
13649 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13650 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
13651 | return SWIG_Py_Void(); | |
5e483524 RD |
13652 | } |
13653 | ||
554f62e9 RD |
13654 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13655 | return SWIG_Python_InitShadowInstance(args); | |
13656 | } | |
5e483524 | 13657 | |
554f62e9 RD |
13658 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13659 | PyObject *resultobj = 0; | |
13660 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13661 | int arg2 ; | |
13662 | void *argp1 = 0 ; | |
13663 | int res1 = 0 ; | |
13664 | int val2 ; | |
13665 | int ecode2 = 0 ; | |
13666 | PyObject *swig_obj[2] ; | |
13667 | ||
13668 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
13669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13670 | if (!SWIG_IsOK(res1)) { | |
13671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13672 | } | |
13673 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13674 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13675 | if (!SWIG_IsOK(ecode2)) { | |
13676 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
13677 | } | |
13678 | arg2 = static_cast< int >(val2); | |
13679 | if (arg1) (arg1)->Language = arg2; | |
13680 | ||
13681 | resultobj = SWIG_Py_Void(); | |
13682 | return resultobj; | |
13683 | fail: | |
13684 | return NULL; | |
d55e5bfc RD |
13685 | } |
13686 | ||
13687 | ||
554f62e9 RD |
13688 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13689 | PyObject *resultobj = 0; | |
13690 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13691 | int result; | |
13692 | void *argp1 = 0 ; | |
13693 | int res1 = 0 ; | |
13694 | PyObject *swig_obj[1] ; | |
13695 | ||
13696 | if (!args) SWIG_fail; | |
13697 | swig_obj[0] = args; | |
13698 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13699 | if (!SWIG_IsOK(res1)) { | |
13700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13701 | } | |
13702 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13703 | result = (int) ((arg1)->Language); | |
13704 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13705 | return resultobj; | |
13706 | fail: | |
13707 | return NULL; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13712 | PyObject *resultobj = 0; | |
13713 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13714 | wxString *arg2 = (wxString *) 0 ; | |
13715 | void *argp1 = 0 ; | |
13716 | int res1 = 0 ; | |
13717 | bool temp2 = false ; | |
13718 | PyObject *swig_obj[2] ; | |
13719 | ||
13720 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
13721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13722 | if (!SWIG_IsOK(res1)) { | |
13723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13724 | } | |
13725 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13726 | { | |
13727 | arg2 = wxString_in_helper(swig_obj[1]); | |
13728 | if (arg2 == NULL) SWIG_fail; | |
13729 | temp2 = true; | |
13730 | } | |
13731 | if (arg1) (arg1)->CanonicalName = *arg2; | |
13732 | ||
13733 | resultobj = SWIG_Py_Void(); | |
13734 | { | |
13735 | if (temp2) | |
13736 | delete arg2; | |
13737 | } | |
13738 | return resultobj; | |
13739 | fail: | |
13740 | { | |
13741 | if (temp2) | |
13742 | delete arg2; | |
13743 | } | |
13744 | return NULL; | |
d55e5bfc RD |
13745 | } |
13746 | ||
13747 | ||
554f62e9 RD |
13748 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13749 | PyObject *resultobj = 0; | |
13750 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13751 | wxString *result = 0 ; | |
13752 | void *argp1 = 0 ; | |
13753 | int res1 = 0 ; | |
13754 | PyObject *swig_obj[1] ; | |
13755 | ||
13756 | if (!args) SWIG_fail; | |
13757 | swig_obj[0] = args; | |
13758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13759 | if (!SWIG_IsOK(res1)) { | |
13760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13761 | } | |
13762 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13763 | result = (wxString *)& ((arg1)->CanonicalName); | |
13764 | { | |
13765 | #if wxUSE_UNICODE | |
13766 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13767 | #else | |
13768 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13769 | #endif | |
13770 | } | |
13771 | return resultobj; | |
13772 | fail: | |
13773 | return NULL; | |
d55e5bfc RD |
13774 | } |
13775 | ||
13776 | ||
554f62e9 RD |
13777 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13778 | PyObject *resultobj = 0; | |
13779 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13780 | wxString *arg2 = (wxString *) 0 ; | |
13781 | void *argp1 = 0 ; | |
13782 | int res1 = 0 ; | |
13783 | bool temp2 = false ; | |
13784 | PyObject *swig_obj[2] ; | |
13785 | ||
13786 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
13787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13788 | if (!SWIG_IsOK(res1)) { | |
13789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13790 | } | |
13791 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13792 | { | |
13793 | arg2 = wxString_in_helper(swig_obj[1]); | |
13794 | if (arg2 == NULL) SWIG_fail; | |
13795 | temp2 = true; | |
13796 | } | |
13797 | if (arg1) (arg1)->Description = *arg2; | |
13798 | ||
13799 | resultobj = SWIG_Py_Void(); | |
13800 | { | |
13801 | if (temp2) | |
13802 | delete arg2; | |
13803 | } | |
13804 | return resultobj; | |
13805 | fail: | |
13806 | { | |
13807 | if (temp2) | |
13808 | delete arg2; | |
13809 | } | |
13810 | return NULL; | |
d55e5bfc RD |
13811 | } |
13812 | ||
13813 | ||
554f62e9 RD |
13814 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13815 | PyObject *resultobj = 0; | |
13816 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13817 | wxString *result = 0 ; | |
13818 | void *argp1 = 0 ; | |
13819 | int res1 = 0 ; | |
13820 | PyObject *swig_obj[1] ; | |
13821 | ||
13822 | if (!args) SWIG_fail; | |
13823 | swig_obj[0] = args; | |
13824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13825 | if (!SWIG_IsOK(res1)) { | |
13826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13827 | } | |
13828 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13829 | result = (wxString *)& ((arg1)->Description); | |
13830 | { | |
13831 | #if wxUSE_UNICODE | |
13832 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13833 | #else | |
13834 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13835 | #endif | |
13836 | } | |
13837 | return resultobj; | |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13844 | PyObject *obj; | |
13845 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13846 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
13847 | return SWIG_Py_Void(); | |
13848 | } | |
13849 | ||
13850 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13851 | PyObject *resultobj = 0; | |
13852 | int arg1 = (int) -1 ; | |
13853 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
13854 | wxLocale *result = 0 ; | |
13855 | int val1 ; | |
13856 | int ecode1 = 0 ; | |
13857 | int val2 ; | |
13858 | int ecode2 = 0 ; | |
13859 | PyObject * obj0 = 0 ; | |
13860 | PyObject * obj1 = 0 ; | |
13861 | char * kwnames[] = { | |
13862 | (char *) "language",(char *) "flags", NULL | |
13863 | }; | |
13864 | ||
13865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
13866 | if (obj0) { | |
13867 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13868 | if (!SWIG_IsOK(ecode1)) { | |
13869 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
13870 | } | |
13871 | arg1 = static_cast< int >(val1); | |
13872 | } | |
13873 | if (obj1) { | |
13874 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13875 | if (!SWIG_IsOK(ecode2)) { | |
13876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
13877 | } | |
13878 | arg2 = static_cast< int >(val2); | |
13879 | } | |
13880 | { | |
13881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13882 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
13883 | wxPyEndAllowThreads(__tstate); | |
13884 | if (PyErr_Occurred()) SWIG_fail; | |
13885 | } | |
13886 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
13887 | return resultobj; | |
13888 | fail: | |
13889 | return NULL; | |
d55e5bfc RD |
13890 | } |
13891 | ||
13892 | ||
554f62e9 RD |
13893 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13894 | PyObject *resultobj = 0; | |
13895 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13896 | void *argp1 = 0 ; | |
13897 | int res1 = 0 ; | |
13898 | PyObject *swig_obj[1] ; | |
13899 | ||
13900 | if (!args) SWIG_fail; | |
13901 | swig_obj[0] = args; | |
13902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
13903 | if (!SWIG_IsOK(res1)) { | |
13904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13905 | } | |
13906 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13907 | { | |
13908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13909 | delete arg1; | |
d55e5bfc | 13910 | |
554f62e9 RD |
13911 | wxPyEndAllowThreads(__tstate); |
13912 | if (PyErr_Occurred()) SWIG_fail; | |
13913 | } | |
13914 | resultobj = SWIG_Py_Void(); | |
13915 | return resultobj; | |
13916 | fail: | |
13917 | return NULL; | |
13918 | } | |
13919 | ||
13920 | ||
13921 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13922 | PyObject *resultobj = 0; | |
13923 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13924 | wxString *arg2 = 0 ; | |
13925 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13926 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13927 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13928 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13929 | bool arg5 = (bool) true ; | |
13930 | bool arg6 = (bool) false ; | |
13931 | bool result; | |
13932 | void *argp1 = 0 ; | |
13933 | int res1 = 0 ; | |
13934 | bool temp2 = false ; | |
13935 | bool temp3 = false ; | |
13936 | bool temp4 = false ; | |
13937 | bool val5 ; | |
13938 | int ecode5 = 0 ; | |
13939 | bool val6 ; | |
13940 | int ecode6 = 0 ; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | PyObject * obj1 = 0 ; | |
13943 | PyObject * obj2 = 0 ; | |
13944 | PyObject * obj3 = 0 ; | |
13945 | PyObject * obj4 = 0 ; | |
13946 | PyObject * obj5 = 0 ; | |
13947 | char * kwnames[] = { | |
13948 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
13949 | }; | |
13950 | ||
13951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13953 | if (!SWIG_IsOK(res1)) { | |
13954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13955 | } | |
13956 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13957 | { | |
13958 | arg2 = wxString_in_helper(obj1); | |
13959 | if (arg2 == NULL) SWIG_fail; | |
13960 | temp2 = true; | |
13961 | } | |
13962 | if (obj2) { | |
093d3ff1 | 13963 | { |
554f62e9 RD |
13964 | arg3 = wxString_in_helper(obj2); |
13965 | if (arg3 == NULL) SWIG_fail; | |
13966 | temp3 = true; | |
093d3ff1 | 13967 | } |
554f62e9 RD |
13968 | } |
13969 | if (obj3) { | |
d55e5bfc | 13970 | { |
554f62e9 RD |
13971 | arg4 = wxString_in_helper(obj3); |
13972 | if (arg4 == NULL) SWIG_fail; | |
13973 | temp4 = true; | |
d55e5bfc | 13974 | } |
554f62e9 RD |
13975 | } |
13976 | if (obj4) { | |
13977 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13978 | if (!SWIG_IsOK(ecode5)) { | |
13979 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
13980 | } | |
13981 | arg5 = static_cast< bool >(val5); | |
13982 | } | |
13983 | if (obj5) { | |
13984 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
13985 | if (!SWIG_IsOK(ecode6)) { | |
13986 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
13987 | } | |
13988 | arg6 = static_cast< bool >(val6); | |
13989 | } | |
13990 | { | |
13991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13992 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
13993 | wxPyEndAllowThreads(__tstate); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | } | |
13996 | { | |
13997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13998 | } | |
13999 | { | |
14000 | if (temp2) | |
14001 | delete arg2; | |
14002 | } | |
14003 | { | |
14004 | if (temp3) | |
14005 | delete arg3; | |
14006 | } | |
14007 | { | |
14008 | if (temp4) | |
14009 | delete arg4; | |
14010 | } | |
14011 | return resultobj; | |
14012 | fail: | |
14013 | { | |
14014 | if (temp2) | |
14015 | delete arg2; | |
14016 | } | |
14017 | { | |
14018 | if (temp3) | |
14019 | delete arg3; | |
14020 | } | |
14021 | { | |
14022 | if (temp4) | |
14023 | delete arg4; | |
14024 | } | |
14025 | return NULL; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14030 | PyObject *resultobj = 0; | |
14031 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14032 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
14033 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
14034 | bool result; | |
14035 | void *argp1 = 0 ; | |
14036 | int res1 = 0 ; | |
14037 | int val2 ; | |
14038 | int ecode2 = 0 ; | |
14039 | int val3 ; | |
14040 | int ecode3 = 0 ; | |
14041 | PyObject * obj0 = 0 ; | |
14042 | PyObject * obj1 = 0 ; | |
14043 | PyObject * obj2 = 0 ; | |
14044 | char * kwnames[] = { | |
14045 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
14046 | }; | |
14047 | ||
14048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14050 | if (!SWIG_IsOK(res1)) { | |
14051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
14052 | } | |
14053 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14054 | if (obj1) { | |
14055 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14056 | if (!SWIG_IsOK(ecode2)) { | |
14057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
14058 | } | |
14059 | arg2 = static_cast< int >(val2); | |
14060 | } | |
14061 | if (obj2) { | |
14062 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14063 | if (!SWIG_IsOK(ecode3)) { | |
14064 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
14065 | } | |
14066 | arg3 = static_cast< int >(val3); | |
14067 | } | |
14068 | { | |
14069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14070 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
14071 | wxPyEndAllowThreads(__tstate); | |
14072 | if (PyErr_Occurred()) SWIG_fail; | |
14073 | } | |
14074 | { | |
14075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14076 | } | |
14077 | return resultobj; | |
14078 | fail: | |
14079 | return NULL; | |
d55e5bfc RD |
14080 | } |
14081 | ||
14082 | ||
554f62e9 RD |
14083 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14084 | PyObject *resultobj = 0; | |
14085 | int result; | |
14086 | ||
14087 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
14088 | { | |
14089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14090 | result = (int)wxLocale::GetSystemLanguage(); | |
14091 | wxPyEndAllowThreads(__tstate); | |
14092 | if (PyErr_Occurred()) SWIG_fail; | |
14093 | } | |
14094 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14095 | return resultobj; | |
14096 | fail: | |
14097 | return NULL; | |
d55e5bfc RD |
14098 | } |
14099 | ||
14100 | ||
554f62e9 RD |
14101 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14102 | PyObject *resultobj = 0; | |
14103 | wxFontEncoding result; | |
14104 | ||
14105 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
14106 | { | |
14107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14108 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
14112 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14113 | return resultobj; | |
14114 | fail: | |
14115 | return NULL; | |
d55e5bfc RD |
14116 | } |
14117 | ||
14118 | ||
554f62e9 RD |
14119 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14120 | PyObject *resultobj = 0; | |
14121 | wxString result; | |
14122 | ||
14123 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
14124 | { | |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | result = wxLocale::GetSystemEncodingName(); | |
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | { | |
14131 | #if wxUSE_UNICODE | |
14132 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14133 | #else | |
14134 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14135 | #endif | |
14136 | } | |
14137 | return resultobj; | |
14138 | fail: | |
14139 | return NULL; | |
d55e5bfc RD |
14140 | } |
14141 | ||
14142 | ||
554f62e9 RD |
14143 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14144 | PyObject *resultobj = 0; | |
14145 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14146 | bool result; | |
14147 | void *argp1 = 0 ; | |
14148 | int res1 = 0 ; | |
14149 | PyObject *swig_obj[1] ; | |
14150 | ||
14151 | if (!args) SWIG_fail; | |
14152 | swig_obj[0] = args; | |
14153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14154 | if (!SWIG_IsOK(res1)) { | |
14155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14156 | } | |
14157 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14158 | { | |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14160 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
14161 | wxPyEndAllowThreads(__tstate); | |
14162 | if (PyErr_Occurred()) SWIG_fail; | |
14163 | } | |
14164 | { | |
14165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14166 | } | |
14167 | return resultobj; | |
14168 | fail: | |
14169 | return NULL; | |
d55e5bfc RD |
14170 | } |
14171 | ||
14172 | ||
554f62e9 RD |
14173 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14174 | PyObject *resultobj = 0; | |
14175 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14176 | wxString result; | |
14177 | void *argp1 = 0 ; | |
14178 | int res1 = 0 ; | |
14179 | PyObject *swig_obj[1] ; | |
14180 | ||
14181 | if (!args) SWIG_fail; | |
14182 | swig_obj[0] = args; | |
14183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14184 | if (!SWIG_IsOK(res1)) { | |
14185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14186 | } | |
14187 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14188 | { | |
14189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14190 | result = ((wxLocale const *)arg1)->GetLocale(); | |
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
14194 | { | |
14195 | #if wxUSE_UNICODE | |
14196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14197 | #else | |
14198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14199 | #endif | |
14200 | } | |
14201 | return resultobj; | |
14202 | fail: | |
14203 | return NULL; | |
d55e5bfc RD |
14204 | } |
14205 | ||
14206 | ||
554f62e9 RD |
14207 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14208 | PyObject *resultobj = 0; | |
14209 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14210 | int result; | |
14211 | void *argp1 = 0 ; | |
14212 | int res1 = 0 ; | |
14213 | PyObject *swig_obj[1] ; | |
14214 | ||
14215 | if (!args) SWIG_fail; | |
14216 | swig_obj[0] = args; | |
14217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14218 | if (!SWIG_IsOK(res1)) { | |
14219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14220 | } | |
14221 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14222 | { | |
14223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14224 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
14225 | wxPyEndAllowThreads(__tstate); | |
14226 | if (PyErr_Occurred()) SWIG_fail; | |
14227 | } | |
14228 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14229 | return resultobj; | |
14230 | fail: | |
14231 | return NULL; | |
d55e5bfc RD |
14232 | } |
14233 | ||
14234 | ||
554f62e9 RD |
14235 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14236 | PyObject *resultobj = 0; | |
14237 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14238 | wxString result; | |
14239 | void *argp1 = 0 ; | |
14240 | int res1 = 0 ; | |
14241 | PyObject *swig_obj[1] ; | |
14242 | ||
14243 | if (!args) SWIG_fail; | |
14244 | swig_obj[0] = args; | |
14245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14246 | if (!SWIG_IsOK(res1)) { | |
14247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14248 | } | |
14249 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14250 | { | |
14251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14252 | result = ((wxLocale const *)arg1)->GetSysName(); | |
14253 | wxPyEndAllowThreads(__tstate); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | } | |
14256 | { | |
14257 | #if wxUSE_UNICODE | |
14258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14259 | #else | |
14260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14261 | #endif | |
14262 | } | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
d55e5bfc RD |
14266 | } |
14267 | ||
14268 | ||
554f62e9 RD |
14269 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14270 | PyObject *resultobj = 0; | |
14271 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14272 | wxString result; | |
14273 | void *argp1 = 0 ; | |
14274 | int res1 = 0 ; | |
14275 | PyObject *swig_obj[1] ; | |
14276 | ||
14277 | if (!args) SWIG_fail; | |
14278 | swig_obj[0] = args; | |
14279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14280 | if (!SWIG_IsOK(res1)) { | |
14281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14282 | } | |
14283 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
14287 | wxPyEndAllowThreads(__tstate); | |
14288 | if (PyErr_Occurred()) SWIG_fail; | |
14289 | } | |
14290 | { | |
093d3ff1 | 14291 | #if wxUSE_UNICODE |
554f62e9 | 14292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14293 | #else |
554f62e9 | 14294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14295 | #endif |
554f62e9 RD |
14296 | } |
14297 | return resultobj; | |
14298 | fail: | |
14299 | return NULL; | |
d55e5bfc RD |
14300 | } |
14301 | ||
14302 | ||
554f62e9 RD |
14303 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14304 | PyObject *resultobj = 0; | |
14305 | wxString *arg1 = 0 ; | |
14306 | bool temp1 = false ; | |
14307 | PyObject * obj0 = 0 ; | |
14308 | char * kwnames[] = { | |
14309 | (char *) "prefix", NULL | |
14310 | }; | |
14311 | ||
14312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
14313 | { | |
14314 | arg1 = wxString_in_helper(obj0); | |
14315 | if (arg1 == NULL) SWIG_fail; | |
14316 | temp1 = true; | |
14317 | } | |
14318 | { | |
14319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14320 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
14324 | resultobj = SWIG_Py_Void(); | |
14325 | { | |
14326 | if (temp1) | |
14327 | delete arg1; | |
14328 | } | |
14329 | return resultobj; | |
14330 | fail: | |
14331 | { | |
14332 | if (temp1) | |
14333 | delete arg1; | |
14334 | } | |
14335 | return NULL; | |
14336 | } | |
14337 | ||
14338 | ||
14339 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14340 | PyObject *resultobj = 0; | |
14341 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14342 | wxString *arg2 = 0 ; | |
14343 | bool result; | |
14344 | void *argp1 = 0 ; | |
14345 | int res1 = 0 ; | |
14346 | bool temp2 = false ; | |
14347 | PyObject * obj0 = 0 ; | |
14348 | PyObject * obj1 = 0 ; | |
14349 | char * kwnames[] = { | |
14350 | (char *) "self",(char *) "szDomain", NULL | |
14351 | }; | |
14352 | ||
14353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
14354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14355 | if (!SWIG_IsOK(res1)) { | |
14356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
14357 | } | |
14358 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14359 | { | |
14360 | arg2 = wxString_in_helper(obj1); | |
14361 | if (arg2 == NULL) SWIG_fail; | |
14362 | temp2 = true; | |
14363 | } | |
14364 | { | |
14365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14366 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
14367 | wxPyEndAllowThreads(__tstate); | |
14368 | if (PyErr_Occurred()) SWIG_fail; | |
14369 | } | |
14370 | { | |
14371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14372 | } | |
14373 | { | |
14374 | if (temp2) | |
14375 | delete arg2; | |
14376 | } | |
14377 | return resultobj; | |
14378 | fail: | |
14379 | { | |
14380 | if (temp2) | |
14381 | delete arg2; | |
14382 | } | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
14387 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14388 | PyObject *resultobj = 0; | |
14389 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14390 | wxString *arg2 = 0 ; | |
14391 | bool result; | |
14392 | void *argp1 = 0 ; | |
14393 | int res1 = 0 ; | |
14394 | bool temp2 = false ; | |
14395 | PyObject * obj0 = 0 ; | |
14396 | PyObject * obj1 = 0 ; | |
14397 | char * kwnames[] = { | |
14398 | (char *) "self",(char *) "szDomain", NULL | |
14399 | }; | |
14400 | ||
14401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
14402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14403 | if (!SWIG_IsOK(res1)) { | |
14404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14405 | } | |
14406 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14407 | { | |
14408 | arg2 = wxString_in_helper(obj1); | |
14409 | if (arg2 == NULL) SWIG_fail; | |
14410 | temp2 = true; | |
14411 | } | |
14412 | { | |
14413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14414 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
14415 | wxPyEndAllowThreads(__tstate); | |
14416 | if (PyErr_Occurred()) SWIG_fail; | |
14417 | } | |
14418 | { | |
14419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14420 | } | |
14421 | { | |
14422 | if (temp2) | |
14423 | delete arg2; | |
14424 | } | |
14425 | return resultobj; | |
14426 | fail: | |
14427 | { | |
14428 | if (temp2) | |
14429 | delete arg2; | |
14430 | } | |
14431 | return NULL; | |
d55e5bfc RD |
14432 | } |
14433 | ||
14434 | ||
554f62e9 RD |
14435 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14436 | PyObject *resultobj = 0; | |
14437 | int arg1 ; | |
14438 | wxLanguageInfo *result = 0 ; | |
14439 | int val1 ; | |
14440 | int ecode1 = 0 ; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | char * kwnames[] = { | |
14443 | (char *) "lang", NULL | |
14444 | }; | |
14445 | ||
14446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
14447 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14448 | if (!SWIG_IsOK(ecode1)) { | |
14449 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
14450 | } | |
14451 | arg1 = static_cast< int >(val1); | |
14452 | { | |
14453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14454 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
14459 | return resultobj; | |
14460 | fail: | |
14461 | return NULL; | |
14462 | } | |
14463 | ||
14464 | ||
14465 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14466 | PyObject *resultobj = 0; | |
14467 | int arg1 ; | |
14468 | wxString result; | |
14469 | int val1 ; | |
14470 | int ecode1 = 0 ; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | char * kwnames[] = { | |
14473 | (char *) "lang", NULL | |
14474 | }; | |
14475 | ||
14476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
14477 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14478 | if (!SWIG_IsOK(ecode1)) { | |
14479 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
14480 | } | |
14481 | arg1 = static_cast< int >(val1); | |
14482 | { | |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = wxLocale::GetLanguageName(arg1); | |
14485 | wxPyEndAllowThreads(__tstate); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
14487 | } | |
14488 | { | |
14489 | #if wxUSE_UNICODE | |
14490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14491 | #else | |
14492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14493 | #endif | |
14494 | } | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
093d3ff1 RD |
14498 | } |
14499 | ||
14500 | ||
554f62e9 RD |
14501 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14502 | PyObject *resultobj = 0; | |
14503 | wxString *arg1 = 0 ; | |
14504 | wxLanguageInfo *result = 0 ; | |
14505 | bool temp1 = false ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | char * kwnames[] = { | |
14508 | (char *) "locale", NULL | |
14509 | }; | |
14510 | ||
14511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
14512 | { | |
14513 | arg1 = wxString_in_helper(obj0); | |
14514 | if (arg1 == NULL) SWIG_fail; | |
14515 | temp1 = true; | |
14516 | } | |
14517 | { | |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
14520 | wxPyEndAllowThreads(__tstate); | |
14521 | if (PyErr_Occurred()) SWIG_fail; | |
14522 | } | |
14523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
14524 | { | |
14525 | if (temp1) | |
14526 | delete arg1; | |
14527 | } | |
14528 | return resultobj; | |
14529 | fail: | |
14530 | { | |
14531 | if (temp1) | |
14532 | delete arg1; | |
14533 | } | |
14534 | return NULL; | |
d55e5bfc RD |
14535 | } |
14536 | ||
14537 | ||
554f62e9 RD |
14538 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14539 | PyObject *resultobj = 0; | |
14540 | wxLanguageInfo *arg1 = 0 ; | |
14541 | void *argp1 = 0 ; | |
14542 | int res1 = 0 ; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char * kwnames[] = { | |
14545 | (char *) "info", NULL | |
14546 | }; | |
14547 | ||
14548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
14549 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
14550 | if (!SWIG_IsOK(res1)) { | |
14551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
14552 | } | |
14553 | if (!argp1) { | |
14554 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
14555 | } | |
14556 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
14557 | { | |
14558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14559 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
14560 | wxPyEndAllowThreads(__tstate); | |
14561 | if (PyErr_Occurred()) SWIG_fail; | |
14562 | } | |
14563 | resultobj = SWIG_Py_Void(); | |
14564 | return resultobj; | |
14565 | fail: | |
14566 | return NULL; | |
14567 | } | |
14568 | ||
14569 | ||
14570 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14571 | PyObject *resultobj = 0; | |
14572 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14573 | wxString *arg2 = 0 ; | |
14574 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14575 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14576 | wxString result; | |
14577 | void *argp1 = 0 ; | |
14578 | int res1 = 0 ; | |
14579 | bool temp2 = false ; | |
14580 | bool temp3 = false ; | |
14581 | PyObject * obj0 = 0 ; | |
14582 | PyObject * obj1 = 0 ; | |
14583 | PyObject * obj2 = 0 ; | |
14584 | char * kwnames[] = { | |
14585 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
14586 | }; | |
14587 | ||
14588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14590 | if (!SWIG_IsOK(res1)) { | |
14591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14592 | } | |
14593 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14594 | { | |
14595 | arg2 = wxString_in_helper(obj1); | |
14596 | if (arg2 == NULL) SWIG_fail; | |
14597 | temp2 = true; | |
14598 | } | |
14599 | if (obj2) { | |
d55e5bfc | 14600 | { |
554f62e9 RD |
14601 | arg3 = wxString_in_helper(obj2); |
14602 | if (arg3 == NULL) SWIG_fail; | |
14603 | temp3 = true; | |
d55e5bfc | 14604 | } |
554f62e9 RD |
14605 | } |
14606 | { | |
14607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14608 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
14609 | wxPyEndAllowThreads(__tstate); | |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
14611 | } | |
14612 | { | |
14613 | #if wxUSE_UNICODE | |
14614 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14615 | #else | |
14616 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14617 | #endif | |
14618 | } | |
14619 | { | |
14620 | if (temp2) | |
14621 | delete arg2; | |
14622 | } | |
14623 | { | |
14624 | if (temp3) | |
14625 | delete arg3; | |
14626 | } | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | { | |
14630 | if (temp2) | |
14631 | delete arg2; | |
14632 | } | |
14633 | { | |
14634 | if (temp3) | |
14635 | delete arg3; | |
14636 | } | |
14637 | return NULL; | |
d55e5bfc RD |
14638 | } |
14639 | ||
14640 | ||
554f62e9 RD |
14641 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14642 | PyObject *resultobj = 0; | |
14643 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14644 | wxString *result = 0 ; | |
14645 | void *argp1 = 0 ; | |
14646 | int res1 = 0 ; | |
14647 | PyObject *swig_obj[1] ; | |
14648 | ||
14649 | if (!args) SWIG_fail; | |
14650 | swig_obj[0] = args; | |
14651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14652 | if (!SWIG_IsOK(res1)) { | |
14653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14654 | } | |
14655 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14656 | { | |
14657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 14658 | { |
554f62e9 RD |
14659 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); |
14660 | result = (wxString *) &_result_ref; | |
d55e5bfc | 14661 | } |
554f62e9 RD |
14662 | wxPyEndAllowThreads(__tstate); |
14663 | if (PyErr_Occurred()) SWIG_fail; | |
14664 | } | |
14665 | { | |
14666 | #if wxUSE_UNICODE | |
14667 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14668 | #else | |
14669 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14670 | #endif | |
14671 | } | |
14672 | return resultobj; | |
14673 | fail: | |
14674 | return NULL; | |
d55e5bfc RD |
14675 | } |
14676 | ||
14677 | ||
554f62e9 RD |
14678 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14679 | PyObject *obj; | |
14680 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14681 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
14682 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14683 | } |
14684 | ||
554f62e9 RD |
14685 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14686 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14687 | } |
14688 | ||
554f62e9 RD |
14689 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14690 | PyObject *resultobj = 0; | |
14691 | wxLocale *result = 0 ; | |
14692 | ||
14693 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | result = (wxLocale *)wxGetLocale(); | |
14697 | wxPyEndAllowThreads(__tstate); | |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
14699 | } | |
14700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14701 | return resultobj; | |
14702 | fail: | |
14703 | return NULL; | |
d55e5bfc RD |
14704 | } |
14705 | ||
14706 | ||
554f62e9 RD |
14707 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14708 | PyObject *resultobj = 0; | |
14709 | wxString *arg1 = 0 ; | |
14710 | wxString result; | |
14711 | bool temp1 = false ; | |
14712 | ||
14713 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
14714 | { | |
14715 | arg1 = wxString_in_helper(swig_obj[0]); | |
14716 | if (arg1 == NULL) SWIG_fail; | |
14717 | temp1 = true; | |
14718 | } | |
14719 | { | |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | result = wxGetTranslation((wxString const &)*arg1); | |
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | { | |
093d3ff1 | 14726 | #if wxUSE_UNICODE |
554f62e9 | 14727 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14728 | #else |
554f62e9 | 14729 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14730 | #endif |
554f62e9 RD |
14731 | } |
14732 | { | |
14733 | if (temp1) | |
14734 | delete arg1; | |
14735 | } | |
14736 | return resultobj; | |
14737 | fail: | |
14738 | { | |
14739 | if (temp1) | |
14740 | delete arg1; | |
14741 | } | |
14742 | return NULL; | |
d55e5bfc RD |
14743 | } |
14744 | ||
14745 | ||
554f62e9 RD |
14746 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14747 | PyObject *resultobj = 0; | |
14748 | wxString *arg1 = 0 ; | |
14749 | wxString *arg2 = 0 ; | |
14750 | size_t arg3 ; | |
14751 | wxString result; | |
14752 | bool temp1 = false ; | |
14753 | bool temp2 = false ; | |
14754 | size_t val3 ; | |
14755 | int ecode3 = 0 ; | |
14756 | ||
14757 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
14758 | { | |
14759 | arg1 = wxString_in_helper(swig_obj[0]); | |
14760 | if (arg1 == NULL) SWIG_fail; | |
14761 | temp1 = true; | |
14762 | } | |
14763 | { | |
14764 | arg2 = wxString_in_helper(swig_obj[1]); | |
14765 | if (arg2 == NULL) SWIG_fail; | |
14766 | temp2 = true; | |
14767 | } | |
14768 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
14769 | if (!SWIG_IsOK(ecode3)) { | |
14770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
14771 | } | |
14772 | arg3 = static_cast< size_t >(val3); | |
14773 | { | |
14774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14775 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | { | |
093d3ff1 | 14780 | #if wxUSE_UNICODE |
554f62e9 | 14781 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14782 | #else |
554f62e9 | 14783 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14784 | #endif |
554f62e9 RD |
14785 | } |
14786 | { | |
14787 | if (temp1) | |
14788 | delete arg1; | |
14789 | } | |
14790 | { | |
14791 | if (temp2) | |
14792 | delete arg2; | |
14793 | } | |
14794 | return resultobj; | |
14795 | fail: | |
14796 | { | |
14797 | if (temp1) | |
14798 | delete arg1; | |
14799 | } | |
14800 | { | |
14801 | if (temp2) | |
14802 | delete arg2; | |
14803 | } | |
14804 | return NULL; | |
d55e5bfc RD |
14805 | } |
14806 | ||
14807 | ||
554f62e9 RD |
14808 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
14809 | int argc; | |
14810 | PyObject *argv[4]; | |
14811 | ||
14812 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail; | |
14813 | --argc; | |
14814 | if (argc == 1) { | |
14815 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
14816 | } | |
14817 | if (argc == 3) { | |
14818 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); | |
14819 | } | |
14820 | ||
14821 | fail: | |
14822 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
14823 | return NULL; | |
d55e5bfc RD |
14824 | } |
14825 | ||
14826 | ||
554f62e9 RD |
14827 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14828 | PyObject *resultobj = 0; | |
14829 | wxEncodingConverter *result = 0 ; | |
14830 | ||
14831 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
14832 | { | |
14833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14834 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
14835 | wxPyEndAllowThreads(__tstate); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
14838 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
14839 | return resultobj; | |
14840 | fail: | |
14841 | return NULL; | |
d55e5bfc RD |
14842 | } |
14843 | ||
14844 | ||
554f62e9 RD |
14845 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14846 | PyObject *resultobj = 0; | |
14847 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14848 | void *argp1 = 0 ; | |
14849 | int res1 = 0 ; | |
14850 | PyObject *swig_obj[1] ; | |
14851 | ||
14852 | if (!args) SWIG_fail; | |
14853 | swig_obj[0] = args; | |
14854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
14855 | if (!SWIG_IsOK(res1)) { | |
14856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14857 | } | |
14858 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14859 | { | |
14860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14861 | delete arg1; | |
d55e5bfc | 14862 | |
554f62e9 RD |
14863 | wxPyEndAllowThreads(__tstate); |
14864 | if (PyErr_Occurred()) SWIG_fail; | |
14865 | } | |
14866 | resultobj = SWIG_Py_Void(); | |
14867 | return resultobj; | |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj = 0; | |
14875 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14876 | wxFontEncoding arg2 ; | |
14877 | wxFontEncoding arg3 ; | |
14878 | int arg4 = (int) wxCONVERT_STRICT ; | |
14879 | bool result; | |
14880 | void *argp1 = 0 ; | |
14881 | int res1 = 0 ; | |
14882 | int val2 ; | |
14883 | int ecode2 = 0 ; | |
14884 | int val3 ; | |
14885 | int ecode3 = 0 ; | |
14886 | int val4 ; | |
14887 | int ecode4 = 0 ; | |
14888 | PyObject * obj0 = 0 ; | |
14889 | PyObject * obj1 = 0 ; | |
14890 | PyObject * obj2 = 0 ; | |
14891 | PyObject * obj3 = 0 ; | |
14892 | char * kwnames[] = { | |
14893 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
14894 | }; | |
14895 | ||
14896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14898 | if (!SWIG_IsOK(res1)) { | |
14899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14900 | } | |
14901 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14902 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14903 | if (!SWIG_IsOK(ecode2)) { | |
14904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14905 | } | |
14906 | arg2 = static_cast< wxFontEncoding >(val2); | |
14907 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14908 | if (!SWIG_IsOK(ecode3)) { | |
14909 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
14910 | } | |
14911 | arg3 = static_cast< wxFontEncoding >(val3); | |
14912 | if (obj3) { | |
14913 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14914 | if (!SWIG_IsOK(ecode4)) { | |
14915 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
14916 | } | |
14917 | arg4 = static_cast< int >(val4); | |
14918 | } | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
14922 | wxPyEndAllowThreads(__tstate); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
14924 | } | |
14925 | { | |
14926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14927 | } | |
14928 | return resultobj; | |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
14934 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14935 | PyObject *resultobj = 0; | |
14936 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14937 | wxString *arg2 = 0 ; | |
14938 | wxString result; | |
14939 | void *argp1 = 0 ; | |
14940 | int res1 = 0 ; | |
14941 | bool temp2 = false ; | |
14942 | PyObject * obj0 = 0 ; | |
14943 | PyObject * obj1 = 0 ; | |
14944 | char * kwnames[] = { | |
14945 | (char *) "self",(char *) "input", NULL | |
14946 | }; | |
14947 | ||
14948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
14949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14950 | if (!SWIG_IsOK(res1)) { | |
14951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14952 | } | |
14953 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14954 | { | |
14955 | arg2 = wxString_in_helper(obj1); | |
14956 | if (arg2 == NULL) SWIG_fail; | |
14957 | temp2 = true; | |
14958 | } | |
14959 | { | |
14960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14961 | result = (arg1)->Convert((wxString const &)*arg2); | |
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | { | |
d55e5bfc | 14966 | #if wxUSE_UNICODE |
554f62e9 | 14967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14968 | #else |
554f62e9 | 14969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14970 | #endif |
554f62e9 RD |
14971 | } |
14972 | { | |
14973 | if (temp2) | |
14974 | delete arg2; | |
14975 | } | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | { | |
14979 | if (temp2) | |
14980 | delete arg2; | |
14981 | } | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
14986 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14987 | PyObject *resultobj = 0; | |
14988 | wxFontEncoding arg1 ; | |
14989 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
14990 | wxFontEncodingArray result; | |
14991 | int val1 ; | |
14992 | int ecode1 = 0 ; | |
14993 | int val2 ; | |
14994 | int ecode2 = 0 ; | |
14995 | PyObject * obj0 = 0 ; | |
14996 | PyObject * obj1 = 0 ; | |
14997 | char * kwnames[] = { | |
14998 | (char *) "enc",(char *) "platform", NULL | |
14999 | }; | |
15000 | ||
15001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
15002 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15003 | if (!SWIG_IsOK(ecode1)) { | |
15004 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15005 | } | |
15006 | arg1 = static_cast< wxFontEncoding >(val1); | |
15007 | if (obj1) { | |
15008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15009 | if (!SWIG_IsOK(ecode2)) { | |
15010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
15011 | } | |
15012 | arg2 = static_cast< int >(val2); | |
15013 | } | |
15014 | { | |
15015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15016 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
15020 | { | |
15021 | resultobj = PyList_New(0); | |
15022 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
15023 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
15024 | PyList_Append(resultobj, number); | |
15025 | Py_DECREF(number); | |
d55e5bfc | 15026 | } |
554f62e9 RD |
15027 | } |
15028 | return resultobj; | |
15029 | fail: | |
15030 | return NULL; | |
d55e5bfc RD |
15031 | } |
15032 | ||
15033 | ||
554f62e9 RD |
15034 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15035 | PyObject *resultobj = 0; | |
15036 | wxFontEncoding arg1 ; | |
15037 | wxFontEncodingArray result; | |
15038 | int val1 ; | |
15039 | int ecode1 = 0 ; | |
15040 | PyObject * obj0 = 0 ; | |
15041 | char * kwnames[] = { | |
15042 | (char *) "enc", NULL | |
15043 | }; | |
15044 | ||
15045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
15046 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15047 | if (!SWIG_IsOK(ecode1)) { | |
15048 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15049 | } | |
15050 | arg1 = static_cast< wxFontEncoding >(val1); | |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
15054 | wxPyEndAllowThreads(__tstate); | |
15055 | if (PyErr_Occurred()) SWIG_fail; | |
15056 | } | |
15057 | { | |
15058 | resultobj = PyList_New(0); | |
15059 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
15060 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
15061 | PyList_Append(resultobj, number); | |
15062 | Py_DECREF(number); | |
d55e5bfc | 15063 | } |
554f62e9 RD |
15064 | } |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj = 0; | |
15073 | wxFontEncoding arg1 ; | |
15074 | wxFontEncoding arg2 ; | |
15075 | bool result; | |
15076 | int val1 ; | |
15077 | int ecode1 = 0 ; | |
15078 | int val2 ; | |
15079 | int ecode2 = 0 ; | |
15080 | PyObject * obj0 = 0 ; | |
15081 | PyObject * obj1 = 0 ; | |
15082 | char * kwnames[] = { | |
15083 | (char *) "encIn",(char *) "encOut", NULL | |
15084 | }; | |
15085 | ||
15086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
15087 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15088 | if (!SWIG_IsOK(ecode1)) { | |
15089 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15090 | } | |
15091 | arg1 = static_cast< wxFontEncoding >(val1); | |
15092 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15093 | if (!SWIG_IsOK(ecode2)) { | |
15094 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15095 | } | |
15096 | arg2 = static_cast< wxFontEncoding >(val2); | |
15097 | { | |
15098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15099 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
15103 | { | |
15104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15105 | } | |
15106 | return resultobj; | |
15107 | fail: | |
15108 | return NULL; | |
d55e5bfc RD |
15109 | } |
15110 | ||
15111 | ||
554f62e9 RD |
15112 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15113 | PyObject *obj; | |
15114 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15115 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
15116 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15117 | } |
15118 | ||
554f62e9 RD |
15119 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15120 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
15121 | } |
15122 | ||
554f62e9 RD |
15123 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15124 | PyObject *resultobj = 0; | |
15125 | wxDC *arg1 = (wxDC *) 0 ; | |
15126 | void *argp1 = 0 ; | |
15127 | int res1 = 0 ; | |
15128 | PyObject *swig_obj[1] ; | |
15129 | ||
15130 | if (!args) SWIG_fail; | |
15131 | swig_obj[0] = args; | |
15132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
15133 | if (!SWIG_IsOK(res1)) { | |
15134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15135 | } | |
15136 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15137 | { | |
15138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15139 | delete arg1; | |
d55e5bfc | 15140 | |
554f62e9 RD |
15141 | wxPyEndAllowThreads(__tstate); |
15142 | if (PyErr_Occurred()) SWIG_fail; | |
15143 | } | |
15144 | resultobj = SWIG_Py_Void(); | |
15145 | return resultobj; | |
15146 | fail: | |
15147 | return NULL; | |
15148 | } | |
15149 | ||
15150 | ||
15151 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15152 | PyObject *resultobj = 0; | |
15153 | wxDC *arg1 = (wxDC *) 0 ; | |
15154 | int arg2 ; | |
15155 | int arg3 ; | |
15156 | wxColour *arg4 = 0 ; | |
15157 | int arg5 = (int) wxFLOOD_SURFACE ; | |
15158 | bool result; | |
15159 | void *argp1 = 0 ; | |
15160 | int res1 = 0 ; | |
15161 | int val2 ; | |
15162 | int ecode2 = 0 ; | |
15163 | int val3 ; | |
15164 | int ecode3 = 0 ; | |
15165 | wxColour temp4 ; | |
15166 | int val5 ; | |
15167 | int ecode5 = 0 ; | |
15168 | PyObject * obj0 = 0 ; | |
15169 | PyObject * obj1 = 0 ; | |
15170 | PyObject * obj2 = 0 ; | |
15171 | PyObject * obj3 = 0 ; | |
15172 | PyObject * obj4 = 0 ; | |
15173 | char * kwnames[] = { | |
15174 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
15175 | }; | |
15176 | ||
15177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15179 | if (!SWIG_IsOK(res1)) { | |
15180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15181 | } | |
15182 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15184 | if (!SWIG_IsOK(ecode2)) { | |
15185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
15186 | } | |
15187 | arg2 = static_cast< int >(val2); | |
15188 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15189 | if (!SWIG_IsOK(ecode3)) { | |
15190 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
15191 | } | |
15192 | arg3 = static_cast< int >(val3); | |
15193 | { | |
15194 | arg4 = &temp4; | |
15195 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15196 | } | |
15197 | if (obj4) { | |
15198 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15199 | if (!SWIG_IsOK(ecode5)) { | |
15200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
15201 | } | |
15202 | arg5 = static_cast< int >(val5); | |
15203 | } | |
15204 | { | |
15205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15206 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
15207 | wxPyEndAllowThreads(__tstate); | |
15208 | if (PyErr_Occurred()) SWIG_fail; | |
15209 | } | |
15210 | { | |
15211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15212 | } | |
15213 | return resultobj; | |
15214 | fail: | |
15215 | return NULL; | |
15216 | } | |
15217 | ||
15218 | ||
15219 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15220 | PyObject *resultobj = 0; | |
15221 | wxDC *arg1 = (wxDC *) 0 ; | |
15222 | wxPoint *arg2 = 0 ; | |
15223 | wxColour *arg3 = 0 ; | |
15224 | int arg4 = (int) wxFLOOD_SURFACE ; | |
15225 | bool result; | |
15226 | void *argp1 = 0 ; | |
15227 | int res1 = 0 ; | |
15228 | wxPoint temp2 ; | |
15229 | wxColour temp3 ; | |
15230 | int val4 ; | |
15231 | int ecode4 = 0 ; | |
15232 | PyObject * obj0 = 0 ; | |
15233 | PyObject * obj1 = 0 ; | |
15234 | PyObject * obj2 = 0 ; | |
15235 | PyObject * obj3 = 0 ; | |
15236 | char * kwnames[] = { | |
15237 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
15238 | }; | |
15239 | ||
15240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15242 | if (!SWIG_IsOK(res1)) { | |
15243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15244 | } | |
15245 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15246 | { | |
15247 | arg2 = &temp2; | |
15248 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15249 | } | |
15250 | { | |
15251 | arg3 = &temp3; | |
15252 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15253 | } | |
15254 | if (obj3) { | |
15255 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15256 | if (!SWIG_IsOK(ecode4)) { | |
15257 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
15258 | } | |
15259 | arg4 = static_cast< int >(val4); | |
15260 | } | |
15261 | { | |
15262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15263 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
15264 | wxPyEndAllowThreads(__tstate); | |
15265 | if (PyErr_Occurred()) SWIG_fail; | |
15266 | } | |
15267 | { | |
15268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15269 | } | |
15270 | return resultobj; | |
15271 | fail: | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj = 0; | |
15278 | wxDC *arg1 = (wxDC *) 0 ; | |
15279 | wxRect *arg2 = 0 ; | |
15280 | wxColour *arg3 = 0 ; | |
15281 | wxColour *arg4 = 0 ; | |
15282 | wxPoint *arg5 = 0 ; | |
15283 | void *argp1 = 0 ; | |
15284 | int res1 = 0 ; | |
15285 | wxRect temp2 ; | |
15286 | wxColour temp3 ; | |
15287 | wxColour temp4 ; | |
15288 | wxPoint temp5 ; | |
15289 | PyObject * obj0 = 0 ; | |
15290 | PyObject * obj1 = 0 ; | |
15291 | PyObject * obj2 = 0 ; | |
15292 | PyObject * obj3 = 0 ; | |
15293 | PyObject * obj4 = 0 ; | |
15294 | char * kwnames[] = { | |
15295 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
15296 | }; | |
15297 | ||
15298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15300 | if (!SWIG_IsOK(res1)) { | |
15301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15302 | } | |
15303 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15304 | { | |
15305 | arg2 = &temp2; | |
15306 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15307 | } | |
15308 | { | |
15309 | arg3 = &temp3; | |
15310 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15311 | } | |
15312 | { | |
15313 | arg4 = &temp4; | |
15314 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | arg5 = &temp5; | |
15318 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15319 | } | |
15320 | { | |
15321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15322 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
15323 | wxPyEndAllowThreads(__tstate); | |
15324 | if (PyErr_Occurred()) SWIG_fail; | |
15325 | } | |
15326 | resultobj = SWIG_Py_Void(); | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | return NULL; | |
15330 | } | |
15331 | ||
15332 | ||
15333 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15334 | PyObject *resultobj = 0; | |
15335 | wxDC *arg1 = (wxDC *) 0 ; | |
15336 | wxRect *arg2 = 0 ; | |
15337 | wxColour *arg3 = 0 ; | |
15338 | wxColour *arg4 = 0 ; | |
15339 | wxDirection arg5 = (wxDirection) wxEAST ; | |
15340 | void *argp1 = 0 ; | |
15341 | int res1 = 0 ; | |
15342 | wxRect temp2 ; | |
15343 | wxColour temp3 ; | |
15344 | wxColour temp4 ; | |
15345 | int val5 ; | |
15346 | int ecode5 = 0 ; | |
15347 | PyObject * obj0 = 0 ; | |
15348 | PyObject * obj1 = 0 ; | |
15349 | PyObject * obj2 = 0 ; | |
15350 | PyObject * obj3 = 0 ; | |
15351 | PyObject * obj4 = 0 ; | |
15352 | char * kwnames[] = { | |
15353 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
15354 | }; | |
15355 | ||
15356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15358 | if (!SWIG_IsOK(res1)) { | |
15359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15360 | } | |
15361 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15362 | { | |
15363 | arg2 = &temp2; | |
15364 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15365 | } | |
15366 | { | |
15367 | arg3 = &temp3; | |
15368 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15369 | } | |
15370 | { | |
15371 | arg4 = &temp4; | |
15372 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15373 | } | |
15374 | if (obj4) { | |
15375 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15376 | if (!SWIG_IsOK(ecode5)) { | |
15377 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
15378 | } | |
15379 | arg5 = static_cast< wxDirection >(val5); | |
15380 | } | |
15381 | { | |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
15384 | wxPyEndAllowThreads(__tstate); | |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
15386 | } | |
15387 | resultobj = SWIG_Py_Void(); | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
15394 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15395 | PyObject *resultobj = 0; | |
15396 | wxDC *arg1 = (wxDC *) 0 ; | |
15397 | int arg2 ; | |
15398 | int arg3 ; | |
15399 | wxColour result; | |
15400 | void *argp1 = 0 ; | |
15401 | int res1 = 0 ; | |
15402 | int val2 ; | |
15403 | int ecode2 = 0 ; | |
15404 | int val3 ; | |
15405 | int ecode3 = 0 ; | |
15406 | PyObject * obj0 = 0 ; | |
15407 | PyObject * obj1 = 0 ; | |
15408 | PyObject * obj2 = 0 ; | |
15409 | char * kwnames[] = { | |
15410 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15411 | }; | |
15412 | ||
15413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15415 | if (!SWIG_IsOK(res1)) { | |
15416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15417 | } | |
15418 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15419 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15420 | if (!SWIG_IsOK(ecode2)) { | |
15421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
15422 | } | |
15423 | arg2 = static_cast< int >(val2); | |
15424 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15425 | if (!SWIG_IsOK(ecode3)) { | |
15426 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
15427 | } | |
15428 | arg3 = static_cast< int >(val3); | |
15429 | { | |
15430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15431 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
15432 | wxPyEndAllowThreads(__tstate); | |
15433 | if (PyErr_Occurred()) SWIG_fail; | |
15434 | } | |
15435 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
15436 | return resultobj; | |
15437 | fail: | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15443 | PyObject *resultobj = 0; | |
15444 | wxDC *arg1 = (wxDC *) 0 ; | |
15445 | wxPoint *arg2 = 0 ; | |
15446 | wxColour result; | |
15447 | void *argp1 = 0 ; | |
15448 | int res1 = 0 ; | |
15449 | wxPoint temp2 ; | |
15450 | PyObject * obj0 = 0 ; | |
15451 | PyObject * obj1 = 0 ; | |
15452 | char * kwnames[] = { | |
15453 | (char *) "self",(char *) "pt", NULL | |
15454 | }; | |
15455 | ||
15456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
15457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15458 | if (!SWIG_IsOK(res1)) { | |
15459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15460 | } | |
15461 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15462 | { | |
15463 | arg2 = &temp2; | |
15464 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15465 | } | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
15469 | wxPyEndAllowThreads(__tstate); | |
15470 | if (PyErr_Occurred()) SWIG_fail; | |
15471 | } | |
15472 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
15473 | return resultobj; | |
15474 | fail: | |
15475 | return NULL; | |
15476 | } | |
15477 | ||
15478 | ||
15479 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15480 | PyObject *resultobj = 0; | |
15481 | wxDC *arg1 = (wxDC *) 0 ; | |
15482 | int arg2 ; | |
15483 | int arg3 ; | |
15484 | int arg4 ; | |
15485 | int arg5 ; | |
15486 | void *argp1 = 0 ; | |
15487 | int res1 = 0 ; | |
15488 | int val2 ; | |
15489 | int ecode2 = 0 ; | |
15490 | int val3 ; | |
15491 | int ecode3 = 0 ; | |
15492 | int val4 ; | |
15493 | int ecode4 = 0 ; | |
15494 | int val5 ; | |
15495 | int ecode5 = 0 ; | |
15496 | PyObject * obj0 = 0 ; | |
15497 | PyObject * obj1 = 0 ; | |
15498 | PyObject * obj2 = 0 ; | |
15499 | PyObject * obj3 = 0 ; | |
15500 | PyObject * obj4 = 0 ; | |
15501 | char * kwnames[] = { | |
15502 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
15503 | }; | |
15504 | ||
15505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15507 | if (!SWIG_IsOK(res1)) { | |
15508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15509 | } | |
15510 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15511 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15512 | if (!SWIG_IsOK(ecode2)) { | |
15513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
15514 | } | |
15515 | arg2 = static_cast< int >(val2); | |
15516 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15517 | if (!SWIG_IsOK(ecode3)) { | |
15518 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
15519 | } | |
15520 | arg3 = static_cast< int >(val3); | |
15521 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15522 | if (!SWIG_IsOK(ecode4)) { | |
15523 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
15524 | } | |
15525 | arg4 = static_cast< int >(val4); | |
15526 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15527 | if (!SWIG_IsOK(ecode5)) { | |
15528 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
15529 | } | |
15530 | arg5 = static_cast< int >(val5); | |
15531 | { | |
15532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15533 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
15534 | wxPyEndAllowThreads(__tstate); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | } | |
15537 | resultobj = SWIG_Py_Void(); | |
15538 | return resultobj; | |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj = 0; | |
15546 | wxDC *arg1 = (wxDC *) 0 ; | |
15547 | wxPoint *arg2 = 0 ; | |
15548 | wxPoint *arg3 = 0 ; | |
15549 | void *argp1 = 0 ; | |
15550 | int res1 = 0 ; | |
15551 | wxPoint temp2 ; | |
15552 | wxPoint temp3 ; | |
15553 | PyObject * obj0 = 0 ; | |
15554 | PyObject * obj1 = 0 ; | |
15555 | PyObject * obj2 = 0 ; | |
15556 | char * kwnames[] = { | |
15557 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
15558 | }; | |
15559 | ||
15560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15562 | if (!SWIG_IsOK(res1)) { | |
15563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15564 | } | |
15565 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15566 | { | |
15567 | arg2 = &temp2; | |
15568 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15569 | } | |
15570 | { | |
15571 | arg3 = &temp3; | |
15572 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15573 | } | |
15574 | { | |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15576 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
15577 | wxPyEndAllowThreads(__tstate); | |
15578 | if (PyErr_Occurred()) SWIG_fail; | |
15579 | } | |
15580 | resultobj = SWIG_Py_Void(); | |
15581 | return resultobj; | |
15582 | fail: | |
15583 | return NULL; | |
15584 | } | |
15585 | ||
15586 | ||
15587 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15588 | PyObject *resultobj = 0; | |
15589 | wxDC *arg1 = (wxDC *) 0 ; | |
15590 | int arg2 ; | |
15591 | int arg3 ; | |
15592 | void *argp1 = 0 ; | |
15593 | int res1 = 0 ; | |
15594 | int val2 ; | |
15595 | int ecode2 = 0 ; | |
15596 | int val3 ; | |
15597 | int ecode3 = 0 ; | |
15598 | PyObject * obj0 = 0 ; | |
15599 | PyObject * obj1 = 0 ; | |
15600 | PyObject * obj2 = 0 ; | |
15601 | char * kwnames[] = { | |
15602 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15603 | }; | |
15604 | ||
15605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15607 | if (!SWIG_IsOK(res1)) { | |
15608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15609 | } | |
15610 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15611 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15612 | if (!SWIG_IsOK(ecode2)) { | |
15613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
15614 | } | |
15615 | arg2 = static_cast< int >(val2); | |
15616 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15617 | if (!SWIG_IsOK(ecode3)) { | |
15618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
15619 | } | |
15620 | arg3 = static_cast< int >(val3); | |
15621 | { | |
15622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15623 | (arg1)->CrossHair(arg2,arg3); | |
15624 | wxPyEndAllowThreads(__tstate); | |
15625 | if (PyErr_Occurred()) SWIG_fail; | |
15626 | } | |
15627 | resultobj = SWIG_Py_Void(); | |
15628 | return resultobj; | |
15629 | fail: | |
15630 | return NULL; | |
15631 | } | |
15632 | ||
15633 | ||
15634 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15635 | PyObject *resultobj = 0; | |
15636 | wxDC *arg1 = (wxDC *) 0 ; | |
15637 | wxPoint *arg2 = 0 ; | |
15638 | void *argp1 = 0 ; | |
15639 | int res1 = 0 ; | |
15640 | wxPoint temp2 ; | |
15641 | PyObject * obj0 = 0 ; | |
15642 | PyObject * obj1 = 0 ; | |
15643 | char * kwnames[] = { | |
15644 | (char *) "self",(char *) "pt", NULL | |
15645 | }; | |
15646 | ||
15647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
15648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15649 | if (!SWIG_IsOK(res1)) { | |
15650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15651 | } | |
15652 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15653 | { | |
15654 | arg2 = &temp2; | |
15655 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15656 | } | |
15657 | { | |
15658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15659 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
15660 | wxPyEndAllowThreads(__tstate); | |
15661 | if (PyErr_Occurred()) SWIG_fail; | |
15662 | } | |
15663 | resultobj = SWIG_Py_Void(); | |
15664 | return resultobj; | |
15665 | fail: | |
15666 | return NULL; | |
15667 | } | |
15668 | ||
15669 | ||
15670 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15671 | PyObject *resultobj = 0; | |
15672 | wxDC *arg1 = (wxDC *) 0 ; | |
15673 | int arg2 ; | |
15674 | int arg3 ; | |
15675 | int arg4 ; | |
15676 | int arg5 ; | |
15677 | int arg6 ; | |
15678 | int arg7 ; | |
15679 | void *argp1 = 0 ; | |
15680 | int res1 = 0 ; | |
15681 | int val2 ; | |
15682 | int ecode2 = 0 ; | |
15683 | int val3 ; | |
15684 | int ecode3 = 0 ; | |
15685 | int val4 ; | |
15686 | int ecode4 = 0 ; | |
15687 | int val5 ; | |
15688 | int ecode5 = 0 ; | |
15689 | int val6 ; | |
15690 | int ecode6 = 0 ; | |
15691 | int val7 ; | |
15692 | int ecode7 = 0 ; | |
15693 | PyObject * obj0 = 0 ; | |
15694 | PyObject * obj1 = 0 ; | |
15695 | PyObject * obj2 = 0 ; | |
15696 | PyObject * obj3 = 0 ; | |
15697 | PyObject * obj4 = 0 ; | |
15698 | PyObject * obj5 = 0 ; | |
15699 | PyObject * obj6 = 0 ; | |
15700 | char * kwnames[] = { | |
15701 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
15702 | }; | |
15703 | ||
15704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15706 | if (!SWIG_IsOK(res1)) { | |
15707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15708 | } | |
15709 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15710 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15711 | if (!SWIG_IsOK(ecode2)) { | |
15712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
15713 | } | |
15714 | arg2 = static_cast< int >(val2); | |
15715 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15716 | if (!SWIG_IsOK(ecode3)) { | |
15717 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
15718 | } | |
15719 | arg3 = static_cast< int >(val3); | |
15720 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15721 | if (!SWIG_IsOK(ecode4)) { | |
15722 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
15723 | } | |
15724 | arg4 = static_cast< int >(val4); | |
15725 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15726 | if (!SWIG_IsOK(ecode5)) { | |
15727 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
15728 | } | |
15729 | arg5 = static_cast< int >(val5); | |
15730 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
15731 | if (!SWIG_IsOK(ecode6)) { | |
15732 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
15733 | } | |
15734 | arg6 = static_cast< int >(val6); | |
15735 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15736 | if (!SWIG_IsOK(ecode7)) { | |
15737 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
15738 | } | |
15739 | arg7 = static_cast< int >(val7); | |
15740 | { | |
15741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15742 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15743 | wxPyEndAllowThreads(__tstate); | |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | } | |
15746 | resultobj = SWIG_Py_Void(); | |
15747 | return resultobj; | |
15748 | fail: | |
15749 | return NULL; | |
15750 | } | |
15751 | ||
15752 | ||
15753 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15754 | PyObject *resultobj = 0; | |
15755 | wxDC *arg1 = (wxDC *) 0 ; | |
15756 | wxPoint *arg2 = 0 ; | |
15757 | wxPoint *arg3 = 0 ; | |
15758 | wxPoint *arg4 = 0 ; | |
15759 | void *argp1 = 0 ; | |
15760 | int res1 = 0 ; | |
15761 | wxPoint temp2 ; | |
15762 | wxPoint temp3 ; | |
15763 | wxPoint temp4 ; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | PyObject * obj1 = 0 ; | |
15766 | PyObject * obj2 = 0 ; | |
15767 | PyObject * obj3 = 0 ; | |
15768 | char * kwnames[] = { | |
15769 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
15770 | }; | |
15771 | ||
15772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15774 | if (!SWIG_IsOK(res1)) { | |
15775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15776 | } | |
15777 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15778 | { | |
15779 | arg2 = &temp2; | |
15780 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15781 | } | |
15782 | { | |
15783 | arg3 = &temp3; | |
15784 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15785 | } | |
15786 | { | |
15787 | arg4 = &temp4; | |
15788 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15789 | } | |
15790 | { | |
15791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15792 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
15793 | wxPyEndAllowThreads(__tstate); | |
15794 | if (PyErr_Occurred()) SWIG_fail; | |
15795 | } | |
15796 | resultobj = SWIG_Py_Void(); | |
15797 | return resultobj; | |
15798 | fail: | |
15799 | return NULL; | |
15800 | } | |
15801 | ||
15802 | ||
15803 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15804 | PyObject *resultobj = 0; | |
15805 | wxDC *arg1 = (wxDC *) 0 ; | |
15806 | int arg2 ; | |
15807 | int arg3 ; | |
15808 | int arg4 ; | |
15809 | int arg5 ; | |
15810 | void *argp1 = 0 ; | |
15811 | int res1 = 0 ; | |
15812 | int val2 ; | |
15813 | int ecode2 = 0 ; | |
15814 | int val3 ; | |
15815 | int ecode3 = 0 ; | |
15816 | int val4 ; | |
15817 | int ecode4 = 0 ; | |
15818 | int val5 ; | |
15819 | int ecode5 = 0 ; | |
15820 | PyObject * obj0 = 0 ; | |
15821 | PyObject * obj1 = 0 ; | |
15822 | PyObject * obj2 = 0 ; | |
15823 | PyObject * obj3 = 0 ; | |
15824 | PyObject * obj4 = 0 ; | |
15825 | char * kwnames[] = { | |
15826 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15827 | }; | |
15828 | ||
15829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15831 | if (!SWIG_IsOK(res1)) { | |
15832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15833 | } | |
15834 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15835 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15836 | if (!SWIG_IsOK(ecode2)) { | |
15837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
15838 | } | |
15839 | arg2 = static_cast< int >(val2); | |
15840 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15841 | if (!SWIG_IsOK(ecode3)) { | |
15842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
15843 | } | |
15844 | arg3 = static_cast< int >(val3); | |
15845 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15846 | if (!SWIG_IsOK(ecode4)) { | |
15847 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
15848 | } | |
15849 | arg4 = static_cast< int >(val4); | |
15850 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15851 | if (!SWIG_IsOK(ecode5)) { | |
15852 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
15853 | } | |
15854 | arg5 = static_cast< int >(val5); | |
15855 | { | |
15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15857 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | resultobj = SWIG_Py_Void(); | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | return NULL; | |
15865 | } | |
15866 | ||
15867 | ||
15868 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15869 | PyObject *resultobj = 0; | |
15870 | wxDC *arg1 = (wxDC *) 0 ; | |
15871 | wxRect *arg2 = 0 ; | |
15872 | void *argp1 = 0 ; | |
15873 | int res1 = 0 ; | |
15874 | wxRect temp2 ; | |
15875 | PyObject * obj0 = 0 ; | |
15876 | PyObject * obj1 = 0 ; | |
15877 | char * kwnames[] = { | |
15878 | (char *) "self",(char *) "rect", NULL | |
15879 | }; | |
15880 | ||
15881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
15882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15883 | if (!SWIG_IsOK(res1)) { | |
15884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15885 | } | |
15886 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15887 | { | |
15888 | arg2 = &temp2; | |
15889 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15890 | } | |
15891 | { | |
15892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15893 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
15894 | wxPyEndAllowThreads(__tstate); | |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
15896 | } | |
15897 | resultobj = SWIG_Py_Void(); | |
15898 | return resultobj; | |
15899 | fail: | |
15900 | return NULL; | |
15901 | } | |
15902 | ||
15903 | ||
15904 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15905 | PyObject *resultobj = 0; | |
15906 | wxDC *arg1 = (wxDC *) 0 ; | |
15907 | int arg2 ; | |
15908 | int arg3 ; | |
15909 | int arg4 ; | |
15910 | int arg5 ; | |
15911 | double arg6 ; | |
15912 | double arg7 ; | |
15913 | void *argp1 = 0 ; | |
15914 | int res1 = 0 ; | |
15915 | int val2 ; | |
15916 | int ecode2 = 0 ; | |
15917 | int val3 ; | |
15918 | int ecode3 = 0 ; | |
15919 | int val4 ; | |
15920 | int ecode4 = 0 ; | |
15921 | int val5 ; | |
15922 | int ecode5 = 0 ; | |
15923 | double val6 ; | |
15924 | int ecode6 = 0 ; | |
15925 | double val7 ; | |
15926 | int ecode7 = 0 ; | |
15927 | PyObject * obj0 = 0 ; | |
15928 | PyObject * obj1 = 0 ; | |
15929 | PyObject * obj2 = 0 ; | |
15930 | PyObject * obj3 = 0 ; | |
15931 | PyObject * obj4 = 0 ; | |
15932 | PyObject * obj5 = 0 ; | |
15933 | PyObject * obj6 = 0 ; | |
15934 | char * kwnames[] = { | |
15935 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
15936 | }; | |
15937 | ||
15938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15940 | if (!SWIG_IsOK(res1)) { | |
15941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15942 | } | |
15943 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15944 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15945 | if (!SWIG_IsOK(ecode2)) { | |
15946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
15947 | } | |
15948 | arg2 = static_cast< int >(val2); | |
15949 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15950 | if (!SWIG_IsOK(ecode3)) { | |
15951 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
15952 | } | |
15953 | arg3 = static_cast< int >(val3); | |
15954 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15955 | if (!SWIG_IsOK(ecode4)) { | |
15956 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
15957 | } | |
15958 | arg4 = static_cast< int >(val4); | |
15959 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15960 | if (!SWIG_IsOK(ecode5)) { | |
15961 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
15962 | } | |
15963 | arg5 = static_cast< int >(val5); | |
15964 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
15965 | if (!SWIG_IsOK(ecode6)) { | |
15966 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
15967 | } | |
15968 | arg6 = static_cast< double >(val6); | |
15969 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
15970 | if (!SWIG_IsOK(ecode7)) { | |
15971 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
15972 | } | |
15973 | arg7 = static_cast< double >(val7); | |
15974 | { | |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15976 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15977 | wxPyEndAllowThreads(__tstate); | |
15978 | if (PyErr_Occurred()) SWIG_fail; | |
15979 | } | |
15980 | resultobj = SWIG_Py_Void(); | |
15981 | return resultobj; | |
15982 | fail: | |
15983 | return NULL; | |
15984 | } | |
15985 | ||
15986 | ||
15987 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15988 | PyObject *resultobj = 0; | |
15989 | wxDC *arg1 = (wxDC *) 0 ; | |
15990 | wxPoint *arg2 = 0 ; | |
15991 | wxSize *arg3 = 0 ; | |
15992 | double arg4 ; | |
15993 | double arg5 ; | |
15994 | void *argp1 = 0 ; | |
15995 | int res1 = 0 ; | |
15996 | wxPoint temp2 ; | |
15997 | wxSize temp3 ; | |
15998 | double val4 ; | |
15999 | int ecode4 = 0 ; | |
16000 | double val5 ; | |
16001 | int ecode5 = 0 ; | |
16002 | PyObject * obj0 = 0 ; | |
16003 | PyObject * obj1 = 0 ; | |
16004 | PyObject * obj2 = 0 ; | |
16005 | PyObject * obj3 = 0 ; | |
16006 | PyObject * obj4 = 0 ; | |
16007 | char * kwnames[] = { | |
16008 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
16009 | }; | |
16010 | ||
16011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16013 | if (!SWIG_IsOK(res1)) { | |
16014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16015 | } | |
16016 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16017 | { | |
16018 | arg2 = &temp2; | |
16019 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16020 | } | |
16021 | { | |
16022 | arg3 = &temp3; | |
16023 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16024 | } | |
16025 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
16026 | if (!SWIG_IsOK(ecode4)) { | |
16027 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
16028 | } | |
16029 | arg4 = static_cast< double >(val4); | |
16030 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
16031 | if (!SWIG_IsOK(ecode5)) { | |
16032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
16033 | } | |
16034 | arg5 = static_cast< double >(val5); | |
16035 | { | |
16036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16037 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
16038 | wxPyEndAllowThreads(__tstate); | |
16039 | if (PyErr_Occurred()) SWIG_fail; | |
16040 | } | |
16041 | resultobj = SWIG_Py_Void(); | |
16042 | return resultobj; | |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj = 0; | |
16050 | wxDC *arg1 = (wxDC *) 0 ; | |
16051 | int arg2 ; | |
16052 | int arg3 ; | |
16053 | void *argp1 = 0 ; | |
16054 | int res1 = 0 ; | |
16055 | int val2 ; | |
16056 | int ecode2 = 0 ; | |
16057 | int val3 ; | |
16058 | int ecode3 = 0 ; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | PyObject * obj1 = 0 ; | |
16061 | PyObject * obj2 = 0 ; | |
16062 | char * kwnames[] = { | |
16063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16064 | }; | |
16065 | ||
16066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16068 | if (!SWIG_IsOK(res1)) { | |
16069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16070 | } | |
16071 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16073 | if (!SWIG_IsOK(ecode2)) { | |
16074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
16075 | } | |
16076 | arg2 = static_cast< int >(val2); | |
16077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16078 | if (!SWIG_IsOK(ecode3)) { | |
16079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
16080 | } | |
16081 | arg3 = static_cast< int >(val3); | |
16082 | { | |
16083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16084 | (arg1)->DrawPoint(arg2,arg3); | |
16085 | wxPyEndAllowThreads(__tstate); | |
16086 | if (PyErr_Occurred()) SWIG_fail; | |
16087 | } | |
16088 | resultobj = SWIG_Py_Void(); | |
16089 | return resultobj; | |
16090 | fail: | |
16091 | return NULL; | |
16092 | } | |
16093 | ||
16094 | ||
16095 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16096 | PyObject *resultobj = 0; | |
16097 | wxDC *arg1 = (wxDC *) 0 ; | |
16098 | wxPoint *arg2 = 0 ; | |
16099 | void *argp1 = 0 ; | |
16100 | int res1 = 0 ; | |
16101 | wxPoint temp2 ; | |
16102 | PyObject * obj0 = 0 ; | |
16103 | PyObject * obj1 = 0 ; | |
16104 | char * kwnames[] = { | |
16105 | (char *) "self",(char *) "pt", NULL | |
16106 | }; | |
16107 | ||
16108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
16109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16110 | if (!SWIG_IsOK(res1)) { | |
16111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16112 | } | |
16113 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16114 | { | |
16115 | arg2 = &temp2; | |
16116 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16117 | } | |
16118 | { | |
16119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16120 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
16121 | wxPyEndAllowThreads(__tstate); | |
16122 | if (PyErr_Occurred()) SWIG_fail; | |
16123 | } | |
16124 | resultobj = SWIG_Py_Void(); | |
16125 | return resultobj; | |
16126 | fail: | |
16127 | return NULL; | |
16128 | } | |
16129 | ||
16130 | ||
16131 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16132 | PyObject *resultobj = 0; | |
16133 | wxDC *arg1 = (wxDC *) 0 ; | |
16134 | int arg2 ; | |
16135 | int arg3 ; | |
16136 | int arg4 ; | |
16137 | int arg5 ; | |
16138 | void *argp1 = 0 ; | |
16139 | int res1 = 0 ; | |
16140 | int val2 ; | |
16141 | int ecode2 = 0 ; | |
16142 | int val3 ; | |
16143 | int ecode3 = 0 ; | |
16144 | int val4 ; | |
16145 | int ecode4 = 0 ; | |
16146 | int val5 ; | |
16147 | int ecode5 = 0 ; | |
16148 | PyObject * obj0 = 0 ; | |
16149 | PyObject * obj1 = 0 ; | |
16150 | PyObject * obj2 = 0 ; | |
16151 | PyObject * obj3 = 0 ; | |
16152 | PyObject * obj4 = 0 ; | |
16153 | char * kwnames[] = { | |
16154 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16155 | }; | |
16156 | ||
16157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16159 | if (!SWIG_IsOK(res1)) { | |
16160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16161 | } | |
16162 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16163 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16164 | if (!SWIG_IsOK(ecode2)) { | |
16165 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
16166 | } | |
16167 | arg2 = static_cast< int >(val2); | |
16168 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16169 | if (!SWIG_IsOK(ecode3)) { | |
16170 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
16171 | } | |
16172 | arg3 = static_cast< int >(val3); | |
16173 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16174 | if (!SWIG_IsOK(ecode4)) { | |
16175 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
16176 | } | |
16177 | arg4 = static_cast< int >(val4); | |
16178 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16179 | if (!SWIG_IsOK(ecode5)) { | |
16180 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
16181 | } | |
16182 | arg5 = static_cast< int >(val5); | |
16183 | { | |
16184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16185 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
16186 | wxPyEndAllowThreads(__tstate); | |
16187 | if (PyErr_Occurred()) SWIG_fail; | |
16188 | } | |
16189 | resultobj = SWIG_Py_Void(); | |
16190 | return resultobj; | |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16197 | PyObject *resultobj = 0; | |
16198 | wxDC *arg1 = (wxDC *) 0 ; | |
16199 | wxRect *arg2 = 0 ; | |
16200 | void *argp1 = 0 ; | |
16201 | int res1 = 0 ; | |
16202 | wxRect temp2 ; | |
16203 | PyObject * obj0 = 0 ; | |
16204 | PyObject * obj1 = 0 ; | |
16205 | char * kwnames[] = { | |
16206 | (char *) "self",(char *) "rect", NULL | |
16207 | }; | |
16208 | ||
16209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
16210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16211 | if (!SWIG_IsOK(res1)) { | |
16212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16213 | } | |
16214 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16215 | { | |
16216 | arg2 = &temp2; | |
16217 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16218 | } | |
16219 | { | |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | resultobj = SWIG_Py_Void(); | |
16226 | return resultobj; | |
16227 | fail: | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
16232 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16233 | PyObject *resultobj = 0; | |
16234 | wxDC *arg1 = (wxDC *) 0 ; | |
16235 | wxPoint *arg2 = 0 ; | |
16236 | wxSize *arg3 = 0 ; | |
16237 | void *argp1 = 0 ; | |
16238 | int res1 = 0 ; | |
16239 | wxPoint temp2 ; | |
16240 | wxSize temp3 ; | |
16241 | PyObject * obj0 = 0 ; | |
16242 | PyObject * obj1 = 0 ; | |
16243 | PyObject * obj2 = 0 ; | |
16244 | char * kwnames[] = { | |
16245 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
16246 | }; | |
16247 | ||
16248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16250 | if (!SWIG_IsOK(res1)) { | |
16251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16252 | } | |
16253 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16254 | { | |
16255 | arg2 = &temp2; | |
16256 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16257 | } | |
16258 | { | |
16259 | arg3 = &temp3; | |
16260 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16261 | } | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16265 | wxPyEndAllowThreads(__tstate); | |
16266 | if (PyErr_Occurred()) SWIG_fail; | |
16267 | } | |
16268 | resultobj = SWIG_Py_Void(); | |
16269 | return resultobj; | |
16270 | fail: | |
16271 | return NULL; | |
16272 | } | |
16273 | ||
16274 | ||
16275 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16276 | PyObject *resultobj = 0; | |
16277 | wxDC *arg1 = (wxDC *) 0 ; | |
16278 | int arg2 ; | |
16279 | int arg3 ; | |
16280 | int arg4 ; | |
16281 | int arg5 ; | |
16282 | double arg6 ; | |
16283 | void *argp1 = 0 ; | |
16284 | int res1 = 0 ; | |
16285 | int val2 ; | |
16286 | int ecode2 = 0 ; | |
16287 | int val3 ; | |
16288 | int ecode3 = 0 ; | |
16289 | int val4 ; | |
16290 | int ecode4 = 0 ; | |
16291 | int val5 ; | |
16292 | int ecode5 = 0 ; | |
16293 | double val6 ; | |
16294 | int ecode6 = 0 ; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | PyObject * obj1 = 0 ; | |
16297 | PyObject * obj2 = 0 ; | |
16298 | PyObject * obj3 = 0 ; | |
16299 | PyObject * obj4 = 0 ; | |
16300 | PyObject * obj5 = 0 ; | |
16301 | char * kwnames[] = { | |
16302 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
16303 | }; | |
16304 | ||
16305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16307 | if (!SWIG_IsOK(res1)) { | |
16308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16309 | } | |
16310 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16312 | if (!SWIG_IsOK(ecode2)) { | |
16313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
16314 | } | |
16315 | arg2 = static_cast< int >(val2); | |
16316 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16317 | if (!SWIG_IsOK(ecode3)) { | |
16318 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
16319 | } | |
16320 | arg3 = static_cast< int >(val3); | |
16321 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16322 | if (!SWIG_IsOK(ecode4)) { | |
16323 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
16324 | } | |
16325 | arg4 = static_cast< int >(val4); | |
16326 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16327 | if (!SWIG_IsOK(ecode5)) { | |
16328 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
16329 | } | |
16330 | arg5 = static_cast< int >(val5); | |
16331 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
16332 | if (!SWIG_IsOK(ecode6)) { | |
16333 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
16334 | } | |
16335 | arg6 = static_cast< double >(val6); | |
16336 | { | |
16337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16338 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | resultobj = SWIG_Py_Void(); | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
16349 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj = 0; | |
16351 | wxDC *arg1 = (wxDC *) 0 ; | |
16352 | wxRect *arg2 = 0 ; | |
16353 | double arg3 ; | |
16354 | void *argp1 = 0 ; | |
16355 | int res1 = 0 ; | |
16356 | wxRect temp2 ; | |
16357 | double val3 ; | |
16358 | int ecode3 = 0 ; | |
16359 | PyObject * obj0 = 0 ; | |
16360 | PyObject * obj1 = 0 ; | |
16361 | PyObject * obj2 = 0 ; | |
16362 | char * kwnames[] = { | |
16363 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
16364 | }; | |
16365 | ||
16366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16368 | if (!SWIG_IsOK(res1)) { | |
16369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16370 | } | |
16371 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16372 | { | |
16373 | arg2 = &temp2; | |
16374 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16375 | } | |
16376 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
16377 | if (!SWIG_IsOK(ecode3)) { | |
16378 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
16379 | } | |
16380 | arg3 = static_cast< double >(val3); | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
16384 | wxPyEndAllowThreads(__tstate); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
16387 | resultobj = SWIG_Py_Void(); | |
16388 | return resultobj; | |
16389 | fail: | |
16390 | return NULL; | |
16391 | } | |
16392 | ||
16393 | ||
16394 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16395 | PyObject *resultobj = 0; | |
16396 | wxDC *arg1 = (wxDC *) 0 ; | |
16397 | wxPoint *arg2 = 0 ; | |
16398 | wxSize *arg3 = 0 ; | |
16399 | double arg4 ; | |
16400 | void *argp1 = 0 ; | |
16401 | int res1 = 0 ; | |
16402 | wxPoint temp2 ; | |
16403 | wxSize temp3 ; | |
16404 | double val4 ; | |
16405 | int ecode4 = 0 ; | |
16406 | PyObject * obj0 = 0 ; | |
16407 | PyObject * obj1 = 0 ; | |
16408 | PyObject * obj2 = 0 ; | |
16409 | PyObject * obj3 = 0 ; | |
16410 | char * kwnames[] = { | |
16411 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
16412 | }; | |
16413 | ||
16414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16416 | if (!SWIG_IsOK(res1)) { | |
16417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16418 | } | |
16419 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16420 | { | |
16421 | arg2 = &temp2; | |
16422 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16423 | } | |
16424 | { | |
16425 | arg3 = &temp3; | |
16426 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16427 | } | |
16428 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
16429 | if (!SWIG_IsOK(ecode4)) { | |
16430 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
16431 | } | |
16432 | arg4 = static_cast< double >(val4); | |
16433 | { | |
16434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16435 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
16436 | wxPyEndAllowThreads(__tstate); | |
16437 | if (PyErr_Occurred()) SWIG_fail; | |
16438 | } | |
16439 | resultobj = SWIG_Py_Void(); | |
16440 | return resultobj; | |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16447 | PyObject *resultobj = 0; | |
16448 | wxDC *arg1 = (wxDC *) 0 ; | |
16449 | int arg2 ; | |
16450 | int arg3 ; | |
16451 | int arg4 ; | |
16452 | void *argp1 = 0 ; | |
16453 | int res1 = 0 ; | |
16454 | int val2 ; | |
16455 | int ecode2 = 0 ; | |
16456 | int val3 ; | |
16457 | int ecode3 = 0 ; | |
16458 | int val4 ; | |
16459 | int ecode4 = 0 ; | |
16460 | PyObject * obj0 = 0 ; | |
16461 | PyObject * obj1 = 0 ; | |
16462 | PyObject * obj2 = 0 ; | |
16463 | PyObject * obj3 = 0 ; | |
16464 | char * kwnames[] = { | |
16465 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
16466 | }; | |
16467 | ||
16468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16470 | if (!SWIG_IsOK(res1)) { | |
16471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16472 | } | |
16473 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16475 | if (!SWIG_IsOK(ecode2)) { | |
16476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
16477 | } | |
16478 | arg2 = static_cast< int >(val2); | |
16479 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16480 | if (!SWIG_IsOK(ecode3)) { | |
16481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
16482 | } | |
16483 | arg3 = static_cast< int >(val3); | |
16484 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16485 | if (!SWIG_IsOK(ecode4)) { | |
16486 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
16487 | } | |
16488 | arg4 = static_cast< int >(val4); | |
16489 | { | |
16490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16491 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
16492 | wxPyEndAllowThreads(__tstate); | |
16493 | if (PyErr_Occurred()) SWIG_fail; | |
16494 | } | |
16495 | resultobj = SWIG_Py_Void(); | |
16496 | return resultobj; | |
16497 | fail: | |
16498 | return NULL; | |
16499 | } | |
16500 | ||
16501 | ||
16502 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16503 | PyObject *resultobj = 0; | |
16504 | wxDC *arg1 = (wxDC *) 0 ; | |
16505 | wxPoint *arg2 = 0 ; | |
16506 | int arg3 ; | |
16507 | void *argp1 = 0 ; | |
16508 | int res1 = 0 ; | |
16509 | wxPoint temp2 ; | |
16510 | int val3 ; | |
16511 | int ecode3 = 0 ; | |
16512 | PyObject * obj0 = 0 ; | |
16513 | PyObject * obj1 = 0 ; | |
16514 | PyObject * obj2 = 0 ; | |
16515 | char * kwnames[] = { | |
16516 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
16517 | }; | |
16518 | ||
16519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16521 | if (!SWIG_IsOK(res1)) { | |
16522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16523 | } | |
16524 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16525 | { | |
16526 | arg2 = &temp2; | |
16527 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16528 | } | |
16529 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16530 | if (!SWIG_IsOK(ecode3)) { | |
16531 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
16532 | } | |
16533 | arg3 = static_cast< int >(val3); | |
16534 | { | |
16535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16536 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
16537 | wxPyEndAllowThreads(__tstate); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
16539 | } | |
16540 | resultobj = SWIG_Py_Void(); | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
16547 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj = 0; | |
16549 | wxDC *arg1 = (wxDC *) 0 ; | |
16550 | int arg2 ; | |
16551 | int arg3 ; | |
16552 | int arg4 ; | |
16553 | int arg5 ; | |
16554 | void *argp1 = 0 ; | |
16555 | int res1 = 0 ; | |
16556 | int val2 ; | |
16557 | int ecode2 = 0 ; | |
16558 | int val3 ; | |
16559 | int ecode3 = 0 ; | |
16560 | int val4 ; | |
16561 | int ecode4 = 0 ; | |
16562 | int val5 ; | |
16563 | int ecode5 = 0 ; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | PyObject * obj1 = 0 ; | |
16566 | PyObject * obj2 = 0 ; | |
16567 | PyObject * obj3 = 0 ; | |
16568 | PyObject * obj4 = 0 ; | |
16569 | char * kwnames[] = { | |
16570 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16571 | }; | |
16572 | ||
16573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16575 | if (!SWIG_IsOK(res1)) { | |
16576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16577 | } | |
16578 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16579 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16580 | if (!SWIG_IsOK(ecode2)) { | |
16581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
16582 | } | |
16583 | arg2 = static_cast< int >(val2); | |
16584 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16585 | if (!SWIG_IsOK(ecode3)) { | |
16586 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
16587 | } | |
16588 | arg3 = static_cast< int >(val3); | |
16589 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16590 | if (!SWIG_IsOK(ecode4)) { | |
16591 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
16592 | } | |
16593 | arg4 = static_cast< int >(val4); | |
16594 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16595 | if (!SWIG_IsOK(ecode5)) { | |
16596 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
16597 | } | |
16598 | arg5 = static_cast< int >(val5); | |
16599 | { | |
16600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16601 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | resultobj = SWIG_Py_Void(); | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj = 0; | |
16614 | wxDC *arg1 = (wxDC *) 0 ; | |
16615 | wxRect *arg2 = 0 ; | |
16616 | void *argp1 = 0 ; | |
16617 | int res1 = 0 ; | |
16618 | wxRect temp2 ; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | PyObject * obj1 = 0 ; | |
16621 | char * kwnames[] = { | |
16622 | (char *) "self",(char *) "rect", NULL | |
16623 | }; | |
16624 | ||
16625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
16626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16627 | if (!SWIG_IsOK(res1)) { | |
16628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16629 | } | |
16630 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16631 | { | |
16632 | arg2 = &temp2; | |
16633 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16637 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
16638 | wxPyEndAllowThreads(__tstate); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
16641 | resultobj = SWIG_Py_Void(); | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | return NULL; | |
16645 | } | |
16646 | ||
16647 | ||
16648 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16649 | PyObject *resultobj = 0; | |
16650 | wxDC *arg1 = (wxDC *) 0 ; | |
16651 | wxPoint *arg2 = 0 ; | |
16652 | wxSize *arg3 = 0 ; | |
16653 | void *argp1 = 0 ; | |
16654 | int res1 = 0 ; | |
16655 | wxPoint temp2 ; | |
16656 | wxSize temp3 ; | |
16657 | PyObject * obj0 = 0 ; | |
16658 | PyObject * obj1 = 0 ; | |
16659 | PyObject * obj2 = 0 ; | |
16660 | char * kwnames[] = { | |
16661 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
16662 | }; | |
16663 | ||
16664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16666 | if (!SWIG_IsOK(res1)) { | |
16667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16668 | } | |
16669 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16670 | { | |
16671 | arg2 = &temp2; | |
16672 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16673 | } | |
16674 | { | |
16675 | arg3 = &temp3; | |
16676 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16677 | } | |
16678 | { | |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | resultobj = SWIG_Py_Void(); | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj = 0; | |
16693 | wxDC *arg1 = (wxDC *) 0 ; | |
16694 | wxIcon *arg2 = 0 ; | |
16695 | int arg3 ; | |
16696 | int arg4 ; | |
16697 | void *argp1 = 0 ; | |
16698 | int res1 = 0 ; | |
16699 | void *argp2 = 0 ; | |
16700 | int res2 = 0 ; | |
16701 | int val3 ; | |
16702 | int ecode3 = 0 ; | |
16703 | int val4 ; | |
16704 | int ecode4 = 0 ; | |
16705 | PyObject * obj0 = 0 ; | |
16706 | PyObject * obj1 = 0 ; | |
16707 | PyObject * obj2 = 0 ; | |
16708 | PyObject * obj3 = 0 ; | |
16709 | char * kwnames[] = { | |
16710 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
16711 | }; | |
16712 | ||
16713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16715 | if (!SWIG_IsOK(res1)) { | |
16716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16717 | } | |
16718 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16719 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16720 | if (!SWIG_IsOK(res2)) { | |
16721 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16722 | } | |
16723 | if (!argp2) { | |
16724 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16725 | } | |
16726 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16727 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16728 | if (!SWIG_IsOK(ecode3)) { | |
16729 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
16730 | } | |
16731 | arg3 = static_cast< int >(val3); | |
16732 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16733 | if (!SWIG_IsOK(ecode4)) { | |
16734 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
16735 | } | |
16736 | arg4 = static_cast< int >(val4); | |
16737 | { | |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
16740 | wxPyEndAllowThreads(__tstate); | |
16741 | if (PyErr_Occurred()) SWIG_fail; | |
16742 | } | |
16743 | resultobj = SWIG_Py_Void(); | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | return NULL; | |
16747 | } | |
16748 | ||
16749 | ||
16750 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16751 | PyObject *resultobj = 0; | |
16752 | wxDC *arg1 = (wxDC *) 0 ; | |
16753 | wxIcon *arg2 = 0 ; | |
16754 | wxPoint *arg3 = 0 ; | |
16755 | void *argp1 = 0 ; | |
16756 | int res1 = 0 ; | |
16757 | void *argp2 = 0 ; | |
16758 | int res2 = 0 ; | |
16759 | wxPoint temp3 ; | |
16760 | PyObject * obj0 = 0 ; | |
16761 | PyObject * obj1 = 0 ; | |
16762 | PyObject * obj2 = 0 ; | |
16763 | char * kwnames[] = { | |
16764 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
16765 | }; | |
16766 | ||
16767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16769 | if (!SWIG_IsOK(res1)) { | |
16770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16771 | } | |
16772 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16773 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16774 | if (!SWIG_IsOK(res2)) { | |
16775 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16776 | } | |
16777 | if (!argp2) { | |
16778 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16779 | } | |
16780 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16781 | { | |
16782 | arg3 = &temp3; | |
16783 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16784 | } | |
16785 | { | |
16786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16787 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | resultobj = SWIG_Py_Void(); | |
16792 | return resultobj; | |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj = 0; | |
16800 | wxDC *arg1 = (wxDC *) 0 ; | |
16801 | wxBitmap *arg2 = 0 ; | |
16802 | int arg3 ; | |
16803 | int arg4 ; | |
16804 | bool arg5 = (bool) false ; | |
16805 | void *argp1 = 0 ; | |
16806 | int res1 = 0 ; | |
16807 | void *argp2 = 0 ; | |
16808 | int res2 = 0 ; | |
16809 | int val3 ; | |
16810 | int ecode3 = 0 ; | |
16811 | int val4 ; | |
16812 | int ecode4 = 0 ; | |
16813 | bool val5 ; | |
16814 | int ecode5 = 0 ; | |
16815 | PyObject * obj0 = 0 ; | |
16816 | PyObject * obj1 = 0 ; | |
16817 | PyObject * obj2 = 0 ; | |
16818 | PyObject * obj3 = 0 ; | |
16819 | PyObject * obj4 = 0 ; | |
16820 | char * kwnames[] = { | |
16821 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
16822 | }; | |
16823 | ||
16824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16826 | if (!SWIG_IsOK(res1)) { | |
16827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16828 | } | |
16829 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16830 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16831 | if (!SWIG_IsOK(res2)) { | |
16832 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16833 | } | |
16834 | if (!argp2) { | |
16835 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16836 | } | |
16837 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16838 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16839 | if (!SWIG_IsOK(ecode3)) { | |
16840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
16841 | } | |
16842 | arg3 = static_cast< int >(val3); | |
16843 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16844 | if (!SWIG_IsOK(ecode4)) { | |
16845 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
16846 | } | |
16847 | arg4 = static_cast< int >(val4); | |
16848 | if (obj4) { | |
16849 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16850 | if (!SWIG_IsOK(ecode5)) { | |
16851 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
16852 | } | |
16853 | arg5 = static_cast< bool >(val5); | |
16854 | } | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
16861 | resultobj = SWIG_Py_Void(); | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16869 | PyObject *resultobj = 0; | |
16870 | wxDC *arg1 = (wxDC *) 0 ; | |
16871 | wxBitmap *arg2 = 0 ; | |
16872 | wxPoint *arg3 = 0 ; | |
16873 | bool arg4 = (bool) false ; | |
16874 | void *argp1 = 0 ; | |
16875 | int res1 = 0 ; | |
16876 | void *argp2 = 0 ; | |
16877 | int res2 = 0 ; | |
16878 | wxPoint temp3 ; | |
16879 | bool val4 ; | |
16880 | int ecode4 = 0 ; | |
16881 | PyObject * obj0 = 0 ; | |
16882 | PyObject * obj1 = 0 ; | |
16883 | PyObject * obj2 = 0 ; | |
16884 | PyObject * obj3 = 0 ; | |
16885 | char * kwnames[] = { | |
16886 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
16887 | }; | |
16888 | ||
16889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16891 | if (!SWIG_IsOK(res1)) { | |
16892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16893 | } | |
16894 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16895 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16896 | if (!SWIG_IsOK(res2)) { | |
16897 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16898 | } | |
16899 | if (!argp2) { | |
16900 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16901 | } | |
16902 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16903 | { | |
16904 | arg3 = &temp3; | |
16905 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16906 | } | |
16907 | if (obj3) { | |
16908 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
16909 | if (!SWIG_IsOK(ecode4)) { | |
16910 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
16911 | } | |
16912 | arg4 = static_cast< bool >(val4); | |
16913 | } | |
16914 | { | |
16915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16916 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
16917 | wxPyEndAllowThreads(__tstate); | |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
16919 | } | |
16920 | resultobj = SWIG_Py_Void(); | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj = 0; | |
16929 | wxDC *arg1 = (wxDC *) 0 ; | |
16930 | wxString *arg2 = 0 ; | |
16931 | int arg3 ; | |
16932 | int arg4 ; | |
16933 | void *argp1 = 0 ; | |
16934 | int res1 = 0 ; | |
16935 | bool temp2 = false ; | |
16936 | int val3 ; | |
16937 | int ecode3 = 0 ; | |
16938 | int val4 ; | |
16939 | int ecode4 = 0 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | PyObject * obj1 = 0 ; | |
16942 | PyObject * obj2 = 0 ; | |
16943 | PyObject * obj3 = 0 ; | |
16944 | char * kwnames[] = { | |
16945 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
16946 | }; | |
16947 | ||
16948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16950 | if (!SWIG_IsOK(res1)) { | |
16951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16952 | } | |
16953 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16954 | { | |
16955 | arg2 = wxString_in_helper(obj1); | |
16956 | if (arg2 == NULL) SWIG_fail; | |
16957 | temp2 = true; | |
16958 | } | |
16959 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16960 | if (!SWIG_IsOK(ecode3)) { | |
16961 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
16962 | } | |
16963 | arg3 = static_cast< int >(val3); | |
16964 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16965 | if (!SWIG_IsOK(ecode4)) { | |
16966 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
16967 | } | |
16968 | arg4 = static_cast< int >(val4); | |
16969 | { | |
16970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16971 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
16972 | wxPyEndAllowThreads(__tstate); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | resultobj = SWIG_Py_Void(); | |
16976 | { | |
16977 | if (temp2) | |
16978 | delete arg2; | |
16979 | } | |
16980 | return resultobj; | |
16981 | fail: | |
16982 | { | |
16983 | if (temp2) | |
16984 | delete arg2; | |
16985 | } | |
16986 | return NULL; | |
16987 | } | |
16988 | ||
16989 | ||
16990 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16991 | PyObject *resultobj = 0; | |
16992 | wxDC *arg1 = (wxDC *) 0 ; | |
16993 | wxString *arg2 = 0 ; | |
16994 | wxPoint *arg3 = 0 ; | |
16995 | void *argp1 = 0 ; | |
16996 | int res1 = 0 ; | |
16997 | bool temp2 = false ; | |
16998 | wxPoint temp3 ; | |
16999 | PyObject * obj0 = 0 ; | |
17000 | PyObject * obj1 = 0 ; | |
17001 | PyObject * obj2 = 0 ; | |
17002 | char * kwnames[] = { | |
17003 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
17004 | }; | |
17005 | ||
17006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17008 | if (!SWIG_IsOK(res1)) { | |
17009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17010 | } | |
17011 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17012 | { | |
17013 | arg2 = wxString_in_helper(obj1); | |
17014 | if (arg2 == NULL) SWIG_fail; | |
17015 | temp2 = true; | |
17016 | } | |
17017 | { | |
17018 | arg3 = &temp3; | |
17019 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17020 | } | |
17021 | { | |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
17024 | wxPyEndAllowThreads(__tstate); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
17027 | resultobj = SWIG_Py_Void(); | |
17028 | { | |
17029 | if (temp2) | |
17030 | delete arg2; | |
17031 | } | |
17032 | return resultobj; | |
17033 | fail: | |
17034 | { | |
17035 | if (temp2) | |
17036 | delete arg2; | |
17037 | } | |
17038 | return NULL; | |
17039 | } | |
17040 | ||
17041 | ||
17042 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17043 | PyObject *resultobj = 0; | |
17044 | wxDC *arg1 = (wxDC *) 0 ; | |
17045 | wxString *arg2 = 0 ; | |
17046 | int arg3 ; | |
17047 | int arg4 ; | |
17048 | double arg5 ; | |
17049 | void *argp1 = 0 ; | |
17050 | int res1 = 0 ; | |
17051 | bool temp2 = false ; | |
17052 | int val3 ; | |
17053 | int ecode3 = 0 ; | |
17054 | int val4 ; | |
17055 | int ecode4 = 0 ; | |
17056 | double val5 ; | |
17057 | int ecode5 = 0 ; | |
17058 | PyObject * obj0 = 0 ; | |
17059 | PyObject * obj1 = 0 ; | |
17060 | PyObject * obj2 = 0 ; | |
17061 | PyObject * obj3 = 0 ; | |
17062 | PyObject * obj4 = 0 ; | |
17063 | char * kwnames[] = { | |
17064 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
17065 | }; | |
17066 | ||
17067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17069 | if (!SWIG_IsOK(res1)) { | |
17070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17071 | } | |
17072 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17073 | { | |
17074 | arg2 = wxString_in_helper(obj1); | |
17075 | if (arg2 == NULL) SWIG_fail; | |
17076 | temp2 = true; | |
17077 | } | |
17078 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17079 | if (!SWIG_IsOK(ecode3)) { | |
17080 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
17081 | } | |
17082 | arg3 = static_cast< int >(val3); | |
17083 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17084 | if (!SWIG_IsOK(ecode4)) { | |
17085 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
17086 | } | |
17087 | arg4 = static_cast< int >(val4); | |
17088 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
17089 | if (!SWIG_IsOK(ecode5)) { | |
17090 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
17091 | } | |
17092 | arg5 = static_cast< double >(val5); | |
17093 | { | |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
17096 | wxPyEndAllowThreads(__tstate); | |
17097 | if (PyErr_Occurred()) SWIG_fail; | |
17098 | } | |
17099 | resultobj = SWIG_Py_Void(); | |
17100 | { | |
17101 | if (temp2) | |
17102 | delete arg2; | |
17103 | } | |
17104 | return resultobj; | |
17105 | fail: | |
17106 | { | |
17107 | if (temp2) | |
17108 | delete arg2; | |
17109 | } | |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj = 0; | |
17116 | wxDC *arg1 = (wxDC *) 0 ; | |
17117 | wxString *arg2 = 0 ; | |
17118 | wxPoint *arg3 = 0 ; | |
17119 | double arg4 ; | |
17120 | void *argp1 = 0 ; | |
17121 | int res1 = 0 ; | |
17122 | bool temp2 = false ; | |
17123 | wxPoint temp3 ; | |
17124 | double val4 ; | |
17125 | int ecode4 = 0 ; | |
17126 | PyObject * obj0 = 0 ; | |
17127 | PyObject * obj1 = 0 ; | |
17128 | PyObject * obj2 = 0 ; | |
17129 | PyObject * obj3 = 0 ; | |
17130 | char * kwnames[] = { | |
17131 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
17132 | }; | |
17133 | ||
17134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17136 | if (!SWIG_IsOK(res1)) { | |
17137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17138 | } | |
17139 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17140 | { | |
17141 | arg2 = wxString_in_helper(obj1); | |
17142 | if (arg2 == NULL) SWIG_fail; | |
17143 | temp2 = true; | |
17144 | } | |
17145 | { | |
17146 | arg3 = &temp3; | |
17147 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17148 | } | |
17149 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
17150 | if (!SWIG_IsOK(ecode4)) { | |
17151 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
17152 | } | |
17153 | arg4 = static_cast< double >(val4); | |
17154 | { | |
17155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17156 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | resultobj = SWIG_Py_Void(); | |
17161 | { | |
17162 | if (temp2) | |
17163 | delete arg2; | |
17164 | } | |
17165 | return resultobj; | |
17166 | fail: | |
17167 | { | |
17168 | if (temp2) | |
17169 | delete arg2; | |
17170 | } | |
17171 | return NULL; | |
17172 | } | |
17173 | ||
17174 | ||
17175 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17176 | PyObject *resultobj = 0; | |
17177 | wxDC *arg1 = (wxDC *) 0 ; | |
17178 | int arg2 ; | |
17179 | int arg3 ; | |
17180 | int arg4 ; | |
17181 | int arg5 ; | |
17182 | wxDC *arg6 = (wxDC *) 0 ; | |
17183 | int arg7 ; | |
17184 | int arg8 ; | |
17185 | int arg9 = (int) wxCOPY ; | |
17186 | bool arg10 = (bool) false ; | |
17187 | int arg11 = (int) -1 ; | |
17188 | int arg12 = (int) -1 ; | |
17189 | bool result; | |
17190 | void *argp1 = 0 ; | |
17191 | int res1 = 0 ; | |
17192 | int val2 ; | |
17193 | int ecode2 = 0 ; | |
17194 | int val3 ; | |
17195 | int ecode3 = 0 ; | |
17196 | int val4 ; | |
17197 | int ecode4 = 0 ; | |
17198 | int val5 ; | |
17199 | int ecode5 = 0 ; | |
17200 | void *argp6 = 0 ; | |
17201 | int res6 = 0 ; | |
17202 | int val7 ; | |
17203 | int ecode7 = 0 ; | |
17204 | int val8 ; | |
17205 | int ecode8 = 0 ; | |
17206 | int val9 ; | |
17207 | int ecode9 = 0 ; | |
17208 | bool val10 ; | |
17209 | int ecode10 = 0 ; | |
17210 | int val11 ; | |
17211 | int ecode11 = 0 ; | |
17212 | int val12 ; | |
17213 | int ecode12 = 0 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | PyObject * obj1 = 0 ; | |
17216 | PyObject * obj2 = 0 ; | |
17217 | PyObject * obj3 = 0 ; | |
17218 | PyObject * obj4 = 0 ; | |
17219 | PyObject * obj5 = 0 ; | |
17220 | PyObject * obj6 = 0 ; | |
17221 | PyObject * obj7 = 0 ; | |
17222 | PyObject * obj8 = 0 ; | |
17223 | PyObject * obj9 = 0 ; | |
17224 | PyObject * obj10 = 0 ; | |
17225 | PyObject * obj11 = 0 ; | |
17226 | char * kwnames[] = { | |
17227 | (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 | |
17228 | }; | |
17229 | ||
17230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; | |
17231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17232 | if (!SWIG_IsOK(res1)) { | |
17233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17234 | } | |
17235 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17236 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17237 | if (!SWIG_IsOK(ecode2)) { | |
17238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
17239 | } | |
17240 | arg2 = static_cast< int >(val2); | |
17241 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17242 | if (!SWIG_IsOK(ecode3)) { | |
17243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
17244 | } | |
17245 | arg3 = static_cast< int >(val3); | |
17246 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17247 | if (!SWIG_IsOK(ecode4)) { | |
17248 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
17249 | } | |
17250 | arg4 = static_cast< int >(val4); | |
17251 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17252 | if (!SWIG_IsOK(ecode5)) { | |
17253 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
17254 | } | |
17255 | arg5 = static_cast< int >(val5); | |
17256 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17257 | if (!SWIG_IsOK(res6)) { | |
17258 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
17259 | } | |
17260 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
17261 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
17262 | if (!SWIG_IsOK(ecode7)) { | |
17263 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
17264 | } | |
17265 | arg7 = static_cast< int >(val7); | |
17266 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
17267 | if (!SWIG_IsOK(ecode8)) { | |
17268 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
17269 | } | |
17270 | arg8 = static_cast< int >(val8); | |
17271 | if (obj8) { | |
17272 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
17273 | if (!SWIG_IsOK(ecode9)) { | |
17274 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
17275 | } | |
17276 | arg9 = static_cast< int >(val9); | |
17277 | } | |
17278 | if (obj9) { | |
17279 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
17280 | if (!SWIG_IsOK(ecode10)) { | |
17281 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
17282 | } | |
17283 | arg10 = static_cast< bool >(val10); | |
17284 | } | |
17285 | if (obj10) { | |
17286 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
17287 | if (!SWIG_IsOK(ecode11)) { | |
17288 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
17289 | } | |
17290 | arg11 = static_cast< int >(val11); | |
17291 | } | |
17292 | if (obj11) { | |
17293 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
17294 | if (!SWIG_IsOK(ecode12)) { | |
17295 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
17296 | } | |
17297 | arg12 = static_cast< int >(val12); | |
17298 | } | |
17299 | { | |
17300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17301 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | { | |
17306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17307 | } | |
17308 | return resultobj; | |
17309 | fail: | |
17310 | return NULL; | |
17311 | } | |
17312 | ||
17313 | ||
17314 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17315 | PyObject *resultobj = 0; | |
17316 | wxDC *arg1 = (wxDC *) 0 ; | |
17317 | wxPoint *arg2 = 0 ; | |
17318 | wxSize *arg3 = 0 ; | |
17319 | wxDC *arg4 = (wxDC *) 0 ; | |
17320 | wxPoint *arg5 = 0 ; | |
17321 | int arg6 = (int) wxCOPY ; | |
17322 | bool arg7 = (bool) false ; | |
17323 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
17324 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
17325 | bool result; | |
17326 | void *argp1 = 0 ; | |
17327 | int res1 = 0 ; | |
17328 | wxPoint temp2 ; | |
17329 | wxSize temp3 ; | |
17330 | void *argp4 = 0 ; | |
17331 | int res4 = 0 ; | |
17332 | wxPoint temp5 ; | |
17333 | int val6 ; | |
17334 | int ecode6 = 0 ; | |
17335 | bool val7 ; | |
17336 | int ecode7 = 0 ; | |
17337 | wxPoint temp8 ; | |
17338 | PyObject * obj0 = 0 ; | |
17339 | PyObject * obj1 = 0 ; | |
17340 | PyObject * obj2 = 0 ; | |
17341 | PyObject * obj3 = 0 ; | |
17342 | PyObject * obj4 = 0 ; | |
17343 | PyObject * obj5 = 0 ; | |
17344 | PyObject * obj6 = 0 ; | |
17345 | PyObject * obj7 = 0 ; | |
17346 | char * kwnames[] = { | |
17347 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
17348 | }; | |
17349 | ||
17350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17352 | if (!SWIG_IsOK(res1)) { | |
17353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17354 | } | |
17355 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17356 | { | |
17357 | arg2 = &temp2; | |
17358 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17359 | } | |
17360 | { | |
17361 | arg3 = &temp3; | |
17362 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17363 | } | |
17364 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17365 | if (!SWIG_IsOK(res4)) { | |
17366 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
17367 | } | |
17368 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
17369 | { | |
17370 | arg5 = &temp5; | |
17371 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17372 | } | |
17373 | if (obj5) { | |
17374 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17375 | if (!SWIG_IsOK(ecode6)) { | |
17376 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
17377 | } | |
17378 | arg6 = static_cast< int >(val6); | |
17379 | } | |
17380 | if (obj6) { | |
17381 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
17382 | if (!SWIG_IsOK(ecode7)) { | |
17383 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
17384 | } | |
17385 | arg7 = static_cast< bool >(val7); | |
17386 | } | |
17387 | if (obj7) { | |
093d3ff1 | 17388 | { |
554f62e9 RD |
17389 | arg8 = &temp8; |
17390 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 17391 | } |
554f62e9 RD |
17392 | } |
17393 | { | |
17394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17395 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | { | |
17400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17401 | } | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj = 0; | |
17410 | wxDC *arg1 = (wxDC *) 0 ; | |
17411 | int arg2 ; | |
17412 | int arg3 ; | |
17413 | int arg4 ; | |
17414 | int arg5 ; | |
17415 | void *argp1 = 0 ; | |
17416 | int res1 = 0 ; | |
17417 | int val2 ; | |
17418 | int ecode2 = 0 ; | |
17419 | int val3 ; | |
17420 | int ecode3 = 0 ; | |
17421 | int val4 ; | |
17422 | int ecode4 = 0 ; | |
17423 | int val5 ; | |
17424 | int ecode5 = 0 ; | |
17425 | PyObject * obj0 = 0 ; | |
17426 | PyObject * obj1 = 0 ; | |
17427 | PyObject * obj2 = 0 ; | |
17428 | PyObject * obj3 = 0 ; | |
17429 | PyObject * obj4 = 0 ; | |
17430 | char * kwnames[] = { | |
17431 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17432 | }; | |
17433 | ||
17434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17436 | if (!SWIG_IsOK(res1)) { | |
17437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17438 | } | |
17439 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17440 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17441 | if (!SWIG_IsOK(ecode2)) { | |
17442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
17443 | } | |
17444 | arg2 = static_cast< int >(val2); | |
17445 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17446 | if (!SWIG_IsOK(ecode3)) { | |
17447 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
17448 | } | |
17449 | arg3 = static_cast< int >(val3); | |
17450 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17451 | if (!SWIG_IsOK(ecode4)) { | |
17452 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
17453 | } | |
17454 | arg4 = static_cast< int >(val4); | |
17455 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17456 | if (!SWIG_IsOK(ecode5)) { | |
17457 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
17458 | } | |
17459 | arg5 = static_cast< int >(val5); | |
17460 | { | |
17461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17462 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
17463 | wxPyEndAllowThreads(__tstate); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | } | |
17466 | resultobj = SWIG_Py_Void(); | |
17467 | return resultobj; | |
17468 | fail: | |
17469 | return NULL; | |
17470 | } | |
17471 | ||
17472 | ||
17473 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17474 | PyObject *resultobj = 0; | |
17475 | wxDC *arg1 = (wxDC *) 0 ; | |
17476 | wxPoint *arg2 = 0 ; | |
17477 | wxSize *arg3 = 0 ; | |
17478 | void *argp1 = 0 ; | |
17479 | int res1 = 0 ; | |
17480 | wxPoint temp2 ; | |
17481 | wxSize temp3 ; | |
17482 | PyObject * obj0 = 0 ; | |
17483 | PyObject * obj1 = 0 ; | |
17484 | PyObject * obj2 = 0 ; | |
17485 | char * kwnames[] = { | |
17486 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
17487 | }; | |
17488 | ||
17489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17491 | if (!SWIG_IsOK(res1)) { | |
17492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17493 | } | |
17494 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17495 | { | |
17496 | arg2 = &temp2; | |
17497 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17498 | } | |
17499 | { | |
17500 | arg3 = &temp3; | |
17501 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17502 | } | |
17503 | { | |
17504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17505 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
17506 | wxPyEndAllowThreads(__tstate); | |
17507 | if (PyErr_Occurred()) SWIG_fail; | |
17508 | } | |
17509 | resultobj = SWIG_Py_Void(); | |
17510 | return resultobj; | |
17511 | fail: | |
17512 | return NULL; | |
17513 | } | |
17514 | ||
17515 | ||
17516 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17517 | PyObject *resultobj = 0; | |
17518 | wxDC *arg1 = (wxDC *) 0 ; | |
17519 | wxRegion *arg2 = 0 ; | |
17520 | void *argp1 = 0 ; | |
17521 | int res1 = 0 ; | |
17522 | void *argp2 = 0 ; | |
17523 | int res2 = 0 ; | |
17524 | PyObject * obj0 = 0 ; | |
17525 | PyObject * obj1 = 0 ; | |
17526 | char * kwnames[] = { | |
17527 | (char *) "self",(char *) "region", NULL | |
17528 | }; | |
17529 | ||
17530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
17531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17532 | if (!SWIG_IsOK(res1)) { | |
17533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17534 | } | |
17535 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17536 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
17537 | if (!SWIG_IsOK(res2)) { | |
17538 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
17539 | } | |
17540 | if (!argp2) { | |
17541 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
17542 | } | |
17543 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
17544 | { | |
17545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17546 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
17547 | wxPyEndAllowThreads(__tstate); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | } | |
17550 | resultobj = SWIG_Py_Void(); | |
17551 | return resultobj; | |
17552 | fail: | |
17553 | return NULL; | |
17554 | } | |
17555 | ||
17556 | ||
17557 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17558 | PyObject *resultobj = 0; | |
17559 | wxDC *arg1 = (wxDC *) 0 ; | |
17560 | wxRect *arg2 = 0 ; | |
17561 | void *argp1 = 0 ; | |
17562 | int res1 = 0 ; | |
17563 | wxRect temp2 ; | |
17564 | PyObject * obj0 = 0 ; | |
17565 | PyObject * obj1 = 0 ; | |
17566 | char * kwnames[] = { | |
17567 | (char *) "self",(char *) "rect", NULL | |
17568 | }; | |
17569 | ||
17570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
17571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17572 | if (!SWIG_IsOK(res1)) { | |
17573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17574 | } | |
17575 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17576 | { | |
17577 | arg2 = &temp2; | |
17578 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17579 | } | |
17580 | { | |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | resultobj = SWIG_Py_Void(); | |
17587 | return resultobj; | |
17588 | fail: | |
17589 | return NULL; | |
17590 | } | |
17591 | ||
17592 | ||
17593 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17594 | PyObject *resultobj = 0; | |
17595 | wxDC *arg1 = (wxDC *) 0 ; | |
17596 | int arg2 ; | |
17597 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17598 | int arg4 = (int) 0 ; | |
17599 | int arg5 = (int) 0 ; | |
17600 | void *argp1 = 0 ; | |
17601 | int res1 = 0 ; | |
17602 | int val4 ; | |
17603 | int ecode4 = 0 ; | |
17604 | int val5 ; | |
17605 | int ecode5 = 0 ; | |
17606 | PyObject * obj0 = 0 ; | |
17607 | PyObject * obj1 = 0 ; | |
17608 | PyObject * obj2 = 0 ; | |
17609 | PyObject * obj3 = 0 ; | |
17610 | char * kwnames[] = { | |
17611 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
17612 | }; | |
17613 | ||
17614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17616 | if (!SWIG_IsOK(res1)) { | |
17617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17618 | } | |
17619 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17620 | { | |
17621 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17622 | if (arg3 == NULL) SWIG_fail; | |
17623 | } | |
17624 | if (obj2) { | |
17625 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
17626 | if (!SWIG_IsOK(ecode4)) { | |
17627 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
17628 | } | |
17629 | arg4 = static_cast< int >(val4); | |
17630 | } | |
17631 | if (obj3) { | |
17632 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
17633 | if (!SWIG_IsOK(ecode5)) { | |
17634 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
17635 | } | |
17636 | arg5 = static_cast< int >(val5); | |
17637 | } | |
17638 | { | |
17639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17640 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
17641 | wxPyEndAllowThreads(__tstate); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
17644 | resultobj = SWIG_Py_Void(); | |
17645 | { | |
17646 | if (arg3) delete [] arg3; | |
17647 | } | |
17648 | return resultobj; | |
17649 | fail: | |
17650 | { | |
17651 | if (arg3) delete [] arg3; | |
17652 | } | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17658 | PyObject *resultobj = 0; | |
17659 | wxDC *arg1 = (wxDC *) 0 ; | |
17660 | int arg2 ; | |
17661 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17662 | int arg4 = (int) 0 ; | |
17663 | int arg5 = (int) 0 ; | |
17664 | int arg6 = (int) wxODDEVEN_RULE ; | |
17665 | void *argp1 = 0 ; | |
17666 | int res1 = 0 ; | |
17667 | int val4 ; | |
17668 | int ecode4 = 0 ; | |
17669 | int val5 ; | |
17670 | int ecode5 = 0 ; | |
17671 | int val6 ; | |
17672 | int ecode6 = 0 ; | |
17673 | PyObject * obj0 = 0 ; | |
17674 | PyObject * obj1 = 0 ; | |
17675 | PyObject * obj2 = 0 ; | |
17676 | PyObject * obj3 = 0 ; | |
17677 | PyObject * obj4 = 0 ; | |
17678 | char * kwnames[] = { | |
17679 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
17680 | }; | |
17681 | ||
17682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17684 | if (!SWIG_IsOK(res1)) { | |
17685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17686 | } | |
17687 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17688 | { | |
17689 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17690 | if (arg3 == NULL) SWIG_fail; | |
17691 | } | |
17692 | if (obj2) { | |
17693 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
17694 | if (!SWIG_IsOK(ecode4)) { | |
17695 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
17696 | } | |
17697 | arg4 = static_cast< int >(val4); | |
17698 | } | |
17699 | if (obj3) { | |
17700 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
17701 | if (!SWIG_IsOK(ecode5)) { | |
17702 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
17703 | } | |
17704 | arg5 = static_cast< int >(val5); | |
17705 | } | |
17706 | if (obj4) { | |
17707 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
17708 | if (!SWIG_IsOK(ecode6)) { | |
17709 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
17710 | } | |
17711 | arg6 = static_cast< int >(val6); | |
17712 | } | |
17713 | { | |
17714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17715 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
17719 | resultobj = SWIG_Py_Void(); | |
17720 | { | |
17721 | if (arg3) delete [] arg3; | |
17722 | } | |
17723 | return resultobj; | |
17724 | fail: | |
17725 | { | |
17726 | if (arg3) delete [] arg3; | |
17727 | } | |
17728 | return NULL; | |
17729 | } | |
17730 | ||
17731 | ||
17732 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17733 | PyObject *resultobj = 0; | |
17734 | wxDC *arg1 = (wxDC *) 0 ; | |
17735 | wxString *arg2 = 0 ; | |
17736 | wxRect *arg3 = 0 ; | |
17737 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17738 | int arg5 = (int) -1 ; | |
17739 | void *argp1 = 0 ; | |
17740 | int res1 = 0 ; | |
17741 | bool temp2 = false ; | |
17742 | wxRect temp3 ; | |
17743 | int val4 ; | |
17744 | int ecode4 = 0 ; | |
17745 | int val5 ; | |
17746 | int ecode5 = 0 ; | |
17747 | PyObject * obj0 = 0 ; | |
17748 | PyObject * obj1 = 0 ; | |
17749 | PyObject * obj2 = 0 ; | |
17750 | PyObject * obj3 = 0 ; | |
17751 | PyObject * obj4 = 0 ; | |
17752 | char * kwnames[] = { | |
17753 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17754 | }; | |
17755 | ||
17756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17758 | if (!SWIG_IsOK(res1)) { | |
17759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17760 | } | |
17761 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17762 | { | |
17763 | arg2 = wxString_in_helper(obj1); | |
17764 | if (arg2 == NULL) SWIG_fail; | |
17765 | temp2 = true; | |
17766 | } | |
17767 | { | |
17768 | arg3 = &temp3; | |
17769 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17770 | } | |
17771 | if (obj3) { | |
17772 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17773 | if (!SWIG_IsOK(ecode4)) { | |
17774 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
17775 | } | |
17776 | arg4 = static_cast< int >(val4); | |
17777 | } | |
17778 | if (obj4) { | |
17779 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17780 | if (!SWIG_IsOK(ecode5)) { | |
17781 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
17782 | } | |
17783 | arg5 = static_cast< int >(val5); | |
17784 | } | |
17785 | { | |
17786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17787 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | resultobj = SWIG_Py_Void(); | |
17792 | { | |
17793 | if (temp2) | |
17794 | delete arg2; | |
17795 | } | |
17796 | return resultobj; | |
17797 | fail: | |
17798 | { | |
17799 | if (temp2) | |
17800 | delete arg2; | |
17801 | } | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj = 0; | |
17808 | wxDC *arg1 = (wxDC *) 0 ; | |
17809 | wxString *arg2 = 0 ; | |
17810 | wxBitmap *arg3 = 0 ; | |
17811 | wxRect *arg4 = 0 ; | |
17812 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17813 | int arg6 = (int) -1 ; | |
17814 | wxRect result; | |
17815 | void *argp1 = 0 ; | |
17816 | int res1 = 0 ; | |
17817 | bool temp2 = false ; | |
17818 | void *argp3 = 0 ; | |
17819 | int res3 = 0 ; | |
17820 | wxRect temp4 ; | |
17821 | int val5 ; | |
17822 | int ecode5 = 0 ; | |
17823 | int val6 ; | |
17824 | int ecode6 = 0 ; | |
17825 | PyObject * obj0 = 0 ; | |
17826 | PyObject * obj1 = 0 ; | |
17827 | PyObject * obj2 = 0 ; | |
17828 | PyObject * obj3 = 0 ; | |
17829 | PyObject * obj4 = 0 ; | |
17830 | PyObject * obj5 = 0 ; | |
17831 | char * kwnames[] = { | |
17832 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17833 | }; | |
17834 | ||
17835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17837 | if (!SWIG_IsOK(res1)) { | |
17838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17839 | } | |
17840 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17841 | { | |
17842 | arg2 = wxString_in_helper(obj1); | |
17843 | if (arg2 == NULL) SWIG_fail; | |
17844 | temp2 = true; | |
17845 | } | |
17846 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
17847 | if (!SWIG_IsOK(res3)) { | |
17848 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17849 | } | |
17850 | if (!argp3) { | |
17851 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17852 | } | |
17853 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
17854 | { | |
17855 | arg4 = &temp4; | |
17856 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
17857 | } | |
17858 | if (obj4) { | |
17859 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17860 | if (!SWIG_IsOK(ecode5)) { | |
17861 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
17862 | } | |
17863 | arg5 = static_cast< int >(val5); | |
17864 | } | |
17865 | if (obj5) { | |
17866 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17867 | if (!SWIG_IsOK(ecode6)) { | |
17868 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
17869 | } | |
17870 | arg6 = static_cast< int >(val6); | |
17871 | } | |
17872 | { | |
17873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17874 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
17879 | { | |
17880 | if (temp2) | |
17881 | delete arg2; | |
17882 | } | |
17883 | return resultobj; | |
17884 | fail: | |
17885 | { | |
17886 | if (temp2) | |
17887 | delete arg2; | |
17888 | } | |
17889 | return NULL; | |
17890 | } | |
17891 | ||
17892 | ||
17893 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17894 | PyObject *resultobj = 0; | |
17895 | wxDC *arg1 = (wxDC *) 0 ; | |
17896 | int arg2 ; | |
17897 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17898 | void *argp1 = 0 ; | |
17899 | int res1 = 0 ; | |
17900 | PyObject * obj0 = 0 ; | |
17901 | PyObject * obj1 = 0 ; | |
17902 | char * kwnames[] = { | |
17903 | (char *) "self",(char *) "points", NULL | |
17904 | }; | |
17905 | ||
17906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
17907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17908 | if (!SWIG_IsOK(res1)) { | |
17909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17910 | } | |
17911 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17912 | { | |
17913 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17914 | if (arg3 == NULL) SWIG_fail; | |
17915 | } | |
17916 | { | |
17917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17918 | (arg1)->DrawSpline(arg2,arg3); | |
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | resultobj = SWIG_Py_Void(); | |
17923 | { | |
17924 | if (arg3) delete [] arg3; | |
17925 | } | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | { | |
17929 | if (arg3) delete [] arg3; | |
17930 | } | |
17931 | return NULL; | |
17932 | } | |
17933 | ||
17934 | ||
17935 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17936 | PyObject *resultobj = 0; | |
17937 | wxDC *arg1 = (wxDC *) 0 ; | |
17938 | void *argp1 = 0 ; | |
17939 | int res1 = 0 ; | |
17940 | PyObject *swig_obj[1] ; | |
17941 | ||
17942 | if (!args) SWIG_fail; | |
17943 | swig_obj[0] = args; | |
17944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17945 | if (!SWIG_IsOK(res1)) { | |
17946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17947 | } | |
17948 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | (arg1)->Clear(); | |
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | resultobj = SWIG_Py_Void(); | |
17956 | return resultobj; | |
17957 | fail: | |
17958 | return NULL; | |
17959 | } | |
17960 | ||
17961 | ||
17962 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17963 | PyObject *resultobj = 0; | |
17964 | wxDC *arg1 = (wxDC *) 0 ; | |
17965 | wxString *arg2 = 0 ; | |
17966 | bool result; | |
17967 | void *argp1 = 0 ; | |
17968 | int res1 = 0 ; | |
17969 | bool temp2 = false ; | |
17970 | PyObject * obj0 = 0 ; | |
17971 | PyObject * obj1 = 0 ; | |
17972 | char * kwnames[] = { | |
17973 | (char *) "self",(char *) "message", NULL | |
17974 | }; | |
17975 | ||
17976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
17977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17978 | if (!SWIG_IsOK(res1)) { | |
17979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17980 | } | |
17981 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17982 | { | |
17983 | arg2 = wxString_in_helper(obj1); | |
17984 | if (arg2 == NULL) SWIG_fail; | |
17985 | temp2 = true; | |
17986 | } | |
17987 | { | |
17988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17989 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | { | |
17994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17995 | } | |
17996 | { | |
17997 | if (temp2) | |
17998 | delete arg2; | |
17999 | } | |
18000 | return resultobj; | |
18001 | fail: | |
18002 | { | |
18003 | if (temp2) | |
18004 | delete arg2; | |
18005 | } | |
18006 | return NULL; | |
18007 | } | |
18008 | ||
18009 | ||
18010 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18011 | PyObject *resultobj = 0; | |
18012 | wxDC *arg1 = (wxDC *) 0 ; | |
18013 | void *argp1 = 0 ; | |
18014 | int res1 = 0 ; | |
18015 | PyObject *swig_obj[1] ; | |
18016 | ||
18017 | if (!args) SWIG_fail; | |
18018 | swig_obj[0] = args; | |
18019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18020 | if (!SWIG_IsOK(res1)) { | |
18021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18022 | } | |
18023 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | (arg1)->EndDoc(); | |
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | resultobj = SWIG_Py_Void(); | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18038 | PyObject *resultobj = 0; | |
18039 | wxDC *arg1 = (wxDC *) 0 ; | |
18040 | void *argp1 = 0 ; | |
18041 | int res1 = 0 ; | |
18042 | PyObject *swig_obj[1] ; | |
18043 | ||
18044 | if (!args) SWIG_fail; | |
18045 | swig_obj[0] = args; | |
18046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18047 | if (!SWIG_IsOK(res1)) { | |
18048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18049 | } | |
18050 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18051 | { | |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | (arg1)->StartPage(); | |
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | resultobj = SWIG_Py_Void(); | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18065 | PyObject *resultobj = 0; | |
18066 | wxDC *arg1 = (wxDC *) 0 ; | |
18067 | void *argp1 = 0 ; | |
18068 | int res1 = 0 ; | |
18069 | PyObject *swig_obj[1] ; | |
18070 | ||
18071 | if (!args) SWIG_fail; | |
18072 | swig_obj[0] = args; | |
18073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18074 | if (!SWIG_IsOK(res1)) { | |
18075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18076 | } | |
18077 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | (arg1)->EndPage(); | |
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | resultobj = SWIG_Py_Void(); | |
18085 | return resultobj; | |
18086 | fail: | |
18087 | return NULL; | |
18088 | } | |
18089 | ||
18090 | ||
18091 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18092 | PyObject *resultobj = 0; | |
18093 | wxDC *arg1 = (wxDC *) 0 ; | |
18094 | wxFont *arg2 = 0 ; | |
18095 | void *argp1 = 0 ; | |
18096 | int res1 = 0 ; | |
18097 | void *argp2 = 0 ; | |
18098 | int res2 = 0 ; | |
18099 | PyObject * obj0 = 0 ; | |
18100 | PyObject * obj1 = 0 ; | |
18101 | char * kwnames[] = { | |
18102 | (char *) "self",(char *) "font", NULL | |
18103 | }; | |
18104 | ||
18105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18107 | if (!SWIG_IsOK(res1)) { | |
18108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18109 | } | |
18110 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18111 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18112 | if (!SWIG_IsOK(res2)) { | |
18113 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18114 | } | |
18115 | if (!argp2) { | |
18116 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18117 | } | |
18118 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18119 | { | |
18120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18121 | (arg1)->SetFont((wxFont const &)*arg2); | |
18122 | wxPyEndAllowThreads(__tstate); | |
18123 | if (PyErr_Occurred()) SWIG_fail; | |
18124 | } | |
18125 | resultobj = SWIG_Py_Void(); | |
18126 | return resultobj; | |
18127 | fail: | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18133 | PyObject *resultobj = 0; | |
18134 | wxDC *arg1 = (wxDC *) 0 ; | |
18135 | wxPen *arg2 = 0 ; | |
18136 | void *argp1 = 0 ; | |
18137 | int res1 = 0 ; | |
18138 | void *argp2 = 0 ; | |
18139 | int res2 = 0 ; | |
18140 | PyObject * obj0 = 0 ; | |
18141 | PyObject * obj1 = 0 ; | |
18142 | char * kwnames[] = { | |
18143 | (char *) "self",(char *) "pen", NULL | |
18144 | }; | |
18145 | ||
18146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
18147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18148 | if (!SWIG_IsOK(res1)) { | |
18149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18150 | } | |
18151 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18152 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
18153 | if (!SWIG_IsOK(res2)) { | |
18154 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
18155 | } | |
18156 | if (!argp2) { | |
18157 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
18158 | } | |
18159 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
18160 | { | |
18161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18162 | (arg1)->SetPen((wxPen const &)*arg2); | |
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | resultobj = SWIG_Py_Void(); | |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
18173 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18174 | PyObject *resultobj = 0; | |
18175 | wxDC *arg1 = (wxDC *) 0 ; | |
18176 | wxBrush *arg2 = 0 ; | |
18177 | void *argp1 = 0 ; | |
18178 | int res1 = 0 ; | |
18179 | void *argp2 = 0 ; | |
18180 | int res2 = 0 ; | |
18181 | PyObject * obj0 = 0 ; | |
18182 | PyObject * obj1 = 0 ; | |
18183 | char * kwnames[] = { | |
18184 | (char *) "self",(char *) "brush", NULL | |
18185 | }; | |
18186 | ||
18187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
18188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18189 | if (!SWIG_IsOK(res1)) { | |
18190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18191 | } | |
18192 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18193 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
18194 | if (!SWIG_IsOK(res2)) { | |
18195 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18196 | } | |
18197 | if (!argp2) { | |
18198 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18199 | } | |
18200 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
18207 | resultobj = SWIG_Py_Void(); | |
18208 | return resultobj; | |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj = 0; | |
18216 | wxDC *arg1 = (wxDC *) 0 ; | |
18217 | wxBrush *arg2 = 0 ; | |
18218 | void *argp1 = 0 ; | |
18219 | int res1 = 0 ; | |
18220 | void *argp2 = 0 ; | |
18221 | int res2 = 0 ; | |
18222 | PyObject * obj0 = 0 ; | |
18223 | PyObject * obj1 = 0 ; | |
18224 | char * kwnames[] = { | |
18225 | (char *) "self",(char *) "brush", NULL | |
18226 | }; | |
18227 | ||
18228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
18229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18230 | if (!SWIG_IsOK(res1)) { | |
18231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18232 | } | |
18233 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18234 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
18235 | if (!SWIG_IsOK(res2)) { | |
18236 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18237 | } | |
18238 | if (!argp2) { | |
18239 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18240 | } | |
18241 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
18242 | { | |
18243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18244 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
18245 | wxPyEndAllowThreads(__tstate); | |
18246 | if (PyErr_Occurred()) SWIG_fail; | |
18247 | } | |
18248 | resultobj = SWIG_Py_Void(); | |
18249 | return resultobj; | |
18250 | fail: | |
18251 | return NULL; | |
18252 | } | |
18253 | ||
18254 | ||
18255 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18256 | PyObject *resultobj = 0; | |
18257 | wxDC *arg1 = (wxDC *) 0 ; | |
18258 | int arg2 ; | |
18259 | void *argp1 = 0 ; | |
18260 | int res1 = 0 ; | |
18261 | int val2 ; | |
18262 | int ecode2 = 0 ; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | PyObject * obj1 = 0 ; | |
18265 | char * kwnames[] = { | |
18266 | (char *) "self",(char *) "mode", NULL | |
18267 | }; | |
18268 | ||
18269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
18270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18271 | if (!SWIG_IsOK(res1)) { | |
18272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18273 | } | |
18274 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18275 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18276 | if (!SWIG_IsOK(ecode2)) { | |
18277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
18278 | } | |
18279 | arg2 = static_cast< int >(val2); | |
18280 | { | |
18281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18282 | (arg1)->SetBackgroundMode(arg2); | |
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | resultobj = SWIG_Py_Void(); | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18294 | PyObject *resultobj = 0; | |
18295 | wxDC *arg1 = (wxDC *) 0 ; | |
18296 | wxPalette *arg2 = 0 ; | |
18297 | void *argp1 = 0 ; | |
18298 | int res1 = 0 ; | |
18299 | void *argp2 = 0 ; | |
18300 | int res2 = 0 ; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | PyObject * obj1 = 0 ; | |
18303 | char * kwnames[] = { | |
18304 | (char *) "self",(char *) "palette", NULL | |
18305 | }; | |
18306 | ||
18307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
18308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18309 | if (!SWIG_IsOK(res1)) { | |
18310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18311 | } | |
18312 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18313 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
18314 | if (!SWIG_IsOK(res2)) { | |
18315 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
18316 | } | |
18317 | if (!argp2) { | |
18318 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
18319 | } | |
18320 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
18321 | { | |
18322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18323 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | resultobj = SWIG_Py_Void(); | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18335 | PyObject *resultobj = 0; | |
18336 | wxDC *arg1 = (wxDC *) 0 ; | |
18337 | void *argp1 = 0 ; | |
18338 | int res1 = 0 ; | |
18339 | PyObject *swig_obj[1] ; | |
18340 | ||
18341 | if (!args) SWIG_fail; | |
18342 | swig_obj[0] = args; | |
18343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18344 | if (!SWIG_IsOK(res1)) { | |
18345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18346 | } | |
18347 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18348 | { | |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | (arg1)->DestroyClippingRegion(); | |
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
18354 | resultobj = SWIG_Py_Void(); | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
18361 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18362 | PyObject *resultobj = 0; | |
18363 | wxDC *arg1 = (wxDC *) 0 ; | |
18364 | int *arg2 = (int *) 0 ; | |
18365 | int *arg3 = (int *) 0 ; | |
18366 | int *arg4 = (int *) 0 ; | |
18367 | int *arg5 = (int *) 0 ; | |
18368 | void *argp1 = 0 ; | |
18369 | int res1 = 0 ; | |
18370 | int temp2 ; | |
18371 | int res2 = SWIG_TMPOBJ ; | |
18372 | int temp3 ; | |
18373 | int res3 = SWIG_TMPOBJ ; | |
18374 | int temp4 ; | |
18375 | int res4 = SWIG_TMPOBJ ; | |
18376 | int temp5 ; | |
18377 | int res5 = SWIG_TMPOBJ ; | |
18378 | PyObject *swig_obj[1] ; | |
18379 | ||
18380 | arg2 = &temp2; | |
18381 | arg3 = &temp3; | |
18382 | arg4 = &temp4; | |
18383 | arg5 = &temp5; | |
18384 | if (!args) SWIG_fail; | |
18385 | swig_obj[0] = args; | |
18386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18387 | if (!SWIG_IsOK(res1)) { | |
18388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18389 | } | |
18390 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
18394 | wxPyEndAllowThreads(__tstate); | |
18395 | if (PyErr_Occurred()) SWIG_fail; | |
18396 | } | |
18397 | resultobj = SWIG_Py_Void(); | |
18398 | if (SWIG_IsTmpObj(res2)) { | |
18399 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18400 | } else { | |
18401 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18402 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18403 | } | |
18404 | if (SWIG_IsTmpObj(res3)) { | |
18405 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18406 | } else { | |
18407 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18408 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18409 | } | |
18410 | if (SWIG_IsTmpObj(res4)) { | |
18411 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18412 | } else { | |
18413 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18414 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18415 | } | |
18416 | if (SWIG_IsTmpObj(res5)) { | |
18417 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18418 | } else { | |
18419 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18420 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18421 | } | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18429 | PyObject *resultobj = 0; | |
18430 | wxDC *arg1 = (wxDC *) 0 ; | |
18431 | wxRect result; | |
18432 | void *argp1 = 0 ; | |
18433 | int res1 = 0 ; | |
18434 | PyObject *swig_obj[1] ; | |
18435 | ||
18436 | if (!args) SWIG_fail; | |
18437 | swig_obj[0] = args; | |
18438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18439 | if (!SWIG_IsOK(res1)) { | |
18440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18441 | } | |
18442 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18443 | { | |
18444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18445 | result = wxDC_GetClippingRect(arg1); | |
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
18450 | return resultobj; | |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18457 | PyObject *resultobj = 0; | |
18458 | wxDC *arg1 = (wxDC *) 0 ; | |
18459 | int result; | |
18460 | void *argp1 = 0 ; | |
18461 | int res1 = 0 ; | |
18462 | PyObject *swig_obj[1] ; | |
18463 | ||
18464 | if (!args) SWIG_fail; | |
18465 | swig_obj[0] = args; | |
18466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18467 | if (!SWIG_IsOK(res1)) { | |
18468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18469 | } | |
18470 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18471 | { | |
18472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18473 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
18474 | wxPyEndAllowThreads(__tstate); | |
18475 | if (PyErr_Occurred()) SWIG_fail; | |
18476 | } | |
18477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18478 | return resultobj; | |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
18484 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18485 | PyObject *resultobj = 0; | |
18486 | wxDC *arg1 = (wxDC *) 0 ; | |
18487 | int result; | |
18488 | void *argp1 = 0 ; | |
18489 | int res1 = 0 ; | |
18490 | PyObject *swig_obj[1] ; | |
18491 | ||
18492 | if (!args) SWIG_fail; | |
18493 | swig_obj[0] = args; | |
18494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18495 | if (!SWIG_IsOK(res1)) { | |
18496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18497 | } | |
18498 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18499 | { | |
18500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18501 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj = 0; | |
18514 | wxDC *arg1 = (wxDC *) 0 ; | |
18515 | wxString *arg2 = 0 ; | |
18516 | int *arg3 = (int *) 0 ; | |
18517 | int *arg4 = (int *) 0 ; | |
18518 | void *argp1 = 0 ; | |
18519 | int res1 = 0 ; | |
18520 | bool temp2 = false ; | |
18521 | int temp3 ; | |
18522 | int res3 = SWIG_TMPOBJ ; | |
18523 | int temp4 ; | |
18524 | int res4 = SWIG_TMPOBJ ; | |
18525 | PyObject * obj0 = 0 ; | |
18526 | PyObject * obj1 = 0 ; | |
18527 | char * kwnames[] = { | |
18528 | (char *) "self",(char *) "string", NULL | |
18529 | }; | |
18530 | ||
18531 | arg3 = &temp3; | |
18532 | arg4 = &temp4; | |
18533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
18534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18535 | if (!SWIG_IsOK(res1)) { | |
18536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18537 | } | |
18538 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18539 | { | |
18540 | arg2 = wxString_in_helper(obj1); | |
18541 | if (arg2 == NULL) SWIG_fail; | |
18542 | temp2 = true; | |
18543 | } | |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
18550 | resultobj = SWIG_Py_Void(); | |
18551 | if (SWIG_IsTmpObj(res3)) { | |
18552 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18553 | } else { | |
18554 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18555 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18556 | } | |
18557 | if (SWIG_IsTmpObj(res4)) { | |
18558 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18559 | } else { | |
18560 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18561 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18562 | } | |
18563 | { | |
18564 | if (temp2) | |
18565 | delete arg2; | |
18566 | } | |
18567 | return resultobj; | |
18568 | fail: | |
18569 | { | |
18570 | if (temp2) | |
18571 | delete arg2; | |
18572 | } | |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
18577 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18578 | PyObject *resultobj = 0; | |
18579 | wxDC *arg1 = (wxDC *) 0 ; | |
18580 | wxString *arg2 = 0 ; | |
18581 | int *arg3 = (int *) 0 ; | |
18582 | int *arg4 = (int *) 0 ; | |
18583 | int *arg5 = (int *) 0 ; | |
18584 | int *arg6 = (int *) 0 ; | |
18585 | wxFont *arg7 = (wxFont *) NULL ; | |
18586 | void *argp1 = 0 ; | |
18587 | int res1 = 0 ; | |
18588 | bool temp2 = false ; | |
18589 | int temp3 ; | |
18590 | int res3 = SWIG_TMPOBJ ; | |
18591 | int temp4 ; | |
18592 | int res4 = SWIG_TMPOBJ ; | |
18593 | int temp5 ; | |
18594 | int res5 = SWIG_TMPOBJ ; | |
18595 | int temp6 ; | |
18596 | int res6 = SWIG_TMPOBJ ; | |
18597 | void *argp7 = 0 ; | |
18598 | int res7 = 0 ; | |
18599 | PyObject * obj0 = 0 ; | |
18600 | PyObject * obj1 = 0 ; | |
18601 | PyObject * obj2 = 0 ; | |
18602 | char * kwnames[] = { | |
18603 | (char *) "self",(char *) "string",(char *) "font", NULL | |
18604 | }; | |
18605 | ||
18606 | arg3 = &temp3; | |
18607 | arg4 = &temp4; | |
18608 | arg5 = &temp5; | |
18609 | arg6 = &temp6; | |
18610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18612 | if (!SWIG_IsOK(res1)) { | |
18613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18614 | } | |
18615 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18616 | { | |
18617 | arg2 = wxString_in_helper(obj1); | |
18618 | if (arg2 == NULL) SWIG_fail; | |
18619 | temp2 = true; | |
18620 | } | |
18621 | if (obj2) { | |
18622 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
18623 | if (!SWIG_IsOK(res7)) { | |
18624 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 18625 | } |
554f62e9 RD |
18626 | arg7 = reinterpret_cast< wxFont * >(argp7); |
18627 | } | |
18628 | { | |
18629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18630 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
18631 | wxPyEndAllowThreads(__tstate); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | resultobj = SWIG_Py_Void(); | |
18635 | if (SWIG_IsTmpObj(res3)) { | |
18636 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18637 | } else { | |
18638 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18639 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18640 | } | |
18641 | if (SWIG_IsTmpObj(res4)) { | |
18642 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18643 | } else { | |
18644 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18645 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18646 | } | |
18647 | if (SWIG_IsTmpObj(res5)) { | |
18648 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18649 | } else { | |
18650 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18651 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18652 | } | |
18653 | if (SWIG_IsTmpObj(res6)) { | |
18654 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
18655 | } else { | |
18656 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18657 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
18658 | } | |
18659 | { | |
18660 | if (temp2) | |
18661 | delete arg2; | |
18662 | } | |
18663 | return resultobj; | |
18664 | fail: | |
18665 | { | |
18666 | if (temp2) | |
18667 | delete arg2; | |
18668 | } | |
18669 | return NULL; | |
18670 | } | |
18671 | ||
18672 | ||
18673 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18674 | PyObject *resultobj = 0; | |
18675 | wxDC *arg1 = (wxDC *) 0 ; | |
18676 | wxString *arg2 = 0 ; | |
18677 | int *arg3 = (int *) 0 ; | |
18678 | int *arg4 = (int *) 0 ; | |
18679 | int *arg5 = (int *) 0 ; | |
18680 | wxFont *arg6 = (wxFont *) NULL ; | |
18681 | void *argp1 = 0 ; | |
18682 | int res1 = 0 ; | |
18683 | bool temp2 = false ; | |
18684 | int temp3 ; | |
18685 | int res3 = SWIG_TMPOBJ ; | |
18686 | int temp4 ; | |
18687 | int res4 = SWIG_TMPOBJ ; | |
18688 | int temp5 ; | |
18689 | int res5 = SWIG_TMPOBJ ; | |
18690 | void *argp6 = 0 ; | |
18691 | int res6 = 0 ; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | PyObject * obj1 = 0 ; | |
18694 | PyObject * obj2 = 0 ; | |
18695 | char * kwnames[] = { | |
18696 | (char *) "self",(char *) "text",(char *) "font", NULL | |
18697 | }; | |
18698 | ||
18699 | arg3 = &temp3; | |
18700 | arg4 = &temp4; | |
18701 | arg5 = &temp5; | |
18702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18704 | if (!SWIG_IsOK(res1)) { | |
18705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18706 | } | |
18707 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18708 | { | |
18709 | arg2 = wxString_in_helper(obj1); | |
18710 | if (arg2 == NULL) SWIG_fail; | |
18711 | temp2 = true; | |
18712 | } | |
18713 | if (obj2) { | |
18714 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
18715 | if (!SWIG_IsOK(res6)) { | |
18716 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 18717 | } |
554f62e9 RD |
18718 | arg6 = reinterpret_cast< wxFont * >(argp6); |
18719 | } | |
18720 | { | |
18721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18722 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | resultobj = SWIG_Py_Void(); | |
18727 | if (SWIG_IsTmpObj(res3)) { | |
18728 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18729 | } else { | |
18730 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18731 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18732 | } | |
18733 | if (SWIG_IsTmpObj(res4)) { | |
18734 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18735 | } else { | |
18736 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18737 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18738 | } | |
18739 | if (SWIG_IsTmpObj(res5)) { | |
18740 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18741 | } else { | |
18742 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18743 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18744 | } | |
18745 | { | |
18746 | if (temp2) | |
18747 | delete arg2; | |
18748 | } | |
18749 | return resultobj; | |
18750 | fail: | |
18751 | { | |
18752 | if (temp2) | |
18753 | delete arg2; | |
18754 | } | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj = 0; | |
18761 | wxDC *arg1 = (wxDC *) 0 ; | |
18762 | wxString *arg2 = 0 ; | |
18763 | wxArrayInt result; | |
18764 | void *argp1 = 0 ; | |
18765 | int res1 = 0 ; | |
18766 | bool temp2 = false ; | |
18767 | PyObject * obj0 = 0 ; | |
18768 | PyObject * obj1 = 0 ; | |
18769 | char * kwnames[] = { | |
18770 | (char *) "self",(char *) "text", NULL | |
18771 | }; | |
18772 | ||
18773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18775 | if (!SWIG_IsOK(res1)) { | |
18776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18777 | } | |
18778 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18779 | { | |
18780 | arg2 = wxString_in_helper(obj1); | |
18781 | if (arg2 == NULL) SWIG_fail; | |
18782 | temp2 = true; | |
18783 | } | |
18784 | { | |
18785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18786 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
18787 | wxPyEndAllowThreads(__tstate); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
18789 | } | |
18790 | { | |
18791 | resultobj = PyList_New(0); | |
18792 | size_t idx; | |
18793 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
18794 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
18795 | PyList_Append(resultobj, val); | |
18796 | Py_DECREF(val); | |
093d3ff1 | 18797 | } |
554f62e9 RD |
18798 | } |
18799 | { | |
18800 | if (temp2) | |
18801 | delete arg2; | |
18802 | } | |
18803 | return resultobj; | |
18804 | fail: | |
18805 | { | |
18806 | if (temp2) | |
18807 | delete arg2; | |
18808 | } | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18814 | PyObject *resultobj = 0; | |
18815 | wxDC *arg1 = (wxDC *) 0 ; | |
18816 | wxSize result; | |
18817 | void *argp1 = 0 ; | |
18818 | int res1 = 0 ; | |
18819 | PyObject *swig_obj[1] ; | |
18820 | ||
18821 | if (!args) SWIG_fail; | |
18822 | swig_obj[0] = args; | |
18823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18824 | if (!SWIG_IsOK(res1)) { | |
18825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18826 | } | |
18827 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18828 | { | |
18829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18830 | result = (arg1)->GetSize(); | |
18831 | wxPyEndAllowThreads(__tstate); | |
18832 | if (PyErr_Occurred()) SWIG_fail; | |
18833 | } | |
18834 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18842 | PyObject *resultobj = 0; | |
18843 | wxDC *arg1 = (wxDC *) 0 ; | |
18844 | int *arg2 = (int *) 0 ; | |
18845 | int *arg3 = (int *) 0 ; | |
18846 | void *argp1 = 0 ; | |
18847 | int res1 = 0 ; | |
18848 | int temp2 ; | |
18849 | int res2 = SWIG_TMPOBJ ; | |
18850 | int temp3 ; | |
18851 | int res3 = SWIG_TMPOBJ ; | |
18852 | PyObject *swig_obj[1] ; | |
18853 | ||
18854 | arg2 = &temp2; | |
18855 | arg3 = &temp3; | |
18856 | if (!args) SWIG_fail; | |
18857 | swig_obj[0] = args; | |
18858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18859 | if (!SWIG_IsOK(res1)) { | |
18860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18861 | } | |
18862 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18863 | { | |
18864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18865 | (arg1)->GetSize(arg2,arg3); | |
18866 | wxPyEndAllowThreads(__tstate); | |
18867 | if (PyErr_Occurred()) SWIG_fail; | |
18868 | } | |
18869 | resultobj = SWIG_Py_Void(); | |
18870 | if (SWIG_IsTmpObj(res2)) { | |
18871 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18872 | } else { | |
18873 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18874 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18875 | } | |
18876 | if (SWIG_IsTmpObj(res3)) { | |
18877 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18878 | } else { | |
18879 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18880 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18881 | } | |
18882 | return resultobj; | |
18883 | fail: | |
18884 | return NULL; | |
18885 | } | |
18886 | ||
18887 | ||
18888 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18889 | PyObject *resultobj = 0; | |
18890 | wxDC *arg1 = (wxDC *) 0 ; | |
18891 | wxSize result; | |
18892 | void *argp1 = 0 ; | |
18893 | int res1 = 0 ; | |
18894 | PyObject *swig_obj[1] ; | |
18895 | ||
18896 | if (!args) SWIG_fail; | |
18897 | swig_obj[0] = args; | |
18898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18899 | if (!SWIG_IsOK(res1)) { | |
18900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18901 | } | |
18902 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18903 | { | |
18904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18905 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
18906 | wxPyEndAllowThreads(__tstate); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
18909 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18910 | return resultobj; | |
18911 | fail: | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
18916 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18917 | PyObject *resultobj = 0; | |
18918 | wxDC *arg1 = (wxDC *) 0 ; | |
18919 | int *arg2 = (int *) 0 ; | |
18920 | int *arg3 = (int *) 0 ; | |
18921 | void *argp1 = 0 ; | |
18922 | int res1 = 0 ; | |
18923 | int temp2 ; | |
18924 | int res2 = SWIG_TMPOBJ ; | |
18925 | int temp3 ; | |
18926 | int res3 = SWIG_TMPOBJ ; | |
18927 | PyObject *swig_obj[1] ; | |
18928 | ||
18929 | arg2 = &temp2; | |
18930 | arg3 = &temp3; | |
18931 | if (!args) SWIG_fail; | |
18932 | swig_obj[0] = args; | |
18933 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18934 | if (!SWIG_IsOK(res1)) { | |
18935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18936 | } | |
18937 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | resultobj = SWIG_Py_Void(); | |
18945 | if (SWIG_IsTmpObj(res2)) { | |
18946 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18947 | } else { | |
18948 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18949 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18950 | } | |
18951 | if (SWIG_IsTmpObj(res3)) { | |
18952 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18953 | } else { | |
18954 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18955 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18956 | } | |
18957 | return resultobj; | |
18958 | fail: | |
18959 | return NULL; | |
18960 | } | |
18961 | ||
18962 | ||
18963 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18964 | PyObject *resultobj = 0; | |
18965 | wxDC *arg1 = (wxDC *) 0 ; | |
18966 | int arg2 ; | |
18967 | int result; | |
18968 | void *argp1 = 0 ; | |
18969 | int res1 = 0 ; | |
18970 | int val2 ; | |
18971 | int ecode2 = 0 ; | |
18972 | PyObject * obj0 = 0 ; | |
18973 | PyObject * obj1 = 0 ; | |
18974 | char * kwnames[] = { | |
18975 | (char *) "self",(char *) "x", NULL | |
18976 | }; | |
18977 | ||
18978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
18979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18980 | if (!SWIG_IsOK(res1)) { | |
18981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18982 | } | |
18983 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18984 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18985 | if (!SWIG_IsOK(ecode2)) { | |
18986 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
18987 | } | |
18988 | arg2 = static_cast< int >(val2); | |
18989 | { | |
18990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18991 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
18992 | wxPyEndAllowThreads(__tstate); | |
18993 | if (PyErr_Occurred()) SWIG_fail; | |
18994 | } | |
18995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18996 | return resultobj; | |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
19002 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19003 | PyObject *resultobj = 0; | |
19004 | wxDC *arg1 = (wxDC *) 0 ; | |
19005 | int arg2 ; | |
19006 | int result; | |
19007 | void *argp1 = 0 ; | |
19008 | int res1 = 0 ; | |
19009 | int val2 ; | |
19010 | int ecode2 = 0 ; | |
19011 | PyObject * obj0 = 0 ; | |
19012 | PyObject * obj1 = 0 ; | |
19013 | char * kwnames[] = { | |
19014 | (char *) "self",(char *) "y", NULL | |
19015 | }; | |
19016 | ||
19017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
19018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19019 | if (!SWIG_IsOK(res1)) { | |
19020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19021 | } | |
19022 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19023 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19024 | if (!SWIG_IsOK(ecode2)) { | |
19025 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
19026 | } | |
19027 | arg2 = static_cast< int >(val2); | |
19028 | { | |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19035 | return resultobj; | |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
19041 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19042 | PyObject *resultobj = 0; | |
19043 | wxDC *arg1 = (wxDC *) 0 ; | |
19044 | int arg2 ; | |
19045 | int result; | |
19046 | void *argp1 = 0 ; | |
19047 | int res1 = 0 ; | |
19048 | int val2 ; | |
19049 | int ecode2 = 0 ; | |
19050 | PyObject * obj0 = 0 ; | |
19051 | PyObject * obj1 = 0 ; | |
19052 | char * kwnames[] = { | |
19053 | (char *) "self",(char *) "x", NULL | |
19054 | }; | |
19055 | ||
19056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19058 | if (!SWIG_IsOK(res1)) { | |
19059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19060 | } | |
19061 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19062 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19063 | if (!SWIG_IsOK(ecode2)) { | |
19064 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
19065 | } | |
19066 | arg2 = static_cast< int >(val2); | |
19067 | { | |
19068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19069 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
19070 | wxPyEndAllowThreads(__tstate); | |
19071 | if (PyErr_Occurred()) SWIG_fail; | |
19072 | } | |
19073 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19074 | return resultobj; | |
19075 | fail: | |
19076 | return NULL; | |
19077 | } | |
19078 | ||
19079 | ||
19080 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19081 | PyObject *resultobj = 0; | |
19082 | wxDC *arg1 = (wxDC *) 0 ; | |
19083 | int arg2 ; | |
19084 | int result; | |
19085 | void *argp1 = 0 ; | |
19086 | int res1 = 0 ; | |
19087 | int val2 ; | |
19088 | int ecode2 = 0 ; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | PyObject * obj1 = 0 ; | |
19091 | char * kwnames[] = { | |
19092 | (char *) "self",(char *) "y", NULL | |
19093 | }; | |
19094 | ||
19095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19097 | if (!SWIG_IsOK(res1)) { | |
19098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19099 | } | |
19100 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19101 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19102 | if (!SWIG_IsOK(ecode2)) { | |
19103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
19104 | } | |
19105 | arg2 = static_cast< int >(val2); | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
19109 | wxPyEndAllowThreads(__tstate); | |
19110 | if (PyErr_Occurred()) SWIG_fail; | |
19111 | } | |
19112 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19113 | return resultobj; | |
19114 | fail: | |
19115 | return NULL; | |
19116 | } | |
19117 | ||
19118 | ||
19119 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19120 | PyObject *resultobj = 0; | |
19121 | wxDC *arg1 = (wxDC *) 0 ; | |
19122 | int arg2 ; | |
19123 | int result; | |
19124 | void *argp1 = 0 ; | |
19125 | int res1 = 0 ; | |
19126 | int val2 ; | |
19127 | int ecode2 = 0 ; | |
19128 | PyObject * obj0 = 0 ; | |
19129 | PyObject * obj1 = 0 ; | |
19130 | char * kwnames[] = { | |
19131 | (char *) "self",(char *) "x", NULL | |
19132 | }; | |
19133 | ||
19134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
19135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19136 | if (!SWIG_IsOK(res1)) { | |
19137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19138 | } | |
19139 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19140 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19141 | if (!SWIG_IsOK(ecode2)) { | |
19142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
19143 | } | |
19144 | arg2 = static_cast< int >(val2); | |
19145 | { | |
19146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19147 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
19148 | wxPyEndAllowThreads(__tstate); | |
19149 | if (PyErr_Occurred()) SWIG_fail; | |
19150 | } | |
19151 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19152 | return resultobj; | |
19153 | fail: | |
19154 | return NULL; | |
19155 | } | |
19156 | ||
19157 | ||
19158 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19159 | PyObject *resultobj = 0; | |
19160 | wxDC *arg1 = (wxDC *) 0 ; | |
19161 | int arg2 ; | |
19162 | int result; | |
19163 | void *argp1 = 0 ; | |
19164 | int res1 = 0 ; | |
19165 | int val2 ; | |
19166 | int ecode2 = 0 ; | |
19167 | PyObject * obj0 = 0 ; | |
19168 | PyObject * obj1 = 0 ; | |
19169 | char * kwnames[] = { | |
19170 | (char *) "self",(char *) "y", NULL | |
19171 | }; | |
19172 | ||
19173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
19174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19175 | if (!SWIG_IsOK(res1)) { | |
19176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19177 | } | |
19178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19180 | if (!SWIG_IsOK(ecode2)) { | |
19181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
19182 | } | |
19183 | arg2 = static_cast< int >(val2); | |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19186 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
19187 | wxPyEndAllowThreads(__tstate); | |
19188 | if (PyErr_Occurred()) SWIG_fail; | |
19189 | } | |
19190 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19191 | return resultobj; | |
19192 | fail: | |
19193 | return NULL; | |
19194 | } | |
19195 | ||
19196 | ||
19197 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19198 | PyObject *resultobj = 0; | |
19199 | wxDC *arg1 = (wxDC *) 0 ; | |
19200 | int arg2 ; | |
19201 | int result; | |
19202 | void *argp1 = 0 ; | |
19203 | int res1 = 0 ; | |
19204 | int val2 ; | |
19205 | int ecode2 = 0 ; | |
19206 | PyObject * obj0 = 0 ; | |
19207 | PyObject * obj1 = 0 ; | |
19208 | char * kwnames[] = { | |
19209 | (char *) "self",(char *) "x", NULL | |
19210 | }; | |
19211 | ||
19212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19214 | if (!SWIG_IsOK(res1)) { | |
19215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19216 | } | |
19217 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19218 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19219 | if (!SWIG_IsOK(ecode2)) { | |
19220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
19221 | } | |
19222 | arg2 = static_cast< int >(val2); | |
19223 | { | |
19224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19225 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19230 | return resultobj; | |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj = 0; | |
19238 | wxDC *arg1 = (wxDC *) 0 ; | |
19239 | int arg2 ; | |
19240 | int result; | |
19241 | void *argp1 = 0 ; | |
19242 | int res1 = 0 ; | |
19243 | int val2 ; | |
19244 | int ecode2 = 0 ; | |
19245 | PyObject * obj0 = 0 ; | |
19246 | PyObject * obj1 = 0 ; | |
19247 | char * kwnames[] = { | |
19248 | (char *) "self",(char *) "y", NULL | |
19249 | }; | |
19250 | ||
19251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19253 | if (!SWIG_IsOK(res1)) { | |
19254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19255 | } | |
19256 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19257 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19258 | if (!SWIG_IsOK(ecode2)) { | |
19259 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
19260 | } | |
19261 | arg2 = static_cast< int >(val2); | |
19262 | { | |
19263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19264 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
19265 | wxPyEndAllowThreads(__tstate); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
19267 | } | |
19268 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19269 | return resultobj; | |
19270 | fail: | |
19271 | return NULL; | |
19272 | } | |
19273 | ||
19274 | ||
19275 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19276 | PyObject *resultobj = 0; | |
19277 | wxDC *arg1 = (wxDC *) 0 ; | |
19278 | bool result; | |
19279 | void *argp1 = 0 ; | |
19280 | int res1 = 0 ; | |
19281 | PyObject *swig_obj[1] ; | |
19282 | ||
19283 | if (!args) SWIG_fail; | |
19284 | swig_obj[0] = args; | |
19285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19286 | if (!SWIG_IsOK(res1)) { | |
19287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19288 | } | |
19289 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19290 | { | |
19291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19292 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
19293 | wxPyEndAllowThreads(__tstate); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | } | |
19296 | { | |
19297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19298 | } | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
19305 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19306 | PyObject *resultobj = 0; | |
19307 | wxDC *arg1 = (wxDC *) 0 ; | |
19308 | bool result; | |
19309 | void *argp1 = 0 ; | |
19310 | int res1 = 0 ; | |
19311 | PyObject *swig_obj[1] ; | |
19312 | ||
19313 | if (!args) SWIG_fail; | |
19314 | swig_obj[0] = args; | |
19315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19316 | if (!SWIG_IsOK(res1)) { | |
19317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19318 | } | |
19319 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
19323 | wxPyEndAllowThreads(__tstate); | |
19324 | if (PyErr_Occurred()) SWIG_fail; | |
19325 | } | |
19326 | { | |
19327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19328 | } | |
19329 | return resultobj; | |
19330 | fail: | |
19331 | return NULL; | |
19332 | } | |
19333 | ||
19334 | ||
19335 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19336 | PyObject *resultobj = 0; | |
19337 | wxDC *arg1 = (wxDC *) 0 ; | |
19338 | int result; | |
19339 | void *argp1 = 0 ; | |
19340 | int res1 = 0 ; | |
19341 | PyObject *swig_obj[1] ; | |
19342 | ||
19343 | if (!args) SWIG_fail; | |
19344 | swig_obj[0] = args; | |
19345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19346 | if (!SWIG_IsOK(res1)) { | |
19347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19348 | } | |
19349 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19350 | { | |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
19356 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19357 | return resultobj; | |
19358 | fail: | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
19363 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19364 | PyObject *resultobj = 0; | |
19365 | wxDC *arg1 = (wxDC *) 0 ; | |
19366 | wxSize result; | |
19367 | void *argp1 = 0 ; | |
19368 | int res1 = 0 ; | |
19369 | PyObject *swig_obj[1] ; | |
19370 | ||
19371 | if (!args) SWIG_fail; | |
19372 | swig_obj[0] = args; | |
19373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19374 | if (!SWIG_IsOK(res1)) { | |
19375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19376 | } | |
19377 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19378 | { | |
19379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19380 | result = ((wxDC const *)arg1)->GetPPI(); | |
19381 | wxPyEndAllowThreads(__tstate); | |
19382 | if (PyErr_Occurred()) SWIG_fail; | |
19383 | } | |
19384 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19385 | return resultobj; | |
19386 | fail: | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
19391 | SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19392 | PyObject *resultobj = 0; | |
19393 | wxDC *arg1 = (wxDC *) 0 ; | |
19394 | bool result; | |
19395 | void *argp1 = 0 ; | |
19396 | int res1 = 0 ; | |
19397 | PyObject *swig_obj[1] ; | |
19398 | ||
19399 | if (!args) SWIG_fail; | |
19400 | swig_obj[0] = args; | |
19401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19402 | if (!SWIG_IsOK(res1)) { | |
19403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19404 | } | |
19405 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19406 | { | |
19407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19408 | result = (bool)((wxDC const *)arg1)->Ok(); | |
19409 | wxPyEndAllowThreads(__tstate); | |
19410 | if (PyErr_Occurred()) SWIG_fail; | |
19411 | } | |
19412 | { | |
19413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19414 | } | |
19415 | return resultobj; | |
19416 | fail: | |
19417 | return NULL; | |
19418 | } | |
19419 | ||
19420 | ||
19421 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19422 | PyObject *resultobj = 0; | |
19423 | wxDC *arg1 = (wxDC *) 0 ; | |
19424 | int result; | |
19425 | void *argp1 = 0 ; | |
19426 | int res1 = 0 ; | |
19427 | PyObject *swig_obj[1] ; | |
19428 | ||
19429 | if (!args) SWIG_fail; | |
19430 | swig_obj[0] = args; | |
19431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19432 | if (!SWIG_IsOK(res1)) { | |
19433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19434 | } | |
19435 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19436 | { | |
19437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19438 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
19439 | wxPyEndAllowThreads(__tstate); | |
19440 | if (PyErr_Occurred()) SWIG_fail; | |
19441 | } | |
19442 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19443 | return resultobj; | |
19444 | fail: | |
19445 | return NULL; | |
19446 | } | |
19447 | ||
19448 | ||
19449 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19450 | PyObject *resultobj = 0; | |
19451 | wxDC *arg1 = (wxDC *) 0 ; | |
19452 | wxBrush *result = 0 ; | |
19453 | void *argp1 = 0 ; | |
19454 | int res1 = 0 ; | |
19455 | PyObject *swig_obj[1] ; | |
19456 | ||
19457 | if (!args) SWIG_fail; | |
19458 | swig_obj[0] = args; | |
19459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19460 | if (!SWIG_IsOK(res1)) { | |
19461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19462 | } | |
19463 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19464 | { | |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19466 | { |
554f62e9 RD |
19467 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
19468 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 19469 | } |
554f62e9 RD |
19470 | wxPyEndAllowThreads(__tstate); |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | { | |
19474 | wxBrush* resultptr = new wxBrush(*result); | |
19475 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
19476 | } | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
19483 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19484 | PyObject *resultobj = 0; | |
19485 | wxDC *arg1 = (wxDC *) 0 ; | |
19486 | wxBrush *result = 0 ; | |
19487 | void *argp1 = 0 ; | |
19488 | int res1 = 0 ; | |
19489 | PyObject *swig_obj[1] ; | |
19490 | ||
19491 | if (!args) SWIG_fail; | |
19492 | swig_obj[0] = args; | |
19493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19494 | if (!SWIG_IsOK(res1)) { | |
19495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19496 | } | |
19497 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19498 | { | |
19499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19500 | { |
554f62e9 RD |
19501 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
19502 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 19503 | } |
554f62e9 RD |
19504 | wxPyEndAllowThreads(__tstate); |
19505 | if (PyErr_Occurred()) SWIG_fail; | |
19506 | } | |
19507 | { | |
19508 | wxBrush* resultptr = new wxBrush(*result); | |
19509 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
19510 | } | |
19511 | return resultobj; | |
19512 | fail: | |
19513 | return NULL; | |
19514 | } | |
19515 | ||
19516 | ||
19517 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19518 | PyObject *resultobj = 0; | |
19519 | wxDC *arg1 = (wxDC *) 0 ; | |
19520 | wxFont *result = 0 ; | |
19521 | void *argp1 = 0 ; | |
19522 | int res1 = 0 ; | |
19523 | PyObject *swig_obj[1] ; | |
19524 | ||
19525 | if (!args) SWIG_fail; | |
19526 | swig_obj[0] = args; | |
19527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19528 | if (!SWIG_IsOK(res1)) { | |
19529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19530 | } | |
19531 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19532 | { | |
19533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19534 | { |
554f62e9 RD |
19535 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
19536 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 19537 | } |
554f62e9 RD |
19538 | wxPyEndAllowThreads(__tstate); |
19539 | if (PyErr_Occurred()) SWIG_fail; | |
19540 | } | |
19541 | { | |
19542 | wxFont* resultptr = new wxFont(*result); | |
19543 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19544 | } | |
19545 | return resultobj; | |
19546 | fail: | |
19547 | return NULL; | |
19548 | } | |
19549 | ||
19550 | ||
19551 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19552 | PyObject *resultobj = 0; | |
19553 | wxDC *arg1 = (wxDC *) 0 ; | |
19554 | wxPen *result = 0 ; | |
19555 | void *argp1 = 0 ; | |
19556 | int res1 = 0 ; | |
19557 | PyObject *swig_obj[1] ; | |
19558 | ||
19559 | if (!args) SWIG_fail; | |
19560 | swig_obj[0] = args; | |
19561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19562 | if (!SWIG_IsOK(res1)) { | |
19563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19564 | } | |
19565 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19566 | { | |
19567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19568 | { |
554f62e9 RD |
19569 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
19570 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 19571 | } |
554f62e9 RD |
19572 | wxPyEndAllowThreads(__tstate); |
19573 | if (PyErr_Occurred()) SWIG_fail; | |
19574 | } | |
19575 | { | |
19576 | wxPen* resultptr = new wxPen(*result); | |
19577 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
19578 | } | |
19579 | return resultobj; | |
19580 | fail: | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
19585 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19586 | PyObject *resultobj = 0; | |
19587 | wxDC *arg1 = (wxDC *) 0 ; | |
19588 | wxColour *result = 0 ; | |
19589 | void *argp1 = 0 ; | |
19590 | int res1 = 0 ; | |
19591 | PyObject *swig_obj[1] ; | |
19592 | ||
19593 | if (!args) SWIG_fail; | |
19594 | swig_obj[0] = args; | |
19595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19596 | if (!SWIG_IsOK(res1)) { | |
19597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19598 | } | |
19599 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19600 | { | |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19602 | { |
554f62e9 RD |
19603 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
19604 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 19605 | } |
554f62e9 RD |
19606 | wxPyEndAllowThreads(__tstate); |
19607 | if (PyErr_Occurred()) SWIG_fail; | |
19608 | } | |
19609 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
19610 | return resultobj; | |
19611 | fail: | |
19612 | return NULL; | |
19613 | } | |
19614 | ||
19615 | ||
19616 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19617 | PyObject *resultobj = 0; | |
19618 | wxDC *arg1 = (wxDC *) 0 ; | |
19619 | wxColour *result = 0 ; | |
19620 | void *argp1 = 0 ; | |
19621 | int res1 = 0 ; | |
19622 | PyObject *swig_obj[1] ; | |
19623 | ||
19624 | if (!args) SWIG_fail; | |
19625 | swig_obj[0] = args; | |
19626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19627 | if (!SWIG_IsOK(res1)) { | |
19628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19629 | } | |
19630 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19631 | { | |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19633 | { |
554f62e9 RD |
19634 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
19635 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 19636 | } |
554f62e9 RD |
19637 | wxPyEndAllowThreads(__tstate); |
19638 | if (PyErr_Occurred()) SWIG_fail; | |
19639 | } | |
19640 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
19641 | return resultobj; | |
19642 | fail: | |
19643 | return NULL; | |
19644 | } | |
19645 | ||
19646 | ||
19647 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19648 | PyObject *resultobj = 0; | |
19649 | wxDC *arg1 = (wxDC *) 0 ; | |
19650 | wxColour *arg2 = 0 ; | |
19651 | void *argp1 = 0 ; | |
19652 | int res1 = 0 ; | |
19653 | wxColour temp2 ; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | PyObject * obj1 = 0 ; | |
19656 | char * kwnames[] = { | |
19657 | (char *) "self",(char *) "colour", NULL | |
19658 | }; | |
19659 | ||
19660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
19661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19662 | if (!SWIG_IsOK(res1)) { | |
19663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19664 | } | |
19665 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19666 | { | |
19667 | arg2 = &temp2; | |
19668 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19669 | } | |
19670 | { | |
19671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19672 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
19673 | wxPyEndAllowThreads(__tstate); | |
19674 | if (PyErr_Occurred()) SWIG_fail; | |
19675 | } | |
19676 | resultobj = SWIG_Py_Void(); | |
19677 | return resultobj; | |
19678 | fail: | |
19679 | return NULL; | |
19680 | } | |
19681 | ||
19682 | ||
19683 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19684 | PyObject *resultobj = 0; | |
19685 | wxDC *arg1 = (wxDC *) 0 ; | |
19686 | wxColour *arg2 = 0 ; | |
19687 | void *argp1 = 0 ; | |
19688 | int res1 = 0 ; | |
19689 | wxColour temp2 ; | |
19690 | PyObject * obj0 = 0 ; | |
19691 | PyObject * obj1 = 0 ; | |
19692 | char * kwnames[] = { | |
19693 | (char *) "self",(char *) "colour", NULL | |
19694 | }; | |
19695 | ||
19696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
19697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19698 | if (!SWIG_IsOK(res1)) { | |
19699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19700 | } | |
19701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19702 | { | |
19703 | arg2 = &temp2; | |
19704 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19705 | } | |
19706 | { | |
19707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19708 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
19709 | wxPyEndAllowThreads(__tstate); | |
19710 | if (PyErr_Occurred()) SWIG_fail; | |
19711 | } | |
19712 | resultobj = SWIG_Py_Void(); | |
19713 | return resultobj; | |
19714 | fail: | |
19715 | return NULL; | |
19716 | } | |
19717 | ||
19718 | ||
19719 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19720 | PyObject *resultobj = 0; | |
19721 | wxDC *arg1 = (wxDC *) 0 ; | |
19722 | int result; | |
19723 | void *argp1 = 0 ; | |
19724 | int res1 = 0 ; | |
19725 | PyObject *swig_obj[1] ; | |
19726 | ||
19727 | if (!args) SWIG_fail; | |
19728 | swig_obj[0] = args; | |
19729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19730 | if (!SWIG_IsOK(res1)) { | |
19731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19732 | } | |
19733 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19734 | { | |
19735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19736 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
19737 | wxPyEndAllowThreads(__tstate); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
19740 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19741 | return resultobj; | |
19742 | fail: | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
19747 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19748 | PyObject *resultobj = 0; | |
19749 | wxDC *arg1 = (wxDC *) 0 ; | |
19750 | int arg2 ; | |
19751 | void *argp1 = 0 ; | |
19752 | int res1 = 0 ; | |
19753 | int val2 ; | |
19754 | int ecode2 = 0 ; | |
19755 | PyObject * obj0 = 0 ; | |
19756 | PyObject * obj1 = 0 ; | |
19757 | char * kwnames[] = { | |
19758 | (char *) "self",(char *) "mode", NULL | |
19759 | }; | |
19760 | ||
19761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
19762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19763 | if (!SWIG_IsOK(res1)) { | |
19764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19765 | } | |
19766 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19767 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19768 | if (!SWIG_IsOK(ecode2)) { | |
19769 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
19770 | } | |
19771 | arg2 = static_cast< int >(val2); | |
19772 | { | |
19773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19774 | (arg1)->SetMapMode(arg2); | |
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = SWIG_Py_Void(); | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19786 | PyObject *resultobj = 0; | |
19787 | wxDC *arg1 = (wxDC *) 0 ; | |
19788 | double *arg2 = (double *) 0 ; | |
19789 | double *arg3 = (double *) 0 ; | |
19790 | void *argp1 = 0 ; | |
19791 | int res1 = 0 ; | |
19792 | double temp2 ; | |
19793 | int res2 = SWIG_TMPOBJ ; | |
19794 | double temp3 ; | |
19795 | int res3 = SWIG_TMPOBJ ; | |
19796 | PyObject *swig_obj[1] ; | |
19797 | ||
19798 | arg2 = &temp2; | |
19799 | arg3 = &temp3; | |
19800 | if (!args) SWIG_fail; | |
19801 | swig_obj[0] = args; | |
19802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19803 | if (!SWIG_IsOK(res1)) { | |
19804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19805 | } | |
19806 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19807 | { | |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
19810 | wxPyEndAllowThreads(__tstate); | |
19811 | if (PyErr_Occurred()) SWIG_fail; | |
19812 | } | |
19813 | resultobj = SWIG_Py_Void(); | |
19814 | if (SWIG_IsTmpObj(res2)) { | |
19815 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19816 | } else { | |
19817 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19818 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19819 | } | |
19820 | if (SWIG_IsTmpObj(res3)) { | |
19821 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19822 | } else { | |
19823 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19824 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19825 | } | |
19826 | return resultobj; | |
19827 | fail: | |
19828 | return NULL; | |
19829 | } | |
19830 | ||
19831 | ||
19832 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19833 | PyObject *resultobj = 0; | |
19834 | wxDC *arg1 = (wxDC *) 0 ; | |
19835 | double arg2 ; | |
19836 | double arg3 ; | |
19837 | void *argp1 = 0 ; | |
19838 | int res1 = 0 ; | |
19839 | double val2 ; | |
19840 | int ecode2 = 0 ; | |
19841 | double val3 ; | |
19842 | int ecode3 = 0 ; | |
19843 | PyObject * obj0 = 0 ; | |
19844 | PyObject * obj1 = 0 ; | |
19845 | PyObject * obj2 = 0 ; | |
19846 | char * kwnames[] = { | |
19847 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19848 | }; | |
19849 | ||
19850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19851 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19852 | if (!SWIG_IsOK(res1)) { | |
19853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19854 | } | |
19855 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19856 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19857 | if (!SWIG_IsOK(ecode2)) { | |
19858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
19859 | } | |
19860 | arg2 = static_cast< double >(val2); | |
19861 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19862 | if (!SWIG_IsOK(ecode3)) { | |
19863 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
19864 | } | |
19865 | arg3 = static_cast< double >(val3); | |
19866 | { | |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | (arg1)->SetUserScale(arg2,arg3); | |
19869 | wxPyEndAllowThreads(__tstate); | |
19870 | if (PyErr_Occurred()) SWIG_fail; | |
19871 | } | |
19872 | resultobj = SWIG_Py_Void(); | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | return NULL; | |
19876 | } | |
19877 | ||
19878 | ||
19879 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19880 | PyObject *resultobj = 0; | |
19881 | wxDC *arg1 = (wxDC *) 0 ; | |
19882 | double *arg2 = (double *) 0 ; | |
19883 | double *arg3 = (double *) 0 ; | |
19884 | void *argp1 = 0 ; | |
19885 | int res1 = 0 ; | |
19886 | double temp2 ; | |
19887 | int res2 = SWIG_TMPOBJ ; | |
19888 | double temp3 ; | |
19889 | int res3 = SWIG_TMPOBJ ; | |
19890 | PyObject *swig_obj[1] ; | |
19891 | ||
19892 | arg2 = &temp2; | |
19893 | arg3 = &temp3; | |
19894 | if (!args) SWIG_fail; | |
19895 | swig_obj[0] = args; | |
19896 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19897 | if (!SWIG_IsOK(res1)) { | |
19898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19899 | } | |
19900 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19901 | { | |
19902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19903 | (arg1)->GetLogicalScale(arg2,arg3); | |
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | resultobj = SWIG_Py_Void(); | |
19908 | if (SWIG_IsTmpObj(res2)) { | |
19909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19910 | } else { | |
19911 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19913 | } | |
19914 | if (SWIG_IsTmpObj(res3)) { | |
19915 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19916 | } else { | |
19917 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19918 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19919 | } | |
19920 | return resultobj; | |
19921 | fail: | |
19922 | return NULL; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19927 | PyObject *resultobj = 0; | |
19928 | wxDC *arg1 = (wxDC *) 0 ; | |
19929 | double arg2 ; | |
19930 | double arg3 ; | |
19931 | void *argp1 = 0 ; | |
19932 | int res1 = 0 ; | |
19933 | double val2 ; | |
19934 | int ecode2 = 0 ; | |
19935 | double val3 ; | |
19936 | int ecode3 = 0 ; | |
19937 | PyObject * obj0 = 0 ; | |
19938 | PyObject * obj1 = 0 ; | |
19939 | PyObject * obj2 = 0 ; | |
19940 | char * kwnames[] = { | |
19941 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19942 | }; | |
19943 | ||
19944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19946 | if (!SWIG_IsOK(res1)) { | |
19947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19948 | } | |
19949 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19950 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19951 | if (!SWIG_IsOK(ecode2)) { | |
19952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
19953 | } | |
19954 | arg2 = static_cast< double >(val2); | |
19955 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19956 | if (!SWIG_IsOK(ecode3)) { | |
19957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
19958 | } | |
19959 | arg3 = static_cast< double >(val3); | |
19960 | { | |
19961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19962 | (arg1)->SetLogicalScale(arg2,arg3); | |
19963 | wxPyEndAllowThreads(__tstate); | |
19964 | if (PyErr_Occurred()) SWIG_fail; | |
19965 | } | |
19966 | resultobj = SWIG_Py_Void(); | |
19967 | return resultobj; | |
19968 | fail: | |
19969 | return NULL; | |
19970 | } | |
19971 | ||
19972 | ||
19973 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19974 | PyObject *resultobj = 0; | |
19975 | wxDC *arg1 = (wxDC *) 0 ; | |
19976 | wxPoint result; | |
19977 | void *argp1 = 0 ; | |
19978 | int res1 = 0 ; | |
19979 | PyObject *swig_obj[1] ; | |
19980 | ||
19981 | if (!args) SWIG_fail; | |
19982 | swig_obj[0] = args; | |
19983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19984 | if (!SWIG_IsOK(res1)) { | |
19985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19986 | } | |
19987 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19988 | { | |
19989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19990 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
19991 | wxPyEndAllowThreads(__tstate); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | } | |
19994 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
19995 | return resultobj; | |
19996 | fail: | |
19997 | return NULL; | |
19998 | } | |
19999 | ||
20000 | ||
20001 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20002 | PyObject *resultobj = 0; | |
20003 | wxDC *arg1 = (wxDC *) 0 ; | |
20004 | int *arg2 = (int *) 0 ; | |
20005 | int *arg3 = (int *) 0 ; | |
20006 | void *argp1 = 0 ; | |
20007 | int res1 = 0 ; | |
20008 | int temp2 ; | |
20009 | int res2 = SWIG_TMPOBJ ; | |
20010 | int temp3 ; | |
20011 | int res3 = SWIG_TMPOBJ ; | |
20012 | PyObject *swig_obj[1] ; | |
20013 | ||
20014 | arg2 = &temp2; | |
20015 | arg3 = &temp3; | |
20016 | if (!args) SWIG_fail; | |
20017 | swig_obj[0] = args; | |
20018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20019 | if (!SWIG_IsOK(res1)) { | |
20020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20021 | } | |
20022 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20023 | { | |
20024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20025 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
20026 | wxPyEndAllowThreads(__tstate); | |
20027 | if (PyErr_Occurred()) SWIG_fail; | |
20028 | } | |
20029 | resultobj = SWIG_Py_Void(); | |
20030 | if (SWIG_IsTmpObj(res2)) { | |
20031 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20032 | } else { | |
20033 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20034 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20035 | } | |
20036 | if (SWIG_IsTmpObj(res3)) { | |
20037 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20038 | } else { | |
20039 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20040 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20041 | } | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj = 0; | |
20050 | wxDC *arg1 = (wxDC *) 0 ; | |
20051 | int arg2 ; | |
20052 | int arg3 ; | |
20053 | void *argp1 = 0 ; | |
20054 | int res1 = 0 ; | |
20055 | int val2 ; | |
20056 | int ecode2 = 0 ; | |
20057 | int val3 ; | |
20058 | int ecode3 = 0 ; | |
20059 | PyObject * obj0 = 0 ; | |
20060 | PyObject * obj1 = 0 ; | |
20061 | PyObject * obj2 = 0 ; | |
20062 | char * kwnames[] = { | |
20063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20064 | }; | |
20065 | ||
20066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20068 | if (!SWIG_IsOK(res1)) { | |
20069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20070 | } | |
20071 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20073 | if (!SWIG_IsOK(ecode2)) { | |
20074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
20075 | } | |
20076 | arg2 = static_cast< int >(val2); | |
20077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20078 | if (!SWIG_IsOK(ecode3)) { | |
20079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
20080 | } | |
20081 | arg3 = static_cast< int >(val3); | |
20082 | { | |
20083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20084 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
20085 | wxPyEndAllowThreads(__tstate); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | } | |
20088 | resultobj = SWIG_Py_Void(); | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
20095 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20096 | PyObject *resultobj = 0; | |
20097 | wxDC *arg1 = (wxDC *) 0 ; | |
20098 | wxPoint *arg2 = 0 ; | |
20099 | void *argp1 = 0 ; | |
20100 | int res1 = 0 ; | |
20101 | wxPoint temp2 ; | |
20102 | PyObject * obj0 = 0 ; | |
20103 | PyObject * obj1 = 0 ; | |
20104 | char * kwnames[] = { | |
20105 | (char *) "self",(char *) "point", NULL | |
20106 | }; | |
20107 | ||
20108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20110 | if (!SWIG_IsOK(res1)) { | |
20111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20112 | } | |
20113 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20114 | { | |
20115 | arg2 = &temp2; | |
20116 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20117 | } | |
20118 | { | |
20119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20120 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
20121 | wxPyEndAllowThreads(__tstate); | |
20122 | if (PyErr_Occurred()) SWIG_fail; | |
20123 | } | |
20124 | resultobj = SWIG_Py_Void(); | |
20125 | return resultobj; | |
20126 | fail: | |
20127 | return NULL; | |
20128 | } | |
20129 | ||
20130 | ||
20131 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20132 | PyObject *resultobj = 0; | |
20133 | wxDC *arg1 = (wxDC *) 0 ; | |
20134 | wxPoint result; | |
20135 | void *argp1 = 0 ; | |
20136 | int res1 = 0 ; | |
20137 | PyObject *swig_obj[1] ; | |
20138 | ||
20139 | if (!args) SWIG_fail; | |
20140 | swig_obj[0] = args; | |
20141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20142 | if (!SWIG_IsOK(res1)) { | |
20143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20144 | } | |
20145 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20146 | { | |
20147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20148 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
20149 | wxPyEndAllowThreads(__tstate); | |
20150 | if (PyErr_Occurred()) SWIG_fail; | |
20151 | } | |
20152 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
20153 | return resultobj; | |
20154 | fail: | |
20155 | return NULL; | |
20156 | } | |
20157 | ||
20158 | ||
20159 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20160 | PyObject *resultobj = 0; | |
20161 | wxDC *arg1 = (wxDC *) 0 ; | |
20162 | int *arg2 = (int *) 0 ; | |
20163 | int *arg3 = (int *) 0 ; | |
20164 | void *argp1 = 0 ; | |
20165 | int res1 = 0 ; | |
20166 | int temp2 ; | |
20167 | int res2 = SWIG_TMPOBJ ; | |
20168 | int temp3 ; | |
20169 | int res3 = SWIG_TMPOBJ ; | |
20170 | PyObject *swig_obj[1] ; | |
20171 | ||
20172 | arg2 = &temp2; | |
20173 | arg3 = &temp3; | |
20174 | if (!args) SWIG_fail; | |
20175 | swig_obj[0] = args; | |
20176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20177 | if (!SWIG_IsOK(res1)) { | |
20178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20179 | } | |
20180 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20181 | { | |
20182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20183 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
20184 | wxPyEndAllowThreads(__tstate); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
20186 | } | |
20187 | resultobj = SWIG_Py_Void(); | |
20188 | if (SWIG_IsTmpObj(res2)) { | |
20189 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20190 | } else { | |
20191 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20192 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20193 | } | |
20194 | if (SWIG_IsTmpObj(res3)) { | |
20195 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20196 | } else { | |
20197 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20198 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20199 | } | |
20200 | return resultobj; | |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
20206 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20207 | PyObject *resultobj = 0; | |
20208 | wxDC *arg1 = (wxDC *) 0 ; | |
20209 | int arg2 ; | |
20210 | int arg3 ; | |
20211 | void *argp1 = 0 ; | |
20212 | int res1 = 0 ; | |
20213 | int val2 ; | |
20214 | int ecode2 = 0 ; | |
20215 | int val3 ; | |
20216 | int ecode3 = 0 ; | |
20217 | PyObject * obj0 = 0 ; | |
20218 | PyObject * obj1 = 0 ; | |
20219 | PyObject * obj2 = 0 ; | |
20220 | char * kwnames[] = { | |
20221 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20222 | }; | |
20223 | ||
20224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20226 | if (!SWIG_IsOK(res1)) { | |
20227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20228 | } | |
20229 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20230 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20231 | if (!SWIG_IsOK(ecode2)) { | |
20232 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
20233 | } | |
20234 | arg2 = static_cast< int >(val2); | |
20235 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20236 | if (!SWIG_IsOK(ecode3)) { | |
20237 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
20238 | } | |
20239 | arg3 = static_cast< int >(val3); | |
20240 | { | |
20241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20242 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
20243 | wxPyEndAllowThreads(__tstate); | |
20244 | if (PyErr_Occurred()) SWIG_fail; | |
20245 | } | |
20246 | resultobj = SWIG_Py_Void(); | |
20247 | return resultobj; | |
20248 | fail: | |
20249 | return NULL; | |
20250 | } | |
20251 | ||
20252 | ||
20253 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20254 | PyObject *resultobj = 0; | |
20255 | wxDC *arg1 = (wxDC *) 0 ; | |
20256 | wxPoint *arg2 = 0 ; | |
20257 | void *argp1 = 0 ; | |
20258 | int res1 = 0 ; | |
20259 | wxPoint temp2 ; | |
20260 | PyObject * obj0 = 0 ; | |
20261 | PyObject * obj1 = 0 ; | |
20262 | char * kwnames[] = { | |
20263 | (char *) "self",(char *) "point", NULL | |
20264 | }; | |
20265 | ||
20266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20268 | if (!SWIG_IsOK(res1)) { | |
20269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20270 | } | |
20271 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20272 | { | |
20273 | arg2 = &temp2; | |
20274 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20275 | } | |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
20279 | wxPyEndAllowThreads(__tstate); | |
20280 | if (PyErr_Occurred()) SWIG_fail; | |
20281 | } | |
20282 | resultobj = SWIG_Py_Void(); | |
20283 | return resultobj; | |
20284 | fail: | |
20285 | return NULL; | |
20286 | } | |
20287 | ||
20288 | ||
20289 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20290 | PyObject *resultobj = 0; | |
20291 | wxDC *arg1 = (wxDC *) 0 ; | |
20292 | bool arg2 ; | |
20293 | bool arg3 ; | |
20294 | void *argp1 = 0 ; | |
20295 | int res1 = 0 ; | |
20296 | bool val2 ; | |
20297 | int ecode2 = 0 ; | |
20298 | bool val3 ; | |
20299 | int ecode3 = 0 ; | |
20300 | PyObject * obj0 = 0 ; | |
20301 | PyObject * obj1 = 0 ; | |
20302 | PyObject * obj2 = 0 ; | |
20303 | char * kwnames[] = { | |
20304 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
20305 | }; | |
20306 | ||
20307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20309 | if (!SWIG_IsOK(res1)) { | |
20310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20311 | } | |
20312 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20313 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20314 | if (!SWIG_IsOK(ecode2)) { | |
20315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
20316 | } | |
20317 | arg2 = static_cast< bool >(val2); | |
20318 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
20319 | if (!SWIG_IsOK(ecode3)) { | |
20320 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
20321 | } | |
20322 | arg3 = static_cast< bool >(val3); | |
20323 | { | |
20324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20325 | (arg1)->SetAxisOrientation(arg2,arg3); | |
20326 | wxPyEndAllowThreads(__tstate); | |
20327 | if (PyErr_Occurred()) SWIG_fail; | |
20328 | } | |
20329 | resultobj = SWIG_Py_Void(); | |
20330 | return resultobj; | |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
20336 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20337 | PyObject *resultobj = 0; | |
20338 | wxDC *arg1 = (wxDC *) 0 ; | |
20339 | int result; | |
20340 | void *argp1 = 0 ; | |
20341 | int res1 = 0 ; | |
20342 | PyObject *swig_obj[1] ; | |
20343 | ||
20344 | if (!args) SWIG_fail; | |
20345 | swig_obj[0] = args; | |
20346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20347 | if (!SWIG_IsOK(res1)) { | |
20348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20349 | } | |
20350 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20351 | { | |
20352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20353 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
20354 | wxPyEndAllowThreads(__tstate); | |
20355 | if (PyErr_Occurred()) SWIG_fail; | |
20356 | } | |
20357 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20358 | return resultobj; | |
20359 | fail: | |
20360 | return NULL; | |
20361 | } | |
20362 | ||
20363 | ||
20364 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20365 | PyObject *resultobj = 0; | |
20366 | wxDC *arg1 = (wxDC *) 0 ; | |
20367 | int arg2 ; | |
20368 | void *argp1 = 0 ; | |
20369 | int res1 = 0 ; | |
20370 | int val2 ; | |
20371 | int ecode2 = 0 ; | |
20372 | PyObject * obj0 = 0 ; | |
20373 | PyObject * obj1 = 0 ; | |
20374 | char * kwnames[] = { | |
20375 | (char *) "self",(char *) "function", NULL | |
20376 | }; | |
20377 | ||
20378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
20379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20380 | if (!SWIG_IsOK(res1)) { | |
20381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20382 | } | |
20383 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20384 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20385 | if (!SWIG_IsOK(ecode2)) { | |
20386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
20387 | } | |
20388 | arg2 = static_cast< int >(val2); | |
20389 | { | |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | (arg1)->SetLogicalFunction(arg2); | |
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | resultobj = SWIG_Py_Void(); | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20403 | PyObject *resultobj = 0; | |
20404 | wxDC *arg1 = (wxDC *) 0 ; | |
20405 | void *argp1 = 0 ; | |
20406 | int res1 = 0 ; | |
20407 | PyObject *swig_obj[1] ; | |
20408 | ||
20409 | if (!args) SWIG_fail; | |
20410 | swig_obj[0] = args; | |
20411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20412 | if (!SWIG_IsOK(res1)) { | |
20413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20414 | } | |
20415 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | (arg1)->ComputeScaleAndOrigin(); | |
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | resultobj = SWIG_Py_Void(); | |
20423 | return resultobj; | |
20424 | fail: | |
20425 | return NULL; | |
20426 | } | |
20427 | ||
20428 | ||
20429 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20430 | PyObject *resultobj = 0; | |
20431 | wxDC *arg1 = (wxDC *) 0 ; | |
20432 | int arg2 ; | |
20433 | int arg3 ; | |
20434 | void *argp1 = 0 ; | |
20435 | int res1 = 0 ; | |
20436 | int val2 ; | |
20437 | int ecode2 = 0 ; | |
20438 | int val3 ; | |
20439 | int ecode3 = 0 ; | |
20440 | PyObject * obj0 = 0 ; | |
20441 | PyObject * obj1 = 0 ; | |
20442 | PyObject * obj2 = 0 ; | |
20443 | char * kwnames[] = { | |
20444 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20445 | }; | |
20446 | ||
20447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20449 | if (!SWIG_IsOK(res1)) { | |
20450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20451 | } | |
20452 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20453 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20454 | if (!SWIG_IsOK(ecode2)) { | |
20455 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
20456 | } | |
20457 | arg2 = static_cast< int >(val2); | |
20458 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20459 | if (!SWIG_IsOK(ecode3)) { | |
20460 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
20461 | } | |
20462 | arg3 = static_cast< int >(val3); | |
20463 | { | |
20464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20465 | (arg1)->CalcBoundingBox(arg2,arg3); | |
20466 | wxPyEndAllowThreads(__tstate); | |
20467 | if (PyErr_Occurred()) SWIG_fail; | |
20468 | } | |
20469 | resultobj = SWIG_Py_Void(); | |
20470 | return resultobj; | |
20471 | fail: | |
20472 | return NULL; | |
20473 | } | |
20474 | ||
20475 | ||
20476 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20477 | PyObject *resultobj = 0; | |
20478 | wxDC *arg1 = (wxDC *) 0 ; | |
20479 | wxPoint *arg2 = 0 ; | |
20480 | void *argp1 = 0 ; | |
20481 | int res1 = 0 ; | |
20482 | wxPoint temp2 ; | |
20483 | PyObject * obj0 = 0 ; | |
20484 | PyObject * obj1 = 0 ; | |
20485 | char * kwnames[] = { | |
20486 | (char *) "self",(char *) "point", NULL | |
20487 | }; | |
20488 | ||
20489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20491 | if (!SWIG_IsOK(res1)) { | |
20492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20493 | } | |
20494 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20495 | { | |
20496 | arg2 = &temp2; | |
20497 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20498 | } | |
20499 | { | |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20501 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
20502 | wxPyEndAllowThreads(__tstate); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | } | |
20505 | resultobj = SWIG_Py_Void(); | |
20506 | return resultobj; | |
20507 | fail: | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
20512 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20513 | PyObject *resultobj = 0; | |
20514 | wxDC *arg1 = (wxDC *) 0 ; | |
20515 | void *argp1 = 0 ; | |
20516 | int res1 = 0 ; | |
20517 | PyObject *swig_obj[1] ; | |
20518 | ||
20519 | if (!args) SWIG_fail; | |
20520 | swig_obj[0] = args; | |
20521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20522 | if (!SWIG_IsOK(res1)) { | |
20523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20524 | } | |
20525 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20526 | { | |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20528 | (arg1)->ResetBoundingBox(); | |
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
20532 | resultobj = SWIG_Py_Void(); | |
20533 | return resultobj; | |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
20539 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20540 | PyObject *resultobj = 0; | |
20541 | wxDC *arg1 = (wxDC *) 0 ; | |
20542 | int result; | |
20543 | void *argp1 = 0 ; | |
20544 | int res1 = 0 ; | |
20545 | PyObject *swig_obj[1] ; | |
20546 | ||
20547 | if (!args) SWIG_fail; | |
20548 | swig_obj[0] = args; | |
20549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20550 | if (!SWIG_IsOK(res1)) { | |
20551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20552 | } | |
20553 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20554 | { | |
20555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20556 | result = (int)((wxDC const *)arg1)->MinX(); | |
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
20560 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20568 | PyObject *resultobj = 0; | |
20569 | wxDC *arg1 = (wxDC *) 0 ; | |
20570 | int result; | |
20571 | void *argp1 = 0 ; | |
20572 | int res1 = 0 ; | |
20573 | PyObject *swig_obj[1] ; | |
20574 | ||
20575 | if (!args) SWIG_fail; | |
20576 | swig_obj[0] = args; | |
20577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20578 | if (!SWIG_IsOK(res1)) { | |
20579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20580 | } | |
20581 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20582 | { | |
20583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20584 | result = (int)((wxDC const *)arg1)->MaxX(); | |
20585 | wxPyEndAllowThreads(__tstate); | |
20586 | if (PyErr_Occurred()) SWIG_fail; | |
20587 | } | |
20588 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20589 | return resultobj; | |
20590 | fail: | |
20591 | return NULL; | |
20592 | } | |
20593 | ||
20594 | ||
20595 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20596 | PyObject *resultobj = 0; | |
20597 | wxDC *arg1 = (wxDC *) 0 ; | |
20598 | int result; | |
20599 | void *argp1 = 0 ; | |
20600 | int res1 = 0 ; | |
20601 | PyObject *swig_obj[1] ; | |
20602 | ||
20603 | if (!args) SWIG_fail; | |
20604 | swig_obj[0] = args; | |
20605 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20606 | if (!SWIG_IsOK(res1)) { | |
20607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20608 | } | |
20609 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20610 | { | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | result = (int)((wxDC const *)arg1)->MinY(); | |
20613 | wxPyEndAllowThreads(__tstate); | |
20614 | if (PyErr_Occurred()) SWIG_fail; | |
20615 | } | |
20616 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20617 | return resultobj; | |
20618 | fail: | |
20619 | return NULL; | |
20620 | } | |
20621 | ||
20622 | ||
20623 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20624 | PyObject *resultobj = 0; | |
20625 | wxDC *arg1 = (wxDC *) 0 ; | |
20626 | int result; | |
20627 | void *argp1 = 0 ; | |
20628 | int res1 = 0 ; | |
20629 | PyObject *swig_obj[1] ; | |
20630 | ||
20631 | if (!args) SWIG_fail; | |
20632 | swig_obj[0] = args; | |
20633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20634 | if (!SWIG_IsOK(res1)) { | |
20635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20636 | } | |
20637 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20638 | { | |
20639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20640 | result = (int)((wxDC const *)arg1)->MaxY(); | |
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20645 | return resultobj; | |
20646 | fail: | |
20647 | return NULL; | |
20648 | } | |
20649 | ||
20650 | ||
20651 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20652 | PyObject *resultobj = 0; | |
20653 | wxDC *arg1 = (wxDC *) 0 ; | |
20654 | int *arg2 = (int *) 0 ; | |
20655 | int *arg3 = (int *) 0 ; | |
20656 | int *arg4 = (int *) 0 ; | |
20657 | int *arg5 = (int *) 0 ; | |
20658 | void *argp1 = 0 ; | |
20659 | int res1 = 0 ; | |
20660 | int temp2 ; | |
20661 | int res2 = SWIG_TMPOBJ ; | |
20662 | int temp3 ; | |
20663 | int res3 = SWIG_TMPOBJ ; | |
20664 | int temp4 ; | |
20665 | int res4 = SWIG_TMPOBJ ; | |
20666 | int temp5 ; | |
20667 | int res5 = SWIG_TMPOBJ ; | |
20668 | PyObject *swig_obj[1] ; | |
20669 | ||
20670 | arg2 = &temp2; | |
20671 | arg3 = &temp3; | |
20672 | arg4 = &temp4; | |
20673 | arg5 = &temp5; | |
20674 | if (!args) SWIG_fail; | |
20675 | swig_obj[0] = args; | |
20676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20677 | if (!SWIG_IsOK(res1)) { | |
20678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20679 | } | |
20680 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | resultobj = SWIG_Py_Void(); | |
20688 | if (SWIG_IsTmpObj(res2)) { | |
20689 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20690 | } else { | |
20691 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20692 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20693 | } | |
20694 | if (SWIG_IsTmpObj(res3)) { | |
20695 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20696 | } else { | |
20697 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20698 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20699 | } | |
20700 | if (SWIG_IsTmpObj(res4)) { | |
20701 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20702 | } else { | |
20703 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20704 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20705 | } | |
20706 | if (SWIG_IsTmpObj(res5)) { | |
20707 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20708 | } else { | |
20709 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20710 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20711 | } | |
20712 | return resultobj; | |
20713 | fail: | |
20714 | return NULL; | |
20715 | } | |
20716 | ||
20717 | ||
20718 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20719 | PyObject *resultobj = 0; | |
20720 | wxDC *arg1 = (wxDC *) 0 ; | |
20721 | long result; | |
20722 | void *argp1 = 0 ; | |
20723 | int res1 = 0 ; | |
20724 | PyObject *swig_obj[1] ; | |
20725 | ||
20726 | if (!args) SWIG_fail; | |
20727 | swig_obj[0] = args; | |
20728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20729 | if (!SWIG_IsOK(res1)) { | |
20730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20731 | } | |
20732 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20733 | { | |
20734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20735 | result = (long)(arg1)->GetHDC(); | |
20736 | wxPyEndAllowThreads(__tstate); | |
20737 | if (PyErr_Occurred()) SWIG_fail; | |
20738 | } | |
20739 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
20740 | return resultobj; | |
20741 | fail: | |
20742 | return NULL; | |
20743 | } | |
20744 | ||
20745 | ||
20746 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20747 | PyObject *resultobj = 0; | |
20748 | wxDC *arg1 = (wxDC *) 0 ; | |
20749 | PyObject *arg2 = (PyObject *) 0 ; | |
20750 | PyObject *arg3 = (PyObject *) 0 ; | |
20751 | PyObject *arg4 = (PyObject *) 0 ; | |
20752 | PyObject *result = 0 ; | |
20753 | void *argp1 = 0 ; | |
20754 | int res1 = 0 ; | |
20755 | PyObject * obj0 = 0 ; | |
20756 | PyObject * obj1 = 0 ; | |
20757 | PyObject * obj2 = 0 ; | |
20758 | PyObject * obj3 = 0 ; | |
20759 | char * kwnames[] = { | |
20760 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20761 | }; | |
20762 | ||
20763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20765 | if (!SWIG_IsOK(res1)) { | |
20766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20767 | } | |
20768 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20769 | arg2 = obj1; | |
20770 | arg3 = obj2; | |
20771 | arg4 = obj3; | |
20772 | { | |
20773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20774 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
20775 | wxPyEndAllowThreads(__tstate); | |
20776 | if (PyErr_Occurred()) SWIG_fail; | |
20777 | } | |
20778 | resultobj = result; | |
20779 | return resultobj; | |
20780 | fail: | |
20781 | return NULL; | |
20782 | } | |
20783 | ||
20784 | ||
20785 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20786 | PyObject *resultobj = 0; | |
20787 | wxDC *arg1 = (wxDC *) 0 ; | |
20788 | PyObject *arg2 = (PyObject *) 0 ; | |
20789 | PyObject *arg3 = (PyObject *) 0 ; | |
20790 | PyObject *arg4 = (PyObject *) 0 ; | |
20791 | PyObject *result = 0 ; | |
20792 | void *argp1 = 0 ; | |
20793 | int res1 = 0 ; | |
20794 | PyObject * obj0 = 0 ; | |
20795 | PyObject * obj1 = 0 ; | |
20796 | PyObject * obj2 = 0 ; | |
20797 | PyObject * obj3 = 0 ; | |
20798 | char * kwnames[] = { | |
20799 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20800 | }; | |
20801 | ||
20802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20804 | if (!SWIG_IsOK(res1)) { | |
20805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20806 | } | |
20807 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20808 | arg2 = obj1; | |
20809 | arg3 = obj2; | |
20810 | arg4 = obj3; | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
20814 | wxPyEndAllowThreads(__tstate); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | } | |
20817 | resultobj = result; | |
20818 | return resultobj; | |
20819 | fail: | |
20820 | return NULL; | |
20821 | } | |
20822 | ||
20823 | ||
20824 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20825 | PyObject *resultobj = 0; | |
20826 | wxDC *arg1 = (wxDC *) 0 ; | |
20827 | PyObject *arg2 = (PyObject *) 0 ; | |
20828 | PyObject *arg3 = (PyObject *) 0 ; | |
20829 | PyObject *arg4 = (PyObject *) 0 ; | |
20830 | PyObject *result = 0 ; | |
20831 | void *argp1 = 0 ; | |
20832 | int res1 = 0 ; | |
20833 | PyObject * obj0 = 0 ; | |
20834 | PyObject * obj1 = 0 ; | |
20835 | PyObject * obj2 = 0 ; | |
20836 | PyObject * obj3 = 0 ; | |
20837 | char * kwnames[] = { | |
20838 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20839 | }; | |
20840 | ||
20841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20843 | if (!SWIG_IsOK(res1)) { | |
20844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20845 | } | |
20846 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20847 | arg2 = obj1; | |
20848 | arg3 = obj2; | |
20849 | arg4 = obj3; | |
20850 | { | |
20851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20852 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
20853 | wxPyEndAllowThreads(__tstate); | |
20854 | if (PyErr_Occurred()) SWIG_fail; | |
20855 | } | |
20856 | resultobj = result; | |
20857 | return resultobj; | |
20858 | fail: | |
20859 | return NULL; | |
20860 | } | |
20861 | ||
20862 | ||
20863 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20864 | PyObject *resultobj = 0; | |
20865 | wxDC *arg1 = (wxDC *) 0 ; | |
20866 | PyObject *arg2 = (PyObject *) 0 ; | |
20867 | PyObject *arg3 = (PyObject *) 0 ; | |
20868 | PyObject *arg4 = (PyObject *) 0 ; | |
20869 | PyObject *result = 0 ; | |
20870 | void *argp1 = 0 ; | |
20871 | int res1 = 0 ; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | PyObject * obj1 = 0 ; | |
20874 | PyObject * obj2 = 0 ; | |
20875 | PyObject * obj3 = 0 ; | |
20876 | char * kwnames[] = { | |
20877 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20878 | }; | |
20879 | ||
20880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20882 | if (!SWIG_IsOK(res1)) { | |
20883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20884 | } | |
20885 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20886 | arg2 = obj1; | |
20887 | arg3 = obj2; | |
20888 | arg4 = obj3; | |
20889 | { | |
20890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20891 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
20892 | wxPyEndAllowThreads(__tstate); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | resultobj = result; | |
20896 | return resultobj; | |
20897 | fail: | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20903 | PyObject *resultobj = 0; | |
20904 | wxDC *arg1 = (wxDC *) 0 ; | |
20905 | PyObject *arg2 = (PyObject *) 0 ; | |
20906 | PyObject *arg3 = (PyObject *) 0 ; | |
20907 | PyObject *arg4 = (PyObject *) 0 ; | |
20908 | PyObject *result = 0 ; | |
20909 | void *argp1 = 0 ; | |
20910 | int res1 = 0 ; | |
20911 | PyObject * obj0 = 0 ; | |
20912 | PyObject * obj1 = 0 ; | |
20913 | PyObject * obj2 = 0 ; | |
20914 | PyObject * obj3 = 0 ; | |
20915 | char * kwnames[] = { | |
20916 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20917 | }; | |
20918 | ||
20919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20921 | if (!SWIG_IsOK(res1)) { | |
20922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20923 | } | |
20924 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20925 | arg2 = obj1; | |
20926 | arg3 = obj2; | |
20927 | arg4 = obj3; | |
20928 | { | |
20929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20930 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | resultobj = result; | |
20935 | return resultobj; | |
20936 | fail: | |
20937 | return NULL; | |
20938 | } | |
20939 | ||
20940 | ||
20941 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20942 | PyObject *resultobj = 0; | |
20943 | wxDC *arg1 = (wxDC *) 0 ; | |
20944 | PyObject *arg2 = (PyObject *) 0 ; | |
20945 | PyObject *arg3 = (PyObject *) 0 ; | |
20946 | PyObject *arg4 = (PyObject *) 0 ; | |
20947 | PyObject *arg5 = (PyObject *) 0 ; | |
20948 | PyObject *result = 0 ; | |
20949 | void *argp1 = 0 ; | |
20950 | int res1 = 0 ; | |
20951 | PyObject * obj0 = 0 ; | |
20952 | PyObject * obj1 = 0 ; | |
20953 | PyObject * obj2 = 0 ; | |
20954 | PyObject * obj3 = 0 ; | |
20955 | PyObject * obj4 = 0 ; | |
20956 | char * kwnames[] = { | |
20957 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
20958 | }; | |
20959 | ||
20960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20962 | if (!SWIG_IsOK(res1)) { | |
20963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20964 | } | |
20965 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20966 | arg2 = obj1; | |
20967 | arg3 = obj2; | |
20968 | arg4 = obj3; | |
20969 | arg5 = obj4; | |
20970 | { | |
20971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20972 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
20973 | wxPyEndAllowThreads(__tstate); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
20976 | resultobj = result; | |
20977 | return resultobj; | |
20978 | fail: | |
20979 | return NULL; | |
20980 | } | |
20981 | ||
20982 | ||
20983 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20984 | PyObject *obj; | |
20985 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20986 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
20987 | return SWIG_Py_Void(); | |
20988 | } | |
20989 | ||
20990 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20991 | PyObject *resultobj = 0; | |
20992 | wxMemoryDC *result = 0 ; | |
20993 | ||
20994 | if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail; | |
20995 | { | |
20996 | if (!wxPyCheckForApp()) SWIG_fail; | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxMemoryDC *)new wxMemoryDC(); | |
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj = 0; | |
21011 | wxDC *arg1 = (wxDC *) 0 ; | |
21012 | wxMemoryDC *result = 0 ; | |
21013 | void *argp1 = 0 ; | |
21014 | int res1 = 0 ; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | char * kwnames[] = { | |
21017 | (char *) "oldDC", NULL | |
21018 | }; | |
21019 | ||
21020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
21021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21022 | if (!SWIG_IsOK(res1)) { | |
21023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21024 | } | |
21025 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21026 | { | |
21027 | if (!wxPyCheckForApp()) SWIG_fail; | |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
21034 | return resultobj; | |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj = 0; | |
21042 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
21043 | wxBitmap *arg2 = 0 ; | |
21044 | void *argp1 = 0 ; | |
21045 | int res1 = 0 ; | |
21046 | void *argp2 = 0 ; | |
21047 | int res2 = 0 ; | |
21048 | PyObject * obj0 = 0 ; | |
21049 | PyObject * obj1 = 0 ; | |
21050 | char * kwnames[] = { | |
21051 | (char *) "self",(char *) "bitmap", NULL | |
21052 | }; | |
21053 | ||
21054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
21055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
21056 | if (!SWIG_IsOK(res1)) { | |
21057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
21058 | } | |
21059 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
21060 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21061 | if (!SWIG_IsOK(res2)) { | |
21062 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21063 | } | |
21064 | if (!argp2) { | |
21065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21066 | } | |
21067 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | resultobj = SWIG_Py_Void(); | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21082 | PyObject *obj; | |
21083 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21084 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
21085 | return SWIG_Py_Void(); | |
21086 | } | |
21087 | ||
21088 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21089 | return SWIG_Python_InitShadowInstance(args); | |
21090 | } | |
21091 | ||
21092 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
21093 | PyObject *resultobj = 0; | |
21094 | wxDC *arg1 = (wxDC *) 0 ; | |
21095 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
21096 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
21097 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21098 | wxBufferedDC *result = 0 ; | |
21099 | void *argp1 = 0 ; | |
21100 | int res1 = 0 ; | |
21101 | void *argp2 = 0 ; | |
21102 | int res2 = 0 ; | |
21103 | int val3 ; | |
21104 | int ecode3 = 0 ; | |
21105 | ||
21106 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
21107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21108 | if (!SWIG_IsOK(res1)) { | |
21109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21110 | } | |
21111 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21112 | if (swig_obj[1]) { | |
21113 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21114 | if (!SWIG_IsOK(res2)) { | |
21115 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21116 | } |
554f62e9 RD |
21117 | if (!argp2) { |
21118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21119 | } |
554f62e9 RD |
21120 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
21121 | } | |
21122 | if (swig_obj[2]) { | |
21123 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
21124 | if (!SWIG_IsOK(ecode3)) { | |
21125 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
21126 | } | |
21127 | arg3 = static_cast< int >(val3); | |
21128 | } | |
21129 | { | |
21130 | if (!wxPyCheckForApp()) SWIG_fail; | |
21131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21132 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
21133 | wxPyEndAllowThreads(__tstate); | |
21134 | if (PyErr_Occurred()) SWIG_fail; | |
21135 | } | |
21136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
21137 | return resultobj; | |
21138 | fail: | |
21139 | return NULL; | |
21140 | } | |
21141 | ||
21142 | ||
21143 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
21144 | PyObject *resultobj = 0; | |
21145 | wxDC *arg1 = (wxDC *) 0 ; | |
21146 | wxSize *arg2 = 0 ; | |
21147 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21148 | wxBufferedDC *result = 0 ; | |
21149 | void *argp1 = 0 ; | |
21150 | int res1 = 0 ; | |
21151 | wxSize temp2 ; | |
21152 | int val3 ; | |
21153 | int ecode3 = 0 ; | |
21154 | ||
21155 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
21156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21157 | if (!SWIG_IsOK(res1)) { | |
21158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21159 | } | |
21160 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21161 | { | |
21162 | arg2 = &temp2; | |
21163 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
21164 | } | |
21165 | if (swig_obj[2]) { | |
21166 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
21167 | if (!SWIG_IsOK(ecode3)) { | |
21168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
21169 | } | |
21170 | arg3 = static_cast< int >(val3); | |
21171 | } | |
21172 | { | |
21173 | if (!wxPyCheckForApp()) SWIG_fail; | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
21180 | return resultobj; | |
21181 | fail: | |
21182 | return NULL; | |
21183 | } | |
21184 | ||
21185 | ||
21186 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
21187 | int argc; | |
21188 | PyObject *argv[4]; | |
21189 | ||
21190 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; | |
21191 | --argc; | |
21192 | if ((argc >= 1) && (argc <= 3)) { | |
21193 | int _v = 0; | |
21194 | if (argc > 1) { | |
21195 | { | |
21196 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
21197 | _v = SWIG_CheckState(res); | |
21198 | } | |
21199 | if (!_v) goto check_1; | |
093d3ff1 | 21200 | } |
554f62e9 RD |
21201 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
21202 | } | |
21203 | check_1: | |
21204 | ||
21205 | if ((argc >= 2) && (argc <= 3)) { | |
21206 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
21207 | } | |
21208 | ||
21209 | fail: | |
21210 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
21211 | return NULL; | |
21212 | } | |
21213 | ||
21214 | ||
21215 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21216 | PyObject *resultobj = 0; | |
21217 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
21218 | void *argp1 = 0 ; | |
21219 | int res1 = 0 ; | |
21220 | PyObject *swig_obj[1] ; | |
21221 | ||
21222 | if (!args) SWIG_fail; | |
21223 | swig_obj[0] = args; | |
21224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
21225 | if (!SWIG_IsOK(res1)) { | |
21226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
21227 | } | |
21228 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
21229 | { | |
21230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21231 | delete arg1; | |
21232 | ||
21233 | wxPyEndAllowThreads(__tstate); | |
21234 | if (PyErr_Occurred()) SWIG_fail; | |
21235 | } | |
21236 | resultobj = SWIG_Py_Void(); | |
21237 | return resultobj; | |
21238 | fail: | |
21239 | return NULL; | |
21240 | } | |
21241 | ||
21242 | ||
21243 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21244 | PyObject *resultobj = 0; | |
21245 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
21246 | void *argp1 = 0 ; | |
21247 | int res1 = 0 ; | |
21248 | PyObject *swig_obj[1] ; | |
21249 | ||
21250 | if (!args) SWIG_fail; | |
21251 | swig_obj[0] = args; | |
21252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
21253 | if (!SWIG_IsOK(res1)) { | |
21254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
21255 | } | |
21256 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
21257 | { | |
21258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21259 | (arg1)->UnMask(); | |
21260 | wxPyEndAllowThreads(__tstate); | |
21261 | if (PyErr_Occurred()) SWIG_fail; | |
21262 | } | |
21263 | resultobj = SWIG_Py_Void(); | |
21264 | return resultobj; | |
21265 | fail: | |
21266 | return NULL; | |
21267 | } | |
21268 | ||
21269 | ||
21270 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21271 | PyObject *obj; | |
21272 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21273 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
21274 | return SWIG_Py_Void(); | |
21275 | } | |
21276 | ||
21277 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21278 | return SWIG_Python_InitShadowInstance(args); | |
21279 | } | |
21280 | ||
21281 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21282 | PyObject *resultobj = 0; | |
21283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21284 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
21285 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
21286 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21287 | wxBufferedPaintDC *result = 0 ; | |
21288 | void *argp1 = 0 ; | |
21289 | int res1 = 0 ; | |
21290 | void *argp2 = 0 ; | |
21291 | int res2 = 0 ; | |
21292 | int val3 ; | |
21293 | int ecode3 = 0 ; | |
21294 | PyObject * obj0 = 0 ; | |
21295 | PyObject * obj1 = 0 ; | |
21296 | PyObject * obj2 = 0 ; | |
21297 | char * kwnames[] = { | |
21298 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
21299 | }; | |
21300 | ||
21301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21303 | if (!SWIG_IsOK(res1)) { | |
21304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21305 | } | |
21306 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21307 | if (obj1) { | |
21308 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21309 | if (!SWIG_IsOK(res2)) { | |
21310 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21311 | } |
554f62e9 RD |
21312 | if (!argp2) { |
21313 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21314 | } |
554f62e9 RD |
21315 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
21316 | } | |
21317 | if (obj2) { | |
21318 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21319 | if (!SWIG_IsOK(ecode3)) { | |
21320 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
21321 | } | |
21322 | arg3 = static_cast< int >(val3); | |
21323 | } | |
21324 | { | |
21325 | if (!wxPyCheckForApp()) SWIG_fail; | |
21326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21327 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
21328 | wxPyEndAllowThreads(__tstate); | |
21329 | if (PyErr_Occurred()) SWIG_fail; | |
21330 | } | |
21331 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
21332 | return resultobj; | |
21333 | fail: | |
21334 | return NULL; | |
21335 | } | |
21336 | ||
21337 | ||
21338 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21339 | PyObject *obj; | |
21340 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21341 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
21342 | return SWIG_Py_Void(); | |
21343 | } | |
21344 | ||
21345 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21346 | return SWIG_Python_InitShadowInstance(args); | |
21347 | } | |
21348 | ||
21349 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21350 | PyObject *resultobj = 0; | |
21351 | wxScreenDC *result = 0 ; | |
21352 | ||
21353 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
21354 | { | |
21355 | if (!wxPyCheckForApp()) SWIG_fail; | |
21356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21357 | result = (wxScreenDC *)new wxScreenDC(); | |
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
21368 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21369 | PyObject *resultobj = 0; | |
21370 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21372 | bool result; | |
21373 | void *argp1 = 0 ; | |
21374 | int res1 = 0 ; | |
21375 | void *argp2 = 0 ; | |
21376 | int res2 = 0 ; | |
21377 | PyObject * obj0 = 0 ; | |
21378 | PyObject * obj1 = 0 ; | |
21379 | char * kwnames[] = { | |
21380 | (char *) "self",(char *) "window", NULL | |
21381 | }; | |
21382 | ||
21383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
21384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21385 | if (!SWIG_IsOK(res1)) { | |
21386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21387 | } | |
21388 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21389 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21390 | if (!SWIG_IsOK(res2)) { | |
21391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21392 | } | |
21393 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
21397 | wxPyEndAllowThreads(__tstate); | |
21398 | if (PyErr_Occurred()) SWIG_fail; | |
21399 | } | |
21400 | { | |
21401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21402 | } | |
21403 | return resultobj; | |
21404 | fail: | |
21405 | return NULL; | |
21406 | } | |
21407 | ||
21408 | ||
21409 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21410 | PyObject *resultobj = 0; | |
21411 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21412 | wxRect *arg2 = (wxRect *) NULL ; | |
21413 | bool result; | |
21414 | void *argp1 = 0 ; | |
21415 | int res1 = 0 ; | |
21416 | void *argp2 = 0 ; | |
21417 | int res2 = 0 ; | |
21418 | PyObject * obj0 = 0 ; | |
21419 | PyObject * obj1 = 0 ; | |
21420 | char * kwnames[] = { | |
21421 | (char *) "self",(char *) "rect", NULL | |
21422 | }; | |
21423 | ||
21424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
21425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21426 | if (!SWIG_IsOK(res1)) { | |
21427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21428 | } | |
21429 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21430 | if (obj1) { | |
21431 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
21432 | if (!SWIG_IsOK(res2)) { | |
21433 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
093d3ff1 | 21434 | } |
554f62e9 RD |
21435 | arg2 = reinterpret_cast< wxRect * >(argp2); |
21436 | } | |
21437 | { | |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
21443 | { | |
21444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21445 | } | |
21446 | return resultobj; | |
21447 | fail: | |
21448 | return NULL; | |
21449 | } | |
21450 | ||
21451 | ||
21452 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21453 | PyObject *resultobj = 0; | |
21454 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21455 | bool result; | |
21456 | void *argp1 = 0 ; | |
21457 | int res1 = 0 ; | |
21458 | PyObject *swig_obj[1] ; | |
21459 | ||
21460 | if (!args) SWIG_fail; | |
21461 | swig_obj[0] = args; | |
21462 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21463 | if (!SWIG_IsOK(res1)) { | |
21464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21465 | } | |
21466 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21467 | { | |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | result = (bool)(arg1)->EndDrawingOnTop(); | |
21470 | wxPyEndAllowThreads(__tstate); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
21473 | { | |
21474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21475 | } | |
21476 | return resultobj; | |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
21482 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21483 | PyObject *obj; | |
21484 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21485 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
21486 | return SWIG_Py_Void(); | |
21487 | } | |
21488 | ||
21489 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21490 | return SWIG_Python_InitShadowInstance(args); | |
21491 | } | |
21492 | ||
21493 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21494 | PyObject *resultobj = 0; | |
21495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21496 | wxClientDC *result = 0 ; | |
21497 | void *argp1 = 0 ; | |
21498 | int res1 = 0 ; | |
21499 | PyObject * obj0 = 0 ; | |
21500 | char * kwnames[] = { | |
21501 | (char *) "win", NULL | |
21502 | }; | |
21503 | ||
21504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
21505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21506 | if (!SWIG_IsOK(res1)) { | |
21507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21508 | } | |
21509 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21510 | { | |
21511 | if (!wxPyCheckForApp()) SWIG_fail; | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21513 | result = (wxClientDC *)new wxClientDC(arg1); | |
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
21518 | return resultobj; | |
21519 | fail: | |
21520 | return NULL; | |
21521 | } | |
21522 | ||
21523 | ||
21524 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21525 | PyObject *obj; | |
21526 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21527 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
21528 | return SWIG_Py_Void(); | |
21529 | } | |
21530 | ||
21531 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21532 | return SWIG_Python_InitShadowInstance(args); | |
21533 | } | |
21534 | ||
21535 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21536 | PyObject *resultobj = 0; | |
21537 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21538 | wxPaintDC *result = 0 ; | |
21539 | void *argp1 = 0 ; | |
21540 | int res1 = 0 ; | |
21541 | PyObject * obj0 = 0 ; | |
21542 | char * kwnames[] = { | |
21543 | (char *) "win", NULL | |
21544 | }; | |
21545 | ||
21546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
21547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21548 | if (!SWIG_IsOK(res1)) { | |
21549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21550 | } | |
21551 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21552 | { | |
21553 | if (!wxPyCheckForApp()) SWIG_fail; | |
21554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21555 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21567 | PyObject *obj; | |
21568 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21569 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
21570 | return SWIG_Py_Void(); | |
21571 | } | |
21572 | ||
21573 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21574 | return SWIG_Python_InitShadowInstance(args); | |
21575 | } | |
21576 | ||
21577 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21578 | PyObject *resultobj = 0; | |
21579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21580 | wxWindowDC *result = 0 ; | |
21581 | void *argp1 = 0 ; | |
21582 | int res1 = 0 ; | |
21583 | PyObject * obj0 = 0 ; | |
21584 | char * kwnames[] = { | |
21585 | (char *) "win", NULL | |
21586 | }; | |
21587 | ||
21588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
21589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21590 | if (!SWIG_IsOK(res1)) { | |
21591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21592 | } | |
21593 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21594 | { | |
21595 | if (!wxPyCheckForApp()) SWIG_fail; | |
21596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21597 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
21608 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21609 | PyObject *obj; | |
21610 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21611 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
21612 | return SWIG_Py_Void(); | |
21613 | } | |
21614 | ||
21615 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21616 | return SWIG_Python_InitShadowInstance(args); | |
21617 | } | |
21618 | ||
21619 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21620 | PyObject *resultobj = 0; | |
21621 | wxDC *arg1 = 0 ; | |
21622 | bool arg2 ; | |
21623 | wxMirrorDC *result = 0 ; | |
21624 | void *argp1 = 0 ; | |
21625 | int res1 = 0 ; | |
21626 | bool val2 ; | |
21627 | int ecode2 = 0 ; | |
21628 | PyObject * obj0 = 0 ; | |
21629 | PyObject * obj1 = 0 ; | |
21630 | char * kwnames[] = { | |
21631 | (char *) "dc",(char *) "mirror", NULL | |
21632 | }; | |
21633 | ||
21634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
21635 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
21636 | if (!SWIG_IsOK(res1)) { | |
21637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
21638 | } | |
21639 | if (!argp1) { | |
21640 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
21641 | } | |
21642 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21643 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
21644 | if (!SWIG_IsOK(ecode2)) { | |
21645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
21646 | } | |
21647 | arg2 = static_cast< bool >(val2); | |
21648 | { | |
21649 | if (!wxPyCheckForApp()) SWIG_fail; | |
21650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21651 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
21655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
21656 | return resultobj; | |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21663 | PyObject *obj; | |
21664 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21665 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
21666 | return SWIG_Py_Void(); | |
21667 | } | |
21668 | ||
21669 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21670 | return SWIG_Python_InitShadowInstance(args); | |
21671 | } | |
21672 | ||
21673 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21674 | PyObject *resultobj = 0; | |
21675 | wxPrintData *arg1 = 0 ; | |
21676 | wxPostScriptDC *result = 0 ; | |
21677 | void *argp1 = 0 ; | |
21678 | int res1 = 0 ; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char * kwnames[] = { | |
21681 | (char *) "printData", NULL | |
21682 | }; | |
21683 | ||
21684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
21685 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21686 | if (!SWIG_IsOK(res1)) { | |
21687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21688 | } | |
21689 | if (!argp1) { | |
21690 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21691 | } | |
21692 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
21693 | { | |
21694 | if (!wxPyCheckForApp()) SWIG_fail; | |
21695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21696 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
21700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
21701 | return resultobj; | |
21702 | fail: | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21708 | PyObject *resultobj = 0; | |
21709 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21710 | wxPrintData *result = 0 ; | |
21711 | void *argp1 = 0 ; | |
21712 | int res1 = 0 ; | |
21713 | PyObject *swig_obj[1] ; | |
21714 | ||
21715 | if (!args) SWIG_fail; | |
21716 | swig_obj[0] = args; | |
21717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21718 | if (!SWIG_IsOK(res1)) { | |
21719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21720 | } | |
21721 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21722 | { | |
21723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21724 | { |
554f62e9 RD |
21725 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
21726 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 21727 | } |
554f62e9 RD |
21728 | wxPyEndAllowThreads(__tstate); |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | } | |
21731 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
21732 | return resultobj; | |
21733 | fail: | |
21734 | return NULL; | |
21735 | } | |
21736 | ||
21737 | ||
21738 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21739 | PyObject *resultobj = 0; | |
21740 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21741 | wxPrintData *arg2 = 0 ; | |
21742 | void *argp1 = 0 ; | |
21743 | int res1 = 0 ; | |
21744 | void *argp2 = 0 ; | |
21745 | int res2 = 0 ; | |
21746 | PyObject * obj0 = 0 ; | |
21747 | PyObject * obj1 = 0 ; | |
21748 | char * kwnames[] = { | |
21749 | (char *) "self",(char *) "data", NULL | |
21750 | }; | |
21751 | ||
21752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
21753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21754 | if (!SWIG_IsOK(res1)) { | |
21755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21756 | } | |
21757 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21758 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21759 | if (!SWIG_IsOK(res2)) { | |
21760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21761 | } | |
21762 | if (!argp2) { | |
21763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21764 | } | |
21765 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
21766 | { | |
21767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21768 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21769 | wxPyEndAllowThreads(__tstate); | |
21770 | if (PyErr_Occurred()) SWIG_fail; | |
21771 | } | |
21772 | resultobj = SWIG_Py_Void(); | |
21773 | return resultobj; | |
21774 | fail: | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
21779 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21780 | PyObject *resultobj = 0; | |
21781 | int arg1 ; | |
21782 | int val1 ; | |
21783 | int ecode1 = 0 ; | |
21784 | PyObject * obj0 = 0 ; | |
21785 | char * kwnames[] = { | |
21786 | (char *) "ppi", NULL | |
21787 | }; | |
21788 | ||
21789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
21790 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21791 | if (!SWIG_IsOK(ecode1)) { | |
21792 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
21793 | } | |
21794 | arg1 = static_cast< int >(val1); | |
21795 | { | |
21796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21797 | wxPostScriptDC::SetResolution(arg1); | |
21798 | wxPyEndAllowThreads(__tstate); | |
21799 | if (PyErr_Occurred()) SWIG_fail; | |
21800 | } | |
21801 | resultobj = SWIG_Py_Void(); | |
21802 | return resultobj; | |
21803 | fail: | |
21804 | return NULL; | |
21805 | } | |
21806 | ||
21807 | ||
21808 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21809 | PyObject *resultobj = 0; | |
21810 | int result; | |
21811 | ||
21812 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
21813 | { | |
21814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21815 | result = (int)wxPostScriptDC::GetResolution(); | |
21816 | wxPyEndAllowThreads(__tstate); | |
21817 | if (PyErr_Occurred()) SWIG_fail; | |
21818 | } | |
21819 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21820 | return resultobj; | |
21821 | fail: | |
21822 | return NULL; | |
21823 | } | |
21824 | ||
21825 | ||
21826 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21827 | PyObject *obj; | |
21828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
21830 | return SWIG_Py_Void(); | |
21831 | } | |
21832 | ||
21833 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21834 | return SWIG_Python_InitShadowInstance(args); | |
21835 | } | |
21836 | ||
21837 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21838 | PyObject *resultobj = 0; | |
21839 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
21840 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21841 | wxMetaFile *result = 0 ; | |
21842 | bool temp1 = false ; | |
21843 | PyObject * obj0 = 0 ; | |
21844 | char * kwnames[] = { | |
21845 | (char *) "filename", NULL | |
21846 | }; | |
21847 | ||
21848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
21849 | if (obj0) { | |
093d3ff1 | 21850 | { |
554f62e9 RD |
21851 | arg1 = wxString_in_helper(obj0); |
21852 | if (arg1 == NULL) SWIG_fail; | |
21853 | temp1 = true; | |
093d3ff1 | 21854 | } |
554f62e9 RD |
21855 | } |
21856 | { | |
21857 | if (!wxPyCheckForApp()) SWIG_fail; | |
21858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21859 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
21860 | wxPyEndAllowThreads(__tstate); | |
21861 | if (PyErr_Occurred()) SWIG_fail; | |
21862 | } | |
21863 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
21864 | { | |
21865 | if (temp1) | |
21866 | delete arg1; | |
21867 | } | |
21868 | return resultobj; | |
21869 | fail: | |
21870 | { | |
21871 | if (temp1) | |
21872 | delete arg1; | |
21873 | } | |
21874 | return NULL; | |
21875 | } | |
21876 | ||
21877 | ||
21878 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21879 | PyObject *resultobj = 0; | |
21880 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21881 | void *argp1 = 0 ; | |
21882 | int res1 = 0 ; | |
21883 | PyObject *swig_obj[1] ; | |
21884 | ||
21885 | if (!args) SWIG_fail; | |
21886 | swig_obj[0] = args; | |
21887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
21888 | if (!SWIG_IsOK(res1)) { | |
21889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21890 | } | |
21891 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21892 | { | |
21893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21894 | delete arg1; | |
21895 | ||
21896 | wxPyEndAllowThreads(__tstate); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | } | |
21899 | resultobj = SWIG_Py_Void(); | |
21900 | return resultobj; | |
21901 | fail: | |
21902 | return NULL; | |
21903 | } | |
21904 | ||
21905 | ||
21906 | SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21907 | PyObject *resultobj = 0; | |
21908 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21909 | bool result; | |
21910 | void *argp1 = 0 ; | |
21911 | int res1 = 0 ; | |
21912 | PyObject *swig_obj[1] ; | |
21913 | ||
21914 | if (!args) SWIG_fail; | |
21915 | swig_obj[0] = args; | |
21916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21917 | if (!SWIG_IsOK(res1)) { | |
21918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21919 | } | |
21920 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21921 | { | |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | result = (bool)(arg1)->Ok(); | |
21924 | wxPyEndAllowThreads(__tstate); | |
21925 | if (PyErr_Occurred()) SWIG_fail; | |
21926 | } | |
21927 | { | |
21928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21929 | } | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj = 0; | |
21938 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21939 | int arg2 = (int) 0 ; | |
21940 | int arg3 = (int) 0 ; | |
21941 | bool result; | |
21942 | void *argp1 = 0 ; | |
21943 | int res1 = 0 ; | |
21944 | int val2 ; | |
21945 | int ecode2 = 0 ; | |
21946 | int val3 ; | |
21947 | int ecode3 = 0 ; | |
21948 | PyObject * obj0 = 0 ; | |
21949 | PyObject * obj1 = 0 ; | |
21950 | PyObject * obj2 = 0 ; | |
21951 | char * kwnames[] = { | |
21952 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21953 | }; | |
21954 | ||
21955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21957 | if (!SWIG_IsOK(res1)) { | |
21958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21959 | } | |
21960 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21961 | if (obj1) { | |
21962 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21963 | if (!SWIG_IsOK(ecode2)) { | |
21964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
21965 | } | |
21966 | arg2 = static_cast< int >(val2); | |
21967 | } | |
21968 | if (obj2) { | |
21969 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21970 | if (!SWIG_IsOK(ecode3)) { | |
21971 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
21972 | } | |
21973 | arg3 = static_cast< int >(val3); | |
21974 | } | |
21975 | { | |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21977 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
21978 | wxPyEndAllowThreads(__tstate); | |
21979 | if (PyErr_Occurred()) SWIG_fail; | |
21980 | } | |
21981 | { | |
21982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21983 | } | |
21984 | return resultobj; | |
21985 | fail: | |
21986 | return NULL; | |
21987 | } | |
21988 | ||
21989 | ||
21990 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21991 | PyObject *resultobj = 0; | |
21992 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21993 | wxSize result; | |
21994 | void *argp1 = 0 ; | |
21995 | int res1 = 0 ; | |
21996 | PyObject *swig_obj[1] ; | |
21997 | ||
21998 | if (!args) SWIG_fail; | |
21999 | swig_obj[0] = args; | |
22000 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22001 | if (!SWIG_IsOK(res1)) { | |
22002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
22003 | } | |
22004 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22005 | { | |
22006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22007 | result = (arg1)->GetSize(); | |
22008 | wxPyEndAllowThreads(__tstate); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | } | |
22011 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22012 | return resultobj; | |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22019 | PyObject *resultobj = 0; | |
22020 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22021 | int result; | |
22022 | void *argp1 = 0 ; | |
22023 | int res1 = 0 ; | |
22024 | PyObject *swig_obj[1] ; | |
22025 | ||
22026 | if (!args) SWIG_fail; | |
22027 | swig_obj[0] = args; | |
22028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22029 | if (!SWIG_IsOK(res1)) { | |
22030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
22031 | } | |
22032 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22033 | { | |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | result = (int)(arg1)->GetWidth(); | |
22036 | wxPyEndAllowThreads(__tstate); | |
22037 | if (PyErr_Occurred()) SWIG_fail; | |
22038 | } | |
22039 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
22046 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22047 | PyObject *resultobj = 0; | |
22048 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22049 | int result; | |
22050 | void *argp1 = 0 ; | |
22051 | int res1 = 0 ; | |
22052 | PyObject *swig_obj[1] ; | |
22053 | ||
22054 | if (!args) SWIG_fail; | |
22055 | swig_obj[0] = args; | |
22056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22057 | if (!SWIG_IsOK(res1)) { | |
22058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
22059 | } | |
22060 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22061 | { | |
22062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22063 | result = (int)(arg1)->GetHeight(); | |
22064 | wxPyEndAllowThreads(__tstate); | |
22065 | if (PyErr_Occurred()) SWIG_fail; | |
22066 | } | |
22067 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22068 | return resultobj; | |
22069 | fail: | |
22070 | return NULL; | |
22071 | } | |
22072 | ||
22073 | ||
22074 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22075 | PyObject *resultobj = 0; | |
22076 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22077 | wxString *result = 0 ; | |
22078 | void *argp1 = 0 ; | |
22079 | int res1 = 0 ; | |
22080 | PyObject *swig_obj[1] ; | |
22081 | ||
22082 | if (!args) SWIG_fail; | |
22083 | swig_obj[0] = args; | |
22084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22085 | if (!SWIG_IsOK(res1)) { | |
22086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
22087 | } | |
22088 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22089 | { | |
22090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 22091 | { |
554f62e9 RD |
22092 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
22093 | result = (wxString *) &_result_ref; | |
e2950dbb | 22094 | } |
554f62e9 RD |
22095 | wxPyEndAllowThreads(__tstate); |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | { | |
22099 | #if wxUSE_UNICODE | |
22100 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22101 | #else | |
22102 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22103 | #endif | |
22104 | } | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
22111 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22112 | PyObject *obj; | |
22113 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22114 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
22115 | return SWIG_Py_Void(); | |
22116 | } | |
22117 | ||
22118 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22119 | return SWIG_Python_InitShadowInstance(args); | |
22120 | } | |
22121 | ||
22122 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22123 | PyObject *resultobj = 0; | |
22124 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22125 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22126 | int arg2 = (int) 0 ; | |
22127 | int arg3 = (int) 0 ; | |
22128 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
22129 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
22130 | wxMetaFileDC *result = 0 ; | |
22131 | bool temp1 = false ; | |
22132 | int val2 ; | |
22133 | int ecode2 = 0 ; | |
22134 | int val3 ; | |
22135 | int ecode3 = 0 ; | |
22136 | bool temp4 = false ; | |
22137 | PyObject * obj0 = 0 ; | |
22138 | PyObject * obj1 = 0 ; | |
22139 | PyObject * obj2 = 0 ; | |
22140 | PyObject * obj3 = 0 ; | |
22141 | char * kwnames[] = { | |
22142 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
22143 | }; | |
22144 | ||
22145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22146 | if (obj0) { | |
e2950dbb | 22147 | { |
554f62e9 RD |
22148 | arg1 = wxString_in_helper(obj0); |
22149 | if (arg1 == NULL) SWIG_fail; | |
22150 | temp1 = true; | |
e2950dbb | 22151 | } |
554f62e9 RD |
22152 | } |
22153 | if (obj1) { | |
22154 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22155 | if (!SWIG_IsOK(ecode2)) { | |
22156 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
22157 | } | |
22158 | arg2 = static_cast< int >(val2); | |
22159 | } | |
22160 | if (obj2) { | |
22161 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22162 | if (!SWIG_IsOK(ecode3)) { | |
22163 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
22164 | } | |
22165 | arg3 = static_cast< int >(val3); | |
22166 | } | |
22167 | if (obj3) { | |
093d3ff1 | 22168 | { |
554f62e9 RD |
22169 | arg4 = wxString_in_helper(obj3); |
22170 | if (arg4 == NULL) SWIG_fail; | |
22171 | temp4 = true; | |
093d3ff1 | 22172 | } |
554f62e9 RD |
22173 | } |
22174 | { | |
22175 | if (!wxPyCheckForApp()) SWIG_fail; | |
22176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22177 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
22178 | wxPyEndAllowThreads(__tstate); | |
22179 | if (PyErr_Occurred()) SWIG_fail; | |
22180 | } | |
22181 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
22182 | { | |
22183 | if (temp1) | |
22184 | delete arg1; | |
22185 | } | |
22186 | { | |
22187 | if (temp4) | |
22188 | delete arg4; | |
22189 | } | |
22190 | return resultobj; | |
22191 | fail: | |
22192 | { | |
22193 | if (temp1) | |
22194 | delete arg1; | |
22195 | } | |
22196 | { | |
22197 | if (temp4) | |
22198 | delete arg4; | |
22199 | } | |
22200 | return NULL; | |
22201 | } | |
22202 | ||
22203 | ||
22204 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22205 | PyObject *resultobj = 0; | |
22206 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
22207 | wxMetaFile *result = 0 ; | |
22208 | void *argp1 = 0 ; | |
22209 | int res1 = 0 ; | |
22210 | PyObject *swig_obj[1] ; | |
22211 | ||
22212 | if (!args) SWIG_fail; | |
22213 | swig_obj[0] = args; | |
22214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
22215 | if (!SWIG_IsOK(res1)) { | |
22216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
22217 | } | |
22218 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
22219 | { | |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22221 | result = (wxMetaFile *)(arg1)->Close(); | |
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
22225 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22226 | return resultobj; | |
22227 | fail: | |
22228 | return NULL; | |
22229 | } | |
22230 | ||
22231 | ||
22232 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22233 | PyObject *obj; | |
22234 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22235 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
22236 | return SWIG_Py_Void(); | |
22237 | } | |
22238 | ||
22239 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22240 | return SWIG_Python_InitShadowInstance(args); | |
22241 | } | |
22242 | ||
22243 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22244 | PyObject *resultobj = 0; | |
22245 | wxPrintData *arg1 = 0 ; | |
22246 | wxPrinterDC *result = 0 ; | |
22247 | void *argp1 = 0 ; | |
22248 | int res1 = 0 ; | |
22249 | PyObject * obj0 = 0 ; | |
22250 | char * kwnames[] = { | |
22251 | (char *) "printData", NULL | |
22252 | }; | |
22253 | ||
22254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
22255 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
22256 | if (!SWIG_IsOK(res1)) { | |
22257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
22258 | } | |
22259 | if (!argp1) { | |
22260 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
22261 | } | |
22262 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
22263 | { | |
22264 | if (!wxPyCheckForApp()) SWIG_fail; | |
22265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22266 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
22267 | wxPyEndAllowThreads(__tstate); | |
22268 | if (PyErr_Occurred()) SWIG_fail; | |
22269 | } | |
22270 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
22271 | return resultobj; | |
22272 | fail: | |
22273 | return NULL; | |
22274 | } | |
22275 | ||
22276 | ||
22277 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22278 | PyObject *obj; | |
22279 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22280 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
22281 | return SWIG_Py_Void(); | |
22282 | } | |
22283 | ||
22284 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22285 | return SWIG_Python_InitShadowInstance(args); | |
22286 | } | |
22287 | ||
22288 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22289 | PyObject *resultobj = 0; | |
22290 | int arg1 ; | |
22291 | int arg2 ; | |
22292 | int arg3 = (int) true ; | |
22293 | int arg4 = (int) 1 ; | |
22294 | wxImageList *result = 0 ; | |
22295 | int val1 ; | |
22296 | int ecode1 = 0 ; | |
22297 | int val2 ; | |
22298 | int ecode2 = 0 ; | |
22299 | int val3 ; | |
22300 | int ecode3 = 0 ; | |
22301 | int val4 ; | |
22302 | int ecode4 = 0 ; | |
22303 | PyObject * obj0 = 0 ; | |
22304 | PyObject * obj1 = 0 ; | |
22305 | PyObject * obj2 = 0 ; | |
22306 | PyObject * obj3 = 0 ; | |
22307 | char * kwnames[] = { | |
22308 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
22309 | }; | |
22310 | ||
22311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22312 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22313 | if (!SWIG_IsOK(ecode1)) { | |
22314 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
22315 | } | |
22316 | arg1 = static_cast< int >(val1); | |
22317 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22318 | if (!SWIG_IsOK(ecode2)) { | |
22319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
22320 | } | |
22321 | arg2 = static_cast< int >(val2); | |
22322 | if (obj2) { | |
22323 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22324 | if (!SWIG_IsOK(ecode3)) { | |
22325 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
22326 | } | |
22327 | arg3 = static_cast< int >(val3); | |
22328 | } | |
22329 | if (obj3) { | |
22330 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22331 | if (!SWIG_IsOK(ecode4)) { | |
22332 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
22333 | } | |
22334 | arg4 = static_cast< int >(val4); | |
22335 | } | |
22336 | { | |
22337 | if (!wxPyCheckForApp()) SWIG_fail; | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | { | |
22344 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
22345 | } | |
22346 | return resultobj; | |
22347 | fail: | |
22348 | return NULL; | |
22349 | } | |
22350 | ||
22351 | ||
22352 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22353 | PyObject *resultobj = 0; | |
22354 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22355 | void *argp1 = 0 ; | |
22356 | int res1 = 0 ; | |
22357 | PyObject *swig_obj[1] ; | |
22358 | ||
22359 | if (!args) SWIG_fail; | |
22360 | swig_obj[0] = args; | |
22361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
22362 | if (!SWIG_IsOK(res1)) { | |
22363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22364 | } | |
22365 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22366 | { | |
22367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22368 | delete arg1; | |
22369 | ||
22370 | wxPyEndAllowThreads(__tstate); | |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
22373 | resultobj = SWIG_Py_Void(); | |
22374 | return resultobj; | |
22375 | fail: | |
22376 | return NULL; | |
22377 | } | |
22378 | ||
22379 | ||
22380 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22381 | PyObject *resultobj = 0; | |
22382 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22383 | wxBitmap *arg2 = 0 ; | |
22384 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
22385 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
22386 | int result; | |
22387 | void *argp1 = 0 ; | |
22388 | int res1 = 0 ; | |
22389 | void *argp2 = 0 ; | |
22390 | int res2 = 0 ; | |
22391 | void *argp3 = 0 ; | |
22392 | int res3 = 0 ; | |
22393 | PyObject * obj0 = 0 ; | |
22394 | PyObject * obj1 = 0 ; | |
22395 | PyObject * obj2 = 0 ; | |
22396 | char * kwnames[] = { | |
22397 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
22398 | }; | |
22399 | ||
22400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22402 | if (!SWIG_IsOK(res1)) { | |
22403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22404 | } | |
22405 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22406 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22407 | if (!SWIG_IsOK(res2)) { | |
22408 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22409 | } | |
22410 | if (!argp2) { | |
22411 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22412 | } | |
22413 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22414 | if (obj2) { | |
22415 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22416 | if (!SWIG_IsOK(res3)) { | |
22417 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22418 | } |
554f62e9 RD |
22419 | if (!argp3) { |
22420 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22421 | } |
554f62e9 RD |
22422 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
22423 | } | |
22424 | { | |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
22427 | wxPyEndAllowThreads(__tstate); | |
22428 | if (PyErr_Occurred()) SWIG_fail; | |
22429 | } | |
22430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | return NULL; | |
22434 | } | |
22435 | ||
22436 | ||
22437 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22438 | PyObject *resultobj = 0; | |
22439 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22440 | wxBitmap *arg2 = 0 ; | |
22441 | wxColour *arg3 = 0 ; | |
22442 | int result; | |
22443 | void *argp1 = 0 ; | |
22444 | int res1 = 0 ; | |
22445 | void *argp2 = 0 ; | |
22446 | int res2 = 0 ; | |
22447 | wxColour temp3 ; | |
22448 | PyObject * obj0 = 0 ; | |
22449 | PyObject * obj1 = 0 ; | |
22450 | PyObject * obj2 = 0 ; | |
22451 | char * kwnames[] = { | |
22452 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
22453 | }; | |
22454 | ||
22455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22457 | if (!SWIG_IsOK(res1)) { | |
22458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22459 | } | |
22460 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22461 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22462 | if (!SWIG_IsOK(res2)) { | |
22463 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22464 | } | |
22465 | if (!argp2) { | |
22466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22467 | } | |
22468 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22469 | { | |
22470 | arg3 = &temp3; | |
22471 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22472 | } | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
22476 | wxPyEndAllowThreads(__tstate); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
22478 | } | |
22479 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22487 | PyObject *resultobj = 0; | |
22488 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22489 | wxIcon *arg2 = 0 ; | |
22490 | int result; | |
22491 | void *argp1 = 0 ; | |
22492 | int res1 = 0 ; | |
22493 | void *argp2 = 0 ; | |
22494 | int res2 = 0 ; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | PyObject * obj1 = 0 ; | |
22497 | char * kwnames[] = { | |
22498 | (char *) "self",(char *) "icon", NULL | |
22499 | }; | |
22500 | ||
22501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
22502 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22503 | if (!SWIG_IsOK(res1)) { | |
22504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22505 | } | |
22506 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22507 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
22508 | if (!SWIG_IsOK(res2)) { | |
22509 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
22510 | } | |
22511 | if (!argp2) { | |
22512 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
22513 | } | |
22514 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
22515 | { | |
22516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22517 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
22518 | wxPyEndAllowThreads(__tstate); | |
22519 | if (PyErr_Occurred()) SWIG_fail; | |
22520 | } | |
22521 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
22528 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22529 | PyObject *resultobj = 0; | |
22530 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22531 | int arg2 ; | |
22532 | SwigValueWrapper<wxBitmap > result; | |
22533 | void *argp1 = 0 ; | |
22534 | int res1 = 0 ; | |
22535 | int val2 ; | |
22536 | int ecode2 = 0 ; | |
22537 | PyObject * obj0 = 0 ; | |
22538 | PyObject * obj1 = 0 ; | |
22539 | char * kwnames[] = { | |
22540 | (char *) "self",(char *) "index", NULL | |
22541 | }; | |
22542 | ||
22543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
22544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22545 | if (!SWIG_IsOK(res1)) { | |
22546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
22547 | } | |
22548 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22549 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22550 | if (!SWIG_IsOK(ecode2)) { | |
22551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
22552 | } | |
22553 | arg2 = static_cast< int >(val2); | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | return NULL; | |
22564 | } | |
22565 | ||
22566 | ||
22567 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22568 | PyObject *resultobj = 0; | |
22569 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22570 | int arg2 ; | |
22571 | wxIcon result; | |
22572 | void *argp1 = 0 ; | |
22573 | int res1 = 0 ; | |
22574 | int val2 ; | |
22575 | int ecode2 = 0 ; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | PyObject * obj1 = 0 ; | |
22578 | char * kwnames[] = { | |
22579 | (char *) "self",(char *) "index", NULL | |
22580 | }; | |
22581 | ||
22582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
22583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22584 | if (!SWIG_IsOK(res1)) { | |
22585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
22586 | } | |
22587 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22588 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22589 | if (!SWIG_IsOK(ecode2)) { | |
22590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
22591 | } | |
22592 | arg2 = static_cast< int >(val2); | |
22593 | { | |
22594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22595 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
22600 | return resultobj; | |
22601 | fail: | |
22602 | return NULL; | |
22603 | } | |
22604 | ||
22605 | ||
22606 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22607 | PyObject *resultobj = 0; | |
22608 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22609 | int arg2 ; | |
22610 | wxBitmap *arg3 = 0 ; | |
22611 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
22612 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
22613 | bool result; | |
22614 | void *argp1 = 0 ; | |
22615 | int res1 = 0 ; | |
22616 | int val2 ; | |
22617 | int ecode2 = 0 ; | |
22618 | void *argp3 = 0 ; | |
22619 | int res3 = 0 ; | |
22620 | void *argp4 = 0 ; | |
22621 | int res4 = 0 ; | |
22622 | PyObject * obj0 = 0 ; | |
22623 | PyObject * obj1 = 0 ; | |
22624 | PyObject * obj2 = 0 ; | |
22625 | PyObject * obj3 = 0 ; | |
22626 | char * kwnames[] = { | |
22627 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
22628 | }; | |
22629 | ||
22630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22632 | if (!SWIG_IsOK(res1)) { | |
22633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22634 | } | |
22635 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22636 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22637 | if (!SWIG_IsOK(ecode2)) { | |
22638 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
22639 | } | |
22640 | arg2 = static_cast< int >(val2); | |
22641 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22642 | if (!SWIG_IsOK(res3)) { | |
22643 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
22644 | } | |
22645 | if (!argp3) { | |
22646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
22647 | } | |
22648 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
22649 | if (obj3) { | |
22650 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22651 | if (!SWIG_IsOK(res4)) { | |
22652 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22653 | } |
554f62e9 RD |
22654 | if (!argp4) { |
22655 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22656 | } |
554f62e9 RD |
22657 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
22658 | } | |
22659 | { | |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | { | |
22666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22667 | } | |
22668 | return resultobj; | |
22669 | fail: | |
22670 | return NULL; | |
22671 | } | |
22672 | ||
22673 | ||
22674 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22675 | PyObject *resultobj = 0; | |
22676 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22677 | int arg2 ; | |
22678 | wxDC *arg3 = 0 ; | |
22679 | int arg4 ; | |
22680 | int arg5 ; | |
22681 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
22682 | bool arg7 = (bool) (bool)false ; | |
22683 | bool result; | |
22684 | void *argp1 = 0 ; | |
22685 | int res1 = 0 ; | |
22686 | int val2 ; | |
22687 | int ecode2 = 0 ; | |
22688 | void *argp3 = 0 ; | |
22689 | int res3 = 0 ; | |
22690 | int val4 ; | |
22691 | int ecode4 = 0 ; | |
22692 | int val5 ; | |
22693 | int ecode5 = 0 ; | |
22694 | int val6 ; | |
22695 | int ecode6 = 0 ; | |
22696 | bool val7 ; | |
22697 | int ecode7 = 0 ; | |
22698 | PyObject * obj0 = 0 ; | |
22699 | PyObject * obj1 = 0 ; | |
22700 | PyObject * obj2 = 0 ; | |
22701 | PyObject * obj3 = 0 ; | |
22702 | PyObject * obj4 = 0 ; | |
22703 | PyObject * obj5 = 0 ; | |
22704 | PyObject * obj6 = 0 ; | |
22705 | char * kwnames[] = { | |
22706 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
22707 | }; | |
22708 | ||
22709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22711 | if (!SWIG_IsOK(res1)) { | |
22712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22713 | } | |
22714 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22715 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22716 | if (!SWIG_IsOK(ecode2)) { | |
22717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
22718 | } | |
22719 | arg2 = static_cast< int >(val2); | |
22720 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
22721 | if (!SWIG_IsOK(res3)) { | |
22722 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
22723 | } | |
22724 | if (!argp3) { | |
22725 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
22726 | } | |
22727 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
22728 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22729 | if (!SWIG_IsOK(ecode4)) { | |
22730 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
22731 | } | |
22732 | arg4 = static_cast< int >(val4); | |
22733 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22734 | if (!SWIG_IsOK(ecode5)) { | |
22735 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
22736 | } | |
22737 | arg5 = static_cast< int >(val5); | |
22738 | if (obj5) { | |
22739 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22740 | if (!SWIG_IsOK(ecode6)) { | |
22741 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
22742 | } | |
22743 | arg6 = static_cast< int >(val6); | |
22744 | } | |
22745 | if (obj6) { | |
22746 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
22747 | if (!SWIG_IsOK(ecode7)) { | |
22748 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
22749 | } | |
22750 | arg7 = static_cast< bool >(val7); | |
22751 | } | |
22752 | { | |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | { | |
22759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22760 | } | |
22761 | return resultobj; | |
22762 | fail: | |
22763 | return NULL; | |
22764 | } | |
22765 | ||
22766 | ||
22767 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22768 | PyObject *resultobj = 0; | |
22769 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22770 | int result; | |
22771 | void *argp1 = 0 ; | |
22772 | int res1 = 0 ; | |
22773 | PyObject *swig_obj[1] ; | |
22774 | ||
22775 | if (!args) SWIG_fail; | |
22776 | swig_obj[0] = args; | |
22777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22778 | if (!SWIG_IsOK(res1)) { | |
22779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22780 | } | |
22781 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22782 | { | |
22783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22784 | result = (int)(arg1)->GetImageCount(); | |
22785 | wxPyEndAllowThreads(__tstate); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | } | |
22788 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22789 | return resultobj; | |
22790 | fail: | |
22791 | return NULL; | |
22792 | } | |
22793 | ||
22794 | ||
22795 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22796 | PyObject *resultobj = 0; | |
22797 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22798 | int arg2 ; | |
22799 | bool result; | |
22800 | void *argp1 = 0 ; | |
22801 | int res1 = 0 ; | |
22802 | int val2 ; | |
22803 | int ecode2 = 0 ; | |
22804 | PyObject * obj0 = 0 ; | |
22805 | PyObject * obj1 = 0 ; | |
22806 | char * kwnames[] = { | |
22807 | (char *) "self",(char *) "index", NULL | |
22808 | }; | |
22809 | ||
22810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
22811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22812 | if (!SWIG_IsOK(res1)) { | |
22813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22814 | } | |
22815 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22816 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22817 | if (!SWIG_IsOK(ecode2)) { | |
22818 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
22819 | } | |
22820 | arg2 = static_cast< int >(val2); | |
22821 | { | |
22822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22823 | result = (bool)(arg1)->Remove(arg2); | |
22824 | wxPyEndAllowThreads(__tstate); | |
22825 | if (PyErr_Occurred()) SWIG_fail; | |
22826 | } | |
22827 | { | |
22828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22829 | } | |
22830 | return resultobj; | |
22831 | fail: | |
22832 | return NULL; | |
22833 | } | |
22834 | ||
22835 | ||
22836 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22837 | PyObject *resultobj = 0; | |
22838 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22839 | bool result; | |
22840 | void *argp1 = 0 ; | |
22841 | int res1 = 0 ; | |
22842 | PyObject *swig_obj[1] ; | |
22843 | ||
22844 | if (!args) SWIG_fail; | |
22845 | swig_obj[0] = args; | |
22846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22847 | if (!SWIG_IsOK(res1)) { | |
22848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22849 | } | |
22850 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22851 | { | |
22852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22853 | result = (bool)(arg1)->RemoveAll(); | |
22854 | wxPyEndAllowThreads(__tstate); | |
22855 | if (PyErr_Occurred()) SWIG_fail; | |
22856 | } | |
22857 | { | |
22858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22859 | } | |
22860 | return resultobj; | |
22861 | fail: | |
22862 | return NULL; | |
22863 | } | |
22864 | ||
22865 | ||
22866 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22867 | PyObject *resultobj = 0; | |
22868 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22869 | int arg2 ; | |
22870 | int *arg3 = 0 ; | |
22871 | int *arg4 = 0 ; | |
22872 | void *argp1 = 0 ; | |
22873 | int res1 = 0 ; | |
22874 | int val2 ; | |
22875 | int ecode2 = 0 ; | |
22876 | int temp3 ; | |
22877 | int res3 = SWIG_TMPOBJ ; | |
22878 | int temp4 ; | |
22879 | int res4 = SWIG_TMPOBJ ; | |
22880 | PyObject * obj0 = 0 ; | |
22881 | PyObject * obj1 = 0 ; | |
22882 | char * kwnames[] = { | |
22883 | (char *) "self",(char *) "index", NULL | |
22884 | }; | |
22885 | ||
22886 | arg3 = &temp3; | |
22887 | arg4 = &temp4; | |
22888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22890 | if (!SWIG_IsOK(res1)) { | |
22891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22892 | } | |
22893 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22894 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22895 | if (!SWIG_IsOK(ecode2)) { | |
22896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
22897 | } | |
22898 | arg2 = static_cast< int >(val2); | |
22899 | { | |
22900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22901 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
22902 | wxPyEndAllowThreads(__tstate); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
22904 | } | |
22905 | resultobj = SWIG_Py_Void(); | |
22906 | if (SWIG_IsTmpObj(res3)) { | |
22907 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22908 | } else { | |
22909 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22910 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22911 | } | |
22912 | if (SWIG_IsTmpObj(res4)) { | |
22913 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
22914 | } else { | |
22915 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22916 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
22917 | } | |
22918 | return resultobj; | |
22919 | fail: | |
22920 | return NULL; | |
22921 | } | |
22922 | ||
22923 | ||
22924 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22925 | PyObject *obj; | |
22926 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22927 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
22928 | return SWIG_Py_Void(); | |
22929 | } | |
22930 | ||
22931 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22932 | return SWIG_Python_InitShadowInstance(args); | |
22933 | } | |
22934 | ||
22935 | SWIGINTERN int NORMAL_FONT_set(PyObject *) { | |
22936 | SWIG_Error(SWIG_AttributeError,"Variable NORMAL_FONT is read-only."); | |
22937 | return 1; | |
22938 | } | |
22939 | ||
22940 | ||
22941 | SWIGINTERN PyObject *NORMAL_FONT_get(void) { | |
22942 | PyObject *pyobj = 0; | |
22943 | ||
22944 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22945 | return pyobj; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | SWIGINTERN int SMALL_FONT_set(PyObject *) { | |
22950 | SWIG_Error(SWIG_AttributeError,"Variable SMALL_FONT is read-only."); | |
22951 | return 1; | |
22952 | } | |
22953 | ||
22954 | ||
22955 | SWIGINTERN PyObject *SMALL_FONT_get(void) { | |
22956 | PyObject *pyobj = 0; | |
22957 | ||
22958 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22959 | return pyobj; | |
22960 | } | |
22961 | ||
22962 | ||
22963 | SWIGINTERN int ITALIC_FONT_set(PyObject *) { | |
22964 | SWIG_Error(SWIG_AttributeError,"Variable ITALIC_FONT is read-only."); | |
22965 | return 1; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | SWIGINTERN PyObject *ITALIC_FONT_get(void) { | |
22970 | PyObject *pyobj = 0; | |
22971 | ||
22972 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22973 | return pyobj; | |
22974 | } | |
22975 | ||
22976 | ||
22977 | SWIGINTERN int SWISS_FONT_set(PyObject *) { | |
22978 | SWIG_Error(SWIG_AttributeError,"Variable SWISS_FONT is read-only."); | |
22979 | return 1; | |
22980 | } | |
22981 | ||
22982 | ||
22983 | SWIGINTERN PyObject *SWISS_FONT_get(void) { | |
22984 | PyObject *pyobj = 0; | |
22985 | ||
22986 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22987 | return pyobj; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | SWIGINTERN int RED_PEN_set(PyObject *) { | |
22992 | SWIG_Error(SWIG_AttributeError,"Variable RED_PEN is read-only."); | |
22993 | return 1; | |
22994 | } | |
22995 | ||
22996 | ||
22997 | SWIGINTERN PyObject *RED_PEN_get(void) { | |
22998 | PyObject *pyobj = 0; | |
22999 | ||
23000 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23001 | return pyobj; | |
23002 | } | |
23003 | ||
23004 | ||
23005 | SWIGINTERN int CYAN_PEN_set(PyObject *) { | |
23006 | SWIG_Error(SWIG_AttributeError,"Variable CYAN_PEN is read-only."); | |
23007 | return 1; | |
23008 | } | |
23009 | ||
23010 | ||
23011 | SWIGINTERN PyObject *CYAN_PEN_get(void) { | |
23012 | PyObject *pyobj = 0; | |
23013 | ||
23014 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23015 | return pyobj; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | SWIGINTERN int GREEN_PEN_set(PyObject *) { | |
23020 | SWIG_Error(SWIG_AttributeError,"Variable GREEN_PEN is read-only."); | |
23021 | return 1; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | SWIGINTERN PyObject *GREEN_PEN_get(void) { | |
23026 | PyObject *pyobj = 0; | |
23027 | ||
23028 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23029 | return pyobj; | |
23030 | } | |
23031 | ||
23032 | ||
23033 | SWIGINTERN int BLACK_PEN_set(PyObject *) { | |
23034 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_PEN is read-only."); | |
23035 | return 1; | |
23036 | } | |
23037 | ||
23038 | ||
23039 | SWIGINTERN PyObject *BLACK_PEN_get(void) { | |
23040 | PyObject *pyobj = 0; | |
23041 | ||
23042 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23043 | return pyobj; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | SWIGINTERN int WHITE_PEN_set(PyObject *) { | |
23048 | SWIG_Error(SWIG_AttributeError,"Variable WHITE_PEN is read-only."); | |
23049 | return 1; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | SWIGINTERN PyObject *WHITE_PEN_get(void) { | |
23054 | PyObject *pyobj = 0; | |
23055 | ||
23056 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23057 | return pyobj; | |
23058 | } | |
23059 | ||
23060 | ||
23061 | SWIGINTERN int TRANSPARENT_PEN_set(PyObject *) { | |
23062 | SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_PEN is read-only."); | |
23063 | return 1; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | SWIGINTERN PyObject *TRANSPARENT_PEN_get(void) { | |
23068 | PyObject *pyobj = 0; | |
23069 | ||
23070 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23071 | return pyobj; | |
23072 | } | |
23073 | ||
23074 | ||
23075 | SWIGINTERN int BLACK_DASHED_PEN_set(PyObject *) { | |
23076 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_DASHED_PEN is read-only."); | |
23077 | return 1; | |
23078 | } | |
23079 | ||
23080 | ||
23081 | SWIGINTERN PyObject *BLACK_DASHED_PEN_get(void) { | |
23082 | PyObject *pyobj = 0; | |
23083 | ||
23084 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23085 | return pyobj; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | SWIGINTERN int GREY_PEN_set(PyObject *) { | |
23090 | SWIG_Error(SWIG_AttributeError,"Variable GREY_PEN is read-only."); | |
23091 | return 1; | |
23092 | } | |
23093 | ||
23094 | ||
23095 | SWIGINTERN PyObject *GREY_PEN_get(void) { | |
23096 | PyObject *pyobj = 0; | |
23097 | ||
23098 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23099 | return pyobj; | |
23100 | } | |
23101 | ||
23102 | ||
23103 | SWIGINTERN int MEDIUM_GREY_PEN_set(PyObject *) { | |
23104 | SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
23105 | return 1; | |
23106 | } | |
23107 | ||
23108 | ||
23109 | SWIGINTERN PyObject *MEDIUM_GREY_PEN_get(void) { | |
23110 | PyObject *pyobj = 0; | |
23111 | ||
23112 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23113 | return pyobj; | |
23114 | } | |
23115 | ||
23116 | ||
23117 | SWIGINTERN int LIGHT_GREY_PEN_set(PyObject *) { | |
23118 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_PEN is read-only."); | |
23119 | return 1; | |
23120 | } | |
23121 | ||
23122 | ||
23123 | SWIGINTERN PyObject *LIGHT_GREY_PEN_get(void) { | |
23124 | PyObject *pyobj = 0; | |
23125 | ||
23126 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23127 | return pyobj; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | SWIGINTERN int BLUE_BRUSH_set(PyObject *) { | |
23132 | SWIG_Error(SWIG_AttributeError,"Variable BLUE_BRUSH is read-only."); | |
23133 | return 1; | |
23134 | } | |
23135 | ||
23136 | ||
23137 | SWIGINTERN PyObject *BLUE_BRUSH_get(void) { | |
23138 | PyObject *pyobj = 0; | |
23139 | ||
23140 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23141 | return pyobj; | |
23142 | } | |
23143 | ||
23144 | ||
23145 | SWIGINTERN int GREEN_BRUSH_set(PyObject *) { | |
23146 | SWIG_Error(SWIG_AttributeError,"Variable GREEN_BRUSH is read-only."); | |
23147 | return 1; | |
23148 | } | |
23149 | ||
23150 | ||
23151 | SWIGINTERN PyObject *GREEN_BRUSH_get(void) { | |
23152 | PyObject *pyobj = 0; | |
23153 | ||
23154 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23155 | return pyobj; | |
23156 | } | |
23157 | ||
23158 | ||
23159 | SWIGINTERN int WHITE_BRUSH_set(PyObject *) { | |
23160 | SWIG_Error(SWIG_AttributeError,"Variable WHITE_BRUSH is read-only."); | |
23161 | return 1; | |
23162 | } | |
23163 | ||
23164 | ||
23165 | SWIGINTERN PyObject *WHITE_BRUSH_get(void) { | |
23166 | PyObject *pyobj = 0; | |
23167 | ||
23168 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23169 | return pyobj; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | SWIGINTERN int BLACK_BRUSH_set(PyObject *) { | |
23174 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_BRUSH is read-only."); | |
23175 | return 1; | |
23176 | } | |
23177 | ||
23178 | ||
23179 | SWIGINTERN PyObject *BLACK_BRUSH_get(void) { | |
23180 | PyObject *pyobj = 0; | |
23181 | ||
23182 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23183 | return pyobj; | |
23184 | } | |
23185 | ||
23186 | ||
23187 | SWIGINTERN int TRANSPARENT_BRUSH_set(PyObject *) { | |
23188 | SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
23189 | return 1; | |
23190 | } | |
23191 | ||
23192 | ||
23193 | SWIGINTERN PyObject *TRANSPARENT_BRUSH_get(void) { | |
23194 | PyObject *pyobj = 0; | |
23195 | ||
23196 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23197 | return pyobj; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | SWIGINTERN int CYAN_BRUSH_set(PyObject *) { | |
23202 | SWIG_Error(SWIG_AttributeError,"Variable CYAN_BRUSH is read-only."); | |
23203 | return 1; | |
23204 | } | |
23205 | ||
23206 | ||
23207 | SWIGINTERN PyObject *CYAN_BRUSH_get(void) { | |
23208 | PyObject *pyobj = 0; | |
23209 | ||
23210 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23211 | return pyobj; | |
23212 | } | |
23213 | ||
23214 | ||
23215 | SWIGINTERN int RED_BRUSH_set(PyObject *) { | |
23216 | SWIG_Error(SWIG_AttributeError,"Variable RED_BRUSH is read-only."); | |
23217 | return 1; | |
23218 | } | |
23219 | ||
23220 | ||
23221 | SWIGINTERN PyObject *RED_BRUSH_get(void) { | |
23222 | PyObject *pyobj = 0; | |
23223 | ||
23224 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23225 | return pyobj; | |
23226 | } | |
23227 | ||
23228 | ||
23229 | SWIGINTERN int GREY_BRUSH_set(PyObject *) { | |
23230 | SWIG_Error(SWIG_AttributeError,"Variable GREY_BRUSH is read-only."); | |
23231 | return 1; | |
23232 | } | |
23233 | ||
23234 | ||
23235 | SWIGINTERN PyObject *GREY_BRUSH_get(void) { | |
23236 | PyObject *pyobj = 0; | |
23237 | ||
23238 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23239 | return pyobj; | |
23240 | } | |
23241 | ||
23242 | ||
23243 | SWIGINTERN int MEDIUM_GREY_BRUSH_set(PyObject *) { | |
23244 | SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
23245 | return 1; | |
23246 | } | |
23247 | ||
23248 | ||
23249 | SWIGINTERN PyObject *MEDIUM_GREY_BRUSH_get(void) { | |
23250 | PyObject *pyobj = 0; | |
23251 | ||
23252 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23253 | return pyobj; | |
23254 | } | |
23255 | ||
23256 | ||
23257 | SWIGINTERN int LIGHT_GREY_BRUSH_set(PyObject *) { | |
23258 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
23259 | return 1; | |
23260 | } | |
23261 | ||
23262 | ||
23263 | SWIGINTERN PyObject *LIGHT_GREY_BRUSH_get(void) { | |
23264 | PyObject *pyobj = 0; | |
23265 | ||
23266 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23267 | return pyobj; | |
23268 | } | |
23269 | ||
23270 | ||
23271 | SWIGINTERN int BLACK_set(PyObject *) { | |
23272 | SWIG_Error(SWIG_AttributeError,"Variable BLACK is read-only."); | |
23273 | return 1; | |
23274 | } | |
23275 | ||
23276 | ||
23277 | SWIGINTERN PyObject *BLACK_get(void) { | |
23278 | PyObject *pyobj = 0; | |
23279 | ||
23280 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK), SWIGTYPE_p_wxColour, 0 ); | |
23281 | return pyobj; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | SWIGINTERN int WHITE_set(PyObject *) { | |
23286 | SWIG_Error(SWIG_AttributeError,"Variable WHITE is read-only."); | |
23287 | return 1; | |
23288 | } | |
23289 | ||
23290 | ||
23291 | SWIGINTERN PyObject *WHITE_get(void) { | |
23292 | PyObject *pyobj = 0; | |
23293 | ||
23294 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE), SWIGTYPE_p_wxColour, 0 ); | |
23295 | return pyobj; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | SWIGINTERN int RED_set(PyObject *) { | |
23300 | SWIG_Error(SWIG_AttributeError,"Variable RED is read-only."); | |
23301 | return 1; | |
23302 | } | |
23303 | ||
23304 | ||
23305 | SWIGINTERN PyObject *RED_get(void) { | |
23306 | PyObject *pyobj = 0; | |
23307 | ||
23308 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED), SWIGTYPE_p_wxColour, 0 ); | |
23309 | return pyobj; | |
23310 | } | |
23311 | ||
23312 | ||
23313 | SWIGINTERN int BLUE_set(PyObject *) { | |
23314 | SWIG_Error(SWIG_AttributeError,"Variable BLUE is read-only."); | |
23315 | return 1; | |
23316 | } | |
23317 | ||
23318 | ||
23319 | SWIGINTERN PyObject *BLUE_get(void) { | |
23320 | PyObject *pyobj = 0; | |
23321 | ||
23322 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE), SWIGTYPE_p_wxColour, 0 ); | |
23323 | return pyobj; | |
23324 | } | |
23325 | ||
23326 | ||
23327 | SWIGINTERN int GREEN_set(PyObject *) { | |
23328 | SWIG_Error(SWIG_AttributeError,"Variable GREEN is read-only."); | |
23329 | return 1; | |
23330 | } | |
23331 | ||
23332 | ||
23333 | SWIGINTERN PyObject *GREEN_get(void) { | |
23334 | PyObject *pyobj = 0; | |
23335 | ||
23336 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN), SWIGTYPE_p_wxColour, 0 ); | |
23337 | return pyobj; | |
23338 | } | |
23339 | ||
23340 | ||
23341 | SWIGINTERN int CYAN_set(PyObject *) { | |
23342 | SWIG_Error(SWIG_AttributeError,"Variable CYAN is read-only."); | |
23343 | return 1; | |
23344 | } | |
23345 | ||
23346 | ||
23347 | SWIGINTERN PyObject *CYAN_get(void) { | |
23348 | PyObject *pyobj = 0; | |
23349 | ||
23350 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN), SWIGTYPE_p_wxColour, 0 ); | |
23351 | return pyobj; | |
23352 | } | |
23353 | ||
23354 | ||
23355 | SWIGINTERN int LIGHT_GREY_set(PyObject *) { | |
23356 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY is read-only."); | |
23357 | return 1; | |
23358 | } | |
23359 | ||
23360 | ||
23361 | SWIGINTERN PyObject *LIGHT_GREY_get(void) { | |
23362 | PyObject *pyobj = 0; | |
23363 | ||
23364 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0 ); | |
23365 | return pyobj; | |
23366 | } | |
23367 | ||
23368 | ||
23369 | SWIGINTERN int STANDARD_CURSOR_set(PyObject *) { | |
23370 | SWIG_Error(SWIG_AttributeError,"Variable STANDARD_CURSOR is read-only."); | |
23371 | return 1; | |
23372 | } | |
23373 | ||
23374 | ||
23375 | SWIGINTERN PyObject *STANDARD_CURSOR_get(void) { | |
23376 | PyObject *pyobj = 0; | |
23377 | ||
23378 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23379 | return pyobj; | |
23380 | } | |
23381 | ||
23382 | ||
23383 | SWIGINTERN int HOURGLASS_CURSOR_set(PyObject *) { | |
23384 | SWIG_Error(SWIG_AttributeError,"Variable HOURGLASS_CURSOR is read-only."); | |
23385 | return 1; | |
23386 | } | |
23387 | ||
23388 | ||
23389 | SWIGINTERN PyObject *HOURGLASS_CURSOR_get(void) { | |
23390 | PyObject *pyobj = 0; | |
23391 | ||
23392 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23393 | return pyobj; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | SWIGINTERN int CROSS_CURSOR_set(PyObject *) { | |
23398 | SWIG_Error(SWIG_AttributeError,"Variable CROSS_CURSOR is read-only."); | |
23399 | return 1; | |
23400 | } | |
23401 | ||
23402 | ||
23403 | SWIGINTERN PyObject *CROSS_CURSOR_get(void) { | |
23404 | PyObject *pyobj = 0; | |
23405 | ||
23406 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23407 | return pyobj; | |
23408 | } | |
23409 | ||
23410 | ||
23411 | SWIGINTERN int NullBitmap_set(PyObject *) { | |
23412 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
23413 | return 1; | |
23414 | } | |
23415 | ||
23416 | ||
23417 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
23418 | PyObject *pyobj = 0; | |
23419 | ||
23420 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
23421 | return pyobj; | |
23422 | } | |
23423 | ||
23424 | ||
23425 | SWIGINTERN int NullIcon_set(PyObject *) { | |
23426 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
23427 | return 1; | |
23428 | } | |
23429 | ||
23430 | ||
23431 | SWIGINTERN PyObject *NullIcon_get(void) { | |
23432 | PyObject *pyobj = 0; | |
23433 | ||
23434 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
23435 | return pyobj; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | SWIGINTERN int NullCursor_set(PyObject *) { | |
23440 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
23441 | return 1; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | SWIGINTERN PyObject *NullCursor_get(void) { | |
23446 | PyObject *pyobj = 0; | |
23447 | ||
23448 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
23449 | return pyobj; | |
23450 | } | |
23451 | ||
23452 | ||
23453 | SWIGINTERN int NullPen_set(PyObject *) { | |
23454 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
23455 | return 1; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | SWIGINTERN PyObject *NullPen_get(void) { | |
23460 | PyObject *pyobj = 0; | |
23461 | ||
23462 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
23463 | return pyobj; | |
23464 | } | |
23465 | ||
23466 | ||
23467 | SWIGINTERN int NullBrush_set(PyObject *) { | |
23468 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
23469 | return 1; | |
23470 | } | |
23471 | ||
23472 | ||
23473 | SWIGINTERN PyObject *NullBrush_get(void) { | |
23474 | PyObject *pyobj = 0; | |
23475 | ||
23476 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
23477 | return pyobj; | |
23478 | } | |
23479 | ||
23480 | ||
23481 | SWIGINTERN int NullPalette_set(PyObject *) { | |
23482 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
23483 | return 1; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | SWIGINTERN PyObject *NullPalette_get(void) { | |
23488 | PyObject *pyobj = 0; | |
23489 | ||
23490 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
23491 | return pyobj; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | SWIGINTERN int NullFont_set(PyObject *) { | |
23496 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
23497 | return 1; | |
23498 | } | |
23499 | ||
23500 | ||
23501 | SWIGINTERN PyObject *NullFont_get(void) { | |
23502 | PyObject *pyobj = 0; | |
23503 | ||
23504 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
23505 | return pyobj; | |
23506 | } | |
23507 | ||
23508 | ||
23509 | SWIGINTERN int NullColour_set(PyObject *) { | |
23510 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
23511 | return 1; | |
23512 | } | |
23513 | ||
23514 | ||
23515 | SWIGINTERN PyObject *NullColour_get(void) { | |
23516 | PyObject *pyobj = 0; | |
23517 | ||
23518 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
23519 | return pyobj; | |
23520 | } | |
23521 | ||
23522 | ||
23523 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23524 | PyObject *resultobj = 0; | |
23525 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23526 | wxPen *arg2 = (wxPen *) 0 ; | |
23527 | void *argp1 = 0 ; | |
23528 | int res1 = 0 ; | |
23529 | void *argp2 = 0 ; | |
23530 | int res2 = 0 ; | |
23531 | PyObject * obj0 = 0 ; | |
23532 | PyObject * obj1 = 0 ; | |
23533 | char * kwnames[] = { | |
23534 | (char *) "self",(char *) "pen", NULL | |
23535 | }; | |
23536 | ||
23537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
23538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23539 | if (!SWIG_IsOK(res1)) { | |
23540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23541 | } | |
23542 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23543 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
23544 | if (!SWIG_IsOK(res2)) { | |
23545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
23546 | } | |
23547 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23548 | { | |
23549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23550 | (arg1)->AddPen(arg2); | |
23551 | wxPyEndAllowThreads(__tstate); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | } | |
23554 | resultobj = SWIG_Py_Void(); | |
23555 | return resultobj; | |
23556 | fail: | |
23557 | return NULL; | |
23558 | } | |
23559 | ||
23560 | ||
23561 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23562 | PyObject *resultobj = 0; | |
23563 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23564 | wxColour *arg2 = 0 ; | |
23565 | int arg3 ; | |
23566 | int arg4 ; | |
23567 | wxPen *result = 0 ; | |
23568 | void *argp1 = 0 ; | |
23569 | int res1 = 0 ; | |
23570 | wxColour temp2 ; | |
23571 | int val3 ; | |
23572 | int ecode3 = 0 ; | |
23573 | int val4 ; | |
23574 | int ecode4 = 0 ; | |
23575 | PyObject * obj0 = 0 ; | |
23576 | PyObject * obj1 = 0 ; | |
23577 | PyObject * obj2 = 0 ; | |
23578 | PyObject * obj3 = 0 ; | |
23579 | char * kwnames[] = { | |
23580 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
23581 | }; | |
23582 | ||
23583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23585 | if (!SWIG_IsOK(res1)) { | |
23586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23587 | } | |
23588 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23589 | { | |
23590 | arg2 = &temp2; | |
23591 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23592 | } | |
23593 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23594 | if (!SWIG_IsOK(ecode3)) { | |
23595 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
23596 | } | |
23597 | arg3 = static_cast< int >(val3); | |
23598 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23599 | if (!SWIG_IsOK(ecode4)) { | |
23600 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
23601 | } | |
23602 | arg4 = static_cast< int >(val4); | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
23616 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23617 | PyObject *resultobj = 0; | |
23618 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23619 | wxPen *arg2 = (wxPen *) 0 ; | |
23620 | void *argp1 = 0 ; | |
23621 | int res1 = 0 ; | |
23622 | void *argp2 = 0 ; | |
23623 | int res2 = 0 ; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | PyObject * obj1 = 0 ; | |
23626 | char * kwnames[] = { | |
23627 | (char *) "self",(char *) "pen", NULL | |
23628 | }; | |
23629 | ||
23630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
23631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23632 | if (!SWIG_IsOK(res1)) { | |
23633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23634 | } | |
23635 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23636 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
23637 | if (!SWIG_IsOK(res2)) { | |
23638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
23639 | } | |
23640 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23641 | { | |
23642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23643 | (arg1)->RemovePen(arg2); | |
23644 | wxPyEndAllowThreads(__tstate); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
23646 | } | |
23647 | resultobj = SWIG_Py_Void(); | |
23648 | return resultobj; | |
23649 | fail: | |
23650 | return NULL; | |
23651 | } | |
23652 | ||
23653 | ||
23654 | SWIGINTERN PyObject *_wrap_PenList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23655 | PyObject *resultobj = 0; | |
23656 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23657 | int result; | |
23658 | void *argp1 = 0 ; | |
23659 | int res1 = 0 ; | |
23660 | PyObject *swig_obj[1] ; | |
23661 | ||
23662 | if (!args) SWIG_fail; | |
23663 | swig_obj[0] = args; | |
23664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23665 | if (!SWIG_IsOK(res1)) { | |
23666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_GetCount" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23667 | } | |
23668 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23669 | { | |
23670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23671 | result = (int)(arg1)->GetCount(); | |
23672 | wxPyEndAllowThreads(__tstate); | |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
23674 | } | |
23675 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23676 | return resultobj; | |
23677 | fail: | |
23678 | return NULL; | |
23679 | } | |
23680 | ||
23681 | ||
23682 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23683 | PyObject *obj; | |
23684 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23685 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
23686 | return SWIG_Py_Void(); | |
23687 | } | |
23688 | ||
23689 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj = 0; | |
23691 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23692 | wxBrush *arg2 = (wxBrush *) 0 ; | |
23693 | void *argp1 = 0 ; | |
23694 | int res1 = 0 ; | |
23695 | void *argp2 = 0 ; | |
23696 | int res2 = 0 ; | |
23697 | PyObject * obj0 = 0 ; | |
23698 | PyObject * obj1 = 0 ; | |
23699 | char * kwnames[] = { | |
23700 | (char *) "self",(char *) "brush", NULL | |
23701 | }; | |
23702 | ||
23703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
23704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23705 | if (!SWIG_IsOK(res1)) { | |
23706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23707 | } | |
23708 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23709 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23710 | if (!SWIG_IsOK(res2)) { | |
23711 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
23712 | } | |
23713 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23714 | { | |
23715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23716 | (arg1)->AddBrush(arg2); | |
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | resultobj = SWIG_Py_Void(); | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
23727 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23728 | PyObject *resultobj = 0; | |
23729 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23730 | wxColour *arg2 = 0 ; | |
23731 | int arg3 = (int) wxSOLID ; | |
23732 | wxBrush *result = 0 ; | |
23733 | void *argp1 = 0 ; | |
23734 | int res1 = 0 ; | |
23735 | wxColour temp2 ; | |
23736 | int val3 ; | |
23737 | int ecode3 = 0 ; | |
23738 | PyObject * obj0 = 0 ; | |
23739 | PyObject * obj1 = 0 ; | |
23740 | PyObject * obj2 = 0 ; | |
23741 | char * kwnames[] = { | |
23742 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
23743 | }; | |
23744 | ||
23745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23747 | if (!SWIG_IsOK(res1)) { | |
23748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23749 | } | |
23750 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23751 | { | |
23752 | arg2 = &temp2; | |
23753 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23754 | } | |
23755 | if (obj2) { | |
23756 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23757 | if (!SWIG_IsOK(ecode3)) { | |
23758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
23759 | } | |
23760 | arg3 = static_cast< int >(val3); | |
23761 | } | |
23762 | { | |
23763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23764 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
23765 | wxPyEndAllowThreads(__tstate); | |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
23767 | } | |
23768 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23776 | PyObject *resultobj = 0; | |
23777 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23778 | wxBrush *arg2 = (wxBrush *) 0 ; | |
23779 | void *argp1 = 0 ; | |
23780 | int res1 = 0 ; | |
23781 | void *argp2 = 0 ; | |
23782 | int res2 = 0 ; | |
23783 | PyObject * obj0 = 0 ; | |
23784 | PyObject * obj1 = 0 ; | |
23785 | char * kwnames[] = { | |
23786 | (char *) "self",(char *) "brush", NULL | |
23787 | }; | |
23788 | ||
23789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
23790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23791 | if (!SWIG_IsOK(res1)) { | |
23792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23793 | } | |
23794 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23795 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23796 | if (!SWIG_IsOK(res2)) { | |
23797 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
23798 | } | |
23799 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23800 | { | |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | (arg1)->RemoveBrush(arg2); | |
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
23806 | resultobj = SWIG_Py_Void(); | |
23807 | return resultobj; | |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
23813 | SWIGINTERN PyObject *_wrap_BrushList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23814 | PyObject *resultobj = 0; | |
23815 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23816 | int result; | |
23817 | void *argp1 = 0 ; | |
23818 | int res1 = 0 ; | |
23819 | PyObject *swig_obj[1] ; | |
23820 | ||
23821 | if (!args) SWIG_fail; | |
23822 | swig_obj[0] = args; | |
23823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23824 | if (!SWIG_IsOK(res1)) { | |
23825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_GetCount" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23826 | } | |
23827 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23828 | { | |
23829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23830 | result = (int)(arg1)->GetCount(); | |
23831 | wxPyEndAllowThreads(__tstate); | |
23832 | if (PyErr_Occurred()) SWIG_fail; | |
23833 | } | |
23834 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23835 | return resultobj; | |
23836 | fail: | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23842 | PyObject *obj; | |
23843 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23844 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
23845 | return SWIG_Py_Void(); | |
23846 | } | |
23847 | ||
23848 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23849 | PyObject *resultobj = 0; | |
23850 | wxColourDatabase *result = 0 ; | |
23851 | ||
23852 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
23853 | { | |
23854 | if (!wxPyCheckForApp()) SWIG_fail; | |
23855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23856 | result = (wxColourDatabase *)new wxColourDatabase(); | |
23857 | wxPyEndAllowThreads(__tstate); | |
23858 | if (PyErr_Occurred()) SWIG_fail; | |
23859 | } | |
23860 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
23867 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23868 | PyObject *resultobj = 0; | |
23869 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23870 | void *argp1 = 0 ; | |
23871 | int res1 = 0 ; | |
23872 | PyObject *swig_obj[1] ; | |
23873 | ||
23874 | if (!args) SWIG_fail; | |
23875 | swig_obj[0] = args; | |
23876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
23877 | if (!SWIG_IsOK(res1)) { | |
23878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
23879 | } | |
23880 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23881 | { | |
23882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23883 | delete arg1; | |
23884 | ||
23885 | wxPyEndAllowThreads(__tstate); | |
23886 | if (PyErr_Occurred()) SWIG_fail; | |
23887 | } | |
23888 | resultobj = SWIG_Py_Void(); | |
23889 | return resultobj; | |
23890 | fail: | |
23891 | return NULL; | |
23892 | } | |
23893 | ||
23894 | ||
23895 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23896 | PyObject *resultobj = 0; | |
23897 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23898 | wxString *arg2 = 0 ; | |
23899 | wxColour result; | |
23900 | void *argp1 = 0 ; | |
23901 | int res1 = 0 ; | |
23902 | bool temp2 = false ; | |
23903 | PyObject * obj0 = 0 ; | |
23904 | PyObject * obj1 = 0 ; | |
23905 | char * kwnames[] = { | |
23906 | (char *) "self",(char *) "name", NULL | |
23907 | }; | |
23908 | ||
23909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
23910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23911 | if (!SWIG_IsOK(res1)) { | |
23912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23913 | } | |
23914 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23915 | { | |
23916 | arg2 = wxString_in_helper(obj1); | |
23917 | if (arg2 == NULL) SWIG_fail; | |
23918 | temp2 = true; | |
23919 | } | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
23923 | wxPyEndAllowThreads(__tstate); | |
23924 | if (PyErr_Occurred()) SWIG_fail; | |
23925 | } | |
23926 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23927 | { | |
23928 | if (temp2) | |
23929 | delete arg2; | |
23930 | } | |
23931 | return resultobj; | |
23932 | fail: | |
23933 | { | |
23934 | if (temp2) | |
23935 | delete arg2; | |
23936 | } | |
23937 | return NULL; | |
23938 | } | |
23939 | ||
23940 | ||
23941 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23942 | PyObject *resultobj = 0; | |
23943 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23944 | wxColour *arg2 = 0 ; | |
23945 | wxString result; | |
23946 | void *argp1 = 0 ; | |
23947 | int res1 = 0 ; | |
23948 | wxColour temp2 ; | |
23949 | PyObject * obj0 = 0 ; | |
23950 | PyObject * obj1 = 0 ; | |
23951 | char * kwnames[] = { | |
23952 | (char *) "self",(char *) "colour", NULL | |
23953 | }; | |
23954 | ||
23955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23957 | if (!SWIG_IsOK(res1)) { | |
23958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23959 | } | |
23960 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23961 | { | |
23962 | arg2 = &temp2; | |
23963 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23964 | } | |
23965 | { | |
23966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23967 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
23971 | { | |
23972 | #if wxUSE_UNICODE | |
23973 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23974 | #else | |
23975 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23976 | #endif | |
23977 | } | |
23978 | return resultobj; | |
23979 | fail: | |
23980 | return NULL; | |
23981 | } | |
23982 | ||
23983 | ||
23984 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23985 | PyObject *resultobj = 0; | |
23986 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23987 | wxString *arg2 = 0 ; | |
23988 | wxColour *arg3 = 0 ; | |
23989 | void *argp1 = 0 ; | |
23990 | int res1 = 0 ; | |
23991 | bool temp2 = false ; | |
23992 | wxColour temp3 ; | |
23993 | PyObject * obj0 = 0 ; | |
23994 | PyObject * obj1 = 0 ; | |
23995 | PyObject * obj2 = 0 ; | |
23996 | char * kwnames[] = { | |
23997 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
23998 | }; | |
23999 | ||
24000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
24002 | if (!SWIG_IsOK(res1)) { | |
24003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
24004 | } | |
24005 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
24006 | { | |
24007 | arg2 = wxString_in_helper(obj1); | |
24008 | if (arg2 == NULL) SWIG_fail; | |
24009 | temp2 = true; | |
24010 | } | |
24011 | { | |
24012 | arg3 = &temp3; | |
24013 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24014 | } | |
24015 | { | |
24016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24017 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | resultobj = SWIG_Py_Void(); | |
24022 | { | |
24023 | if (temp2) | |
24024 | delete arg2; | |
24025 | } | |
24026 | return resultobj; | |
24027 | fail: | |
24028 | { | |
24029 | if (temp2) | |
24030 | delete arg2; | |
24031 | } | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24037 | PyObject *resultobj = 0; | |
24038 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
24039 | wxString *arg2 = 0 ; | |
24040 | int arg3 ; | |
24041 | int arg4 ; | |
24042 | int arg5 ; | |
24043 | void *argp1 = 0 ; | |
24044 | int res1 = 0 ; | |
24045 | bool temp2 = false ; | |
24046 | int val3 ; | |
24047 | int ecode3 = 0 ; | |
24048 | int val4 ; | |
24049 | int ecode4 = 0 ; | |
24050 | int val5 ; | |
24051 | int ecode5 = 0 ; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | PyObject * obj1 = 0 ; | |
24054 | PyObject * obj2 = 0 ; | |
24055 | PyObject * obj3 = 0 ; | |
24056 | PyObject * obj4 = 0 ; | |
24057 | char * kwnames[] = { | |
24058 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
24059 | }; | |
24060 | ||
24061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
24063 | if (!SWIG_IsOK(res1)) { | |
24064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
24065 | } | |
24066 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
24067 | { | |
24068 | arg2 = wxString_in_helper(obj1); | |
24069 | if (arg2 == NULL) SWIG_fail; | |
24070 | temp2 = true; | |
24071 | } | |
24072 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24073 | if (!SWIG_IsOK(ecode3)) { | |
24074 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); | |
24075 | } | |
24076 | arg3 = static_cast< int >(val3); | |
24077 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24078 | if (!SWIG_IsOK(ecode4)) { | |
24079 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); | |
24080 | } | |
24081 | arg4 = static_cast< int >(val4); | |
24082 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24083 | if (!SWIG_IsOK(ecode5)) { | |
24084 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); | |
24085 | } | |
24086 | arg5 = static_cast< int >(val5); | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
24090 | wxPyEndAllowThreads(__tstate); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
24093 | resultobj = SWIG_Py_Void(); | |
24094 | { | |
24095 | if (temp2) | |
24096 | delete arg2; | |
24097 | } | |
24098 | return resultobj; | |
24099 | fail: | |
24100 | { | |
24101 | if (temp2) | |
24102 | delete arg2; | |
24103 | } | |
24104 | return NULL; | |
24105 | } | |
24106 | ||
24107 | ||
24108 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24109 | PyObject *obj; | |
24110 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24111 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
24112 | return SWIG_Py_Void(); | |
24113 | } | |
24114 | ||
24115 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24116 | return SWIG_Python_InitShadowInstance(args); | |
24117 | } | |
24118 | ||
24119 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24120 | PyObject *resultobj = 0; | |
24121 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24122 | wxFont *arg2 = (wxFont *) 0 ; | |
24123 | void *argp1 = 0 ; | |
24124 | int res1 = 0 ; | |
24125 | void *argp2 = 0 ; | |
24126 | int res2 = 0 ; | |
24127 | PyObject * obj0 = 0 ; | |
24128 | PyObject * obj1 = 0 ; | |
24129 | char * kwnames[] = { | |
24130 | (char *) "self",(char *) "font", NULL | |
24131 | }; | |
24132 | ||
24133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
24134 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24135 | if (!SWIG_IsOK(res1)) { | |
24136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24137 | } | |
24138 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24139 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
24140 | if (!SWIG_IsOK(res2)) { | |
24141 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
24142 | } | |
24143 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
24144 | { | |
24145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24146 | (arg1)->AddFont(arg2); | |
24147 | wxPyEndAllowThreads(__tstate); | |
24148 | if (PyErr_Occurred()) SWIG_fail; | |
24149 | } | |
24150 | resultobj = SWIG_Py_Void(); | |
24151 | return resultobj; | |
24152 | fail: | |
24153 | return NULL; | |
24154 | } | |
24155 | ||
24156 | ||
24157 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24158 | PyObject *resultobj = 0; | |
24159 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24160 | int arg2 ; | |
24161 | int arg3 ; | |
24162 | int arg4 ; | |
24163 | int arg5 ; | |
24164 | bool arg6 = (bool) false ; | |
24165 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
24166 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24167 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
24168 | wxFont *result = 0 ; | |
24169 | void *argp1 = 0 ; | |
24170 | int res1 = 0 ; | |
24171 | int val2 ; | |
24172 | int ecode2 = 0 ; | |
24173 | int val3 ; | |
24174 | int ecode3 = 0 ; | |
24175 | int val4 ; | |
24176 | int ecode4 = 0 ; | |
24177 | int val5 ; | |
24178 | int ecode5 = 0 ; | |
24179 | bool val6 ; | |
24180 | int ecode6 = 0 ; | |
24181 | bool temp7 = false ; | |
24182 | int val8 ; | |
24183 | int ecode8 = 0 ; | |
24184 | PyObject * obj0 = 0 ; | |
24185 | PyObject * obj1 = 0 ; | |
24186 | PyObject * obj2 = 0 ; | |
24187 | PyObject * obj3 = 0 ; | |
24188 | PyObject * obj4 = 0 ; | |
24189 | PyObject * obj5 = 0 ; | |
24190 | PyObject * obj6 = 0 ; | |
24191 | PyObject * obj7 = 0 ; | |
24192 | char * kwnames[] = { | |
24193 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
24194 | }; | |
24195 | ||
24196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
24197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24198 | if (!SWIG_IsOK(res1)) { | |
24199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24200 | } | |
24201 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24202 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24203 | if (!SWIG_IsOK(ecode2)) { | |
24204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
24205 | } | |
24206 | arg2 = static_cast< int >(val2); | |
24207 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24208 | if (!SWIG_IsOK(ecode3)) { | |
24209 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
24210 | } | |
24211 | arg3 = static_cast< int >(val3); | |
24212 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24213 | if (!SWIG_IsOK(ecode4)) { | |
24214 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
24215 | } | |
24216 | arg4 = static_cast< int >(val4); | |
24217 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24218 | if (!SWIG_IsOK(ecode5)) { | |
24219 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
24220 | } | |
24221 | arg5 = static_cast< int >(val5); | |
24222 | if (obj5) { | |
24223 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
24224 | if (!SWIG_IsOK(ecode6)) { | |
24225 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
24226 | } | |
24227 | arg6 = static_cast< bool >(val6); | |
24228 | } | |
24229 | if (obj6) { | |
093d3ff1 | 24230 | { |
554f62e9 RD |
24231 | arg7 = wxString_in_helper(obj6); |
24232 | if (arg7 == NULL) SWIG_fail; | |
24233 | temp7 = true; | |
093d3ff1 | 24234 | } |
554f62e9 RD |
24235 | } |
24236 | if (obj7) { | |
24237 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
24238 | if (!SWIG_IsOK(ecode8)) { | |
24239 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
24240 | } | |
24241 | arg8 = static_cast< wxFontEncoding >(val8); | |
24242 | } | |
24243 | { | |
24244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24245 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); | |
24246 | wxPyEndAllowThreads(__tstate); | |
24247 | if (PyErr_Occurred()) SWIG_fail; | |
24248 | } | |
24249 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
24250 | { | |
24251 | if (temp7) | |
24252 | delete arg7; | |
24253 | } | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | { | |
24257 | if (temp7) | |
24258 | delete arg7; | |
24259 | } | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24265 | PyObject *resultobj = 0; | |
24266 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24267 | wxFont *arg2 = (wxFont *) 0 ; | |
24268 | void *argp1 = 0 ; | |
24269 | int res1 = 0 ; | |
24270 | void *argp2 = 0 ; | |
24271 | int res2 = 0 ; | |
24272 | PyObject * obj0 = 0 ; | |
24273 | PyObject * obj1 = 0 ; | |
24274 | char * kwnames[] = { | |
24275 | (char *) "self",(char *) "font", NULL | |
24276 | }; | |
24277 | ||
24278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
24279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24280 | if (!SWIG_IsOK(res1)) { | |
24281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24282 | } | |
24283 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24284 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
24285 | if (!SWIG_IsOK(res2)) { | |
24286 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
24287 | } | |
24288 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
24289 | { | |
24290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24291 | (arg1)->RemoveFont(arg2); | |
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
24295 | resultobj = SWIG_Py_Void(); | |
24296 | return resultobj; | |
24297 | fail: | |
24298 | return NULL; | |
24299 | } | |
24300 | ||
24301 | ||
24302 | SWIGINTERN PyObject *_wrap_FontList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24303 | PyObject *resultobj = 0; | |
24304 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24305 | int result; | |
24306 | void *argp1 = 0 ; | |
24307 | int res1 = 0 ; | |
24308 | PyObject *swig_obj[1] ; | |
24309 | ||
24310 | if (!args) SWIG_fail; | |
24311 | swig_obj[0] = args; | |
24312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24313 | if (!SWIG_IsOK(res1)) { | |
24314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_GetCount" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24315 | } | |
24316 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24317 | { | |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | result = (int)(arg1)->GetCount(); | |
24320 | wxPyEndAllowThreads(__tstate); | |
24321 | if (PyErr_Occurred()) SWIG_fail; | |
24322 | } | |
24323 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24324 | return resultobj; | |
24325 | fail: | |
24326 | return NULL; | |
24327 | } | |
24328 | ||
24329 | ||
24330 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24331 | PyObject *obj; | |
24332 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24333 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); | |
24334 | return SWIG_Py_Void(); | |
24335 | } | |
24336 | ||
24337 | SWIGINTERN int TheFontList_set(PyObject *) { | |
24338 | SWIG_Error(SWIG_AttributeError,"Variable TheFontList is read-only."); | |
24339 | return 1; | |
24340 | } | |
24341 | ||
24342 | ||
24343 | SWIGINTERN PyObject *TheFontList_get(void) { | |
24344 | PyObject *pyobj = 0; | |
24345 | ||
24346 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheFontList), SWIGTYPE_p_wxFontList, 0 ); | |
24347 | return pyobj; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | SWIGINTERN int ThePenList_set(PyObject *) { | |
24352 | SWIG_Error(SWIG_AttributeError,"Variable ThePenList is read-only."); | |
24353 | return 1; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | SWIGINTERN PyObject *ThePenList_get(void) { | |
24358 | PyObject *pyobj = 0; | |
24359 | ||
24360 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxThePenList), SWIGTYPE_p_wxPenList, 0 ); | |
24361 | return pyobj; | |
24362 | } | |
24363 | ||
24364 | ||
24365 | SWIGINTERN int TheBrushList_set(PyObject *) { | |
24366 | SWIG_Error(SWIG_AttributeError,"Variable TheBrushList is read-only."); | |
24367 | return 1; | |
24368 | } | |
24369 | ||
24370 | ||
24371 | SWIGINTERN PyObject *TheBrushList_get(void) { | |
24372 | PyObject *pyobj = 0; | |
24373 | ||
24374 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0 ); | |
24375 | return pyobj; | |
24376 | } | |
24377 | ||
24378 | ||
24379 | SWIGINTERN int TheColourDatabase_set(PyObject *) { | |
24380 | SWIG_Error(SWIG_AttributeError,"Variable TheColourDatabase is read-only."); | |
24381 | return 1; | |
24382 | } | |
24383 | ||
24384 | ||
24385 | SWIGINTERN PyObject *TheColourDatabase_get(void) { | |
24386 | PyObject *pyobj = 0; | |
24387 | ||
24388 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0 ); | |
24389 | return pyobj; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24394 | PyObject *resultobj = 0; | |
24395 | wxEffects *result = 0 ; | |
24396 | ||
24397 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | result = (wxEffects *)new wxEffects(); | |
24401 | wxPyEndAllowThreads(__tstate); | |
24402 | if (PyErr_Occurred()) SWIG_fail; | |
24403 | } | |
24404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
24405 | return resultobj; | |
24406 | fail: | |
24407 | return NULL; | |
24408 | } | |
24409 | ||
24410 | ||
24411 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24412 | PyObject *resultobj = 0; | |
24413 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24414 | wxColour result; | |
24415 | void *argp1 = 0 ; | |
24416 | int res1 = 0 ; | |
24417 | PyObject *swig_obj[1] ; | |
24418 | ||
24419 | if (!args) SWIG_fail; | |
24420 | swig_obj[0] = args; | |
24421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24422 | if (!SWIG_IsOK(res1)) { | |
24423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24424 | } | |
24425 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24426 | { | |
24427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24428 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
24429 | wxPyEndAllowThreads(__tstate); | |
24430 | if (PyErr_Occurred()) SWIG_fail; | |
24431 | } | |
24432 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24433 | return resultobj; | |
24434 | fail: | |
24435 | return NULL; | |
24436 | } | |
24437 | ||
24438 | ||
24439 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24440 | PyObject *resultobj = 0; | |
24441 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24442 | wxColour result; | |
24443 | void *argp1 = 0 ; | |
24444 | int res1 = 0 ; | |
24445 | PyObject *swig_obj[1] ; | |
24446 | ||
24447 | if (!args) SWIG_fail; | |
24448 | swig_obj[0] = args; | |
24449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24450 | if (!SWIG_IsOK(res1)) { | |
24451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24452 | } | |
24453 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24454 | { | |
24455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24456 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
24457 | wxPyEndAllowThreads(__tstate); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
24460 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24461 | return resultobj; | |
24462 | fail: | |
24463 | return NULL; | |
24464 | } | |
24465 | ||
24466 | ||
24467 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24468 | PyObject *resultobj = 0; | |
24469 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24470 | wxColour result; | |
24471 | void *argp1 = 0 ; | |
24472 | int res1 = 0 ; | |
24473 | PyObject *swig_obj[1] ; | |
24474 | ||
24475 | if (!args) SWIG_fail; | |
24476 | swig_obj[0] = args; | |
24477 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24478 | if (!SWIG_IsOK(res1)) { | |
24479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24480 | } | |
24481 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24482 | { | |
24483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24484 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24489 | return resultobj; | |
24490 | fail: | |
24491 | return NULL; | |
24492 | } | |
24493 | ||
24494 | ||
24495 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24496 | PyObject *resultobj = 0; | |
24497 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24498 | wxColour result; | |
24499 | void *argp1 = 0 ; | |
24500 | int res1 = 0 ; | |
24501 | PyObject *swig_obj[1] ; | |
24502 | ||
24503 | if (!args) SWIG_fail; | |
24504 | swig_obj[0] = args; | |
24505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24506 | if (!SWIG_IsOK(res1)) { | |
24507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24508 | } | |
24509 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24510 | { | |
24511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24512 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
24513 | wxPyEndAllowThreads(__tstate); | |
24514 | if (PyErr_Occurred()) SWIG_fail; | |
24515 | } | |
24516 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24517 | return resultobj; | |
24518 | fail: | |
24519 | return NULL; | |
24520 | } | |
24521 | ||
24522 | ||
24523 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24524 | PyObject *resultobj = 0; | |
24525 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24526 | wxColour result; | |
24527 | void *argp1 = 0 ; | |
24528 | int res1 = 0 ; | |
24529 | PyObject *swig_obj[1] ; | |
24530 | ||
24531 | if (!args) SWIG_fail; | |
24532 | swig_obj[0] = args; | |
24533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24534 | if (!SWIG_IsOK(res1)) { | |
24535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24536 | } | |
24537 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24538 | { | |
24539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24540 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
24541 | wxPyEndAllowThreads(__tstate); | |
24542 | if (PyErr_Occurred()) SWIG_fail; | |
24543 | } | |
24544 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24545 | return resultobj; | |
24546 | fail: | |
24547 | return NULL; | |
24548 | } | |
24549 | ||
24550 | ||
24551 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24552 | PyObject *resultobj = 0; | |
24553 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24554 | wxColour *arg2 = 0 ; | |
24555 | void *argp1 = 0 ; | |
24556 | int res1 = 0 ; | |
24557 | wxColour temp2 ; | |
24558 | PyObject * obj0 = 0 ; | |
24559 | PyObject * obj1 = 0 ; | |
24560 | char * kwnames[] = { | |
24561 | (char *) "self",(char *) "c", NULL | |
24562 | }; | |
24563 | ||
24564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24566 | if (!SWIG_IsOK(res1)) { | |
24567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24568 | } | |
24569 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24570 | { | |
24571 | arg2 = &temp2; | |
24572 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24573 | } | |
24574 | { | |
24575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24576 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
24577 | wxPyEndAllowThreads(__tstate); | |
24578 | if (PyErr_Occurred()) SWIG_fail; | |
24579 | } | |
24580 | resultobj = SWIG_Py_Void(); | |
24581 | return resultobj; | |
24582 | fail: | |
24583 | return NULL; | |
24584 | } | |
24585 | ||
24586 | ||
24587 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24588 | PyObject *resultobj = 0; | |
24589 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24590 | wxColour *arg2 = 0 ; | |
24591 | void *argp1 = 0 ; | |
24592 | int res1 = 0 ; | |
24593 | wxColour temp2 ; | |
24594 | PyObject * obj0 = 0 ; | |
24595 | PyObject * obj1 = 0 ; | |
24596 | char * kwnames[] = { | |
24597 | (char *) "self",(char *) "c", NULL | |
24598 | }; | |
24599 | ||
24600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24602 | if (!SWIG_IsOK(res1)) { | |
24603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24604 | } | |
24605 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24606 | { | |
24607 | arg2 = &temp2; | |
24608 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24609 | } | |
24610 | { | |
24611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24612 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
24613 | wxPyEndAllowThreads(__tstate); | |
24614 | if (PyErr_Occurred()) SWIG_fail; | |
24615 | } | |
24616 | resultobj = SWIG_Py_Void(); | |
24617 | return resultobj; | |
24618 | fail: | |
24619 | return NULL; | |
24620 | } | |
24621 | ||
24622 | ||
24623 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24624 | PyObject *resultobj = 0; | |
24625 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24626 | wxColour *arg2 = 0 ; | |
24627 | void *argp1 = 0 ; | |
24628 | int res1 = 0 ; | |
24629 | wxColour temp2 ; | |
24630 | PyObject * obj0 = 0 ; | |
24631 | PyObject * obj1 = 0 ; | |
24632 | char * kwnames[] = { | |
24633 | (char *) "self",(char *) "c", NULL | |
24634 | }; | |
24635 | ||
24636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24638 | if (!SWIG_IsOK(res1)) { | |
24639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24640 | } | |
24641 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24642 | { | |
24643 | arg2 = &temp2; | |
24644 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24645 | } | |
24646 | { | |
24647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24648 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
24649 | wxPyEndAllowThreads(__tstate); | |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | resultobj = SWIG_Py_Void(); | |
24653 | return resultobj; | |
24654 | fail: | |
24655 | return NULL; | |
24656 | } | |
24657 | ||
24658 | ||
24659 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24660 | PyObject *resultobj = 0; | |
24661 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24662 | wxColour *arg2 = 0 ; | |
24663 | void *argp1 = 0 ; | |
24664 | int res1 = 0 ; | |
24665 | wxColour temp2 ; | |
24666 | PyObject * obj0 = 0 ; | |
24667 | PyObject * obj1 = 0 ; | |
24668 | char * kwnames[] = { | |
24669 | (char *) "self",(char *) "c", NULL | |
24670 | }; | |
24671 | ||
24672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24674 | if (!SWIG_IsOK(res1)) { | |
24675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24676 | } | |
24677 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24678 | { | |
24679 | arg2 = &temp2; | |
24680 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24681 | } | |
24682 | { | |
24683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24684 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | resultobj = SWIG_Py_Void(); | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24696 | PyObject *resultobj = 0; | |
24697 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24698 | wxColour *arg2 = 0 ; | |
24699 | void *argp1 = 0 ; | |
24700 | int res1 = 0 ; | |
24701 | wxColour temp2 ; | |
24702 | PyObject * obj0 = 0 ; | |
24703 | PyObject * obj1 = 0 ; | |
24704 | char * kwnames[] = { | |
24705 | (char *) "self",(char *) "c", NULL | |
24706 | }; | |
24707 | ||
24708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24710 | if (!SWIG_IsOK(res1)) { | |
24711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24712 | } | |
24713 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24714 | { | |
24715 | arg2 = &temp2; | |
24716 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24717 | } | |
24718 | { | |
24719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24720 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
24721 | wxPyEndAllowThreads(__tstate); | |
24722 | if (PyErr_Occurred()) SWIG_fail; | |
24723 | } | |
24724 | resultobj = SWIG_Py_Void(); | |
24725 | return resultobj; | |
24726 | fail: | |
24727 | return NULL; | |
24728 | } | |
24729 | ||
24730 | ||
24731 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24732 | PyObject *resultobj = 0; | |
24733 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24734 | wxColour *arg2 = 0 ; | |
24735 | wxColour *arg3 = 0 ; | |
24736 | wxColour *arg4 = 0 ; | |
24737 | wxColour *arg5 = 0 ; | |
24738 | wxColour *arg6 = 0 ; | |
24739 | void *argp1 = 0 ; | |
24740 | int res1 = 0 ; | |
24741 | wxColour temp2 ; | |
24742 | wxColour temp3 ; | |
24743 | wxColour temp4 ; | |
24744 | wxColour temp5 ; | |
24745 | wxColour temp6 ; | |
24746 | PyObject * obj0 = 0 ; | |
24747 | PyObject * obj1 = 0 ; | |
24748 | PyObject * obj2 = 0 ; | |
24749 | PyObject * obj3 = 0 ; | |
24750 | PyObject * obj4 = 0 ; | |
24751 | PyObject * obj5 = 0 ; | |
24752 | char * kwnames[] = { | |
24753 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
24754 | }; | |
24755 | ||
24756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
24757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24758 | if (!SWIG_IsOK(res1)) { | |
24759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24760 | } | |
24761 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24762 | { | |
24763 | arg2 = &temp2; | |
24764 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24765 | } | |
24766 | { | |
24767 | arg3 = &temp3; | |
24768 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24769 | } | |
24770 | { | |
24771 | arg4 = &temp4; | |
24772 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
24773 | } | |
24774 | { | |
24775 | arg5 = &temp5; | |
24776 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
24777 | } | |
24778 | { | |
24779 | arg6 = &temp6; | |
24780 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
24781 | } | |
24782 | { | |
24783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24784 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
24788 | resultobj = SWIG_Py_Void(); | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
24795 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24796 | PyObject *resultobj = 0; | |
24797 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24798 | wxDC *arg2 = 0 ; | |
24799 | wxRect *arg3 = 0 ; | |
24800 | int arg4 = (int) 1 ; | |
24801 | void *argp1 = 0 ; | |
24802 | int res1 = 0 ; | |
24803 | void *argp2 = 0 ; | |
24804 | int res2 = 0 ; | |
24805 | wxRect temp3 ; | |
24806 | int val4 ; | |
24807 | int ecode4 = 0 ; | |
24808 | PyObject * obj0 = 0 ; | |
24809 | PyObject * obj1 = 0 ; | |
24810 | PyObject * obj2 = 0 ; | |
24811 | PyObject * obj3 = 0 ; | |
24812 | char * kwnames[] = { | |
24813 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
24814 | }; | |
24815 | ||
24816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24818 | if (!SWIG_IsOK(res1)) { | |
24819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24820 | } | |
24821 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24822 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
24823 | if (!SWIG_IsOK(res2)) { | |
24824 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
24825 | } | |
24826 | if (!argp2) { | |
24827 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
24828 | } | |
24829 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
24830 | { | |
24831 | arg3 = &temp3; | |
24832 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
24833 | } | |
24834 | if (obj3) { | |
24835 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24836 | if (!SWIG_IsOK(ecode4)) { | |
24837 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
24838 | } | |
24839 | arg4 = static_cast< int >(val4); | |
24840 | } | |
24841 | { | |
24842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24843 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
24844 | wxPyEndAllowThreads(__tstate); | |
24845 | if (PyErr_Occurred()) SWIG_fail; | |
24846 | } | |
24847 | resultobj = SWIG_Py_Void(); | |
24848 | return resultobj; | |
24849 | fail: | |
24850 | return NULL; | |
24851 | } | |
24852 | ||
24853 | ||
24854 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24855 | PyObject *resultobj = 0; | |
24856 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24857 | wxRect *arg2 = 0 ; | |
24858 | wxDC *arg3 = 0 ; | |
24859 | wxBitmap *arg4 = 0 ; | |
24860 | bool result; | |
24861 | void *argp1 = 0 ; | |
24862 | int res1 = 0 ; | |
24863 | wxRect temp2 ; | |
24864 | void *argp3 = 0 ; | |
24865 | int res3 = 0 ; | |
24866 | void *argp4 = 0 ; | |
24867 | int res4 = 0 ; | |
24868 | PyObject * obj0 = 0 ; | |
24869 | PyObject * obj1 = 0 ; | |
24870 | PyObject * obj2 = 0 ; | |
24871 | PyObject * obj3 = 0 ; | |
24872 | char * kwnames[] = { | |
24873 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
24874 | }; | |
24875 | ||
24876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24878 | if (!SWIG_IsOK(res1)) { | |
24879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24880 | } | |
24881 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24882 | { | |
24883 | arg2 = &temp2; | |
24884 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24885 | } | |
24886 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24887 | if (!SWIG_IsOK(res3)) { | |
24888 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24889 | } | |
24890 | if (!argp3) { | |
24891 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24892 | } | |
24893 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24894 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
24895 | if (!SWIG_IsOK(res4)) { | |
24896 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
24897 | } | |
24898 | if (!argp4) { | |
24899 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
24900 | } | |
24901 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
24902 | { | |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
24905 | wxPyEndAllowThreads(__tstate); | |
24906 | if (PyErr_Occurred()) SWIG_fail; | |
24907 | } | |
24908 | { | |
24909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24910 | } | |
24911 | return resultobj; | |
24912 | fail: | |
24913 | return NULL; | |
24914 | } | |
24915 | ||
24916 | ||
24917 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24918 | PyObject *obj; | |
24919 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24920 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
24921 | return SWIG_Py_Void(); | |
24922 | } | |
24923 | ||
24924 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24925 | return SWIG_Python_InitShadowInstance(args); | |
24926 | } | |
24927 | ||
24928 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24929 | PyObject *resultobj = 0; | |
24930 | int arg1 ; | |
24931 | int arg2 ; | |
24932 | bool arg3 ; | |
24933 | wxSplitterRenderParams *result = 0 ; | |
24934 | int val1 ; | |
24935 | int ecode1 = 0 ; | |
24936 | int val2 ; | |
24937 | int ecode2 = 0 ; | |
24938 | bool val3 ; | |
24939 | int ecode3 = 0 ; | |
24940 | PyObject * obj0 = 0 ; | |
24941 | PyObject * obj1 = 0 ; | |
24942 | PyObject * obj2 = 0 ; | |
24943 | char * kwnames[] = { | |
24944 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
24945 | }; | |
24946 | ||
24947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24948 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24949 | if (!SWIG_IsOK(ecode1)) { | |
24950 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
24951 | } | |
24952 | arg1 = static_cast< int >(val1); | |
24953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24954 | if (!SWIG_IsOK(ecode2)) { | |
24955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
24956 | } | |
24957 | arg2 = static_cast< int >(val2); | |
24958 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24959 | if (!SWIG_IsOK(ecode3)) { | |
24960 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
24961 | } | |
24962 | arg3 = static_cast< bool >(val3); | |
24963 | { | |
24964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24965 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
24966 | wxPyEndAllowThreads(__tstate); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | } | |
24969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
24970 | return resultobj; | |
24971 | fail: | |
24972 | return NULL; | |
24973 | } | |
24974 | ||
24975 | ||
24976 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24977 | PyObject *resultobj = 0; | |
24978 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24979 | void *argp1 = 0 ; | |
24980 | int res1 = 0 ; | |
24981 | PyObject *swig_obj[1] ; | |
24982 | ||
24983 | if (!args) SWIG_fail; | |
24984 | swig_obj[0] = args; | |
24985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
24986 | if (!SWIG_IsOK(res1)) { | |
24987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24988 | } | |
24989 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24990 | { | |
24991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24992 | delete arg1; | |
24993 | ||
24994 | wxPyEndAllowThreads(__tstate); | |
24995 | if (PyErr_Occurred()) SWIG_fail; | |
24996 | } | |
24997 | resultobj = SWIG_Py_Void(); | |
24998 | return resultobj; | |
24999 | fail: | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
25004 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25005 | PyObject *resultobj = 0; | |
25006 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
25007 | int result; | |
25008 | void *argp1 = 0 ; | |
25009 | int res1 = 0 ; | |
25010 | PyObject *swig_obj[1] ; | |
25011 | ||
25012 | if (!args) SWIG_fail; | |
25013 | swig_obj[0] = args; | |
25014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25015 | if (!SWIG_IsOK(res1)) { | |
25016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25017 | } | |
25018 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25019 | result = (int)(int) ((arg1)->widthSash); | |
25020 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25021 | return resultobj; | |
25022 | fail: | |
25023 | return NULL; | |
25024 | } | |
25025 | ||
25026 | ||
25027 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25028 | PyObject *resultobj = 0; | |
25029 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
25030 | int result; | |
25031 | void *argp1 = 0 ; | |
25032 | int res1 = 0 ; | |
25033 | PyObject *swig_obj[1] ; | |
25034 | ||
25035 | if (!args) SWIG_fail; | |
25036 | swig_obj[0] = args; | |
25037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25038 | if (!SWIG_IsOK(res1)) { | |
25039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25040 | } | |
25041 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25042 | result = (int)(int) ((arg1)->border); | |
25043 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
25047 | } | |
25048 | ||
25049 | ||
25050 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25051 | PyObject *resultobj = 0; | |
25052 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
25053 | bool result; | |
25054 | void *argp1 = 0 ; | |
25055 | int res1 = 0 ; | |
25056 | PyObject *swig_obj[1] ; | |
25057 | ||
25058 | if (!args) SWIG_fail; | |
25059 | swig_obj[0] = args; | |
25060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25061 | if (!SWIG_IsOK(res1)) { | |
25062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25063 | } | |
25064 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25065 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
25066 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
25067 | return resultobj; | |
25068 | fail: | |
25069 | return NULL; | |
25070 | } | |
25071 | ||
25072 | ||
25073 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25074 | PyObject *obj; | |
25075 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25076 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
25077 | return SWIG_Py_Void(); | |
25078 | } | |
25079 | ||
25080 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25081 | return SWIG_Python_InitShadowInstance(args); | |
25082 | } | |
25083 | ||
25084 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25085 | PyObject *resultobj = 0; | |
25086 | int arg1 ; | |
25087 | int arg2 ; | |
25088 | wxRendererVersion *result = 0 ; | |
25089 | int val1 ; | |
25090 | int ecode1 = 0 ; | |
25091 | int val2 ; | |
25092 | int ecode2 = 0 ; | |
25093 | PyObject * obj0 = 0 ; | |
25094 | PyObject * obj1 = 0 ; | |
25095 | char * kwnames[] = { | |
25096 | (char *) "version_",(char *) "age_", NULL | |
25097 | }; | |
25098 | ||
25099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
25100 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25101 | if (!SWIG_IsOK(ecode1)) { | |
25102 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
25103 | } | |
25104 | arg1 = static_cast< int >(val1); | |
25105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25106 | if (!SWIG_IsOK(ecode2)) { | |
25107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
25108 | } | |
25109 | arg2 = static_cast< int >(val2); | |
25110 | { | |
25111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25112 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
25116 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
25117 | return resultobj; | |
25118 | fail: | |
25119 | return NULL; | |
25120 | } | |
25121 | ||
25122 | ||
25123 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25124 | PyObject *resultobj = 0; | |
25125 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25126 | void *argp1 = 0 ; | |
25127 | int res1 = 0 ; | |
25128 | PyObject *swig_obj[1] ; | |
25129 | ||
25130 | if (!args) SWIG_fail; | |
25131 | swig_obj[0] = args; | |
25132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
25133 | if (!SWIG_IsOK(res1)) { | |
25134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25135 | } | |
25136 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25137 | { | |
25138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25139 | delete arg1; | |
25140 | ||
25141 | wxPyEndAllowThreads(__tstate); | |
25142 | if (PyErr_Occurred()) SWIG_fail; | |
25143 | } | |
25144 | resultobj = SWIG_Py_Void(); | |
25145 | return resultobj; | |
25146 | fail: | |
25147 | return NULL; | |
25148 | } | |
25149 | ||
25150 | ||
25151 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25152 | PyObject *resultobj = 0; | |
25153 | wxRendererVersion *arg1 = 0 ; | |
25154 | bool result; | |
25155 | void *argp1 = 0 ; | |
25156 | int res1 = 0 ; | |
25157 | PyObject * obj0 = 0 ; | |
25158 | char * kwnames[] = { | |
25159 | (char *) "ver", NULL | |
25160 | }; | |
25161 | ||
25162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
25163 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
25164 | if (!SWIG_IsOK(res1)) { | |
25165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
25166 | } | |
25167 | if (!argp1) { | |
25168 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
25169 | } | |
25170 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25171 | { | |
25172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25173 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
25174 | wxPyEndAllowThreads(__tstate); | |
25175 | if (PyErr_Occurred()) SWIG_fail; | |
25176 | } | |
25177 | { | |
25178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25179 | } | |
25180 | return resultobj; | |
25181 | fail: | |
25182 | return NULL; | |
25183 | } | |
25184 | ||
25185 | ||
25186 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25187 | PyObject *resultobj = 0; | |
25188 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25189 | int result; | |
25190 | void *argp1 = 0 ; | |
25191 | int res1 = 0 ; | |
25192 | PyObject *swig_obj[1] ; | |
25193 | ||
25194 | if (!args) SWIG_fail; | |
25195 | swig_obj[0] = args; | |
25196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
25197 | if (!SWIG_IsOK(res1)) { | |
25198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25199 | } | |
25200 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25201 | result = (int)(int) ((arg1)->version); | |
25202 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25203 | return resultobj; | |
25204 | fail: | |
25205 | return NULL; | |
25206 | } | |
25207 | ||
25208 | ||
25209 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25210 | PyObject *resultobj = 0; | |
25211 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25212 | int result; | |
25213 | void *argp1 = 0 ; | |
25214 | int res1 = 0 ; | |
25215 | PyObject *swig_obj[1] ; | |
25216 | ||
25217 | if (!args) SWIG_fail; | |
25218 | swig_obj[0] = args; | |
25219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
25220 | if (!SWIG_IsOK(res1)) { | |
25221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25222 | } | |
25223 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25224 | result = (int)(int) ((arg1)->age); | |
25225 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25226 | return resultobj; | |
25227 | fail: | |
25228 | return NULL; | |
25229 | } | |
25230 | ||
25231 | ||
25232 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25233 | PyObject *obj; | |
25234 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25235 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
25236 | return SWIG_Py_Void(); | |
25237 | } | |
25238 | ||
25239 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25240 | return SWIG_Python_InitShadowInstance(args); | |
25241 | } | |
25242 | ||
25243 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25244 | PyObject *resultobj = 0; | |
25245 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25247 | wxDC *arg3 = 0 ; | |
25248 | wxRect *arg4 = 0 ; | |
25249 | int arg5 = (int) 0 ; | |
25250 | void *argp1 = 0 ; | |
25251 | int res1 = 0 ; | |
25252 | void *argp2 = 0 ; | |
25253 | int res2 = 0 ; | |
25254 | void *argp3 = 0 ; | |
25255 | int res3 = 0 ; | |
25256 | wxRect temp4 ; | |
25257 | int val5 ; | |
25258 | int ecode5 = 0 ; | |
25259 | PyObject * obj0 = 0 ; | |
25260 | PyObject * obj1 = 0 ; | |
25261 | PyObject * obj2 = 0 ; | |
25262 | PyObject * obj3 = 0 ; | |
25263 | PyObject * obj4 = 0 ; | |
25264 | char * kwnames[] = { | |
25265 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25266 | }; | |
25267 | ||
25268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25270 | if (!SWIG_IsOK(res1)) { | |
25271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25272 | } | |
25273 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25274 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25275 | if (!SWIG_IsOK(res2)) { | |
25276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25277 | } | |
25278 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25279 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25280 | if (!SWIG_IsOK(res3)) { | |
25281 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25282 | } | |
25283 | if (!argp3) { | |
25284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25285 | } | |
25286 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25287 | { | |
25288 | arg4 = &temp4; | |
25289 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25290 | } | |
25291 | if (obj4) { | |
25292 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25293 | if (!SWIG_IsOK(ecode5)) { | |
25294 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
25295 | } | |
25296 | arg5 = static_cast< int >(val5); | |
25297 | } | |
25298 | { | |
25299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25300 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25301 | wxPyEndAllowThreads(__tstate); | |
25302 | if (PyErr_Occurred()) SWIG_fail; | |
25303 | } | |
25304 | resultobj = SWIG_Py_Void(); | |
25305 | return resultobj; | |
25306 | fail: | |
25307 | return NULL; | |
25308 | } | |
25309 | ||
25310 | ||
25311 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25312 | PyObject *resultobj = 0; | |
25313 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25314 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25315 | wxDC *arg3 = 0 ; | |
25316 | wxRect *arg4 = 0 ; | |
25317 | int arg5 = (int) 0 ; | |
25318 | void *argp1 = 0 ; | |
25319 | int res1 = 0 ; | |
25320 | void *argp2 = 0 ; | |
25321 | int res2 = 0 ; | |
25322 | void *argp3 = 0 ; | |
25323 | int res3 = 0 ; | |
25324 | wxRect temp4 ; | |
25325 | int val5 ; | |
25326 | int ecode5 = 0 ; | |
25327 | PyObject * obj0 = 0 ; | |
25328 | PyObject * obj1 = 0 ; | |
25329 | PyObject * obj2 = 0 ; | |
25330 | PyObject * obj3 = 0 ; | |
25331 | PyObject * obj4 = 0 ; | |
25332 | char * kwnames[] = { | |
25333 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25334 | }; | |
25335 | ||
25336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25338 | if (!SWIG_IsOK(res1)) { | |
25339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25340 | } | |
25341 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25342 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25343 | if (!SWIG_IsOK(res2)) { | |
25344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25345 | } | |
25346 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25347 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25348 | if (!SWIG_IsOK(res3)) { | |
25349 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25350 | } | |
25351 | if (!argp3) { | |
25352 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25353 | } | |
25354 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25355 | { | |
25356 | arg4 = &temp4; | |
25357 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25358 | } | |
25359 | if (obj4) { | |
25360 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25361 | if (!SWIG_IsOK(ecode5)) { | |
25362 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
25363 | } | |
25364 | arg5 = static_cast< int >(val5); | |
25365 | } | |
25366 | { | |
25367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25368 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
25372 | resultobj = SWIG_Py_Void(); | |
25373 | return resultobj; | |
25374 | fail: | |
25375 | return NULL; | |
25376 | } | |
25377 | ||
25378 | ||
25379 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25380 | PyObject *resultobj = 0; | |
25381 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25382 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25383 | wxDC *arg3 = 0 ; | |
25384 | wxRect *arg4 = 0 ; | |
25385 | int arg5 = (int) 0 ; | |
25386 | void *argp1 = 0 ; | |
25387 | int res1 = 0 ; | |
25388 | void *argp2 = 0 ; | |
25389 | int res2 = 0 ; | |
25390 | void *argp3 = 0 ; | |
25391 | int res3 = 0 ; | |
25392 | wxRect temp4 ; | |
25393 | int val5 ; | |
25394 | int ecode5 = 0 ; | |
25395 | PyObject * obj0 = 0 ; | |
25396 | PyObject * obj1 = 0 ; | |
25397 | PyObject * obj2 = 0 ; | |
25398 | PyObject * obj3 = 0 ; | |
25399 | PyObject * obj4 = 0 ; | |
25400 | char * kwnames[] = { | |
25401 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25402 | }; | |
25403 | ||
25404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25406 | if (!SWIG_IsOK(res1)) { | |
25407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25408 | } | |
25409 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25410 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25411 | if (!SWIG_IsOK(res2)) { | |
25412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25413 | } | |
25414 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25415 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25416 | if (!SWIG_IsOK(res3)) { | |
25417 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25418 | } | |
25419 | if (!argp3) { | |
25420 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25421 | } | |
25422 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25423 | { | |
25424 | arg4 = &temp4; | |
25425 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25426 | } | |
25427 | if (obj4) { | |
25428 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25429 | if (!SWIG_IsOK(ecode5)) { | |
25430 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
25431 | } | |
25432 | arg5 = static_cast< int >(val5); | |
25433 | } | |
25434 | { | |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25437 | wxPyEndAllowThreads(__tstate); | |
25438 | if (PyErr_Occurred()) SWIG_fail; | |
25439 | } | |
25440 | resultobj = SWIG_Py_Void(); | |
25441 | return resultobj; | |
25442 | fail: | |
25443 | return NULL; | |
25444 | } | |
25445 | ||
25446 | ||
25447 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25448 | PyObject *resultobj = 0; | |
25449 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25450 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25451 | wxDC *arg3 = 0 ; | |
25452 | wxSize *arg4 = 0 ; | |
25453 | int arg5 ; | |
25454 | wxOrientation arg6 ; | |
25455 | int arg7 = (int) 0 ; | |
25456 | void *argp1 = 0 ; | |
25457 | int res1 = 0 ; | |
25458 | void *argp2 = 0 ; | |
25459 | int res2 = 0 ; | |
25460 | void *argp3 = 0 ; | |
25461 | int res3 = 0 ; | |
25462 | wxSize temp4 ; | |
25463 | int val5 ; | |
25464 | int ecode5 = 0 ; | |
25465 | int val6 ; | |
25466 | int ecode6 = 0 ; | |
25467 | int val7 ; | |
25468 | int ecode7 = 0 ; | |
25469 | PyObject * obj0 = 0 ; | |
25470 | PyObject * obj1 = 0 ; | |
25471 | PyObject * obj2 = 0 ; | |
25472 | PyObject * obj3 = 0 ; | |
25473 | PyObject * obj4 = 0 ; | |
25474 | PyObject * obj5 = 0 ; | |
25475 | PyObject * obj6 = 0 ; | |
25476 | char * kwnames[] = { | |
25477 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
25478 | }; | |
25479 | ||
25480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25482 | if (!SWIG_IsOK(res1)) { | |
25483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25484 | } | |
25485 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25486 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25487 | if (!SWIG_IsOK(res2)) { | |
25488 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25489 | } | |
25490 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25491 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25492 | if (!SWIG_IsOK(res3)) { | |
25493 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25494 | } | |
25495 | if (!argp3) { | |
25496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25497 | } | |
25498 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25499 | { | |
25500 | arg4 = &temp4; | |
25501 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25502 | } | |
25503 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25504 | if (!SWIG_IsOK(ecode5)) { | |
25505 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
25506 | } | |
25507 | arg5 = static_cast< int >(val5); | |
25508 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
25509 | if (!SWIG_IsOK(ecode6)) { | |
25510 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
25511 | } | |
25512 | arg6 = static_cast< wxOrientation >(val6); | |
25513 | if (obj6) { | |
25514 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
25515 | if (!SWIG_IsOK(ecode7)) { | |
25516 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
25517 | } | |
25518 | arg7 = static_cast< int >(val7); | |
25519 | } | |
25520 | { | |
25521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25522 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
25523 | wxPyEndAllowThreads(__tstate); | |
25524 | if (PyErr_Occurred()) SWIG_fail; | |
25525 | } | |
25526 | resultobj = SWIG_Py_Void(); | |
25527 | return resultobj; | |
25528 | fail: | |
25529 | return NULL; | |
25530 | } | |
25531 | ||
25532 | ||
25533 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25534 | PyObject *resultobj = 0; | |
25535 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25536 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25537 | wxDC *arg3 = 0 ; | |
25538 | wxRect *arg4 = 0 ; | |
25539 | int arg5 = (int) 0 ; | |
25540 | void *argp1 = 0 ; | |
25541 | int res1 = 0 ; | |
25542 | void *argp2 = 0 ; | |
25543 | int res2 = 0 ; | |
25544 | void *argp3 = 0 ; | |
25545 | int res3 = 0 ; | |
25546 | wxRect temp4 ; | |
25547 | int val5 ; | |
25548 | int ecode5 = 0 ; | |
25549 | PyObject * obj0 = 0 ; | |
25550 | PyObject * obj1 = 0 ; | |
25551 | PyObject * obj2 = 0 ; | |
25552 | PyObject * obj3 = 0 ; | |
25553 | PyObject * obj4 = 0 ; | |
25554 | char * kwnames[] = { | |
25555 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25556 | }; | |
25557 | ||
25558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25560 | if (!SWIG_IsOK(res1)) { | |
25561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25562 | } | |
25563 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25564 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25565 | if (!SWIG_IsOK(res2)) { | |
25566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25567 | } | |
25568 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25569 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25570 | if (!SWIG_IsOK(res3)) { | |
25571 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25572 | } | |
25573 | if (!argp3) { | |
25574 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25575 | } | |
25576 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25577 | { | |
25578 | arg4 = &temp4; | |
25579 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25580 | } | |
25581 | if (obj4) { | |
25582 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25583 | if (!SWIG_IsOK(ecode5)) { | |
25584 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
25585 | } | |
25586 | arg5 = static_cast< int >(val5); | |
25587 | } | |
25588 | { | |
25589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25590 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25591 | wxPyEndAllowThreads(__tstate); | |
25592 | if (PyErr_Occurred()) SWIG_fail; | |
25593 | } | |
25594 | resultobj = SWIG_Py_Void(); | |
25595 | return resultobj; | |
25596 | fail: | |
25597 | return NULL; | |
25598 | } | |
25599 | ||
25600 | ||
25601 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25602 | PyObject *resultobj = 0; | |
25603 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25605 | wxDC *arg3 = 0 ; | |
25606 | wxRect *arg4 = 0 ; | |
25607 | int arg5 = (int) 0 ; | |
25608 | void *argp1 = 0 ; | |
25609 | int res1 = 0 ; | |
25610 | void *argp2 = 0 ; | |
25611 | int res2 = 0 ; | |
25612 | void *argp3 = 0 ; | |
25613 | int res3 = 0 ; | |
25614 | wxRect temp4 ; | |
25615 | int val5 ; | |
25616 | int ecode5 = 0 ; | |
25617 | PyObject * obj0 = 0 ; | |
25618 | PyObject * obj1 = 0 ; | |
25619 | PyObject * obj2 = 0 ; | |
25620 | PyObject * obj3 = 0 ; | |
25621 | PyObject * obj4 = 0 ; | |
25622 | char * kwnames[] = { | |
25623 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25624 | }; | |
25625 | ||
25626 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25627 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25628 | if (!SWIG_IsOK(res1)) { | |
25629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25630 | } | |
25631 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25632 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25633 | if (!SWIG_IsOK(res2)) { | |
25634 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25635 | } | |
25636 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25637 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25638 | if (!SWIG_IsOK(res3)) { | |
25639 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25640 | } | |
25641 | if (!argp3) { | |
25642 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25643 | } | |
25644 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25645 | { | |
25646 | arg4 = &temp4; | |
25647 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25648 | } | |
25649 | if (obj4) { | |
25650 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25651 | if (!SWIG_IsOK(ecode5)) { | |
25652 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
25653 | } | |
25654 | arg5 = static_cast< int >(val5); | |
25655 | } | |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | resultobj = SWIG_Py_Void(); | |
25663 | return resultobj; | |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
25669 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25670 | PyObject *resultobj = 0; | |
25671 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25672 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25673 | SwigValueWrapper<wxSplitterRenderParams > result; | |
25674 | void *argp1 = 0 ; | |
25675 | int res1 = 0 ; | |
25676 | void *argp2 = 0 ; | |
25677 | int res2 = 0 ; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | char * kwnames[] = { | |
25681 | (char *) "self",(char *) "win", NULL | |
25682 | }; | |
25683 | ||
25684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
25685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25686 | if (!SWIG_IsOK(res1)) { | |
25687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25688 | } | |
25689 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25690 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25691 | if (!SWIG_IsOK(res2)) { | |
25692 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
25693 | } | |
25694 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25695 | { | |
25696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25697 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
25698 | wxPyEndAllowThreads(__tstate); | |
25699 | if (PyErr_Occurred()) SWIG_fail; | |
25700 | } | |
25701 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
25702 | return resultobj; | |
25703 | fail: | |
25704 | return NULL; | |
25705 | } | |
25706 | ||
25707 | ||
25708 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25709 | PyObject *resultobj = 0; | |
25710 | wxRendererNative *result = 0 ; | |
25711 | ||
25712 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
25713 | { | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25715 | { |
554f62e9 RD |
25716 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
25717 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 25718 | } |
554f62e9 RD |
25719 | wxPyEndAllowThreads(__tstate); |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
25722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25723 | return resultobj; | |
25724 | fail: | |
25725 | return NULL; | |
25726 | } | |
25727 | ||
25728 | ||
25729 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25730 | PyObject *resultobj = 0; | |
25731 | wxRendererNative *result = 0 ; | |
25732 | ||
25733 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
25734 | { | |
25735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
be9b1dca | 25736 | { |
554f62e9 RD |
25737 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
25738 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 25739 | } |
554f62e9 RD |
25740 | wxPyEndAllowThreads(__tstate); |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
25743 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25744 | return resultobj; | |
25745 | fail: | |
25746 | return NULL; | |
25747 | } | |
25748 | ||
25749 | ||
25750 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25751 | PyObject *resultobj = 0; | |
25752 | wxRendererNative *result = 0 ; | |
25753 | ||
25754 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
25755 | { | |
25756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
be9b1dca | 25757 | { |
554f62e9 RD |
25758 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
25759 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 25760 | } |
554f62e9 RD |
25761 | wxPyEndAllowThreads(__tstate); |
25762 | if (PyErr_Occurred()) SWIG_fail; | |
25763 | } | |
25764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25765 | return resultobj; | |
25766 | fail: | |
25767 | return NULL; | |
25768 | } | |
25769 | ||
25770 | ||
25771 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25772 | PyObject *resultobj = 0; | |
25773 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25774 | wxRendererNative *result = 0 ; | |
25775 | void *argp1 = 0 ; | |
25776 | int res1 = 0 ; | |
25777 | PyObject * obj0 = 0 ; | |
25778 | char * kwnames[] = { | |
25779 | (char *) "renderer", NULL | |
25780 | }; | |
25781 | ||
25782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
25783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25784 | if (!SWIG_IsOK(res1)) { | |
25785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25786 | } | |
25787 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25788 | { | |
25789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25790 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
25791 | wxPyEndAllowThreads(__tstate); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25795 | return resultobj; | |
25796 | fail: | |
25797 | return NULL; | |
25798 | } | |
25799 | ||
25800 | ||
25801 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25802 | PyObject *resultobj = 0; | |
25803 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25804 | SwigValueWrapper<wxRendererVersion > result; | |
25805 | void *argp1 = 0 ; | |
25806 | int res1 = 0 ; | |
25807 | PyObject *swig_obj[1] ; | |
25808 | ||
25809 | if (!args) SWIG_fail; | |
25810 | swig_obj[0] = args; | |
25811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25812 | if (!SWIG_IsOK(res1)) { | |
25813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
25814 | } | |
25815 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25816 | { | |
25817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25818 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
25819 | wxPyEndAllowThreads(__tstate); | |
25820 | if (PyErr_Occurred()) SWIG_fail; | |
25821 | } | |
25822 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
25823 | return resultobj; | |
25824 | fail: | |
25825 | return NULL; | |
25826 | } | |
25827 | ||
25828 | ||
25829 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25830 | PyObject *obj; | |
25831 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25832 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
25833 | return SWIG_Py_Void(); | |
25834 | } | |
25835 | ||
25836 | static PyMethodDef SwigMethods[] = { | |
25837 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
25838 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
25839 | { (char *)"GDIObject_GetVisible", (PyCFunction)_wrap_GDIObject_GetVisible, METH_O, NULL}, | |
25840 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25841 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
25842 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
25843 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
25844 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25845 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25846 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25847 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
25848 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
25849 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
25850 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
25851 | { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL}, | |
25852 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25853 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25854 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25855 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
25856 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25857 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25858 | { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL}, | |
25859 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, | |
25860 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
25861 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
25862 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25863 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
25864 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25865 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25866 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
25867 | { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL}, | |
25868 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
25869 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
25870 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25871 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
25872 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
25873 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
25874 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
25875 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
25876 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
25877 | { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL}, | |
25878 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25879 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25880 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25881 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25882 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25883 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25884 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
25885 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25886 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
25887 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
25888 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25889 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25890 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25891 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
25892 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
25893 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25894 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25895 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
25896 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25897 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25898 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25899 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
25900 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
25901 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
25902 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
25903 | { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL}, | |
25904 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
25905 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
25906 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25907 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
25908 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25909 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25910 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25911 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25912 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25913 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
25914 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25915 | { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL}, | |
25916 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, | |
25917 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
25918 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
25919 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
25920 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
25921 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
25922 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25923 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25924 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25925 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25926 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25927 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
25928 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25929 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25930 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25931 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25932 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25933 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25934 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25935 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25936 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25937 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
25938 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
25939 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25940 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
25941 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
25942 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
25943 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25944 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
25945 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
25946 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25947 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25948 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25949 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25950 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
25951 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25952 | { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL}, | |
25953 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, | |
25954 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
25955 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
25956 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25957 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25958 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25959 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25960 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25961 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
25962 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
25963 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25964 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
25965 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
25966 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25967 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
25968 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25969 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
25970 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
25971 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
25972 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
25973 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25974 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25975 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
25976 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25977 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25978 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25979 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
25980 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
25981 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25982 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
25983 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25984 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25985 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
25986 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25987 | { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL}, | |
25988 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, | |
25989 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
25990 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
25991 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25992 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25993 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25994 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25995 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
25996 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
25997 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25998 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25999 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26000 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26001 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
26002 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
26003 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26004 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26005 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26006 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26007 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26008 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
26009 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26010 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26011 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26012 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
26013 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26014 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26015 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26016 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26017 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26018 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26019 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26020 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26021 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26022 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
26023 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26024 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26025 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
26026 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
26027 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26028 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
26029 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
26030 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
26031 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
26032 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
26033 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
26034 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
26035 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
26036 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
26037 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
26038 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
26039 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
26040 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
26041 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
26042 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
26043 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
26044 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
26045 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26046 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
26047 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
26048 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
26049 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
26050 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
26051 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
26052 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
26053 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
26054 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26055 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26056 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26057 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26058 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26059 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26060 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26061 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26062 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26063 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
26064 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
26065 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26066 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
26067 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
26068 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
26069 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
26070 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
26071 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
26072 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
26073 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
26074 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
26075 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26076 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
26077 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
26078 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
26079 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26080 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26081 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
26082 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
26083 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
26084 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26085 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26086 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
26087 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26088 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26089 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26090 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26091 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26092 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
26093 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26094 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26095 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26096 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26097 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
26098 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
26099 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26100 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
26101 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26102 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26103 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26104 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26105 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26106 | { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL}, | |
26107 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26108 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26109 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
26110 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
26111 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
26112 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
26113 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
26114 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
26115 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
26116 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
26117 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
26118 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
26119 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
26120 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
26121 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
26122 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26123 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26124 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26125 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26126 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26127 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26128 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26129 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26130 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26131 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26132 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26133 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
26134 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
26135 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
26136 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26137 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
26138 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
26139 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26140 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
26141 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
26142 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
26143 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
26144 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26145 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26146 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26147 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL}, | |
26148 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL}, | |
26149 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, | |
26150 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
26151 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
26152 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
26153 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
26154 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
26155 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
26156 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
26157 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
26158 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26159 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
26160 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26161 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26162 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
26163 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
26164 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
26165 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
26166 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
26167 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
26168 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
26169 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
26170 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26171 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26172 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26173 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26174 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26175 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26176 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26177 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26178 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
26179 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
26180 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
26181 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, | |
26182 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
26183 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
26184 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
26185 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26186 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26187 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26188 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26189 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26190 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
26191 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
26192 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
26193 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26194 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26195 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26196 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26197 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26198 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26199 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26200 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26201 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26202 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26203 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26204 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26205 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26206 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26207 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26208 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26209 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26210 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26211 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26212 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26213 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26214 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26215 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26216 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26217 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26218 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26219 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26220 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26221 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26222 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26223 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26224 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26225 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26226 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26227 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26228 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26229 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26230 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26231 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26232 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26233 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26234 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26235 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26236 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26237 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26238 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26239 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26240 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26241 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
26242 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26243 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
26244 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
26245 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
26246 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26247 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26248 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26249 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26250 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26251 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26252 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
26253 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
26254 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
26255 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
26256 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
26257 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26258 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26259 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26260 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26261 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
26262 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
26263 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
26264 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
26265 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26266 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26267 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26268 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26269 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26270 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26271 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26272 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26273 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
26274 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
26275 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
26276 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
26277 | { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL}, | |
26278 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, | |
26279 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
26280 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
26281 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
26282 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
26283 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
26284 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
26285 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26286 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26287 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
26288 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26289 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
26290 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26291 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
26292 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26293 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
26294 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
26295 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26296 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26297 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
26298 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
26299 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26300 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26301 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26302 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
26303 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26304 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
26305 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26306 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26307 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
26308 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
26309 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
26310 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
26311 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
26312 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
26313 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, | |
26314 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26315 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26316 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26317 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26318 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26319 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26320 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
26321 | { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL}, | |
26322 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26323 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26324 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
26325 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
26326 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
26327 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
26328 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
26329 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
26330 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
26331 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26332 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
26333 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
26334 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, | |
26335 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26336 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26337 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
26338 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
26339 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
26340 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26341 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
26342 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
26343 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26344 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
26345 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26346 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26347 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
26348 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
26349 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26350 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
26351 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
26352 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26353 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
26354 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26355 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26356 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
26357 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
26358 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
26359 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26360 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
26361 | { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL}, | |
26362 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26363 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
26364 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
26365 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
26366 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
26367 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
26368 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
26369 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26370 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
26371 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
26372 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
26373 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26374 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
26375 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
26376 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26377 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
26378 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26379 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26380 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26381 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26382 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26383 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26384 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26385 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
26386 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26387 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
26388 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26389 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
26390 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
26391 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26392 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26393 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26394 | { (char *)"PenList_GetCount", (PyCFunction)_wrap_PenList_GetCount, METH_O, NULL}, | |
26395 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, | |
26396 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26397 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26398 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26399 | { (char *)"BrushList_GetCount", (PyCFunction)_wrap_BrushList_GetCount, METH_O, NULL}, | |
26400 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, | |
26401 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, | |
26402 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
26403 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26404 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26405 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26406 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26407 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
26408 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
26409 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26410 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26411 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26412 | { (char *)"FontList_GetCount", (PyCFunction)_wrap_FontList_GetCount, METH_O, NULL}, | |
26413 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
26414 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, | |
26415 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
26416 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
26417 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
26418 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
26419 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
26420 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26421 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26422 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26423 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26424 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26425 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26426 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26427 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26428 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
26429 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
26430 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26431 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
26432 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
26433 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
26434 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
26435 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
26436 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
26437 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26438 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
26439 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26440 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
26441 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
26442 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
26443 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
26444 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26445 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26446 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26447 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26448 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26449 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26450 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26451 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
26452 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
26453 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
26454 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26455 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
26456 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
26457 | { NULL, NULL, 0, NULL } | |
26458 | }; | |
26459 | ||
26460 | ||
26461 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26462 | ||
26463 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
26464 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
26465 | } | |
26466 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
26467 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26468 | } | |
26469 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
26470 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
26471 | } | |
26472 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
26473 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
26474 | } | |
26475 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
26476 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
26477 | } | |
26478 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
26479 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
26480 | } | |
26481 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
26482 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
26483 | } | |
26484 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
26485 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
26486 | } | |
26487 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
26488 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
26489 | } | |
26490 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
26491 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
26492 | } | |
26493 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
26494 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
26495 | } | |
26496 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
26497 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
26498 | } | |
26499 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
26500 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
26501 | } | |
26502 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
26503 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
26504 | } | |
26505 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
26506 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
26507 | } | |
26508 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
26509 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
26510 | } | |
26511 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
26512 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26513 | } | |
26514 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
26515 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
26516 | } | |
26517 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
26518 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
26519 | } | |
26520 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
26521 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
26522 | } | |
26523 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
26524 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
26525 | } | |
26526 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
26527 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26528 | } | |
26529 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26530 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26531 | } | |
26532 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
26533 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
26534 | } | |
26535 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
26536 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
26537 | } | |
26538 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26539 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26540 | } | |
26541 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26542 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26543 | } | |
26544 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
26545 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
26546 | } | |
26547 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26548 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26549 | } | |
26550 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26551 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26552 | } | |
26553 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
26554 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
26555 | } | |
26556 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26557 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26558 | } | |
26559 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
26560 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
26561 | } | |
26562 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
26563 | return (void *)((wxObject *) ((wxSizer *) x)); | |
26564 | } | |
26565 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
26566 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26567 | } | |
26568 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
26569 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26570 | } | |
26571 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
26572 | return (void *)((wxObject *) ((wxPenList *) x)); | |
26573 | } | |
26574 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
26575 | return (void *)((wxObject *) ((wxEvent *) x)); | |
26576 | } | |
26577 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
26578 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26579 | } | |
26580 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
26581 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
26582 | } | |
26583 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
26584 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
26585 | } | |
26586 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
26587 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
26588 | } | |
26589 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
26590 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
26591 | } | |
26592 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
26593 | return (void *)((wxObject *) ((wxDC *) x)); | |
26594 | } | |
26595 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
26596 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26597 | } | |
26598 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
26599 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26600 | } | |
26601 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
26602 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26603 | } | |
26604 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
26605 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26606 | } | |
26607 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
26608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
26609 | } | |
26610 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
26611 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
26612 | } | |
26613 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
26614 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
26615 | } | |
26616 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
26617 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
26618 | } | |
26619 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26620 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
26621 | } | |
26622 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
26623 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
26624 | } | |
26625 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
26626 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
26627 | } | |
26628 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
26629 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
26630 | } | |
26631 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
26632 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
26633 | } | |
26634 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
26635 | return (void *)((wxObject *) ((wxEffects *) x)); | |
26636 | } | |
26637 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
26638 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
26639 | } | |
26640 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
26641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26642 | } | |
26643 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
26644 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
26645 | } | |
26646 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
26647 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
26648 | } | |
26649 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
26650 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
26651 | } | |
26652 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
26653 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
26654 | } | |
26655 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
26656 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
26657 | } | |
26658 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
26659 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26660 | } | |
26661 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
26662 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26663 | } | |
26664 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
26665 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
26666 | } | |
26667 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
26668 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
26669 | } | |
26670 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
26671 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
26672 | } | |
26673 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
26674 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
26675 | } | |
26676 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
26677 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
26678 | } | |
26679 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
26680 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
26681 | } | |
26682 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
26683 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
26684 | } | |
26685 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
26686 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
26687 | } | |
26688 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
26689 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
26690 | } | |
26691 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
26692 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
26693 | } | |
26694 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26695 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26696 | } | |
26697 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26698 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26699 | } | |
26700 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26701 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26702 | } | |
26703 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26704 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26705 | } | |
26706 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
26707 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
26708 | } | |
26709 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26710 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26711 | } | |
26712 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
26713 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
26714 | } | |
26715 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26716 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26717 | } | |
26718 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26719 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26720 | } | |
26721 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
26722 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26723 | } | |
26724 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
26725 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
26726 | } | |
26727 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
26728 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
26729 | } | |
26730 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
26731 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
26732 | } | |
26733 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
26734 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
26735 | } | |
26736 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
26737 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26738 | } | |
26739 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
26740 | return (void *)((wxObject *) ((wxImage *) x)); | |
26741 | } | |
26742 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26743 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26744 | } | |
26745 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
26746 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
26747 | } | |
26748 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26749 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
26750 | } | |
26751 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
26752 | return (void *)((wxObject *) ((wxImageList *) x)); | |
26753 | } | |
26754 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
26755 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
26756 | } | |
26757 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
26758 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
26759 | } | |
26760 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
26761 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
26762 | } | |
26763 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26764 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26765 | } | |
26766 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26767 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26768 | } | |
26769 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26770 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26771 | } | |
26772 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26773 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26774 | } | |
26775 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26776 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26777 | } | |
26778 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26779 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26780 | } | |
26781 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
26782 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
26783 | } | |
26784 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
26785 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
26786 | } | |
26787 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26788 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26789 | } | |
26790 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
26791 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
26792 | } | |
26793 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
26794 | return (void *)((wxObject *) ((wxMask *) x)); | |
26795 | } | |
26796 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26797 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26798 | } | |
26799 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26800 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26801 | } | |
26802 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26803 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26804 | } | |
26805 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26806 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26807 | } | |
26808 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26809 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26810 | } | |
26811 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26812 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26813 | } | |
26814 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26815 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26816 | } | |
26817 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26818 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26819 | } | |
26820 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26821 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26822 | } | |
26823 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26824 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26825 | } | |
26826 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26827 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26828 | } | |
26829 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
26830 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
26831 | } | |
26832 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
26833 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
26834 | } | |
26835 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
26836 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
26837 | } | |
26838 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26839 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26840 | } | |
26841 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
26842 | return (void *)((wxObject *) ((wxColour *) x)); | |
26843 | } | |
26844 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
26845 | return (void *)((wxObject *) ((wxFontList *) x)); | |
26846 | } | |
26847 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26848 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26849 | } | |
26850 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26851 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26852 | } | |
26853 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26854 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26855 | } | |
26856 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26857 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26858 | } | |
26859 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26860 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26861 | } | |
26862 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
26863 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; | |
26864 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0}; | |
26865 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
26866 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
26867 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
26868 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
26869 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
26870 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
26871 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
26872 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
26873 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
26874 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; | |
26875 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
26876 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
26877 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
26878 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
26879 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; | |
26880 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
26881 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
26882 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
26883 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
26884 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
26885 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
26886 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; | |
26887 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
26888 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
26889 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
26890 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
26891 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
26892 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
26893 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
26894 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
26895 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
26896 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
26897 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
26898 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
26899 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
26900 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
26901 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
26902 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
26903 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
26904 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
26905 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
26906 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
26907 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
26908 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
26909 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
26910 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
26911 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
26912 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
26913 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
26914 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
26915 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
26916 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
26917 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
26918 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
26919 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
26920 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
26921 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
26922 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
26923 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
26924 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
26925 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
26926 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
26927 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
26928 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
26929 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
26930 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
26931 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
26932 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
26933 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
26934 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
26935 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
26936 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
26937 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
26938 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
26939 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
26940 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
26941 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
26942 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
26943 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
26944 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
26945 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
26946 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
26947 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
26948 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
26949 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
26950 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
26951 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
26952 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
26953 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
26954 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
26955 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
26956 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
26957 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
26958 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
26959 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
26960 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
26961 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
26962 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
26963 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
26964 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
26965 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
26966 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
26967 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
26968 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
26969 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
26970 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
26971 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
26972 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
26973 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
26974 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
26975 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
26976 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; | |
26977 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
26978 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
26979 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
26980 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
26981 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
26982 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; | |
26983 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
26984 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
26985 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; | |
26986 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
26987 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
26988 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
26989 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
26990 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
26991 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
26992 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
26993 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
26994 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
26995 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
26996 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
26997 | ||
26998 | static swig_type_info *swig_type_initial[] = { | |
26999 | &_swigt__p_char, | |
27000 | &_swigt__p_double, | |
27001 | &_swigt__p_form_ops_t, | |
27002 | &_swigt__p_int, | |
27003 | &_swigt__p_unsigned_char, | |
27004 | &_swigt__p_unsigned_int, | |
27005 | &_swigt__p_unsigned_long, | |
27006 | &_swigt__p_wxANIHandler, | |
27007 | &_swigt__p_wxAcceleratorTable, | |
27008 | &_swigt__p_wxActivateEvent, | |
27009 | &_swigt__p_wxBMPHandler, | |
27010 | &_swigt__p_wxBitmap, | |
27011 | &_swigt__p_wxBoxSizer, | |
27012 | &_swigt__p_wxBrush, | |
27013 | &_swigt__p_wxBrushList, | |
27014 | &_swigt__p_wxBufferedDC, | |
27015 | &_swigt__p_wxBufferedPaintDC, | |
27016 | &_swigt__p_wxCURHandler, | |
27017 | &_swigt__p_wxChildFocusEvent, | |
27018 | &_swigt__p_wxClientDC, | |
27019 | &_swigt__p_wxCloseEvent, | |
27020 | &_swigt__p_wxColour, | |
27021 | &_swigt__p_wxColourDatabase, | |
27022 | &_swigt__p_wxCommandEvent, | |
27023 | &_swigt__p_wxContextMenuEvent, | |
27024 | &_swigt__p_wxControl, | |
27025 | &_swigt__p_wxControlWithItems, | |
27026 | &_swigt__p_wxCursor, | |
27027 | &_swigt__p_wxDC, | |
27028 | &_swigt__p_wxDash, | |
27029 | &_swigt__p_wxDateEvent, | |
27030 | &_swigt__p_wxDisplayChangedEvent, | |
27031 | &_swigt__p_wxDropFilesEvent, | |
27032 | &_swigt__p_wxDuplexMode, | |
27033 | &_swigt__p_wxEffects, | |
27034 | &_swigt__p_wxEncodingConverter, | |
27035 | &_swigt__p_wxEraseEvent, | |
27036 | &_swigt__p_wxEvent, | |
27037 | &_swigt__p_wxEvtHandler, | |
27038 | &_swigt__p_wxFSFile, | |
27039 | &_swigt__p_wxFileSystem, | |
27040 | &_swigt__p_wxFlexGridSizer, | |
27041 | &_swigt__p_wxFocusEvent, | |
27042 | &_swigt__p_wxFont, | |
27043 | &_swigt__p_wxFontList, | |
27044 | &_swigt__p_wxFontMapper, | |
27045 | &_swigt__p_wxGBSizerItem, | |
27046 | &_swigt__p_wxGDIObject, | |
27047 | &_swigt__p_wxGIFHandler, | |
27048 | &_swigt__p_wxGridBagSizer, | |
27049 | &_swigt__p_wxGridSizer, | |
27050 | &_swigt__p_wxICOHandler, | |
27051 | &_swigt__p_wxIcon, | |
27052 | &_swigt__p_wxIconBundle, | |
27053 | &_swigt__p_wxIconLocation, | |
27054 | &_swigt__p_wxIconizeEvent, | |
27055 | &_swigt__p_wxIdleEvent, | |
27056 | &_swigt__p_wxImage, | |
27057 | &_swigt__p_wxImageHandler, | |
27058 | &_swigt__p_wxImageList, | |
27059 | &_swigt__p_wxIndividualLayoutConstraint, | |
27060 | &_swigt__p_wxInitDialogEvent, | |
27061 | &_swigt__p_wxJPEGHandler, | |
27062 | &_swigt__p_wxKeyEvent, | |
27063 | &_swigt__p_wxLanguageInfo, | |
27064 | &_swigt__p_wxLayoutConstraints, | |
27065 | &_swigt__p_wxLocale, | |
27066 | &_swigt__p_wxMask, | |
27067 | &_swigt__p_wxMaximizeEvent, | |
27068 | &_swigt__p_wxMemoryDC, | |
27069 | &_swigt__p_wxMenu, | |
27070 | &_swigt__p_wxMenuBar, | |
27071 | &_swigt__p_wxMenuEvent, | |
27072 | &_swigt__p_wxMenuItem, | |
27073 | &_swigt__p_wxMetaFile, | |
27074 | &_swigt__p_wxMetaFileDC, | |
27075 | &_swigt__p_wxMirrorDC, | |
27076 | &_swigt__p_wxMouseCaptureChangedEvent, | |
27077 | &_swigt__p_wxMouseEvent, | |
27078 | &_swigt__p_wxMoveEvent, | |
27079 | &_swigt__p_wxNativeEncodingInfo, | |
27080 | &_swigt__p_wxNativeFontInfo, | |
27081 | &_swigt__p_wxNavigationKeyEvent, | |
27082 | &_swigt__p_wxNcPaintEvent, | |
27083 | &_swigt__p_wxNotifyEvent, | |
27084 | &_swigt__p_wxObject, | |
27085 | &_swigt__p_wxPCXHandler, | |
27086 | &_swigt__p_wxPNGHandler, | |
27087 | &_swigt__p_wxPNMHandler, | |
27088 | &_swigt__p_wxPaintDC, | |
27089 | &_swigt__p_wxPaintEvent, | |
27090 | &_swigt__p_wxPalette, | |
27091 | &_swigt__p_wxPaletteChangedEvent, | |
27092 | &_swigt__p_wxPaperSize, | |
27093 | &_swigt__p_wxPen, | |
27094 | &_swigt__p_wxPenList, | |
27095 | &_swigt__p_wxPoint, | |
27096 | &_swigt__p_wxPostScriptDC, | |
27097 | &_swigt__p_wxPrintData, | |
27098 | &_swigt__p_wxPrinterDC, | |
27099 | &_swigt__p_wxPyApp, | |
27100 | &_swigt__p_wxPyCommandEvent, | |
27101 | &_swigt__p_wxPyEvent, | |
27102 | &_swigt__p_wxPyFontEnumerator, | |
27103 | &_swigt__p_wxPyImageHandler, | |
27104 | &_swigt__p_wxPySizer, | |
27105 | &_swigt__p_wxPyValidator, | |
27106 | &_swigt__p_wxQueryNewPaletteEvent, | |
27107 | &_swigt__p_wxRect, | |
27108 | &_swigt__p_wxRegion, | |
27109 | &_swigt__p_wxRegionIterator, | |
27110 | &_swigt__p_wxRendererNative, | |
27111 | &_swigt__p_wxRendererVersion, | |
27112 | &_swigt__p_wxScreenDC, | |
27113 | &_swigt__p_wxScrollEvent, | |
27114 | &_swigt__p_wxScrollWinEvent, | |
27115 | &_swigt__p_wxSetCursorEvent, | |
27116 | &_swigt__p_wxShowEvent, | |
27117 | &_swigt__p_wxSize, | |
27118 | &_swigt__p_wxSizeEvent, | |
27119 | &_swigt__p_wxSizer, | |
27120 | &_swigt__p_wxSizerItem, | |
27121 | &_swigt__p_wxSplitterRenderParams, | |
27122 | &_swigt__p_wxStaticBoxSizer, | |
27123 | &_swigt__p_wxStdDialogButtonSizer, | |
27124 | &_swigt__p_wxString, | |
27125 | &_swigt__p_wxSysColourChangedEvent, | |
27126 | &_swigt__p_wxTIFFHandler, | |
27127 | &_swigt__p_wxUpdateUIEvent, | |
27128 | &_swigt__p_wxValidator, | |
27129 | &_swigt__p_wxWindow, | |
27130 | &_swigt__p_wxWindowCreateEvent, | |
27131 | &_swigt__p_wxWindowDC, | |
27132 | &_swigt__p_wxWindowDestroyEvent, | |
27133 | &_swigt__p_wxXPMHandler, | |
27134 | }; | |
27135 | ||
27136 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
27137 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
27138 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
27139 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
27140 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
27141 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
27142 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
27143 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
27144 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
27145 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
27146 | 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}}; | |
27147 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27148 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27149 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
27150 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
27151 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
27152 | 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}}; | |
27153 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
27154 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
27155 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
27156 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
27157 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
27158 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
27159 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
27160 | 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}}; | |
27161 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
27162 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
27163 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
27164 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
27165 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
27166 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27167 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; | |
27168 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; | |
27169 | 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}}; | |
27170 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
27171 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27172 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27173 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27174 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27175 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
27176 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27177 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27178 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27179 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
27180 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27181 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27182 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27183 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27184 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27185 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
27186 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27187 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27188 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27189 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27190 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27191 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27192 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27193 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27194 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27195 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27196 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
27197 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27198 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
27199 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27200 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27201 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27202 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27203 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27204 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27205 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27206 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27207 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27208 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27209 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27210 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27211 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27212 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27213 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27214 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27215 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27216 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27217 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27218 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27219 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27220 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27221 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27222 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27223 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27224 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27225 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27226 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27227 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27228 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
27229 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27230 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27231 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27232 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27233 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27234 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
27235 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27236 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27237 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
27238 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27239 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27240 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27241 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27242 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27243 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27244 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27245 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27246 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
27247 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27248 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27249 | 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}}; | |
27250 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27251 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
27252 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
27253 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
27254 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
27255 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
27256 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27257 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
27258 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27259 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; | |
27260 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
27261 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
27262 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
27263 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
27264 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
27265 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27266 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
27267 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
27268 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
27269 | 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}}; | |
27270 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27271 | ||
27272 | static swig_cast_info *swig_cast_initial[] = { | |
27273 | _swigc__p_char, | |
27274 | _swigc__p_double, | |
27275 | _swigc__p_form_ops_t, | |
27276 | _swigc__p_int, | |
27277 | _swigc__p_unsigned_char, | |
27278 | _swigc__p_unsigned_int, | |
27279 | _swigc__p_unsigned_long, | |
27280 | _swigc__p_wxANIHandler, | |
27281 | _swigc__p_wxAcceleratorTable, | |
27282 | _swigc__p_wxActivateEvent, | |
27283 | _swigc__p_wxBMPHandler, | |
27284 | _swigc__p_wxBitmap, | |
27285 | _swigc__p_wxBoxSizer, | |
27286 | _swigc__p_wxBrush, | |
27287 | _swigc__p_wxBrushList, | |
27288 | _swigc__p_wxBufferedDC, | |
27289 | _swigc__p_wxBufferedPaintDC, | |
27290 | _swigc__p_wxCURHandler, | |
27291 | _swigc__p_wxChildFocusEvent, | |
27292 | _swigc__p_wxClientDC, | |
27293 | _swigc__p_wxCloseEvent, | |
27294 | _swigc__p_wxColour, | |
27295 | _swigc__p_wxColourDatabase, | |
27296 | _swigc__p_wxCommandEvent, | |
27297 | _swigc__p_wxContextMenuEvent, | |
27298 | _swigc__p_wxControl, | |
27299 | _swigc__p_wxControlWithItems, | |
27300 | _swigc__p_wxCursor, | |
27301 | _swigc__p_wxDC, | |
27302 | _swigc__p_wxDash, | |
27303 | _swigc__p_wxDateEvent, | |
27304 | _swigc__p_wxDisplayChangedEvent, | |
27305 | _swigc__p_wxDropFilesEvent, | |
27306 | _swigc__p_wxDuplexMode, | |
27307 | _swigc__p_wxEffects, | |
27308 | _swigc__p_wxEncodingConverter, | |
27309 | _swigc__p_wxEraseEvent, | |
27310 | _swigc__p_wxEvent, | |
27311 | _swigc__p_wxEvtHandler, | |
27312 | _swigc__p_wxFSFile, | |
27313 | _swigc__p_wxFileSystem, | |
27314 | _swigc__p_wxFlexGridSizer, | |
27315 | _swigc__p_wxFocusEvent, | |
27316 | _swigc__p_wxFont, | |
27317 | _swigc__p_wxFontList, | |
27318 | _swigc__p_wxFontMapper, | |
27319 | _swigc__p_wxGBSizerItem, | |
27320 | _swigc__p_wxGDIObject, | |
27321 | _swigc__p_wxGIFHandler, | |
27322 | _swigc__p_wxGridBagSizer, | |
27323 | _swigc__p_wxGridSizer, | |
27324 | _swigc__p_wxICOHandler, | |
27325 | _swigc__p_wxIcon, | |
27326 | _swigc__p_wxIconBundle, | |
27327 | _swigc__p_wxIconLocation, | |
27328 | _swigc__p_wxIconizeEvent, | |
27329 | _swigc__p_wxIdleEvent, | |
27330 | _swigc__p_wxImage, | |
27331 | _swigc__p_wxImageHandler, | |
27332 | _swigc__p_wxImageList, | |
27333 | _swigc__p_wxIndividualLayoutConstraint, | |
27334 | _swigc__p_wxInitDialogEvent, | |
27335 | _swigc__p_wxJPEGHandler, | |
27336 | _swigc__p_wxKeyEvent, | |
27337 | _swigc__p_wxLanguageInfo, | |
27338 | _swigc__p_wxLayoutConstraints, | |
27339 | _swigc__p_wxLocale, | |
27340 | _swigc__p_wxMask, | |
27341 | _swigc__p_wxMaximizeEvent, | |
27342 | _swigc__p_wxMemoryDC, | |
27343 | _swigc__p_wxMenu, | |
27344 | _swigc__p_wxMenuBar, | |
27345 | _swigc__p_wxMenuEvent, | |
27346 | _swigc__p_wxMenuItem, | |
27347 | _swigc__p_wxMetaFile, | |
27348 | _swigc__p_wxMetaFileDC, | |
27349 | _swigc__p_wxMirrorDC, | |
27350 | _swigc__p_wxMouseCaptureChangedEvent, | |
27351 | _swigc__p_wxMouseEvent, | |
27352 | _swigc__p_wxMoveEvent, | |
27353 | _swigc__p_wxNativeEncodingInfo, | |
27354 | _swigc__p_wxNativeFontInfo, | |
27355 | _swigc__p_wxNavigationKeyEvent, | |
27356 | _swigc__p_wxNcPaintEvent, | |
27357 | _swigc__p_wxNotifyEvent, | |
27358 | _swigc__p_wxObject, | |
27359 | _swigc__p_wxPCXHandler, | |
27360 | _swigc__p_wxPNGHandler, | |
27361 | _swigc__p_wxPNMHandler, | |
27362 | _swigc__p_wxPaintDC, | |
27363 | _swigc__p_wxPaintEvent, | |
27364 | _swigc__p_wxPalette, | |
27365 | _swigc__p_wxPaletteChangedEvent, | |
27366 | _swigc__p_wxPaperSize, | |
27367 | _swigc__p_wxPen, | |
27368 | _swigc__p_wxPenList, | |
27369 | _swigc__p_wxPoint, | |
27370 | _swigc__p_wxPostScriptDC, | |
27371 | _swigc__p_wxPrintData, | |
27372 | _swigc__p_wxPrinterDC, | |
27373 | _swigc__p_wxPyApp, | |
27374 | _swigc__p_wxPyCommandEvent, | |
27375 | _swigc__p_wxPyEvent, | |
27376 | _swigc__p_wxPyFontEnumerator, | |
27377 | _swigc__p_wxPyImageHandler, | |
27378 | _swigc__p_wxPySizer, | |
27379 | _swigc__p_wxPyValidator, | |
27380 | _swigc__p_wxQueryNewPaletteEvent, | |
27381 | _swigc__p_wxRect, | |
27382 | _swigc__p_wxRegion, | |
27383 | _swigc__p_wxRegionIterator, | |
27384 | _swigc__p_wxRendererNative, | |
27385 | _swigc__p_wxRendererVersion, | |
27386 | _swigc__p_wxScreenDC, | |
27387 | _swigc__p_wxScrollEvent, | |
27388 | _swigc__p_wxScrollWinEvent, | |
27389 | _swigc__p_wxSetCursorEvent, | |
27390 | _swigc__p_wxShowEvent, | |
27391 | _swigc__p_wxSize, | |
27392 | _swigc__p_wxSizeEvent, | |
27393 | _swigc__p_wxSizer, | |
27394 | _swigc__p_wxSizerItem, | |
27395 | _swigc__p_wxSplitterRenderParams, | |
27396 | _swigc__p_wxStaticBoxSizer, | |
27397 | _swigc__p_wxStdDialogButtonSizer, | |
27398 | _swigc__p_wxString, | |
27399 | _swigc__p_wxSysColourChangedEvent, | |
27400 | _swigc__p_wxTIFFHandler, | |
27401 | _swigc__p_wxUpdateUIEvent, | |
27402 | _swigc__p_wxValidator, | |
27403 | _swigc__p_wxWindow, | |
27404 | _swigc__p_wxWindowCreateEvent, | |
27405 | _swigc__p_wxWindowDC, | |
27406 | _swigc__p_wxWindowDestroyEvent, | |
27407 | _swigc__p_wxXPMHandler, | |
27408 | }; | |
27409 | ||
27410 | ||
27411 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27412 | ||
27413 | static swig_const_info swig_const_table[] = { | |
27414 | {0, 0, 0, 0.0, 0, 0}}; | |
27415 | ||
27416 | #ifdef __cplusplus | |
27417 | } | |
27418 | #endif | |
27419 | /* ----------------------------------------------------------------------------- | |
27420 | * Type initialization: | |
27421 | * This problem is tough by the requirement that no dynamic | |
27422 | * memory is used. Also, since swig_type_info structures store pointers to | |
27423 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
27424 | * to swig_type_info structures, we need some lookup code at initialization. | |
27425 | * The idea is that swig generates all the structures that are needed. | |
27426 | * The runtime then collects these partially filled structures. | |
27427 | * The SWIG_InitializeModule function takes these initial arrays out of | |
27428 | * swig_module, and does all the lookup, filling in the swig_module.types | |
27429 | * array with the correct data and linking the correct swig_cast_info | |
27430 | * structures together. | |
27431 | * | |
27432 | * The generated swig_type_info structures are assigned staticly to an initial | |
27433 | * array. We just loop though that array, and handle each type individually. | |
27434 | * First we lookup if this type has been already loaded, and if so, use the | |
27435 | * loaded structure instead of the generated one. Then we have to fill in the | |
27436 | * cast linked list. The cast data is initially stored in something like a | |
27437 | * two-dimensional array. Each row corresponds to a type (there are the same | |
27438 | * number of rows as there are in the swig_type_initial array). Each entry in | |
27439 | * a column is one of the swig_cast_info structures for that type. | |
27440 | * The cast_initial array is actually an array of arrays, because each row has | |
27441 | * a variable number of columns. So to actually build the cast linked list, | |
27442 | * we find the array of casts associated with the type, and loop through it | |
27443 | * adding the casts to the list. The one last trick we need to do is making | |
27444 | * sure the type pointer in the swig_cast_info struct is correct. | |
27445 | * | |
27446 | * First off, we lookup the cast->type name to see if it is already loaded. | |
27447 | * There are three cases to handle: | |
27448 | * 1) If the cast->type has already been loaded AND the type we are adding | |
27449 | * casting info to has not been loaded (it is in this module), THEN we | |
27450 | * replace the cast->type pointer with the type pointer that has already | |
27451 | * been loaded. | |
27452 | * 2) If BOTH types (the one we are adding casting info to, and the | |
27453 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
27454 | * the previous module so we just ignore it. | |
27455 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
27456 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
27457 | * be correct. | |
27458 | * ----------------------------------------------------------------------------- */ | |
27459 | ||
27460 | #ifdef __cplusplus | |
27461 | extern "C" { | |
27462 | #if 0 | |
27463 | } /* c-mode */ | |
27464 | #endif | |
27465 | #endif | |
27466 | ||
27467 | #if 0 | |
27468 | #define SWIGRUNTIME_DEBUG | |
27469 | #endif | |
27470 | ||
27471 | SWIGRUNTIME void | |
27472 | SWIG_InitializeModule(void *clientdata) { | |
27473 | size_t i; | |
27474 | swig_module_info *module_head; | |
27475 | static int init_run = 0; | |
27476 | ||
27477 | clientdata = clientdata; | |
27478 | ||
27479 | if (init_run) return; | |
27480 | init_run = 1; | |
27481 | ||
27482 | /* Initialize the swig_module */ | |
27483 | swig_module.type_initial = swig_type_initial; | |
27484 | swig_module.cast_initial = swig_cast_initial; | |
27485 | ||
27486 | /* Try and load any already created modules */ | |
27487 | module_head = SWIG_GetModule(clientdata); | |
27488 | if (module_head) { | |
27489 | swig_module.next = module_head->next; | |
27490 | module_head->next = &swig_module; | |
27491 | } else { | |
27492 | /* This is the first module loaded */ | |
27493 | swig_module.next = &swig_module; | |
27494 | SWIG_SetModule(clientdata, &swig_module); | |
27495 | } | |
27496 | ||
27497 | /* Now work on filling in swig_module.types */ | |
27498 | #ifdef SWIGRUNTIME_DEBUG | |
27499 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
27500 | #endif | |
27501 | for (i = 0; i < swig_module.size; ++i) { | |
27502 | swig_type_info *type = 0; | |
27503 | swig_type_info *ret; | |
27504 | swig_cast_info *cast; | |
27505 | ||
27506 | #ifdef SWIGRUNTIME_DEBUG | |
27507 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
27508 | #endif | |
27509 | ||
27510 | /* if there is another module already loaded */ | |
27511 | if (swig_module.next != &swig_module) { | |
27512 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 27513 | } |
554f62e9 RD |
27514 | if (type) { |
27515 | /* Overwrite clientdata field */ | |
27516 | #ifdef SWIGRUNTIME_DEBUG | |
27517 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
27518 | #endif | |
27519 | if (swig_module.type_initial[i]->clientdata) { | |
27520 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
27521 | #ifdef SWIGRUNTIME_DEBUG | |
27522 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
27523 | #endif | |
27524 | } | |
27525 | } else { | |
27526 | type = swig_module.type_initial[i]; | |
be9b1dca | 27527 | } |
554f62e9 RD |
27528 | |
27529 | /* Insert casting types */ | |
27530 | cast = swig_module.cast_initial[i]; | |
27531 | while (cast->type) { | |
27532 | /* Don't need to add information already in the list */ | |
27533 | ret = 0; | |
27534 | #ifdef SWIGRUNTIME_DEBUG | |
27535 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
27536 | #endif | |
27537 | if (swig_module.next != &swig_module) { | |
27538 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
27539 | #ifdef SWIGRUNTIME_DEBUG | |
27540 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
27541 | #endif | |
27542 | } | |
27543 | if (ret) { | |
27544 | if (type == swig_module.type_initial[i]) { | |
27545 | #ifdef SWIGRUNTIME_DEBUG | |
27546 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
27547 | #endif | |
27548 | cast->type = ret; | |
27549 | ret = 0; | |
27550 | } else { | |
27551 | /* Check for casting already in the list */ | |
27552 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
27553 | #ifdef SWIGRUNTIME_DEBUG | |
27554 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
27555 | #endif | |
27556 | if (!ocast) ret = 0; | |
27557 | } | |
27558 | } | |
27559 | ||
27560 | if (!ret) { | |
27561 | #ifdef SWIGRUNTIME_DEBUG | |
27562 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
27563 | #endif | |
27564 | if (type->cast) { | |
27565 | type->cast->prev = cast; | |
27566 | cast->next = type->cast; | |
27567 | } | |
27568 | type->cast = cast; | |
27569 | } | |
27570 | cast++; | |
be9b1dca | 27571 | } |
554f62e9 RD |
27572 | /* Set entry in modules->types array equal to the type */ |
27573 | swig_module.types[i] = type; | |
27574 | } | |
27575 | swig_module.types[i] = 0; | |
27576 | ||
27577 | #ifdef SWIGRUNTIME_DEBUG | |
27578 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
27579 | for (i = 0; i < swig_module.size; ++i) { | |
27580 | int j = 0; | |
27581 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
27582 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
27583 | while (cast->type) { | |
27584 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
27585 | cast++; | |
27586 | ++j; | |
27587 | } | |
27588 | printf("---- Total casts: %d\n",j); | |
27589 | } | |
27590 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
27591 | #endif | |
27592 | } | |
27593 | ||
27594 | /* This function will propagate the clientdata field of type to | |
27595 | * any new swig_type_info structures that have been added into the list | |
27596 | * of equivalent types. It is like calling | |
27597 | * SWIG_TypeClientData(type, clientdata) a second time. | |
27598 | */ | |
27599 | SWIGRUNTIME void | |
27600 | SWIG_PropagateClientData(void) { | |
27601 | size_t i; | |
27602 | swig_cast_info *equiv; | |
27603 | static int init_run = 0; | |
27604 | ||
27605 | if (init_run) return; | |
27606 | init_run = 1; | |
27607 | ||
27608 | for (i = 0; i < swig_module.size; i++) { | |
27609 | if (swig_module.types[i]->clientdata) { | |
27610 | equiv = swig_module.types[i]->cast; | |
27611 | while (equiv) { | |
27612 | if (!equiv->converter) { | |
27613 | if (equiv->type && !equiv->type->clientdata) | |
27614 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
27615 | } | |
27616 | equiv = equiv->next; | |
27617 | } | |
be9b1dca | 27618 | } |
554f62e9 RD |
27619 | } |
27620 | } | |
27621 | ||
27622 | #ifdef __cplusplus | |
27623 | #if 0 | |
27624 | { | |
27625 | /* c-mode */ | |
27626 | #endif | |
27627 | } | |
27628 | #endif | |
27629 | ||
27630 | ||
27631 | ||
27632 | #ifdef __cplusplus | |
27633 | extern "C" { | |
27634 | #endif | |
27635 | ||
27636 | /* Python-specific SWIG API */ | |
27637 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
27638 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
27639 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
27640 | ||
27641 | /* ----------------------------------------------------------------------------- | |
27642 | * global variable support code. | |
27643 | * ----------------------------------------------------------------------------- */ | |
27644 | ||
27645 | typedef struct swig_globalvar { | |
27646 | char *name; /* Name of global variable */ | |
27647 | PyObject *(*get_attr)(void); /* Return the current value */ | |
27648 | int (*set_attr)(PyObject *); /* Set the value */ | |
27649 | struct swig_globalvar *next; | |
27650 | } swig_globalvar; | |
27651 | ||
27652 | typedef struct swig_varlinkobject { | |
27653 | PyObject_HEAD | |
27654 | swig_globalvar *vars; | |
27655 | } swig_varlinkobject; | |
27656 | ||
27657 | SWIGINTERN PyObject * | |
27658 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
27659 | return PyString_FromString("<Swig global variables>"); | |
27660 | } | |
27661 | ||
27662 | SWIGINTERN PyObject * | |
27663 | swig_varlink_str(swig_varlinkobject *v) { | |
27664 | PyObject *str = PyString_FromString("("); | |
27665 | swig_globalvar *var; | |
27666 | for (var = v->vars; var; var=var->next) { | |
27667 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
27668 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
27669 | } | |
27670 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
27671 | return str; | |
27672 | } | |
27673 | ||
27674 | SWIGINTERN int | |
27675 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
27676 | PyObject *str = swig_varlink_str(v); | |
27677 | fprintf(fp,"Swig global variables "); | |
27678 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
27679 | Py_DECREF(str); | |
27680 | return 0; | |
27681 | } | |
27682 | ||
27683 | SWIGINTERN void | |
27684 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
27685 | swig_globalvar *var = v->vars; | |
27686 | while (var) { | |
27687 | swig_globalvar *n = var->next; | |
27688 | free(var->name); | |
27689 | free(var); | |
27690 | var = n; | |
be9b1dca | 27691 | } |
554f62e9 RD |
27692 | } |
27693 | ||
27694 | SWIGINTERN PyObject * | |
27695 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
27696 | PyObject *res = NULL; | |
27697 | swig_globalvar *var = v->vars; | |
27698 | while (var) { | |
27699 | if (strcmp(var->name,n) == 0) { | |
27700 | res = (*var->get_attr)(); | |
27701 | break; | |
27702 | } | |
27703 | var = var->next; | |
be9b1dca | 27704 | } |
554f62e9 RD |
27705 | if (res == NULL && !PyErr_Occurred()) { |
27706 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 27707 | } |
554f62e9 RD |
27708 | return res; |
27709 | } | |
27710 | ||
27711 | SWIGINTERN int | |
27712 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
27713 | int res = 1; | |
27714 | swig_globalvar *var = v->vars; | |
27715 | while (var) { | |
27716 | if (strcmp(var->name,n) == 0) { | |
27717 | res = (*var->set_attr)(p); | |
27718 | break; | |
27719 | } | |
27720 | var = var->next; | |
be9b1dca | 27721 | } |
554f62e9 RD |
27722 | if (res == 1 && !PyErr_Occurred()) { |
27723 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 27724 | } |
554f62e9 RD |
27725 | return res; |
27726 | } | |
27727 | ||
27728 | SWIGINTERN PyTypeObject* | |
27729 | swig_varlink_type(void) { | |
27730 | static char varlink__doc__[] = "Swig var link object"; | |
27731 | static PyTypeObject varlink_type; | |
27732 | static int type_init = 0; | |
27733 | if (!type_init) { | |
27734 | const PyTypeObject tmp | |
27735 | = { | |
27736 | PyObject_HEAD_INIT(NULL) | |
27737 | 0, /* Number of items in variable part (ob_size) */ | |
27738 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
27739 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
27740 | 0, /* Itemsize (tp_itemsize) */ | |
27741 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
27742 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
27743 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
27744 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
27745 | 0, /* tp_compare */ | |
27746 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
27747 | 0, /* tp_as_number */ | |
27748 | 0, /* tp_as_sequence */ | |
27749 | 0, /* tp_as_mapping */ | |
27750 | 0, /* tp_hash */ | |
27751 | 0, /* tp_call */ | |
27752 | (reprfunc)swig_varlink_str, /* tp_str */ | |
27753 | 0, /* tp_getattro */ | |
27754 | 0, /* tp_setattro */ | |
27755 | 0, /* tp_as_buffer */ | |
27756 | 0, /* tp_flags */ | |
27757 | varlink__doc__, /* tp_doc */ | |
27758 | 0, /* tp_traverse */ | |
27759 | 0, /* tp_clear */ | |
27760 | 0, /* tp_richcompare */ | |
27761 | 0, /* tp_weaklistoffset */ | |
27762 | #if PY_VERSION_HEX >= 0x02020000 | |
27763 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
27764 | #endif | |
27765 | #if PY_VERSION_HEX >= 0x02030000 | |
27766 | 0, /* tp_del */ | |
27767 | #endif | |
27768 | #ifdef COUNT_ALLOCS | |
27769 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
27770 | #endif | |
27771 | }; | |
27772 | varlink_type = tmp; | |
27773 | varlink_type.ob_type = &PyType_Type; | |
27774 | type_init = 1; | |
be9b1dca | 27775 | } |
554f62e9 RD |
27776 | return &varlink_type; |
27777 | } | |
27778 | ||
27779 | /* Create a variable linking object for use later */ | |
27780 | SWIGINTERN PyObject * | |
27781 | SWIG_Python_newvarlink(void) { | |
27782 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
27783 | if (result) { | |
27784 | result->vars = 0; | |
27785 | } | |
27786 | return ((PyObject*) result); | |
27787 | } | |
27788 | ||
27789 | SWIGINTERN void | |
27790 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
27791 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
27792 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
27793 | if (gv) { | |
27794 | size_t size = strlen(name)+1; | |
27795 | gv->name = (char *)malloc(size); | |
27796 | if (gv->name) { | |
27797 | strncpy(gv->name,name,size); | |
27798 | gv->get_attr = get_attr; | |
27799 | gv->set_attr = set_attr; | |
27800 | gv->next = v->vars; | |
27801 | } | |
be9b1dca | 27802 | } |
554f62e9 RD |
27803 | v->vars = gv; |
27804 | } | |
27805 | ||
27806 | SWIGINTERN PyObject * | |
27807 | SWIG_globals() { | |
27808 | static PyObject *_SWIG_globals = 0; | |
27809 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
27810 | return _SWIG_globals; | |
27811 | } | |
27812 | ||
27813 | /* ----------------------------------------------------------------------------- | |
27814 | * constants/methods manipulation | |
27815 | * ----------------------------------------------------------------------------- */ | |
27816 | ||
27817 | /* Install Constants */ | |
27818 | SWIGINTERN void | |
27819 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
27820 | PyObject *obj = 0; | |
27821 | size_t i; | |
27822 | for (i = 0; constants[i].type; ++i) { | |
27823 | switch(constants[i].type) { | |
27824 | case SWIG_PY_POINTER: | |
27825 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
27826 | break; | |
27827 | case SWIG_PY_BINARY: | |
27828 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
27829 | break; | |
27830 | default: | |
27831 | obj = 0; | |
27832 | break; | |
27833 | } | |
27834 | if (obj) { | |
27835 | PyDict_SetItemString(d, constants[i].name, obj); | |
27836 | Py_DECREF(obj); | |
27837 | } | |
be9b1dca | 27838 | } |
554f62e9 RD |
27839 | } |
27840 | ||
27841 | /* -----------------------------------------------------------------------------*/ | |
27842 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27843 | /* -----------------------------------------------------------------------------*/ | |
27844 | ||
27845 | SWIGINTERN void | |
27846 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
27847 | swig_const_info *const_table, | |
27848 | swig_type_info **types, | |
27849 | swig_type_info **types_initial) { | |
27850 | size_t i; | |
27851 | for (i = 0; methods[i].ml_name; ++i) { | |
27852 | char *c = methods[i].ml_doc; | |
27853 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
27854 | int j; | |
27855 | swig_const_info *ci = 0; | |
27856 | char *name = c + 10; | |
27857 | for (j = 0; const_table[j].type; ++j) { | |
27858 | if (strncmp(const_table[j].name, name, | |
27859 | strlen(const_table[j].name)) == 0) { | |
27860 | ci = &(const_table[j]); | |
27861 | break; | |
27862 | } | |
27863 | } | |
27864 | if (ci) { | |
27865 | size_t shift = (ci->ptype) - types; | |
27866 | swig_type_info *ty = types_initial[shift]; | |
27867 | size_t ldoc = (c - methods[i].ml_doc); | |
27868 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
27869 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
27870 | if (ndoc) { | |
27871 | char *buff = ndoc; | |
27872 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
27873 | if (ptr) { | |
27874 | strncpy(buff, methods[i].ml_doc, ldoc); | |
27875 | buff += ldoc; | |
27876 | strncpy(buff, "swig_ptr: ", 10); | |
27877 | buff += 10; | |
27878 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
27879 | methods[i].ml_doc = ndoc; | |
27880 | } | |
27881 | } | |
27882 | } | |
27883 | } | |
be9b1dca | 27884 | } |
554f62e9 RD |
27885 | } |
27886 | ||
27887 | #ifdef __cplusplus | |
27888 | } | |
27889 | #endif | |
27890 | ||
27891 | /* -----------------------------------------------------------------------------* | |
27892 | * Partial Init method | |
27893 | * -----------------------------------------------------------------------------*/ | |
27894 | ||
27895 | #ifdef __cplusplus | |
27896 | extern "C" | |
27897 | #endif | |
27898 | SWIGEXPORT void SWIG_init(void) { | |
27899 | PyObject *m, *d; | |
27900 | ||
27901 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27902 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
27903 | ||
27904 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27905 | d = PyModule_GetDict(m); | |
27906 | ||
27907 | SWIG_InitializeModule(0); | |
27908 | SWIG_InstallConstants(d,swig_const_table); | |
27909 | ||
27910 | ||
27911 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); | |
27912 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
27913 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
27914 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
27915 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
27916 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
27917 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
27918 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
27919 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
27920 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
27921 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
27922 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
27923 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
27924 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
27925 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
27926 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
27927 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
27928 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
27929 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
27930 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
27931 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
27932 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
27933 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
27934 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
27935 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
27936 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
27937 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
27938 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
27939 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
27940 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
27941 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
27942 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
27943 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
27944 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
27945 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
27946 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
27947 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
27948 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
27949 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
27950 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
27951 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
27952 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
27953 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
27954 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
27955 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
27956 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
27957 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
27958 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
27959 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
27960 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
27961 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
27962 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
27963 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
27964 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
27965 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
27966 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
27967 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
27968 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
27969 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
27970 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
27971 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
27972 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
27973 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
27974 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
27975 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
27976 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
27977 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
27978 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
27979 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
27980 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
27981 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
27982 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
27983 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
27984 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
27985 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
27986 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
27987 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
27988 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
27989 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
27990 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
27991 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
27992 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
27993 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
27994 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
27995 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
27996 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
27997 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
27998 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
27999 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
28000 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
28001 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
28002 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
28003 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
28004 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
28005 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
28006 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
28007 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
28008 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
28009 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
28010 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
28011 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
28012 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
28013 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
28014 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
28015 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
28016 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
28017 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
28018 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
28019 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
28020 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
28021 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
28022 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
28023 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
28024 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
28025 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
28026 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
28027 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
28028 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
28029 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
28030 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
28031 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
28032 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
28033 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
28034 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
28035 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
28036 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
28037 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
28038 | ||
28039 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
28040 | ||
28041 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
28042 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
28043 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
28044 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
28045 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
28046 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
28047 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
28048 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
28049 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
28050 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
28051 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
28052 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
28053 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
28054 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
28055 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
28056 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
28057 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
28058 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
28059 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
28060 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
28061 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
28062 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
28063 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
28064 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
28065 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
28066 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
28067 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
28068 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
28069 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
28070 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
28071 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
28072 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
28073 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
28074 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
28075 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
28076 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
28077 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
28078 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
28079 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
28080 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
28081 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
28082 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
28083 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
28084 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
28085 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
28086 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
28087 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
28088 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
28089 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
28090 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
28091 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
28092 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
28093 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
28094 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
28095 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
28096 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
28097 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
28098 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
28099 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
28100 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
28101 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
28102 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
28103 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
28104 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
28105 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
28106 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
28107 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
28108 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
28109 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
28110 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
28111 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
28112 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
28113 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
28114 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
28115 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
28116 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
28117 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
28118 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
28119 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
28120 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
28121 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
28122 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
28123 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
28124 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
28125 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
28126 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
28127 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
28128 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
28129 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
28130 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
28131 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
28132 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
28133 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
28134 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
28135 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
28136 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
28137 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
28138 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
28139 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
28140 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
28141 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
28142 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
28143 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
28144 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
28145 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
28146 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
28147 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
28148 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
28149 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
28150 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
28151 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
28152 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
28153 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
28154 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
28155 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
28156 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
28157 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
28158 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
28159 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
28160 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
28161 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
28162 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
28163 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
28164 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
28165 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
28166 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
28167 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
28168 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
28169 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
28170 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
28171 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
28172 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
28173 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
28174 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
28175 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
28176 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
28177 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
28178 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
28179 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
28180 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
28181 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
28182 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
28183 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
28184 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
28185 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
28186 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
28187 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
28188 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
28189 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
28190 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
28191 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
28192 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
28193 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
28194 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
28195 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
28196 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
28197 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
28198 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
28199 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
28200 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
28201 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
28202 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
28203 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
28204 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
28205 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
28206 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
28207 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
28208 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
28209 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
28210 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
28211 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
28212 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
28213 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
28214 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
28215 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
28216 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
28217 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
28218 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
28219 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
28220 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
28221 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
28222 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
28223 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
28224 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
28225 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
28226 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
28227 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
28228 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
28229 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
28230 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
28231 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
28232 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
28233 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
28234 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
28235 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
28236 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
28237 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
28238 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
28239 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
28240 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
28241 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
28242 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
28243 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
28244 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
28245 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
28246 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
28247 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
28248 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
28249 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
28250 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
28251 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
28252 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
28253 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
28254 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
28255 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
28256 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
28257 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
28258 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
28259 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
28260 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
28261 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
28262 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
28263 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
28264 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
28265 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
28266 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
28267 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
28268 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
28269 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
28270 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
28271 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
28272 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
28273 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
28274 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
28275 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
28276 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
28277 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
28278 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
28279 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
28280 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
28281 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
28282 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
28283 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
28284 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
28285 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
28286 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
28287 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
28288 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
28289 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); | |
28290 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
28291 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
28292 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
28293 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
28294 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
28295 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
28296 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
28297 | SWIG_addvarlink(SWIG_globals(),(char*)"NORMAL_FONT",NORMAL_FONT_get, NORMAL_FONT_set); | |
28298 | SWIG_addvarlink(SWIG_globals(),(char*)"SMALL_FONT",SMALL_FONT_get, SMALL_FONT_set); | |
28299 | SWIG_addvarlink(SWIG_globals(),(char*)"ITALIC_FONT",ITALIC_FONT_get, ITALIC_FONT_set); | |
28300 | SWIG_addvarlink(SWIG_globals(),(char*)"SWISS_FONT",SWISS_FONT_get, SWISS_FONT_set); | |
28301 | SWIG_addvarlink(SWIG_globals(),(char*)"RED_PEN",RED_PEN_get, RED_PEN_set); | |
28302 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_PEN",CYAN_PEN_get, CYAN_PEN_set); | |
28303 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_PEN",GREEN_PEN_get, GREEN_PEN_set); | |
28304 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_PEN",BLACK_PEN_get, BLACK_PEN_set); | |
28305 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_PEN",WHITE_PEN_get, WHITE_PEN_set); | |
28306 | SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_PEN",TRANSPARENT_PEN_get, TRANSPARENT_PEN_set); | |
28307 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_DASHED_PEN",BLACK_DASHED_PEN_get, BLACK_DASHED_PEN_set); | |
28308 | SWIG_addvarlink(SWIG_globals(),(char*)"GREY_PEN",GREY_PEN_get, GREY_PEN_set); | |
28309 | SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_PEN",MEDIUM_GREY_PEN_get, MEDIUM_GREY_PEN_set); | |
28310 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_PEN",LIGHT_GREY_PEN_get, LIGHT_GREY_PEN_set); | |
28311 | SWIG_addvarlink(SWIG_globals(),(char*)"BLUE_BRUSH",BLUE_BRUSH_get, BLUE_BRUSH_set); | |
28312 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_BRUSH",GREEN_BRUSH_get, GREEN_BRUSH_set); | |
28313 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_BRUSH",WHITE_BRUSH_get, WHITE_BRUSH_set); | |
28314 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_BRUSH",BLACK_BRUSH_get, BLACK_BRUSH_set); | |
28315 | SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_BRUSH",TRANSPARENT_BRUSH_get, TRANSPARENT_BRUSH_set); | |
28316 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_BRUSH",CYAN_BRUSH_get, CYAN_BRUSH_set); | |
28317 | SWIG_addvarlink(SWIG_globals(),(char*)"RED_BRUSH",RED_BRUSH_get, RED_BRUSH_set); | |
28318 | SWIG_addvarlink(SWIG_globals(),(char*)"GREY_BRUSH",GREY_BRUSH_get, GREY_BRUSH_set); | |
28319 | SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_BRUSH",MEDIUM_GREY_BRUSH_get, MEDIUM_GREY_BRUSH_set); | |
28320 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_BRUSH",LIGHT_GREY_BRUSH_get, LIGHT_GREY_BRUSH_set); | |
28321 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK",BLACK_get, BLACK_set); | |
28322 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE",WHITE_get, WHITE_set); | |
28323 | SWIG_addvarlink(SWIG_globals(),(char*)"RED",RED_get, RED_set); | |
28324 | SWIG_addvarlink(SWIG_globals(),(char*)"BLUE",BLUE_get, BLUE_set); | |
28325 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN",GREEN_get, GREEN_set); | |
28326 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN",CYAN_get, CYAN_set); | |
28327 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY",LIGHT_GREY_get, LIGHT_GREY_set); | |
28328 | SWIG_addvarlink(SWIG_globals(),(char*)"STANDARD_CURSOR",STANDARD_CURSOR_get, STANDARD_CURSOR_set); | |
28329 | SWIG_addvarlink(SWIG_globals(),(char*)"HOURGLASS_CURSOR",HOURGLASS_CURSOR_get, HOURGLASS_CURSOR_set); | |
28330 | SWIG_addvarlink(SWIG_globals(),(char*)"CROSS_CURSOR",CROSS_CURSOR_get, CROSS_CURSOR_set); | |
28331 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); | |
28332 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
28333 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
28334 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
28335 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
28336 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
28337 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
28338 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
28339 | SWIG_addvarlink(SWIG_globals(),(char*)"TheFontList",TheFontList_get, TheFontList_set); | |
28340 | SWIG_addvarlink(SWIG_globals(),(char*)"ThePenList",ThePenList_get, ThePenList_set); | |
28341 | SWIG_addvarlink(SWIG_globals(),(char*)"TheBrushList",TheBrushList_get, TheBrushList_set); | |
28342 | SWIG_addvarlink(SWIG_globals(),(char*)"TheColourDatabase",TheColourDatabase_get, TheColourDatabase_set); | |
28343 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); | |
28344 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
28345 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
28346 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); | |
28347 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
28348 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
28349 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); | |
28350 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
28351 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
28352 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
28353 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
28354 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
28355 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
28356 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); | |
28357 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
28358 | ||
28359 | // Work around a chicken/egg problem in drawlist.cpp | |
28360 | wxPyDrawList_SetAPIPtr(); | |
28361 | ||
d55e5bfc RD |
28362 | } |
28363 |