]>
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 | |
554f62e9 | 2789 | SWIGINTERN PyObject *wxColour_Get(wxColour *self){ |
093d3ff1 RD |
2790 | PyObject* rv = PyTuple_New(3); |
2791 | int red = -1; | |
2792 | int green = -1; | |
2793 | int blue = -1; | |
2794 | if (self->Ok()) { | |
2795 | red = self->Red(); | |
2796 | green = self->Green(); | |
2797 | blue = self->Blue(); | |
2798 | } | |
2799 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2800 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2801 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
2802 | return rv; | |
2803 | } | |
554f62e9 | 2804 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2805 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2806 | } | |
2807 | ||
554f62e9 RD |
2808 | SWIGINTERN int |
2809 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2810 | { |
554f62e9 RD |
2811 | long v; |
2812 | int res = SWIG_AsVal_long (obj, &v); | |
2813 | if (SWIG_IsOK(res)) { | |
2814 | if ((v < INT_MIN || v > INT_MAX)) { | |
2815 | return SWIG_OverflowError; | |
2816 | } else { | |
2817 | if (val) *val = static_cast< int >(v); | |
2818 | } | |
2819 | } | |
2820 | return res; | |
d55e5bfc RD |
2821 | } |
2822 | ||
2823 | ||
554f62e9 RD |
2824 | SWIGINTERNINLINE PyObject * |
2825 | SWIG_From_int (int value) | |
2826 | { | |
2827 | return SWIG_From_long (value); | |
2828 | } | |
d55e5bfc | 2829 | |
554f62e9 | 2830 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2831 | wxDash* dashes; |
2832 | int count = self->GetDashes(&dashes); | |
5a446332 | 2833 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2834 | PyObject* retval = PyList_New(0); |
2835 | for (int x=0; x<count; x++) { | |
2836 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2837 | PyList_Append(retval, pyint); | |
2838 | Py_DECREF(pyint); | |
2839 | } | |
2840 | wxPyEndBlockThreads(blocked); | |
2841 | return retval; | |
2842 | } | |
554f62e9 | 2843 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2844 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2845 | int size = PyList_Size(pyDashes); |
2846 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 2847 | |
093d3ff1 RD |
2848 | // black magic warning! The array of wxDashes needs to exist as |
2849 | // long as the pen does because wxPen does not copy the array. So | |
2850 | // stick a copy in a Python string object and attach it to _self, | |
2851 | // and then call SetDashes with a pointer to that array. Then | |
2852 | // when the Python pen object is destroyed the array will be | |
2853 | // cleaned up too. | |
2854 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2855 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2856 | ||
2857 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2858 | delete [] dashes; | |
2859 | Py_DECREF(strDashes); | |
2860 | wxPyEndBlockThreads(blocked); | |
2861 | } | |
554f62e9 RD |
2862 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2863 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2864 | |
093d3ff1 | 2865 | #include <wx/image.h> |
d55e5bfc | 2866 | |
093d3ff1 RD |
2867 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2868 | char** cArray = NULL; | |
2869 | int count; | |
d55e5bfc | 2870 | |
093d3ff1 RD |
2871 | if (!PyList_Check(listOfStrings)) { |
2872 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2873 | return NULL; | |
2874 | } | |
2875 | count = PyList_Size(listOfStrings); | |
2876 | cArray = new char*[count]; | |
d55e5bfc | 2877 | |
093d3ff1 RD |
2878 | for(int x=0; x<count; x++) { |
2879 | // TODO: Need some validation and error checking here | |
2880 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2881 | } | |
2882 | return cArray; | |
d55e5bfc | 2883 | } |
d55e5bfc RD |
2884 | |
2885 | ||
554f62e9 | 2886 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
093d3ff1 RD |
2887 | char** cArray = NULL; |
2888 | wxBitmap* bmp; | |
d55e5bfc | 2889 | |
093d3ff1 RD |
2890 | cArray = ConvertListOfStrings(listOfStrings); |
2891 | if (! cArray) | |
2892 | return NULL; | |
2893 | bmp = new wxBitmap(cArray); | |
2894 | delete [] cArray; | |
2895 | return bmp; | |
2896 | } | |
554f62e9 | 2897 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
093d3ff1 RD |
2898 | char* buf; |
2899 | int length; | |
2900 | PyString_AsStringAndSize(bits, &buf, &length); | |
2901 | return new wxBitmap(buf, width, height, depth); | |
2902 | } | |
554f62e9 RD |
2903 | SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2904 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ | |
093d3ff1 RD |
2905 | wxSize size(self->GetWidth(), self->GetHeight()); |
2906 | return size; | |
2907 | } | |
554f62e9 | 2908 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2909 | wxMask *mask = new wxMask(*self, colour); |
2910 | self->SetMask(mask); | |
2911 | } | |
554f62e9 | 2912 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2913 | self->SetWidth(size.x); |
2914 | self->SetHeight(size.y); | |
2915 | } | |
554f62e9 RD |
2916 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2917 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
2918 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
093d3ff1 RD |
2919 | if ( !colour.Ok() ) |
2920 | return new wxMask(bitmap, *wxBLACK); | |
2921 | else | |
2922 | return new wxMask(bitmap, colour); | |
2923 | } | |
d55e5bfc | 2924 | |
093d3ff1 | 2925 | #include <wx/iconbndl.h> |
d55e5bfc | 2926 | |
554f62e9 | 2927 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
2928 | wxIcon* icon = new wxIcon(); |
2929 | icon->CopyFromBitmap(bmp); | |
2930 | return icon; | |
2931 | } | |
554f62e9 | 2932 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
2933 | char** cArray = NULL; |
2934 | wxIcon* icon; | |
d55e5bfc | 2935 | |
093d3ff1 RD |
2936 | cArray = ConvertListOfStrings(listOfStrings); |
2937 | if (! cArray) | |
2938 | return NULL; | |
2939 | icon = new wxIcon(cArray); | |
2940 | delete [] cArray; | |
2941 | return icon; | |
2942 | } | |
554f62e9 RD |
2943 | SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2944 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc | 2945 | |
093d3ff1 | 2946 | return new wxIconLocation(*filename, num); |
d55e5bfc RD |
2947 | |
2948 | ||
d55e5bfc | 2949 | |
093d3ff1 | 2950 | } |
554f62e9 | 2951 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc | 2952 | |
093d3ff1 | 2953 | self->SetIndex(num); |
d55e5bfc RD |
2954 | |
2955 | ||
d55e5bfc | 2956 | |
093d3ff1 | 2957 | } |
554f62e9 | 2958 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
d55e5bfc | 2959 | |
093d3ff1 | 2960 | return self->GetIndex(); |
d55e5bfc RD |
2961 | |
2962 | ||
d55e5bfc | 2963 | |
093d3ff1 | 2964 | } |
554f62e9 | 2965 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 2966 | #ifdef __WXGTK__ |
fef4c27a RD |
2967 | wxImage img(cursorName, type); |
2968 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
2969 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
2970 | return new wxCursor(img); | |
093d3ff1 | 2971 | #else |
fef4c27a | 2972 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
2973 | #endif |
2974 | } | |
554f62e9 | 2975 | SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d55e5bfc | 2976 | |
093d3ff1 | 2977 | |
554f62e9 | 2978 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
2979 | (*self) ++; |
2980 | } | |
554f62e9 | 2981 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
2982 | return self->operator bool(); |
2983 | } | |
2984 | ||
2985 | #include <wx/fontutil.h> | |
2986 | #include <wx/fontmap.h> | |
2987 | #include <wx/fontenum.h> | |
2988 | ||
554f62e9 | 2989 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
2990 | return self->ToString(); |
2991 | } | |
2992 | ||
2993 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
2994 | { wxPyRaiseNotImplemented(); return NULL; } | |
2995 | ||
2996 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
2997 | { wxPyRaiseNotImplemented(); return false; } | |
2998 | ||
554f62e9 RD |
2999 | |
3000 | SWIGINTERNINLINE PyObject * | |
3001 | SWIG_From_size_t (size_t value) | |
3002 | { | |
3003 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3004 | } | |
3005 | ||
3006 | ||
3007 | SWIGINTERNINLINE int | |
3008 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3009 | { | |
3010 | unsigned long v; | |
3011 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3012 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3013 | return res; | |
3014 | } | |
3015 | ||
3016 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3017 | wxFontEncoding alt_enc; |
3018 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3019 | return PyInt_FromLong(alt_enc); | |
3020 | else { | |
3021 | Py_INCREF(Py_None); | |
3022 | return Py_None; | |
3023 | } | |
3024 | } | |
554f62e9 | 3025 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3026 | wxNativeFontInfo nfi; |
3027 | nfi.FromString(info); | |
3028 | return new wxFont(nfi); | |
3029 | } | |
554f62e9 | 3030 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3031 | return wxFont::New(pointSize, family, flags, face, encoding); |
3032 | } | |
554f62e9 | 3033 | 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 |
3034 | return wxFontBase::New(pixelSize, family, |
3035 | style, weight, underlined, | |
3036 | face, encoding); | |
3037 | } | |
554f62e9 | 3038 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3039 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3040 | } | |
554f62e9 RD |
3041 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3042 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3043 | |
3044 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3045 | public: | |
3046 | wxPyFontEnumerator() {} | |
3047 | ~wxPyFontEnumerator() {} | |
3048 | ||
3049 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3050 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3051 | ||
3052 | PYPRIVATE; | |
3053 | }; | |
3054 | ||
3055 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3056 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3057 | ||
3058 | ||
554f62e9 | 3059 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ |
093d3ff1 RD |
3060 | wxArrayString* arr = self->GetEncodings(); |
3061 | if (arr) | |
3062 | return wxArrayString2PyList_helper(*arr); | |
3063 | else | |
3064 | return PyList_New(0); | |
3065 | } | |
554f62e9 | 3066 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ |
093d3ff1 RD |
3067 | wxArrayString* arr = self->GetFacenames(); |
3068 | if (arr) | |
3069 | return wxArrayString2PyList_helper(*arr); | |
3070 | else | |
3071 | return PyList_New(0); | |
3072 | } | |
3073 | ||
3074 | #include <locale.h> | |
3075 | ||
554f62e9 | 3076 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3077 | wxLocale* loc; |
3078 | if (language == -1) | |
3079 | loc = new wxLocale(); | |
3080 | else | |
3081 | loc = new wxLocale(language, flags); | |
3082 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3083 | // for the floating point conversions and such to work right. | |
3084 | #if PY_VERSION_HEX < 0x02040000 | |
3085 | setlocale(LC_NUMERIC, "C"); | |
3086 | #endif | |
3087 | return loc; | |
3088 | } | |
554f62e9 | 3089 | 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 |
3090 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3091 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3092 | // for the floating point conversions and such to work right. | |
3093 | #if PY_VERSION_HEX < 0x02040000 | |
3094 | setlocale(LC_NUMERIC, "C"); | |
3095 | #endif | |
3096 | return rc; | |
3097 | } | |
554f62e9 | 3098 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3099 | bool rc = self->Init(language, flags); |
3100 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3101 | // for the floating point conversions and such to work right. | |
3102 | #if PY_VERSION_HEX < 0x02040000 | |
3103 | setlocale(LC_NUMERIC, "C"); | |
3104 | #endif | |
3105 | return rc; | |
3106 | } | |
3107 | ||
3108 | #include "wx/wxPython/pydrawxxx.h" | |
3109 | ||
554f62e9 | 3110 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3111 | wxColour col; |
3112 | self->GetPixel(x, y, &col); | |
3113 | return col; | |
3114 | } | |
554f62e9 | 3115 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3116 | wxColour col; |
3117 | self->GetPixel(pt, &col); | |
3118 | return col; | |
3119 | } | |
3120 | ||
3121 | SWIGINTERN int | |
554f62e9 | 3122 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3123 | { |
3124 | if (PyNumber_Check(obj)) { | |
3125 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 3126 | return SWIG_OK; |
093d3ff1 | 3127 | } |
554f62e9 | 3128 | return SWIG_TypeError; |
093d3ff1 RD |
3129 | } |
3130 | ||
554f62e9 | 3131 | 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 |
3132 | wxRect rv; |
3133 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3134 | return rv; | |
3135 | } | |
554f62e9 | 3136 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3137 | wxRect rect; |
3138 | self->GetClippingBox(rect); | |
3139 | return rect; | |
3140 | } | |
554f62e9 | 3141 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3142 | wxArrayInt widths; |
3143 | self->GetPartialTextExtents(text, widths); | |
3144 | return widths; | |
3145 | } | |
3146 | ||
554f62e9 | 3147 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3148 | |
554f62e9 | 3149 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3150 | self->SetLogicalOrigin(point.x, point.y); |
3151 | } | |
554f62e9 | 3152 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3153 | self->SetDeviceOrigin(point.x, point.y); |
3154 | } | |
554f62e9 | 3155 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3156 | self->CalcBoundingBox(point.x, point.y); |
3157 | } | |
554f62e9 | 3158 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3159 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3160 | } | |
554f62e9 | 3161 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3162 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3163 | } | |
554f62e9 | 3164 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3165 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3166 | } | |
554f62e9 | 3167 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3168 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3169 | } | |
554f62e9 | 3170 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3171 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3172 | } | |
554f62e9 | 3173 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3174 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3175 | } | |
3176 | ||
3177 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3178 | *x1 = dc->MinX(); | |
3179 | *y1 = dc->MinY(); | |
3180 | *x2 = dc->MaxX(); | |
3181 | *y2 = dc->MaxY(); | |
3182 | } | |
3183 | ||
3184 | ||
3185 | #include <wx/dcbuffer.h> | |
3186 | ||
3187 | ||
3188 | #include <wx/dcps.h> | |
3189 | ||
3190 | ||
3191 | #include <wx/metafile.h> | |
3192 | ||
3193 | ||
3194 | ||
554f62e9 | 3195 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3196 | self->AddColour(name, wxColour(red, green, blue)); |
3197 | } | |
3198 | ||
3199 | #include <wx/effects.h> | |
3200 | ||
be9b1dca RD |
3201 | |
3202 | #include "wx/renderer.h" | |
3203 | ||
3204 | ||
7449af73 | 3205 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3206 | SWIG_From_bool (bool value) |
be9b1dca | 3207 | { |
554f62e9 | 3208 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3209 | } |
3210 | ||
093d3ff1 RD |
3211 | #ifdef __cplusplus |
3212 | extern "C" { | |
3213 | #endif | |
554f62e9 RD |
3214 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3215 | PyObject *resultobj = 0; | |
3216 | wxGDIObject *result = 0 ; | |
3217 | ||
3218 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3219 | { | |
3220 | if (!wxPyCheckForApp()) SWIG_fail; | |
3221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3222 | result = (wxGDIObject *)new wxGDIObject(); | |
3223 | wxPyEndAllowThreads(__tstate); | |
3224 | if (PyErr_Occurred()) SWIG_fail; | |
3225 | } | |
3226 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3227 | return resultobj; | |
3228 | fail: | |
3229 | return NULL; | |
d55e5bfc RD |
3230 | } |
3231 | ||
3232 | ||
554f62e9 RD |
3233 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3234 | PyObject *resultobj = 0; | |
3235 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3236 | void *argp1 = 0 ; | |
3237 | int res1 = 0 ; | |
3238 | PyObject *swig_obj[1] ; | |
3239 | ||
3240 | if (!args) SWIG_fail; | |
3241 | swig_obj[0] = args; | |
3242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3243 | if (!SWIG_IsOK(res1)) { | |
3244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3245 | } | |
3246 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3247 | { | |
3248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3249 | delete arg1; | |
d55e5bfc | 3250 | |
554f62e9 RD |
3251 | wxPyEndAllowThreads(__tstate); |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
3253 | } | |
3254 | resultobj = SWIG_Py_Void(); | |
3255 | return resultobj; | |
3256 | fail: | |
3257 | return NULL; | |
d55e5bfc RD |
3258 | } |
3259 | ||
3260 | ||
554f62e9 RD |
3261 | SWIGINTERN PyObject *_wrap_GDIObject_GetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3262 | PyObject *resultobj = 0; | |
3263 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3264 | bool result; | |
3265 | void *argp1 = 0 ; | |
3266 | int res1 = 0 ; | |
3267 | PyObject *swig_obj[1] ; | |
3268 | ||
3269 | if (!args) SWIG_fail; | |
3270 | swig_obj[0] = args; | |
3271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3272 | if (!SWIG_IsOK(res1)) { | |
3273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_GetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3274 | } | |
3275 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3276 | { | |
3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3278 | result = (bool)(arg1)->GetVisible(); | |
3279 | wxPyEndAllowThreads(__tstate); | |
3280 | if (PyErr_Occurred()) SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3284 | } | |
3285 | return resultobj; | |
3286 | fail: | |
3287 | return NULL; | |
3288 | } | |
3289 | ||
3290 | ||
3291 | SWIGINTERN PyObject *_wrap_GDIObject_SetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3292 | PyObject *resultobj = 0; | |
3293 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3294 | bool arg2 ; | |
3295 | void *argp1 = 0 ; | |
3296 | int res1 = 0 ; | |
3297 | bool val2 ; | |
3298 | int ecode2 = 0 ; | |
3299 | PyObject * obj0 = 0 ; | |
3300 | PyObject * obj1 = 0 ; | |
3301 | char * kwnames[] = { | |
3302 | (char *) "self",(char *) "visible", NULL | |
3303 | }; | |
3304 | ||
3305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
3306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3307 | if (!SWIG_IsOK(res1)) { | |
3308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_SetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3309 | } | |
3310 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3311 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
3312 | if (!SWIG_IsOK(ecode2)) { | |
3313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDIObject_SetVisible" "', expected argument " "2"" of type '" "bool""'"); | |
3314 | } | |
3315 | arg2 = static_cast< bool >(val2); | |
3316 | { | |
3317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3318 | (arg1)->SetVisible(arg2); | |
3319 | wxPyEndAllowThreads(__tstate); | |
3320 | if (PyErr_Occurred()) SWIG_fail; | |
3321 | } | |
3322 | resultobj = SWIG_Py_Void(); | |
3323 | return resultobj; | |
3324 | fail: | |
3325 | return NULL; | |
d55e5bfc RD |
3326 | } |
3327 | ||
3328 | ||
554f62e9 RD |
3329 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3330 | PyObject *resultobj = 0; | |
3331 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3332 | bool result; | |
3333 | void *argp1 = 0 ; | |
3334 | int res1 = 0 ; | |
3335 | PyObject *swig_obj[1] ; | |
3336 | ||
3337 | if (!args) SWIG_fail; | |
3338 | swig_obj[0] = args; | |
3339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3340 | if (!SWIG_IsOK(res1)) { | |
3341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3342 | } | |
3343 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3344 | { | |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3346 | result = (bool)(arg1)->IsNull(); | |
3347 | wxPyEndAllowThreads(__tstate); | |
3348 | if (PyErr_Occurred()) SWIG_fail; | |
3349 | } | |
3350 | { | |
3351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3352 | } | |
3353 | return resultobj; | |
3354 | fail: | |
3355 | return NULL; | |
3356 | } | |
3357 | ||
3358 | ||
3359 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3360 | PyObject *obj; | |
3361 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3362 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3363 | return SWIG_Py_Void(); | |
3364 | } | |
3365 | ||
3366 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3367 | return SWIG_Python_InitShadowInstance(args); | |
3368 | } | |
3369 | ||
3370 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3371 | PyObject *resultobj = 0; | |
3372 | byte arg1 = (byte) 0 ; | |
3373 | byte arg2 = (byte) 0 ; | |
3374 | byte arg3 = (byte) 0 ; | |
3375 | wxColour *result = 0 ; | |
3376 | unsigned char val1 ; | |
3377 | int ecode1 = 0 ; | |
3378 | unsigned char val2 ; | |
3379 | int ecode2 = 0 ; | |
3380 | unsigned char val3 ; | |
3381 | int ecode3 = 0 ; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | PyObject * obj1 = 0 ; | |
3384 | PyObject * obj2 = 0 ; | |
3385 | char * kwnames[] = { | |
3386 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
3387 | }; | |
3388 | ||
3389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3390 | if (obj0) { | |
3391 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
3392 | if (!SWIG_IsOK(ecode1)) { | |
3393 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
3394 | } | |
3395 | arg1 = static_cast< byte >(val1); | |
3396 | } | |
3397 | if (obj1) { | |
3398 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3399 | if (!SWIG_IsOK(ecode2)) { | |
3400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
3401 | } | |
3402 | arg2 = static_cast< byte >(val2); | |
3403 | } | |
3404 | if (obj2) { | |
3405 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3406 | if (!SWIG_IsOK(ecode3)) { | |
3407 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
3408 | } | |
3409 | arg3 = static_cast< byte >(val3); | |
3410 | } | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | return NULL; | |
d55e5bfc RD |
3421 | } |
3422 | ||
3423 | ||
554f62e9 RD |
3424 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3425 | PyObject *resultobj = 0; | |
3426 | wxString *arg1 = 0 ; | |
3427 | wxColour *result = 0 ; | |
3428 | bool temp1 = false ; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | char * kwnames[] = { | |
3431 | (char *) "colorName", NULL | |
3432 | }; | |
3433 | ||
3434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
3435 | { | |
3436 | arg1 = wxString_in_helper(obj0); | |
3437 | if (arg1 == NULL) SWIG_fail; | |
3438 | temp1 = true; | |
3439 | } | |
3440 | { | |
3441 | if (!wxPyCheckForApp()) SWIG_fail; | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
3444 | wxPyEndAllowThreads(__tstate); | |
3445 | if (PyErr_Occurred()) SWIG_fail; | |
3446 | } | |
3447 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3448 | { | |
3449 | if (temp1) | |
3450 | delete arg1; | |
3451 | } | |
3452 | return resultobj; | |
3453 | fail: | |
3454 | { | |
3455 | if (temp1) | |
3456 | delete arg1; | |
3457 | } | |
3458 | return NULL; | |
b519803b RD |
3459 | } |
3460 | ||
3461 | ||
554f62e9 RD |
3462 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3463 | PyObject *resultobj = 0; | |
3464 | unsigned long arg1 ; | |
3465 | wxColour *result = 0 ; | |
3466 | unsigned long val1 ; | |
3467 | int ecode1 = 0 ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char * kwnames[] = { | |
3470 | (char *) "colRGB", NULL | |
3471 | }; | |
3472 | ||
3473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
3474 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
3475 | if (!SWIG_IsOK(ecode1)) { | |
3476 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
3477 | } | |
3478 | arg1 = static_cast< unsigned long >(val1); | |
3479 | { | |
3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3481 | result = (wxColour *)new wxColour(arg1); | |
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
d55e5bfc RD |
3489 | } |
3490 | ||
3491 | ||
554f62e9 RD |
3492 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3493 | PyObject *resultobj = 0; | |
3494 | wxColour *arg1 = (wxColour *) 0 ; | |
3495 | void *argp1 = 0 ; | |
3496 | int res1 = 0 ; | |
3497 | PyObject *swig_obj[1] ; | |
3498 | ||
3499 | if (!args) SWIG_fail; | |
3500 | swig_obj[0] = args; | |
3501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
3502 | if (!SWIG_IsOK(res1)) { | |
3503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3504 | } | |
3505 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | delete arg1; | |
d55e5bfc | 3509 | |
554f62e9 RD |
3510 | wxPyEndAllowThreads(__tstate); |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | resultobj = SWIG_Py_Void(); | |
3514 | return resultobj; | |
3515 | fail: | |
3516 | return NULL; | |
d55e5bfc RD |
3517 | } |
3518 | ||
3519 | ||
554f62e9 RD |
3520 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3521 | PyObject *resultobj = 0; | |
3522 | wxColour *arg1 = (wxColour *) 0 ; | |
3523 | byte result; | |
3524 | void *argp1 = 0 ; | |
3525 | int res1 = 0 ; | |
3526 | PyObject *swig_obj[1] ; | |
3527 | ||
3528 | if (!args) SWIG_fail; | |
3529 | swig_obj[0] = args; | |
3530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3531 | if (!SWIG_IsOK(res1)) { | |
3532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3533 | } | |
3534 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3535 | { | |
3536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3537 | result = (byte)(arg1)->Red(); | |
3538 | wxPyEndAllowThreads(__tstate); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | } | |
3541 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3542 | return resultobj; | |
3543 | fail: | |
3544 | return NULL; | |
d55e5bfc RD |
3545 | } |
3546 | ||
3547 | ||
554f62e9 RD |
3548 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3549 | PyObject *resultobj = 0; | |
3550 | wxColour *arg1 = (wxColour *) 0 ; | |
3551 | byte result; | |
3552 | void *argp1 = 0 ; | |
3553 | int res1 = 0 ; | |
3554 | PyObject *swig_obj[1] ; | |
3555 | ||
3556 | if (!args) SWIG_fail; | |
3557 | swig_obj[0] = args; | |
3558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3559 | if (!SWIG_IsOK(res1)) { | |
3560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3561 | } | |
3562 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3563 | { | |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3565 | result = (byte)(arg1)->Green(); | |
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
3569 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3570 | return resultobj; | |
3571 | fail: | |
3572 | return NULL; | |
d55e5bfc RD |
3573 | } |
3574 | ||
3575 | ||
554f62e9 RD |
3576 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3577 | PyObject *resultobj = 0; | |
3578 | wxColour *arg1 = (wxColour *) 0 ; | |
3579 | byte result; | |
3580 | void *argp1 = 0 ; | |
3581 | int res1 = 0 ; | |
3582 | PyObject *swig_obj[1] ; | |
3583 | ||
3584 | if (!args) SWIG_fail; | |
3585 | swig_obj[0] = args; | |
3586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3587 | if (!SWIG_IsOK(res1)) { | |
3588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3589 | } | |
3590 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | result = (byte)(arg1)->Blue(); | |
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
3597 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3598 | return resultobj; | |
3599 | fail: | |
3600 | return NULL; | |
d55e5bfc RD |
3601 | } |
3602 | ||
3603 | ||
554f62e9 RD |
3604 | SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3605 | PyObject *resultobj = 0; | |
3606 | wxColour *arg1 = (wxColour *) 0 ; | |
3607 | bool result; | |
3608 | void *argp1 = 0 ; | |
3609 | int res1 = 0 ; | |
3610 | PyObject *swig_obj[1] ; | |
3611 | ||
3612 | if (!args) SWIG_fail; | |
3613 | swig_obj[0] = args; | |
3614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3615 | if (!SWIG_IsOK(res1)) { | |
3616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3617 | } | |
3618 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3619 | { | |
3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3621 | result = (bool)(arg1)->Ok(); | |
3622 | wxPyEndAllowThreads(__tstate); | |
3623 | if (PyErr_Occurred()) SWIG_fail; | |
3624 | } | |
3625 | { | |
3626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3627 | } | |
3628 | return resultobj; | |
3629 | fail: | |
3630 | return NULL; | |
3631 | } | |
3632 | ||
3633 | ||
3634 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3635 | PyObject *resultobj = 0; | |
3636 | wxColour *arg1 = (wxColour *) 0 ; | |
3637 | byte arg2 ; | |
3638 | byte arg3 ; | |
3639 | byte arg4 ; | |
3640 | void *argp1 = 0 ; | |
3641 | int res1 = 0 ; | |
3642 | unsigned char val2 ; | |
3643 | int ecode2 = 0 ; | |
3644 | unsigned char val3 ; | |
3645 | int ecode3 = 0 ; | |
3646 | unsigned char val4 ; | |
3647 | int ecode4 = 0 ; | |
3648 | PyObject * obj0 = 0 ; | |
3649 | PyObject * obj1 = 0 ; | |
3650 | PyObject * obj2 = 0 ; | |
3651 | PyObject * obj3 = 0 ; | |
3652 | char * kwnames[] = { | |
3653 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3654 | }; | |
3655 | ||
3656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3658 | if (!SWIG_IsOK(res1)) { | |
3659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3660 | } | |
3661 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3662 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3663 | if (!SWIG_IsOK(ecode2)) { | |
3664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
3665 | } | |
3666 | arg2 = static_cast< byte >(val2); | |
3667 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3668 | if (!SWIG_IsOK(ecode3)) { | |
3669 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
3670 | } | |
3671 | arg3 = static_cast< byte >(val3); | |
3672 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
3673 | if (!SWIG_IsOK(ecode4)) { | |
3674 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
3675 | } | |
3676 | arg4 = static_cast< byte >(val4); | |
3677 | { | |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3679 | (arg1)->Set(arg2,arg3,arg4); | |
3680 | wxPyEndAllowThreads(__tstate); | |
3681 | if (PyErr_Occurred()) SWIG_fail; | |
3682 | } | |
3683 | resultobj = SWIG_Py_Void(); | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3691 | PyObject *resultobj = 0; | |
3692 | wxColour *arg1 = (wxColour *) 0 ; | |
3693 | unsigned long arg2 ; | |
3694 | void *argp1 = 0 ; | |
3695 | int res1 = 0 ; | |
3696 | unsigned long val2 ; | |
3697 | int ecode2 = 0 ; | |
3698 | PyObject * obj0 = 0 ; | |
3699 | PyObject * obj1 = 0 ; | |
3700 | char * kwnames[] = { | |
3701 | (char *) "self",(char *) "colRGB", NULL | |
3702 | }; | |
3703 | ||
3704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
3705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3706 | if (!SWIG_IsOK(res1)) { | |
3707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3708 | } | |
3709 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3710 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
3711 | if (!SWIG_IsOK(ecode2)) { | |
3712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
3713 | } | |
3714 | arg2 = static_cast< unsigned long >(val2); | |
3715 | { | |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | (arg1)->Set(arg2); | |
3718 | wxPyEndAllowThreads(__tstate); | |
3719 | if (PyErr_Occurred()) SWIG_fail; | |
3720 | } | |
3721 | resultobj = SWIG_Py_Void(); | |
3722 | return resultobj; | |
3723 | fail: | |
3724 | return NULL; | |
3725 | } | |
3726 | ||
3727 | ||
3728 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3729 | PyObject *resultobj = 0; | |
3730 | wxColour *arg1 = (wxColour *) 0 ; | |
3731 | wxString *arg2 = 0 ; | |
3732 | void *argp1 = 0 ; | |
3733 | int res1 = 0 ; | |
3734 | bool temp2 = false ; | |
3735 | PyObject * obj0 = 0 ; | |
3736 | PyObject * obj1 = 0 ; | |
3737 | char * kwnames[] = { | |
3738 | (char *) "self",(char *) "colourName", NULL | |
3739 | }; | |
3740 | ||
3741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
3742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3743 | if (!SWIG_IsOK(res1)) { | |
3744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3745 | } | |
3746 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3747 | { | |
3748 | arg2 = wxString_in_helper(obj1); | |
3749 | if (arg2 == NULL) SWIG_fail; | |
3750 | temp2 = true; | |
3751 | } | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | (arg1)->InitFromName((wxString const &)*arg2); | |
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | resultobj = SWIG_Py_Void(); | |
3759 | { | |
3760 | if (temp2) | |
3761 | delete arg2; | |
3762 | } | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | { | |
3766 | if (temp2) | |
3767 | delete arg2; | |
3768 | } | |
3769 | return NULL; | |
d55e5bfc RD |
3770 | } |
3771 | ||
3772 | ||
554f62e9 RD |
3773 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3774 | PyObject *resultobj = 0; | |
3775 | wxColour *arg1 = (wxColour *) 0 ; | |
3776 | long result; | |
3777 | void *argp1 = 0 ; | |
3778 | int res1 = 0 ; | |
3779 | PyObject *swig_obj[1] ; | |
3780 | ||
3781 | if (!args) SWIG_fail; | |
3782 | swig_obj[0] = args; | |
3783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3784 | if (!SWIG_IsOK(res1)) { | |
3785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3786 | } | |
3787 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3795 | return resultobj; | |
3796 | fail: | |
3797 | return NULL; | |
3798 | } | |
3799 | ||
3800 | ||
3801 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3802 | PyObject *resultobj = 0; | |
3803 | wxColour *arg1 = (wxColour *) 0 ; | |
3804 | wxColour *arg2 = 0 ; | |
3805 | bool result; | |
3806 | void *argp1 = 0 ; | |
3807 | int res1 = 0 ; | |
3808 | wxColour temp2 ; | |
3809 | PyObject * obj0 = 0 ; | |
3810 | PyObject * obj1 = 0 ; | |
3811 | char * kwnames[] = { | |
3812 | (char *) "self",(char *) "colour", NULL | |
3813 | }; | |
3814 | ||
3815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3817 | if (!SWIG_IsOK(res1)) { | |
3818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3819 | } | |
3820 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3821 | { | |
3822 | arg2 = &temp2; | |
3823 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3824 | } | |
3825 | { | |
3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3827 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
3828 | wxPyEndAllowThreads(__tstate); | |
3829 | if (PyErr_Occurred()) SWIG_fail; | |
3830 | } | |
3831 | { | |
3832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3833 | } | |
3834 | return resultobj; | |
3835 | fail: | |
3836 | return NULL; | |
3837 | } | |
3838 | ||
3839 | ||
3840 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3841 | PyObject *resultobj = 0; | |
3842 | wxColour *arg1 = (wxColour *) 0 ; | |
3843 | wxColour *arg2 = 0 ; | |
3844 | bool result; | |
3845 | void *argp1 = 0 ; | |
3846 | int res1 = 0 ; | |
3847 | wxColour temp2 ; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | PyObject * obj1 = 0 ; | |
3850 | char * kwnames[] = { | |
3851 | (char *) "self",(char *) "colour", NULL | |
3852 | }; | |
3853 | ||
3854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3856 | if (!SWIG_IsOK(res1)) { | |
3857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3858 | } | |
3859 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3860 | { | |
3861 | arg2 = &temp2; | |
3862 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3863 | } | |
3864 | { | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
3867 | wxPyEndAllowThreads(__tstate); | |
3868 | if (PyErr_Occurred()) SWIG_fail; | |
3869 | } | |
3870 | { | |
3871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3872 | } | |
3873 | return resultobj; | |
3874 | fail: | |
3875 | return NULL; | |
d55e5bfc RD |
3876 | } |
3877 | ||
3878 | ||
554f62e9 RD |
3879 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3880 | PyObject *resultobj = 0; | |
3881 | wxColour *arg1 = (wxColour *) 0 ; | |
3882 | PyObject *result = 0 ; | |
3883 | void *argp1 = 0 ; | |
3884 | int res1 = 0 ; | |
3885 | PyObject *swig_obj[1] ; | |
3886 | ||
3887 | if (!args) SWIG_fail; | |
3888 | swig_obj[0] = args; | |
3889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3890 | if (!SWIG_IsOK(res1)) { | |
3891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3892 | } | |
3893 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3894 | { | |
3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3896 | result = (PyObject *)wxColour_Get(arg1); | |
3897 | wxPyEndAllowThreads(__tstate); | |
3898 | if (PyErr_Occurred()) SWIG_fail; | |
3899 | } | |
3900 | resultobj = result; | |
3901 | return resultobj; | |
3902 | fail: | |
3903 | return NULL; | |
d55e5bfc RD |
3904 | } |
3905 | ||
3906 | ||
554f62e9 RD |
3907 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3908 | PyObject *resultobj = 0; | |
3909 | wxColour *arg1 = (wxColour *) 0 ; | |
3910 | unsigned long result; | |
3911 | void *argp1 = 0 ; | |
3912 | int res1 = 0 ; | |
3913 | PyObject *swig_obj[1] ; | |
3914 | ||
3915 | if (!args) SWIG_fail; | |
3916 | swig_obj[0] = args; | |
3917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3918 | if (!SWIG_IsOK(res1)) { | |
3919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3920 | } | |
3921 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3922 | { | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | result = (unsigned long)wxColour_GetRGB(arg1); | |
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) SWIG_fail; | |
3927 | } | |
3928 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | return NULL; | |
3932 | } | |
3933 | ||
3934 | ||
3935 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3936 | PyObject *obj; | |
3937 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3938 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
3939 | return SWIG_Py_Void(); | |
3940 | } | |
3941 | ||
3942 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3943 | return SWIG_Python_InitShadowInstance(args); | |
3944 | } | |
3945 | ||
3946 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj = 0; | |
3948 | int arg1 ; | |
3949 | unsigned char *arg2 = (unsigned char *) 0 ; | |
3950 | unsigned char *arg3 = (unsigned char *) 0 ; | |
3951 | unsigned char *arg4 = (unsigned char *) 0 ; | |
3952 | wxPalette *result = 0 ; | |
3953 | int val1 ; | |
3954 | int ecode1 = 0 ; | |
3955 | void *argp2 = 0 ; | |
3956 | int res2 = 0 ; | |
3957 | void *argp3 = 0 ; | |
3958 | int res3 = 0 ; | |
3959 | void *argp4 = 0 ; | |
3960 | int res4 = 0 ; | |
3961 | PyObject * obj0 = 0 ; | |
3962 | PyObject * obj1 = 0 ; | |
3963 | PyObject * obj2 = 0 ; | |
3964 | PyObject * obj3 = 0 ; | |
3965 | char * kwnames[] = { | |
3966 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3967 | }; | |
3968 | ||
3969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3970 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3971 | if (!SWIG_IsOK(ecode1)) { | |
3972 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
3973 | } | |
3974 | arg1 = static_cast< int >(val1); | |
3975 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3976 | if (!SWIG_IsOK(res2)) { | |
3977 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
3978 | } | |
3979 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
3980 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3981 | if (!SWIG_IsOK(res3)) { | |
3982 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
3983 | } | |
3984 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
3985 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3986 | if (!SWIG_IsOK(res4)) { | |
3987 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
3988 | } | |
3989 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
3990 | { | |
3991 | if (!wxPyCheckForApp()) SWIG_fail; | |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
3998 | return resultobj; | |
3999 | fail: | |
4000 | return NULL; | |
093d3ff1 RD |
4001 | } |
4002 | ||
4003 | ||
554f62e9 RD |
4004 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4005 | PyObject *resultobj = 0; | |
4006 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4007 | void *argp1 = 0 ; | |
4008 | int res1 = 0 ; | |
4009 | PyObject *swig_obj[1] ; | |
4010 | ||
4011 | if (!args) SWIG_fail; | |
4012 | swig_obj[0] = args; | |
4013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4014 | if (!SWIG_IsOK(res1)) { | |
4015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4016 | } | |
4017 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | delete arg1; | |
093d3ff1 | 4021 | |
554f62e9 RD |
4022 | wxPyEndAllowThreads(__tstate); |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | resultobj = SWIG_Py_Void(); | |
4026 | return resultobj; | |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
4032 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4033 | PyObject *resultobj = 0; | |
4034 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4035 | byte arg2 ; | |
4036 | byte arg3 ; | |
4037 | byte arg4 ; | |
4038 | int result; | |
4039 | void *argp1 = 0 ; | |
4040 | int res1 = 0 ; | |
4041 | unsigned char val2 ; | |
4042 | int ecode2 = 0 ; | |
4043 | unsigned char val3 ; | |
4044 | int ecode3 = 0 ; | |
4045 | unsigned char val4 ; | |
4046 | int ecode4 = 0 ; | |
4047 | PyObject * obj0 = 0 ; | |
4048 | PyObject * obj1 = 0 ; | |
4049 | PyObject * obj2 = 0 ; | |
4050 | PyObject * obj3 = 0 ; | |
4051 | char * kwnames[] = { | |
4052 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4053 | }; | |
4054 | ||
4055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4057 | if (!SWIG_IsOK(res1)) { | |
4058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4059 | } | |
4060 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4061 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4062 | if (!SWIG_IsOK(ecode2)) { | |
4063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4064 | } | |
4065 | arg2 = static_cast< byte >(val2); | |
4066 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4067 | if (!SWIG_IsOK(ecode3)) { | |
4068 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4069 | } | |
4070 | arg3 = static_cast< byte >(val3); | |
4071 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4072 | if (!SWIG_IsOK(ecode4)) { | |
4073 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4074 | } | |
4075 | arg4 = static_cast< byte >(val4); | |
4076 | { | |
4077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4078 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4079 | wxPyEndAllowThreads(__tstate); | |
4080 | if (PyErr_Occurred()) SWIG_fail; | |
4081 | } | |
4082 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4083 | return resultobj; | |
4084 | fail: | |
4085 | return NULL; | |
4086 | } | |
4087 | ||
4088 | ||
4089 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4090 | PyObject *resultobj = 0; | |
4091 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4092 | int arg2 ; | |
4093 | byte *arg3 = (byte *) 0 ; | |
4094 | byte *arg4 = (byte *) 0 ; | |
4095 | byte *arg5 = (byte *) 0 ; | |
4096 | bool result; | |
4097 | void *argp1 = 0 ; | |
4098 | int res1 = 0 ; | |
4099 | int val2 ; | |
4100 | int ecode2 = 0 ; | |
4101 | byte temp3 ; | |
4102 | int res3 = SWIG_TMPOBJ ; | |
4103 | byte temp4 ; | |
4104 | int res4 = SWIG_TMPOBJ ; | |
4105 | byte temp5 ; | |
4106 | int res5 = SWIG_TMPOBJ ; | |
4107 | PyObject * obj0 = 0 ; | |
4108 | PyObject * obj1 = 0 ; | |
4109 | char * kwnames[] = { | |
4110 | (char *) "self",(char *) "pixel", NULL | |
4111 | }; | |
4112 | ||
4113 | arg3 = &temp3; | |
4114 | arg4 = &temp4; | |
4115 | arg5 = &temp5; | |
4116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4118 | if (!SWIG_IsOK(res1)) { | |
4119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4120 | } | |
4121 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4122 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4123 | if (!SWIG_IsOK(ecode2)) { | |
4124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4125 | } | |
4126 | arg2 = static_cast< int >(val2); | |
4127 | { | |
4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4129 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4130 | wxPyEndAllowThreads(__tstate); | |
4131 | if (PyErr_Occurred()) SWIG_fail; | |
4132 | } | |
4133 | { | |
4134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4135 | } | |
4136 | if (SWIG_IsTmpObj(res3)) { | |
4137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4138 | } else { | |
4139 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4141 | } | |
4142 | if (SWIG_IsTmpObj(res4)) { | |
4143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4144 | } else { | |
4145 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4146 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4147 | } | |
4148 | if (SWIG_IsTmpObj(res5)) { | |
4149 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4150 | } else { | |
4151 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4152 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4153 | } | |
4154 | return resultobj; | |
4155 | fail: | |
4156 | return NULL; | |
d55e5bfc RD |
4157 | } |
4158 | ||
4159 | ||
554f62e9 RD |
4160 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4161 | PyObject *resultobj = 0; | |
4162 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4163 | int result; | |
4164 | void *argp1 = 0 ; | |
4165 | int res1 = 0 ; | |
4166 | PyObject *swig_obj[1] ; | |
4167 | ||
4168 | if (!args) SWIG_fail; | |
4169 | swig_obj[0] = args; | |
4170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4171 | if (!SWIG_IsOK(res1)) { | |
4172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4173 | } | |
4174 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4175 | { | |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4182 | return resultobj; | |
4183 | fail: | |
4184 | return NULL; | |
d55e5bfc RD |
4185 | } |
4186 | ||
4187 | ||
554f62e9 RD |
4188 | SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4189 | PyObject *resultobj = 0; | |
4190 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4191 | bool result; | |
4192 | void *argp1 = 0 ; | |
4193 | int res1 = 0 ; | |
4194 | PyObject *swig_obj[1] ; | |
4195 | ||
4196 | if (!args) SWIG_fail; | |
4197 | swig_obj[0] = args; | |
4198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4199 | if (!SWIG_IsOK(res1)) { | |
4200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4201 | } | |
4202 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4203 | { | |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | result = (bool)(arg1)->Ok(); | |
4206 | wxPyEndAllowThreads(__tstate); | |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
4209 | { | |
4210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4211 | } | |
4212 | return resultobj; | |
4213 | fail: | |
4214 | return NULL; | |
4215 | } | |
4216 | ||
4217 | ||
4218 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4219 | PyObject *obj; | |
4220 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4221 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4222 | return SWIG_Py_Void(); | |
4223 | } | |
4224 | ||
4225 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4226 | return SWIG_Python_InitShadowInstance(args); | |
4227 | } | |
4228 | ||
4229 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4230 | PyObject *resultobj = 0; | |
4231 | wxColour *arg1 = 0 ; | |
4232 | int arg2 = (int) 1 ; | |
4233 | int arg3 = (int) wxSOLID ; | |
4234 | wxPen *result = 0 ; | |
4235 | wxColour temp1 ; | |
4236 | int val2 ; | |
4237 | int ecode2 = 0 ; | |
4238 | int val3 ; | |
4239 | int ecode3 = 0 ; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | PyObject * obj1 = 0 ; | |
4242 | PyObject * obj2 = 0 ; | |
4243 | char * kwnames[] = { | |
4244 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4245 | }; | |
4246 | ||
4247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4248 | { | |
4249 | arg1 = &temp1; | |
4250 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4251 | } | |
4252 | if (obj1) { | |
4253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4254 | if (!SWIG_IsOK(ecode2)) { | |
4255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4256 | } | |
4257 | arg2 = static_cast< int >(val2); | |
4258 | } | |
4259 | if (obj2) { | |
4260 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4261 | if (!SWIG_IsOK(ecode3)) { | |
4262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4263 | } | |
4264 | arg3 = static_cast< int >(val3); | |
4265 | } | |
4266 | { | |
4267 | if (!wxPyCheckForApp()) SWIG_fail; | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4270 | wxPyEndAllowThreads(__tstate); | |
4271 | if (PyErr_Occurred()) SWIG_fail; | |
4272 | } | |
4273 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
4274 | return resultobj; | |
4275 | fail: | |
4276 | return NULL; | |
d55e5bfc RD |
4277 | } |
4278 | ||
4279 | ||
554f62e9 RD |
4280 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4281 | PyObject *resultobj = 0; | |
4282 | wxPen *arg1 = (wxPen *) 0 ; | |
4283 | void *argp1 = 0 ; | |
4284 | int res1 = 0 ; | |
4285 | PyObject *swig_obj[1] ; | |
4286 | ||
4287 | if (!args) SWIG_fail; | |
4288 | swig_obj[0] = args; | |
4289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
4290 | if (!SWIG_IsOK(res1)) { | |
4291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4292 | } | |
4293 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | delete arg1; | |
d55e5bfc | 4297 | |
554f62e9 RD |
4298 | wxPyEndAllowThreads(__tstate); |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4301 | resultobj = SWIG_Py_Void(); | |
4302 | return resultobj; | |
4303 | fail: | |
4304 | return NULL; | |
d55e5bfc RD |
4305 | } |
4306 | ||
4307 | ||
554f62e9 RD |
4308 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4309 | PyObject *resultobj = 0; | |
4310 | wxPen *arg1 = (wxPen *) 0 ; | |
4311 | int result; | |
4312 | void *argp1 = 0 ; | |
4313 | int res1 = 0 ; | |
4314 | PyObject *swig_obj[1] ; | |
4315 | ||
4316 | if (!args) SWIG_fail; | |
4317 | swig_obj[0] = args; | |
4318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4319 | if (!SWIG_IsOK(res1)) { | |
4320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4321 | } | |
4322 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | result = (int)(arg1)->GetCap(); | |
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | return NULL; | |
d55e5bfc RD |
4333 | } |
4334 | ||
4335 | ||
554f62e9 RD |
4336 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4337 | PyObject *resultobj = 0; | |
4338 | wxPen *arg1 = (wxPen *) 0 ; | |
4339 | wxColour result; | |
4340 | void *argp1 = 0 ; | |
4341 | int res1 = 0 ; | |
4342 | PyObject *swig_obj[1] ; | |
4343 | ||
4344 | if (!args) SWIG_fail; | |
4345 | swig_obj[0] = args; | |
4346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4347 | if (!SWIG_IsOK(res1)) { | |
4348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4349 | } | |
4350 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4351 | { | |
4352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4353 | result = (arg1)->GetColour(); | |
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) SWIG_fail; | |
4356 | } | |
4357 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | return NULL; | |
d55e5bfc RD |
4361 | } |
4362 | ||
4363 | ||
554f62e9 RD |
4364 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4365 | PyObject *resultobj = 0; | |
4366 | wxPen *arg1 = (wxPen *) 0 ; | |
4367 | int result; | |
4368 | void *argp1 = 0 ; | |
4369 | int res1 = 0 ; | |
4370 | PyObject *swig_obj[1] ; | |
4371 | ||
4372 | if (!args) SWIG_fail; | |
4373 | swig_obj[0] = args; | |
4374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4375 | if (!SWIG_IsOK(res1)) { | |
4376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4377 | } | |
4378 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | result = (int)(arg1)->GetJoin(); | |
4382 | wxPyEndAllowThreads(__tstate); | |
4383 | if (PyErr_Occurred()) SWIG_fail; | |
4384 | } | |
4385 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4386 | return resultobj; | |
4387 | fail: | |
4388 | return NULL; | |
d55e5bfc RD |
4389 | } |
4390 | ||
4391 | ||
554f62e9 RD |
4392 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4393 | PyObject *resultobj = 0; | |
4394 | wxPen *arg1 = (wxPen *) 0 ; | |
4395 | int result; | |
4396 | void *argp1 = 0 ; | |
4397 | int res1 = 0 ; | |
4398 | PyObject *swig_obj[1] ; | |
4399 | ||
4400 | if (!args) SWIG_fail; | |
4401 | swig_obj[0] = args; | |
4402 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4403 | if (!SWIG_IsOK(res1)) { | |
4404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4405 | } | |
4406 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4407 | { | |
4408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4409 | result = (int)(arg1)->GetStyle(); | |
4410 | wxPyEndAllowThreads(__tstate); | |
4411 | if (PyErr_Occurred()) SWIG_fail; | |
4412 | } | |
4413 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4414 | return resultobj; | |
4415 | fail: | |
4416 | return NULL; | |
d55e5bfc RD |
4417 | } |
4418 | ||
4419 | ||
554f62e9 RD |
4420 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4421 | PyObject *resultobj = 0; | |
4422 | wxPen *arg1 = (wxPen *) 0 ; | |
4423 | int result; | |
4424 | void *argp1 = 0 ; | |
4425 | int res1 = 0 ; | |
4426 | PyObject *swig_obj[1] ; | |
4427 | ||
4428 | if (!args) SWIG_fail; | |
4429 | swig_obj[0] = args; | |
4430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4431 | if (!SWIG_IsOK(res1)) { | |
4432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4433 | } | |
4434 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4437 | result = (int)(arg1)->GetWidth(); | |
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4442 | return resultobj; | |
4443 | fail: | |
4444 | return NULL; | |
d55e5bfc RD |
4445 | } |
4446 | ||
4447 | ||
554f62e9 RD |
4448 | SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4449 | PyObject *resultobj = 0; | |
4450 | wxPen *arg1 = (wxPen *) 0 ; | |
4451 | bool result; | |
4452 | void *argp1 = 0 ; | |
4453 | int res1 = 0 ; | |
4454 | PyObject *swig_obj[1] ; | |
4455 | ||
4456 | if (!args) SWIG_fail; | |
4457 | swig_obj[0] = args; | |
4458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4459 | if (!SWIG_IsOK(res1)) { | |
4460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4461 | } | |
4462 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4463 | { | |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | result = (bool)(arg1)->Ok(); | |
4466 | wxPyEndAllowThreads(__tstate); | |
4467 | if (PyErr_Occurred()) SWIG_fail; | |
4468 | } | |
4469 | { | |
4470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4471 | } | |
4472 | return resultobj; | |
4473 | fail: | |
4474 | return NULL; | |
4475 | } | |
4476 | ||
4477 | ||
4478 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4479 | PyObject *resultobj = 0; | |
4480 | wxPen *arg1 = (wxPen *) 0 ; | |
4481 | int arg2 ; | |
4482 | void *argp1 = 0 ; | |
4483 | int res1 = 0 ; | |
4484 | int val2 ; | |
4485 | int ecode2 = 0 ; | |
4486 | PyObject * obj0 = 0 ; | |
4487 | PyObject * obj1 = 0 ; | |
4488 | char * kwnames[] = { | |
4489 | (char *) "self",(char *) "cap_style", NULL | |
4490 | }; | |
4491 | ||
4492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4494 | if (!SWIG_IsOK(res1)) { | |
4495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4496 | } | |
4497 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4498 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4499 | if (!SWIG_IsOK(ecode2)) { | |
4500 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
4501 | } | |
4502 | arg2 = static_cast< int >(val2); | |
4503 | { | |
4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4505 | (arg1)->SetCap(arg2); | |
4506 | wxPyEndAllowThreads(__tstate); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | } | |
4509 | resultobj = SWIG_Py_Void(); | |
4510 | return resultobj; | |
4511 | fail: | |
4512 | return NULL; | |
4513 | } | |
4514 | ||
4515 | ||
4516 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4517 | PyObject *resultobj = 0; | |
4518 | wxPen *arg1 = (wxPen *) 0 ; | |
4519 | wxColour *arg2 = 0 ; | |
4520 | void *argp1 = 0 ; | |
4521 | int res1 = 0 ; | |
4522 | wxColour temp2 ; | |
4523 | PyObject * obj0 = 0 ; | |
4524 | PyObject * obj1 = 0 ; | |
4525 | char * kwnames[] = { | |
4526 | (char *) "self",(char *) "colour", NULL | |
4527 | }; | |
4528 | ||
4529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
4530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4531 | if (!SWIG_IsOK(res1)) { | |
4532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4533 | } | |
4534 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4535 | { | |
4536 | arg2 = &temp2; | |
4537 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4538 | } | |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | (arg1)->SetColour(*arg2); | |
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | resultobj = SWIG_Py_Void(); | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | return NULL; | |
4549 | } | |
4550 | ||
4551 | ||
4552 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4553 | PyObject *resultobj = 0; | |
4554 | wxPen *arg1 = (wxPen *) 0 ; | |
4555 | int arg2 ; | |
4556 | void *argp1 = 0 ; | |
4557 | int res1 = 0 ; | |
4558 | int val2 ; | |
4559 | int ecode2 = 0 ; | |
4560 | PyObject * obj0 = 0 ; | |
4561 | PyObject * obj1 = 0 ; | |
4562 | char * kwnames[] = { | |
4563 | (char *) "self",(char *) "join_style", NULL | |
4564 | }; | |
4565 | ||
4566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
4567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4568 | if (!SWIG_IsOK(res1)) { | |
4569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4570 | } | |
4571 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4572 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4573 | if (!SWIG_IsOK(ecode2)) { | |
4574 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
4575 | } | |
4576 | arg2 = static_cast< int >(val2); | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | (arg1)->SetJoin(arg2); | |
4580 | wxPyEndAllowThreads(__tstate); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4583 | resultobj = SWIG_Py_Void(); | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
4590 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4591 | PyObject *resultobj = 0; | |
4592 | wxPen *arg1 = (wxPen *) 0 ; | |
4593 | int arg2 ; | |
4594 | void *argp1 = 0 ; | |
4595 | int res1 = 0 ; | |
4596 | int val2 ; | |
4597 | int ecode2 = 0 ; | |
4598 | PyObject * obj0 = 0 ; | |
4599 | PyObject * obj1 = 0 ; | |
4600 | char * kwnames[] = { | |
4601 | (char *) "self",(char *) "style", NULL | |
4602 | }; | |
4603 | ||
4604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4606 | if (!SWIG_IsOK(res1)) { | |
4607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4608 | } | |
4609 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4610 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4611 | if (!SWIG_IsOK(ecode2)) { | |
4612 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
4613 | } | |
4614 | arg2 = static_cast< int >(val2); | |
4615 | { | |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4617 | (arg1)->SetStyle(arg2); | |
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | resultobj = SWIG_Py_Void(); | |
4622 | return resultobj; | |
4623 | fail: | |
4624 | return NULL; | |
4625 | } | |
4626 | ||
4627 | ||
4628 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4629 | PyObject *resultobj = 0; | |
4630 | wxPen *arg1 = (wxPen *) 0 ; | |
4631 | int arg2 ; | |
4632 | void *argp1 = 0 ; | |
4633 | int res1 = 0 ; | |
4634 | int val2 ; | |
4635 | int ecode2 = 0 ; | |
4636 | PyObject * obj0 = 0 ; | |
4637 | PyObject * obj1 = 0 ; | |
4638 | char * kwnames[] = { | |
4639 | (char *) "self",(char *) "width", NULL | |
4640 | }; | |
4641 | ||
4642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
4643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4644 | if (!SWIG_IsOK(res1)) { | |
4645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4646 | } | |
4647 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4649 | if (!SWIG_IsOK(ecode2)) { | |
4650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
4651 | } | |
4652 | arg2 = static_cast< int >(val2); | |
4653 | { | |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4655 | (arg1)->SetWidth(arg2); | |
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | resultobj = SWIG_Py_Void(); | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
4663 | } | |
4664 | ||
4665 | ||
4666 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4667 | PyObject *resultobj = 0; | |
4668 | wxPen *arg1 = (wxPen *) 0 ; | |
4669 | int arg2 ; | |
4670 | wxDash *arg3 = (wxDash *) 0 ; | |
4671 | void *argp1 = 0 ; | |
4672 | int res1 = 0 ; | |
4673 | PyObject * obj0 = 0 ; | |
4674 | PyObject * obj1 = 0 ; | |
4675 | char * kwnames[] = { | |
4676 | (char *) "self",(char *) "dashes", NULL | |
4677 | }; | |
4678 | ||
4679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
4680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4681 | if (!SWIG_IsOK(res1)) { | |
4682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4683 | } | |
4684 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4685 | { | |
4686 | arg2 = PyList_Size(obj1); | |
4687 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
4688 | if (arg3 == NULL) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | (arg1)->SetDashes(arg2,arg3); | |
4693 | wxPyEndAllowThreads(__tstate); | |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
4695 | } | |
4696 | resultobj = SWIG_Py_Void(); | |
4697 | { | |
4698 | if (arg3) delete [] arg3; | |
4699 | } | |
4700 | return resultobj; | |
4701 | fail: | |
4702 | { | |
4703 | if (arg3) delete [] arg3; | |
4704 | } | |
4705 | return NULL; | |
d55e5bfc RD |
4706 | } |
4707 | ||
4708 | ||
554f62e9 RD |
4709 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4710 | PyObject *resultobj = 0; | |
4711 | wxPen *arg1 = (wxPen *) 0 ; | |
4712 | PyObject *result = 0 ; | |
4713 | void *argp1 = 0 ; | |
4714 | int res1 = 0 ; | |
4715 | PyObject *swig_obj[1] ; | |
4716 | ||
4717 | if (!args) SWIG_fail; | |
4718 | swig_obj[0] = args; | |
4719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4720 | if (!SWIG_IsOK(res1)) { | |
4721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4722 | } | |
4723 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4724 | { | |
4725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4726 | result = (PyObject *)wxPen_GetDashes(arg1); | |
4727 | wxPyEndAllowThreads(__tstate); | |
4728 | if (PyErr_Occurred()) SWIG_fail; | |
4729 | } | |
4730 | resultobj = result; | |
4731 | return resultobj; | |
4732 | fail: | |
4733 | return NULL; | |
4734 | } | |
4735 | ||
4736 | ||
4737 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4738 | PyObject *resultobj = 0; | |
4739 | wxPen *arg1 = (wxPen *) 0 ; | |
4740 | PyObject *arg2 = (PyObject *) 0 ; | |
4741 | PyObject *arg3 = (PyObject *) 0 ; | |
4742 | void *argp1 = 0 ; | |
4743 | int res1 = 0 ; | |
4744 | PyObject * obj0 = 0 ; | |
4745 | PyObject * obj1 = 0 ; | |
4746 | PyObject * obj2 = 0 ; | |
4747 | char * kwnames[] = { | |
4748 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
4749 | }; | |
4750 | ||
4751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4753 | if (!SWIG_IsOK(res1)) { | |
4754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4755 | } | |
4756 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4757 | arg2 = obj1; | |
4758 | arg3 = obj2; | |
4759 | { | |
4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4761 | wxPen__SetDashes(arg1,arg2,arg3); | |
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | resultobj = SWIG_Py_Void(); | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
d55e5bfc RD |
4769 | } |
4770 | ||
4771 | ||
554f62e9 RD |
4772 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4773 | PyObject *resultobj = 0; | |
4774 | wxPen *arg1 = (wxPen *) 0 ; | |
4775 | int result; | |
4776 | void *argp1 = 0 ; | |
4777 | int res1 = 0 ; | |
4778 | PyObject *swig_obj[1] ; | |
4779 | ||
4780 | if (!args) SWIG_fail; | |
4781 | swig_obj[0] = args; | |
4782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4783 | if (!SWIG_IsOK(res1)) { | |
4784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
4785 | } | |
4786 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4787 | { | |
4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4789 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | return NULL; | |
d55e5bfc RD |
4797 | } |
4798 | ||
4799 | ||
554f62e9 RD |
4800 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4801 | PyObject *resultobj = 0; | |
4802 | wxPen *arg1 = (wxPen *) 0 ; | |
4803 | wxBitmap *result = 0 ; | |
4804 | void *argp1 = 0 ; | |
4805 | int res1 = 0 ; | |
4806 | PyObject *swig_obj[1] ; | |
4807 | ||
4808 | if (!args) SWIG_fail; | |
4809 | swig_obj[0] = args; | |
4810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4811 | if (!SWIG_IsOK(res1)) { | |
4812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4813 | } | |
4814 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4815 | { | |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | result = (wxBitmap *)(arg1)->GetStipple(); | |
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
4828 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4829 | PyObject *resultobj = 0; | |
4830 | wxPen *arg1 = (wxPen *) 0 ; | |
4831 | wxBitmap *arg2 = 0 ; | |
4832 | void *argp1 = 0 ; | |
4833 | int res1 = 0 ; | |
4834 | void *argp2 = 0 ; | |
4835 | int res2 = 0 ; | |
4836 | PyObject * obj0 = 0 ; | |
4837 | PyObject * obj1 = 0 ; | |
4838 | char * kwnames[] = { | |
4839 | (char *) "self",(char *) "stipple", NULL | |
4840 | }; | |
4841 | ||
4842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
4843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4844 | if (!SWIG_IsOK(res1)) { | |
4845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4846 | } | |
4847 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4848 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
4849 | if (!SWIG_IsOK(res2)) { | |
4850 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
4851 | } | |
4852 | if (!argp2) { | |
4853 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
4854 | } | |
4855 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
4856 | { | |
4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4858 | (arg1)->SetStipple(*arg2); | |
4859 | wxPyEndAllowThreads(__tstate); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | } | |
4862 | resultobj = SWIG_Py_Void(); | |
4863 | return resultobj; | |
4864 | fail: | |
4865 | return NULL; | |
4866 | } | |
4867 | ||
4868 | ||
4869 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4870 | PyObject *resultobj = 0; | |
4871 | wxPen *arg1 = (wxPen *) 0 ; | |
4872 | wxPen *arg2 = (wxPen *) 0 ; | |
4873 | bool result; | |
4874 | void *argp1 = 0 ; | |
4875 | int res1 = 0 ; | |
4876 | void *argp2 = 0 ; | |
4877 | int res2 = 0 ; | |
4878 | PyObject * obj0 = 0 ; | |
4879 | PyObject * obj1 = 0 ; | |
4880 | char * kwnames[] = { | |
4881 | (char *) "self",(char *) "other", NULL | |
4882 | }; | |
4883 | ||
4884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4886 | if (!SWIG_IsOK(res1)) { | |
4887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4888 | } | |
4889 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4890 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4891 | if (!SWIG_IsOK(res2)) { | |
4892 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4893 | } | |
4894 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4895 | { | |
4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4897 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | { | |
4902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4903 | } | |
4904 | return resultobj; | |
4905 | fail: | |
4906 | return NULL; | |
4907 | } | |
4908 | ||
4909 | ||
4910 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4911 | PyObject *resultobj = 0; | |
4912 | wxPen *arg1 = (wxPen *) 0 ; | |
4913 | wxPen *arg2 = (wxPen *) 0 ; | |
4914 | bool result; | |
4915 | void *argp1 = 0 ; | |
4916 | int res1 = 0 ; | |
4917 | void *argp2 = 0 ; | |
4918 | int res2 = 0 ; | |
4919 | PyObject * obj0 = 0 ; | |
4920 | PyObject * obj1 = 0 ; | |
4921 | char * kwnames[] = { | |
4922 | (char *) "self",(char *) "other", NULL | |
4923 | }; | |
4924 | ||
4925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4927 | if (!SWIG_IsOK(res1)) { | |
4928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4929 | } | |
4930 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4931 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4932 | if (!SWIG_IsOK(res2)) { | |
4933 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4934 | } | |
4935 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4936 | { | |
4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4938 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
4939 | wxPyEndAllowThreads(__tstate); | |
4940 | if (PyErr_Occurred()) SWIG_fail; | |
4941 | } | |
4942 | { | |
4943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4944 | } | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
d55e5bfc RD |
4948 | } |
4949 | ||
4950 | ||
554f62e9 RD |
4951 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4952 | PyObject *obj; | |
4953 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4954 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
4955 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4956 | } |
4957 | ||
554f62e9 RD |
4958 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4959 | return SWIG_Python_InitShadowInstance(args); | |
4960 | } | |
d55e5bfc | 4961 | |
554f62e9 RD |
4962 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4963 | PyObject *resultobj = 0; | |
4964 | wxColour *arg1 = 0 ; | |
4965 | int arg2 = (int) wxSOLID ; | |
4966 | wxBrush *result = 0 ; | |
4967 | wxColour temp1 ; | |
4968 | int val2 ; | |
4969 | int ecode2 = 0 ; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | PyObject * obj1 = 0 ; | |
4972 | char * kwnames[] = { | |
4973 | (char *) "colour",(char *) "style", NULL | |
4974 | }; | |
4975 | ||
4976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
4977 | { | |
4978 | arg1 = &temp1; | |
4979 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4980 | } | |
4981 | if (obj1) { | |
4982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4983 | if (!SWIG_IsOK(ecode2)) { | |
4984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
4985 | } | |
4986 | arg2 = static_cast< int >(val2); | |
4987 | } | |
4988 | { | |
4989 | if (!wxPyCheckForApp()) SWIG_fail; | |
4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4991 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
4992 | wxPyEndAllowThreads(__tstate); | |
4993 | if (PyErr_Occurred()) SWIG_fail; | |
4994 | } | |
4995 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
4996 | return resultobj; | |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
5002 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5003 | PyObject *resultobj = 0; | |
5004 | wxBitmap *arg1 = 0 ; | |
5005 | wxBrush *result = 0 ; | |
5006 | void *argp1 = 0 ; | |
5007 | int res1 = 0 ; | |
5008 | PyObject * obj0 = 0 ; | |
5009 | char * kwnames[] = { | |
5010 | (char *) "stippleBitmap", NULL | |
5011 | }; | |
5012 | ||
5013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5014 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5015 | if (!SWIG_IsOK(res1)) { | |
5016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5017 | } | |
5018 | if (!argp1) { | |
5019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5020 | } | |
5021 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5022 | { | |
5023 | if (!wxPyCheckForApp()) SWIG_fail; | |
5024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5025 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
d55e5bfc RD |
5033 | } |
5034 | ||
5035 | ||
554f62e9 RD |
5036 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5037 | PyObject *resultobj = 0; | |
5038 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5039 | void *argp1 = 0 ; | |
5040 | int res1 = 0 ; | |
5041 | PyObject *swig_obj[1] ; | |
5042 | ||
5043 | if (!args) SWIG_fail; | |
5044 | swig_obj[0] = args; | |
5045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5046 | if (!SWIG_IsOK(res1)) { | |
5047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5048 | } | |
5049 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5050 | { | |
5051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5052 | delete arg1; | |
d55e5bfc | 5053 | |
554f62e9 RD |
5054 | wxPyEndAllowThreads(__tstate); |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
5057 | resultobj = SWIG_Py_Void(); | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | return NULL; | |
5061 | } | |
5062 | ||
5063 | ||
5064 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5065 | PyObject *resultobj = 0; | |
5066 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5067 | wxColour *arg2 = 0 ; | |
5068 | void *argp1 = 0 ; | |
5069 | int res1 = 0 ; | |
5070 | wxColour temp2 ; | |
5071 | PyObject * obj0 = 0 ; | |
5072 | PyObject * obj1 = 0 ; | |
5073 | char * kwnames[] = { | |
5074 | (char *) "self",(char *) "col", NULL | |
5075 | }; | |
5076 | ||
5077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5079 | if (!SWIG_IsOK(res1)) { | |
5080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5081 | } | |
5082 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5083 | { | |
5084 | arg2 = &temp2; | |
5085 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5086 | } | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->SetColour((wxColour const &)*arg2); | |
5090 | wxPyEndAllowThreads(__tstate); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | resultobj = SWIG_Py_Void(); | |
5094 | return resultobj; | |
5095 | fail: | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
5100 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5101 | PyObject *resultobj = 0; | |
5102 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5103 | int arg2 ; | |
5104 | void *argp1 = 0 ; | |
5105 | int res1 = 0 ; | |
5106 | int val2 ; | |
5107 | int ecode2 = 0 ; | |
5108 | PyObject * obj0 = 0 ; | |
5109 | PyObject * obj1 = 0 ; | |
5110 | char * kwnames[] = { | |
5111 | (char *) "self",(char *) "style", NULL | |
5112 | }; | |
5113 | ||
5114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5116 | if (!SWIG_IsOK(res1)) { | |
5117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5118 | } | |
5119 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5121 | if (!SWIG_IsOK(ecode2)) { | |
5122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5123 | } | |
5124 | arg2 = static_cast< int >(val2); | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | (arg1)->SetStyle(arg2); | |
5128 | wxPyEndAllowThreads(__tstate); | |
5129 | if (PyErr_Occurred()) SWIG_fail; | |
5130 | } | |
5131 | resultobj = SWIG_Py_Void(); | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
5138 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5139 | PyObject *resultobj = 0; | |
5140 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5141 | wxBitmap *arg2 = 0 ; | |
5142 | void *argp1 = 0 ; | |
5143 | int res1 = 0 ; | |
5144 | void *argp2 = 0 ; | |
5145 | int res2 = 0 ; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | char * kwnames[] = { | |
5149 | (char *) "self",(char *) "stipple", NULL | |
5150 | }; | |
5151 | ||
5152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5154 | if (!SWIG_IsOK(res1)) { | |
5155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5156 | } | |
5157 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5158 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5159 | if (!SWIG_IsOK(res2)) { | |
5160 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5161 | } | |
5162 | if (!argp2) { | |
5163 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5164 | } | |
5165 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5169 | wxPyEndAllowThreads(__tstate); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
5172 | resultobj = SWIG_Py_Void(); | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
d55e5bfc RD |
5176 | } |
5177 | ||
5178 | ||
554f62e9 RD |
5179 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5180 | PyObject *resultobj = 0; | |
5181 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5182 | wxColour result; | |
5183 | void *argp1 = 0 ; | |
5184 | int res1 = 0 ; | |
5185 | PyObject *swig_obj[1] ; | |
5186 | ||
5187 | if (!args) SWIG_fail; | |
5188 | swig_obj[0] = args; | |
5189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5190 | if (!SWIG_IsOK(res1)) { | |
5191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5192 | } | |
5193 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = ((wxBrush const *)arg1)->GetColour(); | |
5197 | wxPyEndAllowThreads(__tstate); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
5200 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5201 | return resultobj; | |
5202 | fail: | |
5203 | return NULL; | |
d55e5bfc RD |
5204 | } |
5205 | ||
5206 | ||
554f62e9 RD |
5207 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5208 | PyObject *resultobj = 0; | |
5209 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5210 | int result; | |
5211 | void *argp1 = 0 ; | |
5212 | int res1 = 0 ; | |
5213 | PyObject *swig_obj[1] ; | |
5214 | ||
5215 | if (!args) SWIG_fail; | |
5216 | swig_obj[0] = args; | |
5217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5218 | if (!SWIG_IsOK(res1)) { | |
5219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5220 | } | |
5221 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5225 | wxPyEndAllowThreads(__tstate); | |
5226 | if (PyErr_Occurred()) SWIG_fail; | |
5227 | } | |
5228 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
d55e5bfc RD |
5232 | } |
5233 | ||
5234 | ||
554f62e9 RD |
5235 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5236 | PyObject *resultobj = 0; | |
5237 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5238 | wxBitmap *result = 0 ; | |
5239 | void *argp1 = 0 ; | |
5240 | int res1 = 0 ; | |
5241 | PyObject *swig_obj[1] ; | |
5242 | ||
5243 | if (!args) SWIG_fail; | |
5244 | swig_obj[0] = args; | |
5245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5246 | if (!SWIG_IsOK(res1)) { | |
5247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5248 | } | |
5249 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5250 | { | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5253 | wxPyEndAllowThreads(__tstate); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | } | |
5256 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5257 | return resultobj; | |
5258 | fail: | |
5259 | return NULL; | |
d55e5bfc RD |
5260 | } |
5261 | ||
5262 | ||
554f62e9 RD |
5263 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5264 | PyObject *resultobj = 0; | |
5265 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5266 | bool result; | |
5267 | void *argp1 = 0 ; | |
5268 | int res1 = 0 ; | |
5269 | PyObject *swig_obj[1] ; | |
5270 | ||
5271 | if (!args) SWIG_fail; | |
5272 | swig_obj[0] = args; | |
5273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5274 | if (!SWIG_IsOK(res1)) { | |
5275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5276 | } | |
5277 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5278 | { | |
5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5280 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5286 | } | |
5287 | return resultobj; | |
5288 | fail: | |
5289 | return NULL; | |
f78cc896 RD |
5290 | } |
5291 | ||
5292 | ||
554f62e9 RD |
5293 | SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5294 | PyObject *resultobj = 0; | |
5295 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5296 | bool result; | |
5297 | void *argp1 = 0 ; | |
5298 | int res1 = 0 ; | |
5299 | PyObject *swig_obj[1] ; | |
5300 | ||
5301 | if (!args) SWIG_fail; | |
5302 | swig_obj[0] = args; | |
5303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5304 | if (!SWIG_IsOK(res1)) { | |
5305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5306 | } | |
5307 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | result = (bool)(arg1)->Ok(); | |
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
5314 | { | |
5315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5316 | } | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
d55e5bfc RD |
5320 | } |
5321 | ||
5322 | ||
554f62e9 RD |
5323 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5324 | PyObject *obj; | |
5325 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5326 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5327 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5328 | } |
5329 | ||
554f62e9 RD |
5330 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5331 | return SWIG_Python_InitShadowInstance(args); | |
5332 | } | |
d55e5bfc | 5333 | |
554f62e9 RD |
5334 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5335 | PyObject *resultobj = 0; | |
5336 | wxString *arg1 = 0 ; | |
5337 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5338 | wxBitmap *result = 0 ; | |
5339 | bool temp1 = false ; | |
5340 | int val2 ; | |
5341 | int ecode2 = 0 ; | |
5342 | PyObject * obj0 = 0 ; | |
5343 | PyObject * obj1 = 0 ; | |
5344 | char * kwnames[] = { | |
5345 | (char *) "name",(char *) "type", NULL | |
5346 | }; | |
5347 | ||
5348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5349 | { | |
5350 | arg1 = wxString_in_helper(obj0); | |
5351 | if (arg1 == NULL) SWIG_fail; | |
5352 | temp1 = true; | |
5353 | } | |
5354 | if (obj1) { | |
5355 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5356 | if (!SWIG_IsOK(ecode2)) { | |
5357 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
5358 | } | |
5359 | arg2 = static_cast< wxBitmapType >(val2); | |
5360 | } | |
5361 | { | |
5362 | if (!wxPyCheckForApp()) SWIG_fail; | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
5365 | wxPyEndAllowThreads(__tstate); | |
5366 | if (PyErr_Occurred()) SWIG_fail; | |
5367 | } | |
5368 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
5369 | { | |
5370 | if (temp1) | |
5371 | delete arg1; | |
5372 | } | |
5373 | return resultobj; | |
5374 | fail: | |
5375 | { | |
5376 | if (temp1) | |
5377 | delete arg1; | |
5378 | } | |
5379 | return NULL; | |
d55e5bfc RD |
5380 | } |
5381 | ||
5382 | ||
554f62e9 RD |
5383 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5384 | PyObject *resultobj = 0; | |
5385 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5386 | void *argp1 = 0 ; | |
5387 | int res1 = 0 ; | |
5388 | PyObject *swig_obj[1] ; | |
5389 | ||
5390 | if (!args) SWIG_fail; | |
5391 | swig_obj[0] = args; | |
5392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
5393 | if (!SWIG_IsOK(res1)) { | |
5394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5395 | } | |
5396 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5397 | { | |
5398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5399 | delete arg1; | |
c24da6d6 | 5400 | |
554f62e9 RD |
5401 | wxPyEndAllowThreads(__tstate); |
5402 | if (PyErr_Occurred()) SWIG_fail; | |
5403 | } | |
5404 | resultobj = SWIG_Py_Void(); | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj = 0; | |
5413 | int arg1 ; | |
5414 | int arg2 ; | |
5415 | int arg3 = (int) -1 ; | |
5416 | wxBitmap *result = 0 ; | |
5417 | int val1 ; | |
5418 | int ecode1 = 0 ; | |
5419 | int val2 ; | |
5420 | int ecode2 = 0 ; | |
5421 | int val3 ; | |
5422 | int ecode3 = 0 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | PyObject * obj2 = 0 ; | |
5426 | char * kwnames[] = { | |
5427 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
5428 | }; | |
5429 | ||
5430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5431 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5432 | if (!SWIG_IsOK(ecode1)) { | |
5433 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
5434 | } | |
5435 | arg1 = static_cast< int >(val1); | |
5436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5437 | if (!SWIG_IsOK(ecode2)) { | |
5438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
5439 | } | |
5440 | arg2 = static_cast< int >(val2); | |
5441 | if (obj2) { | |
5442 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5443 | if (!SWIG_IsOK(ecode3)) { | |
5444 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
5445 | } | |
5446 | arg3 = static_cast< int >(val3); | |
5447 | } | |
5448 | { | |
5449 | if (!wxPyCheckForApp()) SWIG_fail; | |
5450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5451 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
5452 | wxPyEndAllowThreads(__tstate); | |
5453 | if (PyErr_Occurred()) SWIG_fail; | |
5454 | } | |
5455 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj = 0; | |
5464 | wxIcon *arg1 = 0 ; | |
5465 | wxBitmap *result = 0 ; | |
5466 | void *argp1 = 0 ; | |
5467 | int res1 = 0 ; | |
5468 | PyObject * obj0 = 0 ; | |
5469 | char * kwnames[] = { | |
5470 | (char *) "icon", NULL | |
5471 | }; | |
5472 | ||
5473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
5474 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
5475 | if (!SWIG_IsOK(res1)) { | |
5476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5477 | } | |
5478 | if (!argp1) { | |
5479 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5480 | } | |
5481 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
5482 | { | |
5483 | if (!wxPyCheckForApp()) SWIG_fail; | |
5484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5485 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | return NULL; | |
5493 | } | |
5494 | ||
5495 | ||
5496 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5497 | PyObject *resultobj = 0; | |
5498 | wxImage *arg1 = 0 ; | |
5499 | int arg2 = (int) -1 ; | |
5500 | wxBitmap *result = 0 ; | |
5501 | void *argp1 = 0 ; | |
5502 | int res1 = 0 ; | |
5503 | int val2 ; | |
5504 | int ecode2 = 0 ; | |
5505 | PyObject * obj0 = 0 ; | |
5506 | PyObject * obj1 = 0 ; | |
5507 | char * kwnames[] = { | |
5508 | (char *) "image",(char *) "depth", NULL | |
5509 | }; | |
5510 | ||
5511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
5512 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
5513 | if (!SWIG_IsOK(res1)) { | |
5514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5515 | } | |
5516 | if (!argp1) { | |
5517 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5518 | } | |
5519 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
5520 | if (obj1) { | |
5521 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5522 | if (!SWIG_IsOK(ecode2)) { | |
5523 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
5524 | } | |
5525 | arg2 = static_cast< int >(val2); | |
5526 | } | |
5527 | { | |
5528 | if (!wxPyCheckForApp()) SWIG_fail; | |
5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5530 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
5531 | wxPyEndAllowThreads(__tstate); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
5534 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5535 | return resultobj; | |
5536 | fail: | |
5537 | return NULL; | |
c24da6d6 RD |
5538 | } |
5539 | ||
5540 | ||
554f62e9 RD |
5541 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5542 | PyObject *resultobj = 0; | |
5543 | PyObject *arg1 = (PyObject *) 0 ; | |
5544 | wxBitmap *result = 0 ; | |
5545 | PyObject * obj0 = 0 ; | |
5546 | char * kwnames[] = { | |
5547 | (char *) "listOfStrings", NULL | |
5548 | }; | |
5549 | ||
5550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
5551 | arg1 = obj0; | |
5552 | { | |
5553 | if (!wxPyCheckForApp()) SWIG_fail; | |
5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5555 | result = (wxBitmap *)new_wxBitmap(arg1); | |
5556 | wxPyEndAllowThreads(__tstate); | |
5557 | if (PyErr_Occurred()) SWIG_fail; | |
5558 | } | |
5559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5560 | return resultobj; | |
5561 | fail: | |
5562 | return NULL; | |
5563 | } | |
5564 | ||
5565 | ||
5566 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5567 | PyObject *resultobj = 0; | |
5568 | PyObject *arg1 = (PyObject *) 0 ; | |
5569 | int arg2 ; | |
5570 | int arg3 ; | |
5571 | int arg4 = (int) 1 ; | |
5572 | wxBitmap *result = 0 ; | |
5573 | int val2 ; | |
5574 | int ecode2 = 0 ; | |
5575 | int val3 ; | |
5576 | int ecode3 = 0 ; | |
5577 | int val4 ; | |
5578 | int ecode4 = 0 ; | |
5579 | PyObject * obj0 = 0 ; | |
5580 | PyObject * obj1 = 0 ; | |
5581 | PyObject * obj2 = 0 ; | |
5582 | PyObject * obj3 = 0 ; | |
5583 | char * kwnames[] = { | |
5584 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
5585 | }; | |
5586 | ||
5587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
5588 | arg1 = obj0; | |
5589 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5590 | if (!SWIG_IsOK(ecode2)) { | |
5591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
5592 | } | |
5593 | arg2 = static_cast< int >(val2); | |
5594 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5595 | if (!SWIG_IsOK(ecode3)) { | |
5596 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
5597 | } | |
5598 | arg3 = static_cast< int >(val3); | |
5599 | if (obj3) { | |
5600 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
5601 | if (!SWIG_IsOK(ecode4)) { | |
5602 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
5603 | } | |
5604 | arg4 = static_cast< int >(val4); | |
5605 | } | |
5606 | { | |
5607 | if (!wxPyCheckForApp()) SWIG_fail; | |
5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5609 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
5610 | wxPyEndAllowThreads(__tstate); | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5614 | return resultobj; | |
5615 | fail: | |
5616 | return NULL; | |
d55e5bfc RD |
5617 | } |
5618 | ||
5619 | ||
554f62e9 RD |
5620 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5621 | PyObject *resultobj = 0; | |
5622 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5623 | long result; | |
5624 | void *argp1 = 0 ; | |
5625 | int res1 = 0 ; | |
5626 | PyObject *swig_obj[1] ; | |
5627 | ||
5628 | if (!args) SWIG_fail; | |
5629 | swig_obj[0] = args; | |
5630 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5631 | if (!SWIG_IsOK(res1)) { | |
5632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5633 | } | |
5634 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | result = (long)(arg1)->GetHandle(); | |
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj = 0; | |
5650 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5651 | long arg2 ; | |
5652 | void *argp1 = 0 ; | |
5653 | int res1 = 0 ; | |
5654 | long val2 ; | |
5655 | int ecode2 = 0 ; | |
5656 | PyObject * obj0 = 0 ; | |
5657 | PyObject * obj1 = 0 ; | |
5658 | char * kwnames[] = { | |
5659 | (char *) "self",(char *) "handle", NULL | |
5660 | }; | |
5661 | ||
5662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5664 | if (!SWIG_IsOK(res1)) { | |
5665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5666 | } | |
5667 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5668 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5669 | if (!SWIG_IsOK(ecode2)) { | |
5670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
5671 | } | |
5672 | arg2 = static_cast< long >(val2); | |
5673 | { | |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | wxBitmap_SetHandle(arg1,arg2); | |
5676 | wxPyEndAllowThreads(__tstate); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | } | |
5679 | resultobj = SWIG_Py_Void(); | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
d55e5bfc RD |
5683 | } |
5684 | ||
5685 | ||
554f62e9 RD |
5686 | SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5687 | PyObject *resultobj = 0; | |
5688 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5689 | bool result; | |
5690 | void *argp1 = 0 ; | |
5691 | int res1 = 0 ; | |
5692 | PyObject *swig_obj[1] ; | |
5693 | ||
5694 | if (!args) SWIG_fail; | |
5695 | swig_obj[0] = args; | |
5696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5697 | if (!SWIG_IsOK(res1)) { | |
5698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5699 | } | |
5700 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | result = (bool)(arg1)->Ok(); | |
5704 | wxPyEndAllowThreads(__tstate); | |
5705 | if (PyErr_Occurred()) SWIG_fail; | |
5706 | } | |
5707 | { | |
5708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5709 | } | |
5710 | return resultobj; | |
5711 | fail: | |
5712 | return NULL; | |
d55e5bfc RD |
5713 | } |
5714 | ||
5715 | ||
554f62e9 RD |
5716 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5717 | PyObject *resultobj = 0; | |
5718 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5719 | int result; | |
5720 | void *argp1 = 0 ; | |
5721 | int res1 = 0 ; | |
5722 | PyObject *swig_obj[1] ; | |
5723 | ||
5724 | if (!args) SWIG_fail; | |
5725 | swig_obj[0] = args; | |
5726 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5727 | if (!SWIG_IsOK(res1)) { | |
5728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5729 | } | |
5730 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5731 | { | |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | result = (int)(arg1)->GetWidth(); | |
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
d55e5bfc RD |
5741 | } |
5742 | ||
5743 | ||
554f62e9 RD |
5744 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5745 | PyObject *resultobj = 0; | |
5746 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5747 | int result; | |
5748 | void *argp1 = 0 ; | |
5749 | int res1 = 0 ; | |
5750 | PyObject *swig_obj[1] ; | |
5751 | ||
5752 | if (!args) SWIG_fail; | |
5753 | swig_obj[0] = args; | |
5754 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5755 | if (!SWIG_IsOK(res1)) { | |
5756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5757 | } | |
5758 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5759 | { | |
5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5761 | result = (int)(arg1)->GetHeight(); | |
5762 | wxPyEndAllowThreads(__tstate); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | } | |
5765 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
c24da6d6 RD |
5769 | } |
5770 | ||
5771 | ||
554f62e9 RD |
5772 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5773 | PyObject *resultobj = 0; | |
5774 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5775 | int result; | |
5776 | void *argp1 = 0 ; | |
5777 | int res1 = 0 ; | |
5778 | PyObject *swig_obj[1] ; | |
5779 | ||
5780 | if (!args) SWIG_fail; | |
5781 | swig_obj[0] = args; | |
5782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5783 | if (!SWIG_IsOK(res1)) { | |
5784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5785 | } | |
5786 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5787 | { | |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | result = (int)(arg1)->GetDepth(); | |
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5794 | return resultobj; | |
5795 | fail: | |
5796 | return NULL; | |
d55e5bfc RD |
5797 | } |
5798 | ||
5799 | ||
554f62e9 RD |
5800 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5801 | PyObject *resultobj = 0; | |
5802 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5803 | wxSize result; | |
5804 | void *argp1 = 0 ; | |
5805 | int res1 = 0 ; | |
5806 | PyObject *swig_obj[1] ; | |
5807 | ||
5808 | if (!args) SWIG_fail; | |
5809 | swig_obj[0] = args; | |
5810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5811 | if (!SWIG_IsOK(res1)) { | |
5812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5813 | } | |
5814 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5815 | { | |
5816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5817 | result = wxBitmap_GetSize(arg1); | |
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
5821 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
5822 | return resultobj; | |
5823 | fail: | |
5824 | return NULL; | |
d55e5bfc RD |
5825 | } |
5826 | ||
5827 | ||
554f62e9 RD |
5828 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5829 | PyObject *resultobj = 0; | |
5830 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5831 | SwigValueWrapper<wxImage > result; | |
5832 | void *argp1 = 0 ; | |
5833 | int res1 = 0 ; | |
5834 | PyObject *swig_obj[1] ; | |
5835 | ||
5836 | if (!args) SWIG_fail; | |
5837 | swig_obj[0] = args; | |
5838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5839 | if (!SWIG_IsOK(res1)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5841 | } | |
5842 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
5846 | wxPyEndAllowThreads(__tstate); | |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
5848 | } | |
5849 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
d55e5bfc RD |
5853 | } |
5854 | ||
5855 | ||
554f62e9 RD |
5856 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5857 | PyObject *resultobj = 0; | |
5858 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5859 | wxMask *result = 0 ; | |
5860 | void *argp1 = 0 ; | |
5861 | int res1 = 0 ; | |
5862 | PyObject *swig_obj[1] ; | |
5863 | ||
5864 | if (!args) SWIG_fail; | |
5865 | swig_obj[0] = args; | |
5866 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5867 | if (!SWIG_IsOK(res1)) { | |
5868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5869 | } | |
5870 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5871 | { | |
5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5873 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
5877 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
5878 | return resultobj; | |
5879 | fail: | |
5880 | return NULL; | |
5881 | } | |
5882 | ||
5883 | ||
5884 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5885 | PyObject *resultobj = 0; | |
5886 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5887 | wxMask *arg2 = (wxMask *) 0 ; | |
5888 | void *argp1 = 0 ; | |
5889 | int res1 = 0 ; | |
5890 | int res2 = 0 ; | |
5891 | PyObject * obj0 = 0 ; | |
5892 | PyObject * obj1 = 0 ; | |
5893 | char * kwnames[] = { | |
5894 | (char *) "self",(char *) "mask", NULL | |
5895 | }; | |
5896 | ||
5897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
5898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5899 | if (!SWIG_IsOK(res1)) { | |
5900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5901 | } | |
5902 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5903 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
5904 | if (!SWIG_IsOK(res2)) { | |
5905 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
5906 | } | |
5907 | { | |
5908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5909 | (arg1)->SetMask(arg2); | |
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | resultobj = SWIG_Py_Void(); | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
5920 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5921 | PyObject *resultobj = 0; | |
5922 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5923 | wxColour *arg2 = 0 ; | |
5924 | void *argp1 = 0 ; | |
5925 | int res1 = 0 ; | |
5926 | wxColour temp2 ; | |
5927 | PyObject * obj0 = 0 ; | |
5928 | PyObject * obj1 = 0 ; | |
5929 | char * kwnames[] = { | |
5930 | (char *) "self",(char *) "colour", NULL | |
5931 | }; | |
5932 | ||
5933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5935 | if (!SWIG_IsOK(res1)) { | |
5936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5937 | } | |
5938 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5939 | { | |
5940 | arg2 = &temp2; | |
5941 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5942 | } | |
5943 | { | |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
5949 | resultobj = SWIG_Py_Void(); | |
5950 | return resultobj; | |
5951 | fail: | |
5952 | return NULL; | |
5953 | } | |
5954 | ||
5955 | ||
5956 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5957 | PyObject *resultobj = 0; | |
5958 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5959 | wxRect *arg2 = 0 ; | |
5960 | SwigValueWrapper<wxBitmap > result; | |
5961 | void *argp1 = 0 ; | |
5962 | int res1 = 0 ; | |
5963 | wxRect temp2 ; | |
5964 | PyObject * obj0 = 0 ; | |
5965 | PyObject * obj1 = 0 ; | |
5966 | char * kwnames[] = { | |
5967 | (char *) "self",(char *) "rect", NULL | |
5968 | }; | |
5969 | ||
5970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5972 | if (!SWIG_IsOK(res1)) { | |
5973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5974 | } | |
5975 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5976 | { | |
5977 | arg2 = &temp2; | |
5978 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5979 | } | |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
5990 | } | |
5991 | ||
5992 | ||
5993 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5994 | PyObject *resultobj = 0; | |
5995 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5996 | wxString *arg2 = 0 ; | |
5997 | wxBitmapType arg3 ; | |
5998 | wxPalette *arg4 = (wxPalette *) NULL ; | |
5999 | bool result; | |
6000 | void *argp1 = 0 ; | |
6001 | int res1 = 0 ; | |
6002 | bool temp2 = false ; | |
6003 | int val3 ; | |
6004 | int ecode3 = 0 ; | |
6005 | void *argp4 = 0 ; | |
6006 | int res4 = 0 ; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | PyObject * obj1 = 0 ; | |
6009 | PyObject * obj2 = 0 ; | |
6010 | PyObject * obj3 = 0 ; | |
6011 | char * kwnames[] = { | |
6012 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6013 | }; | |
6014 | ||
6015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6017 | if (!SWIG_IsOK(res1)) { | |
6018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6019 | } | |
6020 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6021 | { | |
6022 | arg2 = wxString_in_helper(obj1); | |
6023 | if (arg2 == NULL) SWIG_fail; | |
6024 | temp2 = true; | |
6025 | } | |
6026 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6027 | if (!SWIG_IsOK(ecode3)) { | |
6028 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6029 | } | |
6030 | arg3 = static_cast< wxBitmapType >(val3); | |
6031 | if (obj3) { | |
6032 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6033 | if (!SWIG_IsOK(res4)) { | |
6034 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6035 | } |
554f62e9 RD |
6036 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6037 | } | |
6038 | { | |
6039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6040 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); | |
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
6044 | { | |
6045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6046 | } | |
6047 | { | |
6048 | if (temp2) | |
6049 | delete arg2; | |
6050 | } | |
6051 | return resultobj; | |
6052 | fail: | |
6053 | { | |
6054 | if (temp2) | |
6055 | delete arg2; | |
6056 | } | |
6057 | return NULL; | |
6058 | } | |
6059 | ||
6060 | ||
6061 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6062 | PyObject *resultobj = 0; | |
6063 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6064 | wxString *arg2 = 0 ; | |
6065 | wxBitmapType arg3 ; | |
6066 | bool result; | |
6067 | void *argp1 = 0 ; | |
6068 | int res1 = 0 ; | |
6069 | bool temp2 = false ; | |
6070 | int val3 ; | |
6071 | int ecode3 = 0 ; | |
6072 | PyObject * obj0 = 0 ; | |
6073 | PyObject * obj1 = 0 ; | |
6074 | PyObject * obj2 = 0 ; | |
6075 | char * kwnames[] = { | |
6076 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6077 | }; | |
6078 | ||
6079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6081 | if (!SWIG_IsOK(res1)) { | |
6082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6083 | } | |
6084 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6085 | { | |
6086 | arg2 = wxString_in_helper(obj1); | |
6087 | if (arg2 == NULL) SWIG_fail; | |
6088 | temp2 = true; | |
6089 | } | |
6090 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6091 | if (!SWIG_IsOK(ecode3)) { | |
6092 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6093 | } | |
6094 | arg3 = static_cast< wxBitmapType >(val3); | |
6095 | { | |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | { | |
6102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6103 | } | |
6104 | { | |
6105 | if (temp2) | |
6106 | delete arg2; | |
6107 | } | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | { | |
6111 | if (temp2) | |
6112 | delete arg2; | |
6113 | } | |
6114 | return NULL; | |
d04418a7 RD |
6115 | } |
6116 | ||
6117 | ||
554f62e9 RD |
6118 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6119 | PyObject *resultobj = 0; | |
6120 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6121 | wxPalette *result = 0 ; | |
6122 | void *argp1 = 0 ; | |
6123 | int res1 = 0 ; | |
6124 | PyObject *swig_obj[1] ; | |
6125 | ||
6126 | if (!args) SWIG_fail; | |
6127 | swig_obj[0] = args; | |
6128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6129 | if (!SWIG_IsOK(res1)) { | |
6130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6131 | } | |
6132 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6140 | return resultobj; | |
6141 | fail: | |
6142 | return NULL; | |
6143 | } | |
6144 | ||
6145 | ||
6146 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6147 | PyObject *resultobj = 0; | |
6148 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6149 | wxPalette *arg2 = 0 ; | |
6150 | void *argp1 = 0 ; | |
6151 | int res1 = 0 ; | |
6152 | void *argp2 = 0 ; | |
6153 | int res2 = 0 ; | |
6154 | PyObject * obj0 = 0 ; | |
6155 | PyObject * obj1 = 0 ; | |
6156 | char * kwnames[] = { | |
6157 | (char *) "self",(char *) "palette", NULL | |
6158 | }; | |
6159 | ||
6160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6162 | if (!SWIG_IsOK(res1)) { | |
6163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6164 | } | |
6165 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6166 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6167 | if (!SWIG_IsOK(res2)) { | |
6168 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6169 | } | |
6170 | if (!argp2) { | |
6171 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6172 | } | |
6173 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
6177 | wxPyEndAllowThreads(__tstate); | |
6178 | if (PyErr_Occurred()) SWIG_fail; | |
6179 | } | |
6180 | resultobj = SWIG_Py_Void(); | |
6181 | return resultobj; | |
6182 | fail: | |
6183 | return NULL; | |
6184 | } | |
6185 | ||
6186 | ||
6187 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6188 | PyObject *resultobj = 0; | |
6189 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6190 | wxIcon *arg2 = 0 ; | |
6191 | bool result; | |
6192 | void *argp1 = 0 ; | |
6193 | int res1 = 0 ; | |
6194 | void *argp2 = 0 ; | |
6195 | int res2 = 0 ; | |
6196 | PyObject * obj0 = 0 ; | |
6197 | PyObject * obj1 = 0 ; | |
6198 | char * kwnames[] = { | |
6199 | (char *) "self",(char *) "icon", NULL | |
6200 | }; | |
6201 | ||
6202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6204 | if (!SWIG_IsOK(res1)) { | |
6205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6206 | } | |
6207 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6208 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6209 | if (!SWIG_IsOK(res2)) { | |
6210 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6211 | } | |
6212 | if (!argp2) { | |
6213 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6214 | } | |
6215 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6216 | { | |
6217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6218 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | { | |
6223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6224 | } | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
6231 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6232 | PyObject *resultobj = 0; | |
6233 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6234 | int arg2 ; | |
6235 | void *argp1 = 0 ; | |
6236 | int res1 = 0 ; | |
6237 | int val2 ; | |
6238 | int ecode2 = 0 ; | |
6239 | PyObject * obj0 = 0 ; | |
6240 | PyObject * obj1 = 0 ; | |
6241 | char * kwnames[] = { | |
6242 | (char *) "self",(char *) "height", NULL | |
6243 | }; | |
6244 | ||
6245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6247 | if (!SWIG_IsOK(res1)) { | |
6248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6249 | } | |
6250 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6251 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6252 | if (!SWIG_IsOK(ecode2)) { | |
6253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6254 | } | |
6255 | arg2 = static_cast< int >(val2); | |
6256 | { | |
6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6258 | (arg1)->SetHeight(arg2); | |
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | resultobj = SWIG_Py_Void(); | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj = 0; | |
6271 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6272 | int arg2 ; | |
6273 | void *argp1 = 0 ; | |
6274 | int res1 = 0 ; | |
6275 | int val2 ; | |
6276 | int ecode2 = 0 ; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | PyObject * obj1 = 0 ; | |
6279 | char * kwnames[] = { | |
6280 | (char *) "self",(char *) "width", NULL | |
6281 | }; | |
6282 | ||
6283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6285 | if (!SWIG_IsOK(res1)) { | |
6286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6287 | } | |
6288 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6289 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6290 | if (!SWIG_IsOK(ecode2)) { | |
6291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6292 | } | |
6293 | arg2 = static_cast< int >(val2); | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | (arg1)->SetWidth(arg2); | |
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) SWIG_fail; | |
6299 | } | |
6300 | resultobj = SWIG_Py_Void(); | |
6301 | return resultobj; | |
6302 | fail: | |
6303 | return NULL; | |
6304 | } | |
6305 | ||
6306 | ||
6307 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6308 | PyObject *resultobj = 0; | |
6309 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6310 | int arg2 ; | |
6311 | void *argp1 = 0 ; | |
6312 | int res1 = 0 ; | |
6313 | int val2 ; | |
6314 | int ecode2 = 0 ; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | PyObject * obj1 = 0 ; | |
6317 | char * kwnames[] = { | |
6318 | (char *) "self",(char *) "depth", NULL | |
6319 | }; | |
6320 | ||
6321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6323 | if (!SWIG_IsOK(res1)) { | |
6324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6325 | } | |
6326 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6327 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6328 | if (!SWIG_IsOK(ecode2)) { | |
6329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6330 | } | |
6331 | arg2 = static_cast< int >(val2); | |
6332 | { | |
6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6334 | (arg1)->SetDepth(arg2); | |
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | resultobj = SWIG_Py_Void(); | |
6339 | return resultobj; | |
6340 | fail: | |
6341 | return NULL; | |
6342 | } | |
6343 | ||
6344 | ||
6345 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6346 | PyObject *resultobj = 0; | |
6347 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6348 | wxSize *arg2 = 0 ; | |
6349 | void *argp1 = 0 ; | |
6350 | int res1 = 0 ; | |
6351 | wxSize temp2 ; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | PyObject * obj1 = 0 ; | |
6354 | char * kwnames[] = { | |
6355 | (char *) "self",(char *) "size", NULL | |
6356 | }; | |
6357 | ||
6358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6360 | if (!SWIG_IsOK(res1)) { | |
6361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6362 | } | |
6363 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6364 | { | |
6365 | arg2 = &temp2; | |
6366 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6367 | } | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | resultobj = SWIG_Py_Void(); | |
6375 | return resultobj; | |
6376 | fail: | |
6377 | return NULL; | |
6378 | } | |
6379 | ||
6380 | ||
6381 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6382 | PyObject *resultobj = 0; | |
6383 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6384 | wxCursor *arg2 = 0 ; | |
6385 | bool result; | |
6386 | void *argp1 = 0 ; | |
6387 | int res1 = 0 ; | |
6388 | void *argp2 = 0 ; | |
6389 | int res2 = 0 ; | |
6390 | PyObject * obj0 = 0 ; | |
6391 | PyObject * obj1 = 0 ; | |
6392 | char * kwnames[] = { | |
6393 | (char *) "self",(char *) "cursor", NULL | |
6394 | }; | |
6395 | ||
6396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
6397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6398 | if (!SWIG_IsOK(res1)) { | |
6399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6400 | } | |
6401 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6402 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
6403 | if (!SWIG_IsOK(res2)) { | |
6404 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6405 | } | |
6406 | if (!argp2) { | |
6407 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6408 | } | |
6409 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) SWIG_fail; | |
6415 | } | |
6416 | { | |
6417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6418 | } | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6426 | PyObject *resultobj = 0; | |
6427 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6428 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6429 | bool result; | |
6430 | void *argp1 = 0 ; | |
6431 | int res1 = 0 ; | |
6432 | void *argp2 = 0 ; | |
6433 | int res2 = 0 ; | |
6434 | PyObject * obj0 = 0 ; | |
6435 | PyObject * obj1 = 0 ; | |
6436 | char * kwnames[] = { | |
6437 | (char *) "self",(char *) "other", NULL | |
6438 | }; | |
6439 | ||
6440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6442 | if (!SWIG_IsOK(res1)) { | |
6443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6444 | } | |
6445 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6446 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6447 | if (!SWIG_IsOK(res2)) { | |
6448 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6449 | } | |
6450 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
6454 | wxPyEndAllowThreads(__tstate); | |
6455 | if (PyErr_Occurred()) SWIG_fail; | |
6456 | } | |
6457 | { | |
6458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6459 | } | |
6460 | return resultobj; | |
6461 | fail: | |
6462 | return NULL; | |
6463 | } | |
6464 | ||
6465 | ||
6466 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6467 | PyObject *resultobj = 0; | |
6468 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6469 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6470 | bool result; | |
6471 | void *argp1 = 0 ; | |
6472 | int res1 = 0 ; | |
6473 | void *argp2 = 0 ; | |
6474 | int res2 = 0 ; | |
6475 | PyObject * obj0 = 0 ; | |
6476 | PyObject * obj1 = 0 ; | |
6477 | char * kwnames[] = { | |
6478 | (char *) "self",(char *) "other", NULL | |
6479 | }; | |
6480 | ||
6481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6483 | if (!SWIG_IsOK(res1)) { | |
6484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6485 | } | |
6486 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6487 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6488 | if (!SWIG_IsOK(res2)) { | |
6489 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6490 | } | |
6491 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6492 | { | |
6493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6494 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6495 | wxPyEndAllowThreads(__tstate); | |
6496 | if (PyErr_Occurred()) SWIG_fail; | |
6497 | } | |
6498 | { | |
6499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6500 | } | |
6501 | return resultobj; | |
6502 | fail: | |
6503 | return NULL; | |
d55e5bfc RD |
6504 | } |
6505 | ||
6506 | ||
554f62e9 RD |
6507 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6508 | PyObject *obj; | |
6509 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6510 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
6511 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6512 | } |
6513 | ||
554f62e9 RD |
6514 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6515 | return SWIG_Python_InitShadowInstance(args); | |
093d3ff1 RD |
6516 | } |
6517 | ||
554f62e9 RD |
6518 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6519 | PyObject *resultobj = 0; | |
6520 | wxBitmap *arg1 = 0 ; | |
6521 | wxColour const &arg2_defvalue = wxNullColour ; | |
6522 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6523 | wxMask *result = 0 ; | |
6524 | void *argp1 = 0 ; | |
6525 | int res1 = 0 ; | |
6526 | wxColour temp2 ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
6529 | char * kwnames[] = { | |
6530 | (char *) "bitmap",(char *) "colour", NULL | |
6531 | }; | |
6532 | ||
6533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6534 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6535 | if (!SWIG_IsOK(res1)) { | |
6536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6537 | } | |
6538 | if (!argp1) { | |
6539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6540 | } | |
6541 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6542 | if (obj1) { | |
d55e5bfc | 6543 | { |
554f62e9 RD |
6544 | arg2 = &temp2; |
6545 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 6546 | } |
554f62e9 RD |
6547 | } |
6548 | { | |
6549 | if (!wxPyCheckForApp()) SWIG_fail; | |
6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6551 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
6555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
d55e5bfc RD |
6559 | } |
6560 | ||
6561 | ||
554f62e9 RD |
6562 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6563 | PyObject *resultobj = 0; | |
6564 | wxMask *arg1 = (wxMask *) 0 ; | |
6565 | void *argp1 = 0 ; | |
6566 | int res1 = 0 ; | |
6567 | PyObject *swig_obj[1] ; | |
6568 | ||
6569 | if (!args) SWIG_fail; | |
6570 | swig_obj[0] = args; | |
6571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6572 | if (!SWIG_IsOK(res1)) { | |
6573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
6574 | } | |
6575 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
6576 | { | |
6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6578 | delete arg1; | |
d55e5bfc | 6579 | |
554f62e9 RD |
6580 | wxPyEndAllowThreads(__tstate); |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
6582 | } | |
6583 | resultobj = SWIG_Py_Void(); | |
6584 | return resultobj; | |
6585 | fail: | |
6586 | return NULL; | |
6587 | } | |
6588 | ||
6589 | ||
6590 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6591 | PyObject *obj; | |
6592 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6593 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
6594 | return SWIG_Py_Void(); | |
6595 | } | |
6596 | ||
6597 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6598 | return SWIG_Python_InitShadowInstance(args); | |
6599 | } | |
6600 | ||
6601 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6602 | PyObject *resultobj = 0; | |
6603 | wxString *arg1 = 0 ; | |
6604 | wxBitmapType arg2 ; | |
6605 | int arg3 = (int) -1 ; | |
6606 | int arg4 = (int) -1 ; | |
6607 | wxIcon *result = 0 ; | |
6608 | bool temp1 = false ; | |
6609 | int val2 ; | |
6610 | int ecode2 = 0 ; | |
6611 | int val3 ; | |
6612 | int ecode3 = 0 ; | |
6613 | int val4 ; | |
6614 | int ecode4 = 0 ; | |
6615 | PyObject * obj0 = 0 ; | |
6616 | PyObject * obj1 = 0 ; | |
6617 | PyObject * obj2 = 0 ; | |
6618 | PyObject * obj3 = 0 ; | |
6619 | char * kwnames[] = { | |
6620 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
6621 | }; | |
6622 | ||
6623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6624 | { | |
6625 | arg1 = wxString_in_helper(obj0); | |
6626 | if (arg1 == NULL) SWIG_fail; | |
6627 | temp1 = true; | |
6628 | } | |
6629 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6630 | if (!SWIG_IsOK(ecode2)) { | |
6631 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6632 | } | |
6633 | arg2 = static_cast< wxBitmapType >(val2); | |
6634 | if (obj2) { | |
6635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6636 | if (!SWIG_IsOK(ecode3)) { | |
6637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
6638 | } | |
6639 | arg3 = static_cast< int >(val3); | |
6640 | } | |
6641 | if (obj3) { | |
6642 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6643 | if (!SWIG_IsOK(ecode4)) { | |
6644 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
6645 | } | |
6646 | arg4 = static_cast< int >(val4); | |
6647 | } | |
6648 | { | |
6649 | if (!wxPyCheckForApp()) SWIG_fail; | |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
6655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
6656 | { | |
6657 | if (temp1) | |
6658 | delete arg1; | |
6659 | } | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | { | |
6663 | if (temp1) | |
6664 | delete arg1; | |
6665 | } | |
6666 | return NULL; | |
d55e5bfc RD |
6667 | } |
6668 | ||
6669 | ||
554f62e9 RD |
6670 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6671 | PyObject *resultobj = 0; | |
6672 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6673 | void *argp1 = 0 ; | |
6674 | int res1 = 0 ; | |
6675 | PyObject *swig_obj[1] ; | |
6676 | ||
6677 | if (!args) SWIG_fail; | |
6678 | swig_obj[0] = args; | |
6679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
6680 | if (!SWIG_IsOK(res1)) { | |
6681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6682 | } | |
6683 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6684 | { | |
6685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6686 | delete arg1; | |
d55e5bfc | 6687 | |
554f62e9 RD |
6688 | wxPyEndAllowThreads(__tstate); |
6689 | if (PyErr_Occurred()) SWIG_fail; | |
6690 | } | |
6691 | resultobj = SWIG_Py_Void(); | |
6692 | return resultobj; | |
6693 | fail: | |
6694 | return NULL; | |
d55e5bfc RD |
6695 | } |
6696 | ||
6697 | ||
554f62e9 RD |
6698 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6699 | PyObject *resultobj = 0; | |
6700 | wxIcon *result = 0 ; | |
6701 | ||
6702 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
6703 | { | |
6704 | if (!wxPyCheckForApp()) SWIG_fail; | |
6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6706 | result = (wxIcon *)new wxIcon(); | |
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6718 | PyObject *resultobj = 0; | |
6719 | wxIconLocation *arg1 = 0 ; | |
6720 | wxIcon *result = 0 ; | |
6721 | void *argp1 = 0 ; | |
6722 | int res1 = 0 ; | |
6723 | PyObject * obj0 = 0 ; | |
6724 | char * kwnames[] = { | |
6725 | (char *) "loc", NULL | |
6726 | }; | |
6727 | ||
6728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
6729 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
6730 | if (!SWIG_IsOK(res1)) { | |
6731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6732 | } | |
6733 | if (!argp1) { | |
6734 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6735 | } | |
6736 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
6737 | { | |
6738 | if (!wxPyCheckForApp()) SWIG_fail; | |
6739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6740 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
6741 | wxPyEndAllowThreads(__tstate); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
6744 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6745 | return resultobj; | |
6746 | fail: | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
6751 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6752 | PyObject *resultobj = 0; | |
6753 | wxBitmap *arg1 = 0 ; | |
6754 | wxIcon *result = 0 ; | |
6755 | void *argp1 = 0 ; | |
6756 | int res1 = 0 ; | |
6757 | PyObject * obj0 = 0 ; | |
6758 | char * kwnames[] = { | |
6759 | (char *) "bmp", NULL | |
6760 | }; | |
6761 | ||
6762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
6763 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6764 | if (!SWIG_IsOK(res1)) { | |
6765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6766 | } | |
6767 | if (!argp1) { | |
6768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6769 | } | |
6770 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6771 | { | |
6772 | if (!wxPyCheckForApp()) SWIG_fail; | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | return NULL; | |
d55e5bfc RD |
6782 | } |
6783 | ||
6784 | ||
554f62e9 RD |
6785 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6786 | PyObject *resultobj = 0; | |
6787 | PyObject *arg1 = (PyObject *) 0 ; | |
6788 | wxIcon *result = 0 ; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | char * kwnames[] = { | |
6791 | (char *) "listOfStrings", NULL | |
6792 | }; | |
6793 | ||
6794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6795 | arg1 = obj0; | |
6796 | { | |
6797 | if (!wxPyCheckForApp()) SWIG_fail; | |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6799 | result = (wxIcon *)new_wxIcon(arg1); | |
6800 | wxPyEndAllowThreads(__tstate); | |
6801 | if (PyErr_Occurred()) SWIG_fail; | |
6802 | } | |
6803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj = 0; | |
6812 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6813 | wxString *arg2 = 0 ; | |
6814 | wxBitmapType arg3 ; | |
6815 | bool result; | |
6816 | void *argp1 = 0 ; | |
6817 | int res1 = 0 ; | |
6818 | bool temp2 = false ; | |
6819 | int val3 ; | |
6820 | int ecode3 = 0 ; | |
6821 | PyObject * obj0 = 0 ; | |
6822 | PyObject * obj1 = 0 ; | |
6823 | PyObject * obj2 = 0 ; | |
6824 | char * kwnames[] = { | |
6825 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6826 | }; | |
6827 | ||
6828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6830 | if (!SWIG_IsOK(res1)) { | |
6831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6832 | } | |
6833 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6834 | { | |
6835 | arg2 = wxString_in_helper(obj1); | |
6836 | if (arg2 == NULL) SWIG_fail; | |
6837 | temp2 = true; | |
6838 | } | |
6839 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6840 | if (!SWIG_IsOK(ecode3)) { | |
6841 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6842 | } | |
6843 | arg3 = static_cast< wxBitmapType >(val3); | |
6844 | { | |
6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6846 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6847 | wxPyEndAllowThreads(__tstate); | |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
6849 | } | |
6850 | { | |
6851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6852 | } | |
6853 | { | |
6854 | if (temp2) | |
6855 | delete arg2; | |
6856 | } | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | { | |
6860 | if (temp2) | |
6861 | delete arg2; | |
6862 | } | |
6863 | return NULL; | |
d55e5bfc RD |
6864 | } |
6865 | ||
6866 | ||
554f62e9 RD |
6867 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6868 | PyObject *resultobj = 0; | |
6869 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6870 | long result; | |
6871 | void *argp1 = 0 ; | |
6872 | int res1 = 0 ; | |
6873 | PyObject *swig_obj[1] ; | |
6874 | ||
6875 | if (!args) SWIG_fail; | |
6876 | swig_obj[0] = args; | |
6877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6878 | if (!SWIG_IsOK(res1)) { | |
6879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6880 | } | |
6881 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6882 | { | |
6883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6884 | result = (long)(arg1)->GetHandle(); | |
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj = 0; | |
6897 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6898 | long arg2 ; | |
6899 | void *argp1 = 0 ; | |
6900 | int res1 = 0 ; | |
6901 | long val2 ; | |
6902 | int ecode2 = 0 ; | |
6903 | PyObject * obj0 = 0 ; | |
6904 | PyObject * obj1 = 0 ; | |
6905 | char * kwnames[] = { | |
6906 | (char *) "self",(char *) "handle", NULL | |
6907 | }; | |
6908 | ||
6909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6911 | if (!SWIG_IsOK(res1)) { | |
6912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6913 | } | |
6914 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6915 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6916 | if (!SWIG_IsOK(ecode2)) { | |
6917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6918 | } | |
6919 | arg2 = static_cast< long >(val2); | |
6920 | { | |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | wxIcon_SetHandle(arg1,arg2); | |
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | resultobj = SWIG_Py_Void(); | |
6927 | return resultobj; | |
6928 | fail: | |
6929 | return NULL; | |
d55e5bfc RD |
6930 | } |
6931 | ||
6932 | ||
554f62e9 RD |
6933 | SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6934 | PyObject *resultobj = 0; | |
6935 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6936 | bool result; | |
6937 | void *argp1 = 0 ; | |
6938 | int res1 = 0 ; | |
6939 | PyObject *swig_obj[1] ; | |
6940 | ||
6941 | if (!args) SWIG_fail; | |
6942 | swig_obj[0] = args; | |
6943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6944 | if (!SWIG_IsOK(res1)) { | |
6945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6946 | } | |
6947 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | result = (bool)(arg1)->Ok(); | |
6951 | wxPyEndAllowThreads(__tstate); | |
6952 | if (PyErr_Occurred()) SWIG_fail; | |
6953 | } | |
6954 | { | |
6955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6956 | } | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | return NULL; | |
d55e5bfc RD |
6960 | } |
6961 | ||
6962 | ||
554f62e9 RD |
6963 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6964 | PyObject *resultobj = 0; | |
6965 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6966 | int result; | |
6967 | void *argp1 = 0 ; | |
6968 | int res1 = 0 ; | |
6969 | PyObject *swig_obj[1] ; | |
6970 | ||
6971 | if (!args) SWIG_fail; | |
6972 | swig_obj[0] = args; | |
6973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6974 | if (!SWIG_IsOK(res1)) { | |
6975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6976 | } | |
6977 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6978 | { | |
6979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6980 | result = (int)(arg1)->GetWidth(); | |
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
c1cb24a4 RD |
6988 | } |
6989 | ||
6990 | ||
554f62e9 RD |
6991 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6992 | PyObject *resultobj = 0; | |
6993 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6994 | int result; | |
6995 | void *argp1 = 0 ; | |
6996 | int res1 = 0 ; | |
6997 | PyObject *swig_obj[1] ; | |
6998 | ||
6999 | if (!args) SWIG_fail; | |
7000 | swig_obj[0] = args; | |
7001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7002 | if (!SWIG_IsOK(res1)) { | |
7003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7004 | } | |
7005 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | result = (int)(arg1)->GetHeight(); | |
7009 | wxPyEndAllowThreads(__tstate); | |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | } | |
7012 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7013 | return resultobj; | |
7014 | fail: | |
7015 | return NULL; | |
c1cb24a4 RD |
7016 | } |
7017 | ||
7018 | ||
554f62e9 RD |
7019 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7020 | PyObject *resultobj = 0; | |
7021 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7022 | int result; | |
7023 | void *argp1 = 0 ; | |
7024 | int res1 = 0 ; | |
7025 | PyObject *swig_obj[1] ; | |
7026 | ||
7027 | if (!args) SWIG_fail; | |
7028 | swig_obj[0] = args; | |
7029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7030 | if (!SWIG_IsOK(res1)) { | |
7031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7032 | } | |
7033 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | result = (int)(arg1)->GetDepth(); | |
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
7047 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7048 | PyObject *resultobj = 0; | |
7049 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7050 | int arg2 ; | |
7051 | void *argp1 = 0 ; | |
7052 | int res1 = 0 ; | |
7053 | int val2 ; | |
7054 | int ecode2 = 0 ; | |
7055 | PyObject * obj0 = 0 ; | |
7056 | PyObject * obj1 = 0 ; | |
7057 | char * kwnames[] = { | |
7058 | (char *) "self",(char *) "w", NULL | |
7059 | }; | |
7060 | ||
7061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7063 | if (!SWIG_IsOK(res1)) { | |
7064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7065 | } | |
7066 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7068 | if (!SWIG_IsOK(ecode2)) { | |
7069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
7070 | } | |
7071 | arg2 = static_cast< int >(val2); | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | (arg1)->SetWidth(arg2); | |
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_Py_Void(); | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7086 | PyObject *resultobj = 0; | |
7087 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7088 | int arg2 ; | |
7089 | void *argp1 = 0 ; | |
7090 | int res1 = 0 ; | |
7091 | int val2 ; | |
7092 | int ecode2 = 0 ; | |
7093 | PyObject * obj0 = 0 ; | |
7094 | PyObject * obj1 = 0 ; | |
7095 | char * kwnames[] = { | |
7096 | (char *) "self",(char *) "h", NULL | |
7097 | }; | |
7098 | ||
7099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
7100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7101 | if (!SWIG_IsOK(res1)) { | |
7102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7103 | } | |
7104 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7106 | if (!SWIG_IsOK(ecode2)) { | |
7107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
7108 | } | |
7109 | arg2 = static_cast< int >(val2); | |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | (arg1)->SetHeight(arg2); | |
7113 | wxPyEndAllowThreads(__tstate); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
7116 | resultobj = SWIG_Py_Void(); | |
7117 | return resultobj; | |
7118 | fail: | |
7119 | return NULL; | |
7120 | } | |
7121 | ||
7122 | ||
7123 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7124 | PyObject *resultobj = 0; | |
7125 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7126 | int arg2 ; | |
7127 | void *argp1 = 0 ; | |
7128 | int res1 = 0 ; | |
7129 | int val2 ; | |
7130 | int ecode2 = 0 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | PyObject * obj1 = 0 ; | |
7133 | char * kwnames[] = { | |
7134 | (char *) "self",(char *) "d", NULL | |
7135 | }; | |
7136 | ||
7137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7139 | if (!SWIG_IsOK(res1)) { | |
7140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7141 | } | |
7142 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7143 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7144 | if (!SWIG_IsOK(ecode2)) { | |
7145 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
7146 | } | |
7147 | arg2 = static_cast< int >(val2); | |
7148 | { | |
7149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7150 | (arg1)->SetDepth(arg2); | |
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | resultobj = SWIG_Py_Void(); | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7162 | PyObject *resultobj = 0; | |
7163 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7164 | wxSize *arg2 = 0 ; | |
7165 | void *argp1 = 0 ; | |
7166 | int res1 = 0 ; | |
7167 | wxSize temp2 ; | |
7168 | PyObject * obj0 = 0 ; | |
7169 | PyObject * obj1 = 0 ; | |
7170 | char * kwnames[] = { | |
7171 | (char *) "self",(char *) "size", NULL | |
7172 | }; | |
7173 | ||
7174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7176 | if (!SWIG_IsOK(res1)) { | |
7177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7178 | } | |
7179 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7180 | { | |
7181 | arg2 = &temp2; | |
7182 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7183 | } | |
7184 | { | |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | (arg1)->SetSize((wxSize const &)*arg2); | |
7187 | wxPyEndAllowThreads(__tstate); | |
7188 | if (PyErr_Occurred()) SWIG_fail; | |
7189 | } | |
7190 | resultobj = SWIG_Py_Void(); | |
7191 | return resultobj; | |
7192 | fail: | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj = 0; | |
7199 | wxIcon *arg1 = (wxIcon *) 0 ; | |
7200 | wxBitmap *arg2 = 0 ; | |
7201 | void *argp1 = 0 ; | |
7202 | int res1 = 0 ; | |
7203 | void *argp2 = 0 ; | |
7204 | int res2 = 0 ; | |
7205 | PyObject * obj0 = 0 ; | |
7206 | PyObject * obj1 = 0 ; | |
7207 | char * kwnames[] = { | |
7208 | (char *) "self",(char *) "bmp", NULL | |
7209 | }; | |
7210 | ||
7211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
7212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
7213 | if (!SWIG_IsOK(res1)) { | |
7214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
7215 | } | |
7216 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7217 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
7218 | if (!SWIG_IsOK(res2)) { | |
7219 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
7220 | } | |
7221 | if (!argp2) { | |
7222 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
7223 | } | |
7224 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7225 | { | |
7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7227 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
7228 | wxPyEndAllowThreads(__tstate); | |
7229 | if (PyErr_Occurred()) SWIG_fail; | |
7230 | } | |
7231 | resultobj = SWIG_Py_Void(); | |
7232 | return resultobj; | |
7233 | fail: | |
7234 | return NULL; | |
d55e5bfc RD |
7235 | } |
7236 | ||
7237 | ||
554f62e9 RD |
7238 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7239 | PyObject *obj; | |
7240 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7241 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
7242 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7243 | } |
7244 | ||
554f62e9 RD |
7245 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7246 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
7247 | } |
7248 | ||
554f62e9 RD |
7249 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7250 | PyObject *resultobj = 0; | |
7251 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
7252 | int arg2 = (int) 0 ; | |
7253 | wxIconLocation *result = 0 ; | |
7254 | bool temp1 = false ; | |
7255 | int val2 ; | |
7256 | int ecode2 = 0 ; | |
7257 | PyObject * obj0 = 0 ; | |
7258 | PyObject * obj1 = 0 ; | |
7259 | char * kwnames[] = { | |
7260 | (char *) "filename",(char *) "num", NULL | |
7261 | }; | |
7262 | ||
7263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
7264 | if (obj0) { | |
d55e5bfc | 7265 | { |
554f62e9 RD |
7266 | arg1 = wxString_in_helper(obj0); |
7267 | if (arg1 == NULL) SWIG_fail; | |
7268 | temp1 = true; | |
d55e5bfc | 7269 | } |
554f62e9 RD |
7270 | } |
7271 | if (obj1) { | |
7272 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7273 | if (!SWIG_IsOK(ecode2)) { | |
7274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
7275 | } | |
7276 | arg2 = static_cast< int >(val2); | |
7277 | } | |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
7281 | wxPyEndAllowThreads(__tstate); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
7285 | { | |
7286 | if (temp1) | |
7287 | delete arg1; | |
7288 | } | |
7289 | return resultobj; | |
7290 | fail: | |
7291 | { | |
7292 | if (temp1) | |
7293 | delete arg1; | |
7294 | } | |
7295 | return NULL; | |
d55e5bfc RD |
7296 | } |
7297 | ||
7298 | ||
554f62e9 RD |
7299 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7300 | PyObject *resultobj = 0; | |
7301 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7302 | void *argp1 = 0 ; | |
7303 | int res1 = 0 ; | |
7304 | PyObject *swig_obj[1] ; | |
7305 | ||
7306 | if (!args) SWIG_fail; | |
7307 | swig_obj[0] = args; | |
7308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
7309 | if (!SWIG_IsOK(res1)) { | |
7310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7311 | } | |
7312 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | delete arg1; | |
d55e5bfc | 7316 | |
554f62e9 RD |
7317 | wxPyEndAllowThreads(__tstate); |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | resultobj = SWIG_Py_Void(); | |
7321 | return resultobj; | |
7322 | fail: | |
7323 | return NULL; | |
d55e5bfc RD |
7324 | } |
7325 | ||
7326 | ||
554f62e9 RD |
7327 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7328 | PyObject *resultobj = 0; | |
7329 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7330 | bool result; | |
7331 | void *argp1 = 0 ; | |
7332 | int res1 = 0 ; | |
7333 | PyObject *swig_obj[1] ; | |
7334 | ||
7335 | if (!args) SWIG_fail; | |
7336 | swig_obj[0] = args; | |
7337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7338 | if (!SWIG_IsOK(res1)) { | |
7339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7340 | } | |
7341 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7342 | { | |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | { | |
7349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7350 | } | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
7357 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7358 | PyObject *resultobj = 0; | |
7359 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7360 | wxString *arg2 = 0 ; | |
7361 | void *argp1 = 0 ; | |
7362 | int res1 = 0 ; | |
7363 | bool temp2 = false ; | |
7364 | PyObject * obj0 = 0 ; | |
7365 | PyObject * obj1 = 0 ; | |
7366 | char * kwnames[] = { | |
7367 | (char *) "self",(char *) "filename", NULL | |
7368 | }; | |
7369 | ||
7370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
7371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7372 | if (!SWIG_IsOK(res1)) { | |
7373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7374 | } | |
7375 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7376 | { | |
7377 | arg2 = wxString_in_helper(obj1); | |
7378 | if (arg2 == NULL) SWIG_fail; | |
7379 | temp2 = true; | |
7380 | } | |
7381 | { | |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | (arg1)->SetFileName((wxString const &)*arg2); | |
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
7387 | resultobj = SWIG_Py_Void(); | |
7388 | { | |
7389 | if (temp2) | |
7390 | delete arg2; | |
7391 | } | |
7392 | return resultobj; | |
7393 | fail: | |
7394 | { | |
7395 | if (temp2) | |
7396 | delete arg2; | |
7397 | } | |
7398 | return NULL; | |
d55e5bfc RD |
7399 | } |
7400 | ||
7401 | ||
554f62e9 RD |
7402 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7403 | PyObject *resultobj = 0; | |
7404 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7405 | wxString *result = 0 ; | |
7406 | void *argp1 = 0 ; | |
7407 | int res1 = 0 ; | |
7408 | PyObject *swig_obj[1] ; | |
7409 | ||
7410 | if (!args) SWIG_fail; | |
7411 | swig_obj[0] = args; | |
7412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7413 | if (!SWIG_IsOK(res1)) { | |
7414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7415 | } | |
7416 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7417 | { | |
7418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 7419 | { |
554f62e9 RD |
7420 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
7421 | result = (wxString *) &_result_ref; | |
093d3ff1 | 7422 | } |
554f62e9 RD |
7423 | wxPyEndAllowThreads(__tstate); |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
7426 | { | |
7427 | #if wxUSE_UNICODE | |
7428 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7429 | #else | |
7430 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7431 | #endif | |
7432 | } | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
7439 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7440 | PyObject *resultobj = 0; | |
7441 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7442 | int arg2 ; | |
7443 | void *argp1 = 0 ; | |
7444 | int res1 = 0 ; | |
7445 | int val2 ; | |
7446 | int ecode2 = 0 ; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | PyObject * obj1 = 0 ; | |
7449 | char * kwnames[] = { | |
7450 | (char *) "self",(char *) "num", NULL | |
7451 | }; | |
7452 | ||
7453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
7454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7455 | if (!SWIG_IsOK(res1)) { | |
7456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7457 | } | |
7458 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7459 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7460 | if (!SWIG_IsOK(ecode2)) { | |
7461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
7462 | } | |
7463 | arg2 = static_cast< int >(val2); | |
7464 | { | |
7465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7466 | wxIconLocation_SetIndex(arg1,arg2); | |
7467 | wxPyEndAllowThreads(__tstate); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | resultobj = SWIG_Py_Void(); | |
7471 | return resultobj; | |
7472 | fail: | |
7473 | return NULL; | |
d55e5bfc RD |
7474 | } |
7475 | ||
7476 | ||
554f62e9 RD |
7477 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7478 | PyObject *resultobj = 0; | |
7479 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7480 | int result; | |
7481 | void *argp1 = 0 ; | |
7482 | int res1 = 0 ; | |
7483 | PyObject *swig_obj[1] ; | |
7484 | ||
7485 | if (!args) SWIG_fail; | |
7486 | swig_obj[0] = args; | |
7487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7488 | if (!SWIG_IsOK(res1)) { | |
7489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7490 | } | |
7491 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7492 | { | |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | result = (int)wxIconLocation_GetIndex(arg1); | |
7495 | wxPyEndAllowThreads(__tstate); | |
7496 | if (PyErr_Occurred()) SWIG_fail; | |
7497 | } | |
7498 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7499 | return resultobj; | |
7500 | fail: | |
7501 | return NULL; | |
d55e5bfc RD |
7502 | } |
7503 | ||
7504 | ||
554f62e9 RD |
7505 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7506 | PyObject *obj; | |
7507 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7508 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
7509 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7510 | } |
7511 | ||
554f62e9 RD |
7512 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7513 | return SWIG_Python_InitShadowInstance(args); | |
7514 | } | |
d55e5bfc | 7515 | |
554f62e9 RD |
7516 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7517 | PyObject *resultobj = 0; | |
7518 | wxIconBundle *result = 0 ; | |
7519 | ||
7520 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
7521 | { | |
7522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7523 | result = (wxIconBundle *)new wxIconBundle(); | |
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
7527 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
7528 | return resultobj; | |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7535 | PyObject *resultobj = 0; | |
7536 | wxString *arg1 = 0 ; | |
7537 | long arg2 ; | |
7538 | wxIconBundle *result = 0 ; | |
7539 | bool temp1 = false ; | |
7540 | long val2 ; | |
7541 | int ecode2 = 0 ; | |
7542 | PyObject * obj0 = 0 ; | |
7543 | PyObject * obj1 = 0 ; | |
7544 | char * kwnames[] = { | |
7545 | (char *) "file",(char *) "type", NULL | |
7546 | }; | |
7547 | ||
7548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
7549 | { | |
7550 | arg1 = wxString_in_helper(obj0); | |
7551 | if (arg1 == NULL) SWIG_fail; | |
7552 | temp1 = true; | |
7553 | } | |
7554 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7555 | if (!SWIG_IsOK(ecode2)) { | |
7556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
7557 | } | |
7558 | arg2 = static_cast< long >(val2); | |
7559 | { | |
7560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7561 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
7562 | wxPyEndAllowThreads(__tstate); | |
7563 | if (PyErr_Occurred()) SWIG_fail; | |
7564 | } | |
7565 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7566 | { | |
7567 | if (temp1) | |
7568 | delete arg1; | |
7569 | } | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | { | |
7573 | if (temp1) | |
7574 | delete arg1; | |
7575 | } | |
7576 | return NULL; | |
d55e5bfc RD |
7577 | } |
7578 | ||
7579 | ||
554f62e9 RD |
7580 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7581 | PyObject *resultobj = 0; | |
7582 | wxIcon *arg1 = 0 ; | |
7583 | wxIconBundle *result = 0 ; | |
7584 | void *argp1 = 0 ; | |
7585 | int res1 = 0 ; | |
7586 | PyObject * obj0 = 0 ; | |
7587 | char * kwnames[] = { | |
7588 | (char *) "icon", NULL | |
7589 | }; | |
7590 | ||
7591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
7592 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
7593 | if (!SWIG_IsOK(res1)) { | |
7594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7595 | } | |
7596 | if (!argp1) { | |
7597 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7598 | } | |
7599 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7600 | { | |
7601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7602 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
7603 | wxPyEndAllowThreads(__tstate); | |
7604 | if (PyErr_Occurred()) SWIG_fail; | |
7605 | } | |
7606 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7607 | return resultobj; | |
7608 | fail: | |
7609 | return NULL; | |
d55e5bfc RD |
7610 | } |
7611 | ||
7612 | ||
554f62e9 RD |
7613 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7614 | PyObject *resultobj = 0; | |
7615 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7616 | void *argp1 = 0 ; | |
7617 | int res1 = 0 ; | |
7618 | PyObject *swig_obj[1] ; | |
7619 | ||
7620 | if (!args) SWIG_fail; | |
7621 | swig_obj[0] = args; | |
7622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
7623 | if (!SWIG_IsOK(res1)) { | |
7624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7625 | } | |
7626 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7627 | { | |
7628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7629 | delete arg1; | |
d55e5bfc | 7630 | |
554f62e9 RD |
7631 | wxPyEndAllowThreads(__tstate); |
7632 | if (PyErr_Occurred()) SWIG_fail; | |
7633 | } | |
7634 | resultobj = SWIG_Py_Void(); | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | return NULL; | |
7638 | } | |
7639 | ||
7640 | ||
7641 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7642 | PyObject *resultobj = 0; | |
7643 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7644 | wxIcon *arg2 = 0 ; | |
7645 | void *argp1 = 0 ; | |
7646 | int res1 = 0 ; | |
7647 | void *argp2 = 0 ; | |
7648 | int res2 = 0 ; | |
7649 | PyObject * obj0 = 0 ; | |
7650 | PyObject * obj1 = 0 ; | |
7651 | char * kwnames[] = { | |
7652 | (char *) "self",(char *) "icon", NULL | |
7653 | }; | |
7654 | ||
7655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7657 | if (!SWIG_IsOK(res1)) { | |
7658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7659 | } | |
7660 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7661 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
7662 | if (!SWIG_IsOK(res2)) { | |
7663 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7664 | } | |
7665 | if (!argp2) { | |
7666 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7667 | } | |
7668 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
7675 | resultobj = SWIG_Py_Void(); | |
7676 | return resultobj; | |
7677 | fail: | |
7678 | return NULL; | |
7679 | } | |
7680 | ||
7681 | ||
7682 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7683 | PyObject *resultobj = 0; | |
7684 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7685 | wxString *arg2 = 0 ; | |
7686 | long arg3 ; | |
7687 | void *argp1 = 0 ; | |
7688 | int res1 = 0 ; | |
7689 | bool temp2 = false ; | |
7690 | long val3 ; | |
7691 | int ecode3 = 0 ; | |
7692 | PyObject * obj0 = 0 ; | |
7693 | PyObject * obj1 = 0 ; | |
7694 | PyObject * obj2 = 0 ; | |
7695 | char * kwnames[] = { | |
7696 | (char *) "self",(char *) "file",(char *) "type", NULL | |
7697 | }; | |
7698 | ||
7699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7701 | if (!SWIG_IsOK(res1)) { | |
7702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7703 | } | |
7704 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7705 | { | |
7706 | arg2 = wxString_in_helper(obj1); | |
7707 | if (arg2 == NULL) SWIG_fail; | |
7708 | temp2 = true; | |
7709 | } | |
7710 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7711 | if (!SWIG_IsOK(ecode3)) { | |
7712 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
7713 | } | |
7714 | arg3 = static_cast< long >(val3); | |
7715 | { | |
7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7717 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) SWIG_fail; | |
7720 | } | |
7721 | resultobj = SWIG_Py_Void(); | |
7722 | { | |
7723 | if (temp2) | |
7724 | delete arg2; | |
7725 | } | |
7726 | return resultobj; | |
7727 | fail: | |
7728 | { | |
7729 | if (temp2) | |
7730 | delete arg2; | |
7731 | } | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj = 0; | |
7738 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7739 | wxSize *arg2 = 0 ; | |
7740 | wxIcon *result = 0 ; | |
7741 | void *argp1 = 0 ; | |
7742 | int res1 = 0 ; | |
7743 | wxSize temp2 ; | |
7744 | PyObject * obj0 = 0 ; | |
7745 | PyObject * obj1 = 0 ; | |
7746 | char * kwnames[] = { | |
7747 | (char *) "self",(char *) "size", NULL | |
7748 | }; | |
7749 | ||
7750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7752 | if (!SWIG_IsOK(res1)) { | |
7753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
7754 | } | |
7755 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7756 | { | |
7757 | arg2 = &temp2; | |
7758 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7759 | } | |
7760 | { | |
7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 7762 | { |
554f62e9 RD |
7763 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
7764 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 7765 | } |
554f62e9 RD |
7766 | wxPyEndAllowThreads(__tstate); |
7767 | if (PyErr_Occurred()) SWIG_fail; | |
7768 | } | |
7769 | { | |
7770 | wxIcon* resultptr = new wxIcon(*result); | |
7771 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
7772 | } | |
7773 | return resultobj; | |
7774 | fail: | |
7775 | return NULL; | |
7776 | } | |
7777 | ||
7778 | ||
7779 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7780 | PyObject *obj; | |
7781 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7782 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
7783 | return SWIG_Py_Void(); | |
7784 | } | |
7785 | ||
7786 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7787 | return SWIG_Python_InitShadowInstance(args); | |
7788 | } | |
7789 | ||
7790 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7791 | PyObject *resultobj = 0; | |
7792 | wxString *arg1 = 0 ; | |
7793 | long arg2 ; | |
7794 | int arg3 = (int) 0 ; | |
7795 | int arg4 = (int) 0 ; | |
7796 | wxCursor *result = 0 ; | |
7797 | bool temp1 = false ; | |
7798 | long val2 ; | |
7799 | int ecode2 = 0 ; | |
7800 | int val3 ; | |
7801 | int ecode3 = 0 ; | |
7802 | int val4 ; | |
7803 | int ecode4 = 0 ; | |
7804 | PyObject * obj0 = 0 ; | |
7805 | PyObject * obj1 = 0 ; | |
7806 | PyObject * obj2 = 0 ; | |
7807 | PyObject * obj3 = 0 ; | |
7808 | char * kwnames[] = { | |
7809 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
7810 | }; | |
7811 | ||
7812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7813 | { | |
7814 | arg1 = wxString_in_helper(obj0); | |
7815 | if (arg1 == NULL) SWIG_fail; | |
7816 | temp1 = true; | |
7817 | } | |
7818 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7819 | if (!SWIG_IsOK(ecode2)) { | |
7820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
7821 | } | |
7822 | arg2 = static_cast< long >(val2); | |
7823 | if (obj2) { | |
7824 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7825 | if (!SWIG_IsOK(ecode3)) { | |
7826 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
7827 | } | |
7828 | arg3 = static_cast< int >(val3); | |
7829 | } | |
7830 | if (obj3) { | |
7831 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7832 | if (!SWIG_IsOK(ecode4)) { | |
7833 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
7834 | } | |
7835 | arg4 = static_cast< int >(val4); | |
7836 | } | |
7837 | { | |
7838 | if (!wxPyCheckForApp()) SWIG_fail; | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
7841 | wxPyEndAllowThreads(__tstate); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | } | |
7844 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
7845 | { | |
7846 | if (temp1) | |
7847 | delete arg1; | |
7848 | } | |
7849 | return resultobj; | |
7850 | fail: | |
7851 | { | |
7852 | if (temp1) | |
7853 | delete arg1; | |
7854 | } | |
7855 | return NULL; | |
d55e5bfc RD |
7856 | } |
7857 | ||
7858 | ||
554f62e9 RD |
7859 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7860 | PyObject *resultobj = 0; | |
7861 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7862 | void *argp1 = 0 ; | |
7863 | int res1 = 0 ; | |
7864 | PyObject *swig_obj[1] ; | |
7865 | ||
7866 | if (!args) SWIG_fail; | |
7867 | swig_obj[0] = args; | |
7868 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
7869 | if (!SWIG_IsOK(res1)) { | |
7870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7871 | } | |
7872 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | delete arg1; | |
d55e5bfc | 7876 | |
554f62e9 RD |
7877 | wxPyEndAllowThreads(__tstate); |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | resultobj = SWIG_Py_Void(); | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj = 0; | |
7889 | int arg1 ; | |
7890 | wxCursor *result = 0 ; | |
7891 | int val1 ; | |
7892 | int ecode1 = 0 ; | |
7893 | PyObject * obj0 = 0 ; | |
7894 | char * kwnames[] = { | |
7895 | (char *) "id", NULL | |
7896 | }; | |
7897 | ||
7898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
7899 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7900 | if (!SWIG_IsOK(ecode1)) { | |
7901 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
7902 | } | |
7903 | arg1 = static_cast< int >(val1); | |
7904 | { | |
7905 | if (!wxPyCheckForApp()) SWIG_fail; | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (wxCursor *)new wxCursor(arg1); | |
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7912 | return resultobj; | |
7913 | fail: | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7919 | PyObject *resultobj = 0; | |
7920 | wxImage *arg1 = 0 ; | |
7921 | wxCursor *result = 0 ; | |
7922 | void *argp1 = 0 ; | |
7923 | int res1 = 0 ; | |
7924 | PyObject * obj0 = 0 ; | |
7925 | char * kwnames[] = { | |
7926 | (char *) "image", NULL | |
7927 | }; | |
7928 | ||
7929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
7930 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
7931 | if (!SWIG_IsOK(res1)) { | |
7932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7933 | } | |
7934 | if (!argp1) { | |
7935 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7936 | } | |
7937 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
7938 | { | |
7939 | if (!wxPyCheckForApp()) SWIG_fail; | |
7940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7941 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
d55e5bfc RD |
7949 | } |
7950 | ||
7951 | ||
554f62e9 RD |
7952 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7953 | PyObject *resultobj = 0; | |
7954 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7955 | long result; | |
7956 | void *argp1 = 0 ; | |
7957 | int res1 = 0 ; | |
7958 | PyObject *swig_obj[1] ; | |
7959 | ||
7960 | if (!args) SWIG_fail; | |
7961 | swig_obj[0] = args; | |
7962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
7963 | if (!SWIG_IsOK(res1)) { | |
7964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7965 | } | |
7966 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (long)(arg1)->GetHandle(); | |
7970 | wxPyEndAllowThreads(__tstate); | |
7971 | if (PyErr_Occurred()) SWIG_fail; | |
7972 | } | |
7973 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7974 | return resultobj; | |
7975 | fail: | |
7976 | return NULL; | |
7977 | } | |
7978 | ||
7979 | ||
7980 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7981 | PyObject *resultobj = 0; | |
7982 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7983 | long arg2 ; | |
7984 | void *argp1 = 0 ; | |
7985 | int res1 = 0 ; | |
7986 | long val2 ; | |
7987 | int ecode2 = 0 ; | |
7988 | PyObject * obj0 = 0 ; | |
7989 | PyObject * obj1 = 0 ; | |
7990 | char * kwnames[] = { | |
7991 | (char *) "self",(char *) "handle", NULL | |
7992 | }; | |
7993 | ||
7994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
7995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
7996 | if (!SWIG_IsOK(res1)) { | |
7997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7998 | } | |
7999 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8000 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8001 | if (!SWIG_IsOK(ecode2)) { | |
8002 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
8003 | } | |
8004 | arg2 = static_cast< long >(val2); | |
8005 | { | |
8006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8007 | wxCursor_SetHandle(arg1,arg2); | |
8008 | wxPyEndAllowThreads(__tstate); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8011 | resultobj = SWIG_Py_Void(); | |
8012 | return resultobj; | |
8013 | fail: | |
8014 | return NULL; | |
d55e5bfc RD |
8015 | } |
8016 | ||
8017 | ||
554f62e9 RD |
8018 | SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8019 | PyObject *resultobj = 0; | |
8020 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8021 | bool result; | |
8022 | void *argp1 = 0 ; | |
8023 | int res1 = 0 ; | |
8024 | PyObject *swig_obj[1] ; | |
8025 | ||
8026 | if (!args) SWIG_fail; | |
8027 | swig_obj[0] = args; | |
8028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8029 | if (!SWIG_IsOK(res1)) { | |
8030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8031 | } | |
8032 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8033 | { | |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8035 | result = (bool)(arg1)->Ok(); | |
8036 | wxPyEndAllowThreads(__tstate); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
8039 | { | |
8040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8041 | } | |
8042 | return resultobj; | |
8043 | fail: | |
8044 | return NULL; | |
d55e5bfc RD |
8045 | } |
8046 | ||
8047 | ||
554f62e9 RD |
8048 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8049 | PyObject *resultobj = 0; | |
8050 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8051 | int result; | |
8052 | void *argp1 = 0 ; | |
8053 | int res1 = 0 ; | |
8054 | PyObject *swig_obj[1] ; | |
8055 | ||
8056 | if (!args) SWIG_fail; | |
8057 | swig_obj[0] = args; | |
8058 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8059 | if (!SWIG_IsOK(res1)) { | |
8060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8061 | } | |
8062 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8063 | { | |
8064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8065 | result = (int)(arg1)->GetWidth(); | |
8066 | wxPyEndAllowThreads(__tstate); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | } | |
8069 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8070 | return resultobj; | |
8071 | fail: | |
8072 | return NULL; | |
d55e5bfc RD |
8073 | } |
8074 | ||
8075 | ||
554f62e9 RD |
8076 | SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8077 | PyObject *resultobj = 0; | |
8078 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8079 | int result; | |
8080 | void *argp1 = 0 ; | |
8081 | int res1 = 0 ; | |
8082 | PyObject *swig_obj[1] ; | |
8083 | ||
8084 | if (!args) SWIG_fail; | |
8085 | swig_obj[0] = args; | |
8086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8087 | if (!SWIG_IsOK(res1)) { | |
8088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8089 | } | |
8090 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8091 | { | |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | result = (int)(arg1)->GetHeight(); | |
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
8097 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8098 | return resultobj; | |
8099 | fail: | |
8100 | return NULL; | |
d55e5bfc RD |
8101 | } |
8102 | ||
8103 | ||
554f62e9 RD |
8104 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8105 | PyObject *resultobj = 0; | |
8106 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8107 | int result; | |
8108 | void *argp1 = 0 ; | |
8109 | int res1 = 0 ; | |
8110 | PyObject *swig_obj[1] ; | |
8111 | ||
8112 | if (!args) SWIG_fail; | |
8113 | swig_obj[0] = args; | |
8114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8115 | if (!SWIG_IsOK(res1)) { | |
8116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8117 | } | |
8118 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8119 | { | |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | result = (int)(arg1)->GetDepth(); | |
8122 | wxPyEndAllowThreads(__tstate); | |
8123 | if (PyErr_Occurred()) SWIG_fail; | |
8124 | } | |
8125 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8126 | return resultobj; | |
8127 | fail: | |
8128 | return NULL; | |
8129 | } | |
8130 | ||
8131 | ||
8132 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8133 | PyObject *resultobj = 0; | |
8134 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8135 | int arg2 ; | |
8136 | void *argp1 = 0 ; | |
8137 | int res1 = 0 ; | |
8138 | int val2 ; | |
8139 | int ecode2 = 0 ; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | PyObject * obj1 = 0 ; | |
8142 | char * kwnames[] = { | |
8143 | (char *) "self",(char *) "w", NULL | |
8144 | }; | |
8145 | ||
8146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
8147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8148 | if (!SWIG_IsOK(res1)) { | |
8149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8150 | } | |
8151 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8152 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8153 | if (!SWIG_IsOK(ecode2)) { | |
8154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
8155 | } | |
8156 | arg2 = static_cast< int >(val2); | |
8157 | { | |
8158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8159 | (arg1)->SetWidth(arg2); | |
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
8163 | resultobj = SWIG_Py_Void(); | |
8164 | return resultobj; | |
8165 | fail: | |
8166 | return NULL; | |
8167 | } | |
8168 | ||
8169 | ||
8170 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8171 | PyObject *resultobj = 0; | |
8172 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8173 | int arg2 ; | |
8174 | void *argp1 = 0 ; | |
8175 | int res1 = 0 ; | |
8176 | int val2 ; | |
8177 | int ecode2 = 0 ; | |
8178 | PyObject * obj0 = 0 ; | |
8179 | PyObject * obj1 = 0 ; | |
8180 | char * kwnames[] = { | |
8181 | (char *) "self",(char *) "h", NULL | |
8182 | }; | |
8183 | ||
8184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
8185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8186 | if (!SWIG_IsOK(res1)) { | |
8187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8188 | } | |
8189 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8190 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8191 | if (!SWIG_IsOK(ecode2)) { | |
8192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
8193 | } | |
8194 | arg2 = static_cast< int >(val2); | |
8195 | { | |
8196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8197 | (arg1)->SetHeight(arg2); | |
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | resultobj = SWIG_Py_Void(); | |
8202 | return resultobj; | |
8203 | fail: | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
8208 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8209 | PyObject *resultobj = 0; | |
8210 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8211 | int arg2 ; | |
8212 | void *argp1 = 0 ; | |
8213 | int res1 = 0 ; | |
8214 | int val2 ; | |
8215 | int ecode2 = 0 ; | |
8216 | PyObject * obj0 = 0 ; | |
8217 | PyObject * obj1 = 0 ; | |
8218 | char * kwnames[] = { | |
8219 | (char *) "self",(char *) "d", NULL | |
8220 | }; | |
8221 | ||
8222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
8223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8224 | if (!SWIG_IsOK(res1)) { | |
8225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8226 | } | |
8227 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8228 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8229 | if (!SWIG_IsOK(ecode2)) { | |
8230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
8231 | } | |
8232 | arg2 = static_cast< int >(val2); | |
8233 | { | |
8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8235 | (arg1)->SetDepth(arg2); | |
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | resultobj = SWIG_Py_Void(); | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj = 0; | |
8248 | wxCursor *arg1 = (wxCursor *) 0 ; | |
8249 | wxSize *arg2 = 0 ; | |
8250 | void *argp1 = 0 ; | |
8251 | int res1 = 0 ; | |
8252 | wxSize temp2 ; | |
8253 | PyObject * obj0 = 0 ; | |
8254 | PyObject * obj1 = 0 ; | |
8255 | char * kwnames[] = { | |
8256 | (char *) "self",(char *) "size", NULL | |
8257 | }; | |
8258 | ||
8259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
8261 | if (!SWIG_IsOK(res1)) { | |
8262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
8263 | } | |
8264 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
8265 | { | |
8266 | arg2 = &temp2; | |
8267 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8268 | } | |
8269 | { | |
8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8271 | (arg1)->SetSize((wxSize const &)*arg2); | |
8272 | wxPyEndAllowThreads(__tstate); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | } | |
8275 | resultobj = SWIG_Py_Void(); | |
8276 | return resultobj; | |
8277 | fail: | |
8278 | return NULL; | |
8279 | } | |
8280 | ||
8281 | ||
8282 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8283 | PyObject *obj; | |
8284 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8285 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
8286 | return SWIG_Py_Void(); | |
8287 | } | |
8288 | ||
8289 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8290 | return SWIG_Python_InitShadowInstance(args); | |
8291 | } | |
8292 | ||
8293 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8294 | PyObject *resultobj = 0; | |
8295 | int arg1 = (int) 0 ; | |
8296 | int arg2 = (int) 0 ; | |
8297 | int arg3 = (int) 0 ; | |
8298 | int arg4 = (int) 0 ; | |
8299 | wxRegion *result = 0 ; | |
8300 | int val1 ; | |
8301 | int ecode1 = 0 ; | |
8302 | int val2 ; | |
8303 | int ecode2 = 0 ; | |
8304 | int val3 ; | |
8305 | int ecode3 = 0 ; | |
8306 | int val4 ; | |
8307 | int ecode4 = 0 ; | |
8308 | PyObject * obj0 = 0 ; | |
8309 | PyObject * obj1 = 0 ; | |
8310 | PyObject * obj2 = 0 ; | |
8311 | PyObject * obj3 = 0 ; | |
8312 | char * kwnames[] = { | |
8313 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8314 | }; | |
8315 | ||
8316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8317 | if (obj0) { | |
8318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8319 | if (!SWIG_IsOK(ecode1)) { | |
8320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
8321 | } | |
8322 | arg1 = static_cast< int >(val1); | |
8323 | } | |
8324 | if (obj1) { | |
8325 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8326 | if (!SWIG_IsOK(ecode2)) { | |
8327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
8328 | } | |
8329 | arg2 = static_cast< int >(val2); | |
8330 | } | |
8331 | if (obj2) { | |
8332 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8333 | if (!SWIG_IsOK(ecode3)) { | |
8334 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
8335 | } | |
8336 | arg3 = static_cast< int >(val3); | |
8337 | } | |
8338 | if (obj3) { | |
8339 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8340 | if (!SWIG_IsOK(ecode4)) { | |
8341 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
8342 | } | |
8343 | arg4 = static_cast< int >(val4); | |
8344 | } | |
8345 | { | |
8346 | if (!wxPyCheckForApp()) SWIG_fail; | |
8347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8348 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
8349 | wxPyEndAllowThreads(__tstate); | |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
8351 | } | |
8352 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | return NULL; | |
8356 | } | |
8357 | ||
8358 | ||
8359 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8360 | PyObject *resultobj = 0; | |
8361 | wxBitmap *arg1 = 0 ; | |
8362 | wxRegion *result = 0 ; | |
8363 | void *argp1 = 0 ; | |
8364 | int res1 = 0 ; | |
8365 | PyObject * obj0 = 0 ; | |
8366 | char * kwnames[] = { | |
8367 | (char *) "bmp", NULL | |
8368 | }; | |
8369 | ||
8370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
8371 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8372 | if (!SWIG_IsOK(res1)) { | |
8373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8374 | } | |
8375 | if (!argp1) { | |
8376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8377 | } | |
8378 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8379 | { | |
8380 | if (!wxPyCheckForApp()) SWIG_fail; | |
8381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8382 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
8383 | wxPyEndAllowThreads(__tstate); | |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
8385 | } | |
8386 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8387 | return resultobj; | |
8388 | fail: | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
8393 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8394 | PyObject *resultobj = 0; | |
8395 | wxBitmap *arg1 = 0 ; | |
8396 | wxColour *arg2 = 0 ; | |
8397 | int arg3 = (int) 0 ; | |
8398 | wxRegion *result = 0 ; | |
8399 | void *argp1 = 0 ; | |
8400 | int res1 = 0 ; | |
8401 | wxColour temp2 ; | |
8402 | int val3 ; | |
8403 | int ecode3 = 0 ; | |
8404 | PyObject * obj0 = 0 ; | |
8405 | PyObject * obj1 = 0 ; | |
8406 | PyObject * obj2 = 0 ; | |
8407 | char * kwnames[] = { | |
8408 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
8409 | }; | |
8410 | ||
8411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8412 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8413 | if (!SWIG_IsOK(res1)) { | |
8414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8415 | } | |
8416 | if (!argp1) { | |
8417 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8418 | } | |
8419 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8420 | { | |
8421 | arg2 = &temp2; | |
8422 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8423 | } | |
8424 | if (obj2) { | |
8425 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8426 | if (!SWIG_IsOK(ecode3)) { | |
8427 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
8428 | } | |
8429 | arg3 = static_cast< int >(val3); | |
8430 | } | |
8431 | { | |
8432 | if (!wxPyCheckForApp()) SWIG_fail; | |
8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8434 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
8435 | wxPyEndAllowThreads(__tstate); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
8438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8439 | return resultobj; | |
8440 | fail: | |
8441 | return NULL; | |
8442 | } | |
8443 | ||
8444 | ||
8445 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8446 | PyObject *resultobj = 0; | |
8447 | int arg1 ; | |
8448 | wxPoint *arg2 = (wxPoint *) 0 ; | |
8449 | int arg3 = (int) wxWINDING_RULE ; | |
8450 | wxRegion *result = 0 ; | |
8451 | int val3 ; | |
8452 | int ecode3 = 0 ; | |
8453 | PyObject * obj0 = 0 ; | |
8454 | PyObject * obj1 = 0 ; | |
8455 | char * kwnames[] = { | |
8456 | (char *) "points",(char *) "fillStyle", NULL | |
8457 | }; | |
8458 | ||
8459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
8460 | { | |
8461 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
8462 | if (arg2 == NULL) SWIG_fail; | |
8463 | } | |
8464 | if (obj1) { | |
8465 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
8466 | if (!SWIG_IsOK(ecode3)) { | |
8467 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
8468 | } | |
8469 | arg3 = static_cast< int >(val3); | |
8470 | } | |
8471 | { | |
8472 | if (!wxPyCheckForApp()) SWIG_fail; | |
8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8474 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
8475 | wxPyEndAllowThreads(__tstate); | |
8476 | if (PyErr_Occurred()) SWIG_fail; | |
8477 | } | |
8478 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
8479 | { | |
8480 | if (arg2) delete [] arg2; | |
8481 | } | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | { | |
8485 | if (arg2) delete [] arg2; | |
8486 | } | |
8487 | return NULL; | |
d55e5bfc RD |
8488 | } |
8489 | ||
8490 | ||
554f62e9 RD |
8491 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8492 | PyObject *resultobj = 0; | |
8493 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8494 | void *argp1 = 0 ; | |
8495 | int res1 = 0 ; | |
8496 | PyObject *swig_obj[1] ; | |
8497 | ||
8498 | if (!args) SWIG_fail; | |
8499 | swig_obj[0] = args; | |
8500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
8501 | if (!SWIG_IsOK(res1)) { | |
8502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8503 | } | |
8504 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8505 | { | |
8506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8507 | delete arg1; | |
d55e5bfc | 8508 | |
554f62e9 RD |
8509 | wxPyEndAllowThreads(__tstate); |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
8512 | resultobj = SWIG_Py_Void(); | |
8513 | return resultobj; | |
8514 | fail: | |
8515 | return NULL; | |
d55e5bfc RD |
8516 | } |
8517 | ||
8518 | ||
554f62e9 RD |
8519 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8520 | PyObject *resultobj = 0; | |
8521 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8522 | void *argp1 = 0 ; | |
8523 | int res1 = 0 ; | |
8524 | PyObject *swig_obj[1] ; | |
8525 | ||
8526 | if (!args) SWIG_fail; | |
8527 | swig_obj[0] = args; | |
8528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8529 | if (!SWIG_IsOK(res1)) { | |
8530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8531 | } | |
8532 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8533 | { | |
8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8535 | (arg1)->Clear(); | |
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
8539 | resultobj = SWIG_Py_Void(); | |
8540 | return resultobj; | |
8541 | fail: | |
8542 | return NULL; | |
8543 | } | |
8544 | ||
8545 | ||
8546 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8547 | PyObject *resultobj = 0; | |
8548 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8549 | int arg2 ; | |
8550 | int arg3 ; | |
8551 | bool result; | |
8552 | void *argp1 = 0 ; | |
8553 | int res1 = 0 ; | |
8554 | int val2 ; | |
8555 | int ecode2 = 0 ; | |
8556 | int val3 ; | |
8557 | int ecode3 = 0 ; | |
8558 | PyObject * obj0 = 0 ; | |
8559 | PyObject * obj1 = 0 ; | |
8560 | PyObject * obj2 = 0 ; | |
8561 | char * kwnames[] = { | |
8562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8563 | }; | |
8564 | ||
8565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8567 | if (!SWIG_IsOK(res1)) { | |
8568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8569 | } | |
8570 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8572 | if (!SWIG_IsOK(ecode2)) { | |
8573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
8574 | } | |
8575 | arg2 = static_cast< int >(val2); | |
8576 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8577 | if (!SWIG_IsOK(ecode3)) { | |
8578 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8579 | } | |
8580 | arg3 = static_cast< int >(val3); | |
8581 | { | |
8582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8583 | result = (bool)(arg1)->Offset(arg2,arg3); | |
8584 | wxPyEndAllowThreads(__tstate); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | } | |
8587 | { | |
8588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8589 | } | |
8590 | return resultobj; | |
8591 | fail: | |
8592 | return NULL; | |
8593 | } | |
8594 | ||
8595 | ||
8596 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8597 | PyObject *resultobj = 0; | |
8598 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8599 | int arg2 ; | |
8600 | int arg3 ; | |
8601 | wxRegionContain result; | |
8602 | void *argp1 = 0 ; | |
8603 | int res1 = 0 ; | |
8604 | int val2 ; | |
8605 | int ecode2 = 0 ; | |
8606 | int val3 ; | |
8607 | int ecode3 = 0 ; | |
8608 | PyObject * obj0 = 0 ; | |
8609 | PyObject * obj1 = 0 ; | |
8610 | PyObject * obj2 = 0 ; | |
8611 | char * kwnames[] = { | |
8612 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8613 | }; | |
8614 | ||
8615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8617 | if (!SWIG_IsOK(res1)) { | |
8618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8619 | } | |
8620 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8621 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8622 | if (!SWIG_IsOK(ecode2)) { | |
8623 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
8624 | } | |
8625 | arg2 = static_cast< int >(val2); | |
8626 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8627 | if (!SWIG_IsOK(ecode3)) { | |
8628 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
8629 | } | |
8630 | arg3 = static_cast< int >(val3); | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8638 | return resultobj; | |
8639 | fail: | |
8640 | return NULL; | |
8641 | } | |
8642 | ||
8643 | ||
8644 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8645 | PyObject *resultobj = 0; | |
8646 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8647 | wxPoint *arg2 = 0 ; | |
8648 | wxRegionContain result; | |
8649 | void *argp1 = 0 ; | |
8650 | int res1 = 0 ; | |
8651 | wxPoint temp2 ; | |
8652 | PyObject * obj0 = 0 ; | |
8653 | PyObject * obj1 = 0 ; | |
8654 | char * kwnames[] = { | |
8655 | (char *) "self",(char *) "pt", NULL | |
8656 | }; | |
8657 | ||
8658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8660 | if (!SWIG_IsOK(res1)) { | |
8661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8662 | } | |
8663 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8664 | { | |
8665 | arg2 = &temp2; | |
8666 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8667 | } | |
8668 | { | |
8669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8670 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
8671 | wxPyEndAllowThreads(__tstate); | |
8672 | if (PyErr_Occurred()) SWIG_fail; | |
8673 | } | |
8674 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8675 | return resultobj; | |
8676 | fail: | |
8677 | return NULL; | |
8678 | } | |
8679 | ||
8680 | ||
8681 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8682 | PyObject *resultobj = 0; | |
8683 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8684 | wxRect *arg2 = 0 ; | |
8685 | wxRegionContain result; | |
8686 | void *argp1 = 0 ; | |
8687 | int res1 = 0 ; | |
8688 | wxRect temp2 ; | |
8689 | PyObject * obj0 = 0 ; | |
8690 | PyObject * obj1 = 0 ; | |
8691 | char * kwnames[] = { | |
8692 | (char *) "self",(char *) "rect", NULL | |
8693 | }; | |
8694 | ||
8695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8697 | if (!SWIG_IsOK(res1)) { | |
8698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8699 | } | |
8700 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8701 | { | |
8702 | arg2 = &temp2; | |
8703 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8704 | } | |
8705 | { | |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8712 | return resultobj; | |
8713 | fail: | |
8714 | return NULL; | |
8715 | } | |
8716 | ||
8717 | ||
8718 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8719 | PyObject *resultobj = 0; | |
8720 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8721 | int arg2 ; | |
8722 | int arg3 ; | |
8723 | int arg4 ; | |
8724 | int arg5 ; | |
8725 | wxRegionContain result; | |
8726 | void *argp1 = 0 ; | |
8727 | int res1 = 0 ; | |
8728 | int val2 ; | |
8729 | int ecode2 = 0 ; | |
8730 | int val3 ; | |
8731 | int ecode3 = 0 ; | |
8732 | int val4 ; | |
8733 | int ecode4 = 0 ; | |
8734 | int val5 ; | |
8735 | int ecode5 = 0 ; | |
8736 | PyObject * obj0 = 0 ; | |
8737 | PyObject * obj1 = 0 ; | |
8738 | PyObject * obj2 = 0 ; | |
8739 | PyObject * obj3 = 0 ; | |
8740 | PyObject * obj4 = 0 ; | |
8741 | char * kwnames[] = { | |
8742 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
8743 | }; | |
8744 | ||
8745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8747 | if (!SWIG_IsOK(res1)) { | |
8748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8749 | } | |
8750 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8751 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8752 | if (!SWIG_IsOK(ecode2)) { | |
8753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
8754 | } | |
8755 | arg2 = static_cast< int >(val2); | |
8756 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8757 | if (!SWIG_IsOK(ecode3)) { | |
8758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
8759 | } | |
8760 | arg3 = static_cast< int >(val3); | |
8761 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8762 | if (!SWIG_IsOK(ecode4)) { | |
8763 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
8764 | } | |
8765 | arg4 = static_cast< int >(val4); | |
8766 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8767 | if (!SWIG_IsOK(ecode5)) { | |
8768 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
8769 | } | |
8770 | arg5 = static_cast< int >(val5); | |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
8774 | wxPyEndAllowThreads(__tstate); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8778 | return resultobj; | |
8779 | fail: | |
8780 | return NULL; | |
d55e5bfc RD |
8781 | } |
8782 | ||
8783 | ||
554f62e9 RD |
8784 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8785 | PyObject *resultobj = 0; | |
8786 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8787 | wxRect result; | |
8788 | void *argp1 = 0 ; | |
8789 | int res1 = 0 ; | |
8790 | PyObject *swig_obj[1] ; | |
8791 | ||
8792 | if (!args) SWIG_fail; | |
8793 | swig_obj[0] = args; | |
8794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8795 | if (!SWIG_IsOK(res1)) { | |
8796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8797 | } | |
8798 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8799 | { | |
8800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8801 | result = (arg1)->GetBox(); | |
8802 | wxPyEndAllowThreads(__tstate); | |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
8804 | } | |
8805 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
8806 | return resultobj; | |
8807 | fail: | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
8812 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8813 | PyObject *resultobj = 0; | |
8814 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8815 | int arg2 ; | |
8816 | int arg3 ; | |
8817 | int arg4 ; | |
8818 | int arg5 ; | |
8819 | bool result; | |
8820 | void *argp1 = 0 ; | |
8821 | int res1 = 0 ; | |
8822 | int val2 ; | |
8823 | int ecode2 = 0 ; | |
8824 | int val3 ; | |
8825 | int ecode3 = 0 ; | |
8826 | int val4 ; | |
8827 | int ecode4 = 0 ; | |
8828 | int val5 ; | |
8829 | int ecode5 = 0 ; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | PyObject * obj1 = 0 ; | |
8832 | PyObject * obj2 = 0 ; | |
8833 | PyObject * obj3 = 0 ; | |
8834 | PyObject * obj4 = 0 ; | |
8835 | char * kwnames[] = { | |
8836 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8837 | }; | |
8838 | ||
8839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8841 | if (!SWIG_IsOK(res1)) { | |
8842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8843 | } | |
8844 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8846 | if (!SWIG_IsOK(ecode2)) { | |
8847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
8848 | } | |
8849 | arg2 = static_cast< int >(val2); | |
8850 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8851 | if (!SWIG_IsOK(ecode3)) { | |
8852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
8853 | } | |
8854 | arg3 = static_cast< int >(val3); | |
8855 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8856 | if (!SWIG_IsOK(ecode4)) { | |
8857 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
8858 | } | |
8859 | arg4 = static_cast< int >(val4); | |
8860 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8861 | if (!SWIG_IsOK(ecode5)) { | |
8862 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
8863 | } | |
8864 | arg5 = static_cast< int >(val5); | |
8865 | { | |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
8871 | { | |
8872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8873 | } | |
8874 | return resultobj; | |
8875 | fail: | |
8876 | return NULL; | |
8877 | } | |
8878 | ||
8879 | ||
8880 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8881 | PyObject *resultobj = 0; | |
8882 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8883 | wxRect *arg2 = 0 ; | |
8884 | bool result; | |
8885 | void *argp1 = 0 ; | |
8886 | int res1 = 0 ; | |
8887 | wxRect temp2 ; | |
8888 | PyObject * obj0 = 0 ; | |
8889 | PyObject * obj1 = 0 ; | |
8890 | char * kwnames[] = { | |
8891 | (char *) "self",(char *) "rect", NULL | |
8892 | }; | |
8893 | ||
8894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8896 | if (!SWIG_IsOK(res1)) { | |
8897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8898 | } | |
8899 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8900 | { | |
8901 | arg2 = &temp2; | |
8902 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8903 | } | |
8904 | { | |
8905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8906 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | { | |
8911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8912 | } | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj = 0; | |
8921 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8922 | wxRegion *arg2 = 0 ; | |
8923 | bool result; | |
8924 | void *argp1 = 0 ; | |
8925 | int res1 = 0 ; | |
8926 | void *argp2 = 0 ; | |
8927 | int res2 = 0 ; | |
8928 | PyObject * obj0 = 0 ; | |
8929 | PyObject * obj1 = 0 ; | |
8930 | char * kwnames[] = { | |
8931 | (char *) "self",(char *) "region", NULL | |
8932 | }; | |
8933 | ||
8934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8936 | if (!SWIG_IsOK(res1)) { | |
8937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8938 | } | |
8939 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8940 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8941 | if (!SWIG_IsOK(res2)) { | |
8942 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8943 | } | |
8944 | if (!argp2) { | |
8945 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8946 | } | |
8947 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8948 | { | |
8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8950 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | } | |
8954 | { | |
8955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8956 | } | |
8957 | return resultobj; | |
8958 | fail: | |
8959 | return NULL; | |
d55e5bfc RD |
8960 | } |
8961 | ||
8962 | ||
554f62e9 RD |
8963 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8964 | PyObject *resultobj = 0; | |
8965 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8966 | bool result; | |
8967 | void *argp1 = 0 ; | |
8968 | int res1 = 0 ; | |
8969 | PyObject *swig_obj[1] ; | |
8970 | ||
8971 | if (!args) SWIG_fail; | |
8972 | swig_obj[0] = args; | |
8973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8974 | if (!SWIG_IsOK(res1)) { | |
8975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8976 | } | |
8977 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8978 | { | |
8979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8980 | result = (bool)(arg1)->IsEmpty(); | |
8981 | wxPyEndAllowThreads(__tstate); | |
8982 | if (PyErr_Occurred()) SWIG_fail; | |
8983 | } | |
8984 | { | |
8985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8986 | } | |
8987 | return resultobj; | |
8988 | fail: | |
8989 | return NULL; | |
8990 | } | |
8991 | ||
8992 | ||
8993 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8994 | PyObject *resultobj = 0; | |
8995 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8996 | int arg2 ; | |
8997 | int arg3 ; | |
8998 | int arg4 ; | |
8999 | int arg5 ; | |
9000 | bool result; | |
9001 | void *argp1 = 0 ; | |
9002 | int res1 = 0 ; | |
9003 | int val2 ; | |
9004 | int ecode2 = 0 ; | |
9005 | int val3 ; | |
9006 | int ecode3 = 0 ; | |
9007 | int val4 ; | |
9008 | int ecode4 = 0 ; | |
9009 | int val5 ; | |
9010 | int ecode5 = 0 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | PyObject * obj1 = 0 ; | |
9013 | PyObject * obj2 = 0 ; | |
9014 | PyObject * obj3 = 0 ; | |
9015 | PyObject * obj4 = 0 ; | |
9016 | char * kwnames[] = { | |
9017 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9018 | }; | |
9019 | ||
9020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9022 | if (!SWIG_IsOK(res1)) { | |
9023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9024 | } | |
9025 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9027 | if (!SWIG_IsOK(ecode2)) { | |
9028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
9029 | } | |
9030 | arg2 = static_cast< int >(val2); | |
9031 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9032 | if (!SWIG_IsOK(ecode3)) { | |
9033 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
9034 | } | |
9035 | arg3 = static_cast< int >(val3); | |
9036 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9037 | if (!SWIG_IsOK(ecode4)) { | |
9038 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
9039 | } | |
9040 | arg4 = static_cast< int >(val4); | |
9041 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9042 | if (!SWIG_IsOK(ecode5)) { | |
9043 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
9044 | } | |
9045 | arg5 = static_cast< int >(val5); | |
9046 | { | |
9047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9048 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj = 0; | |
9063 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9064 | wxRect *arg2 = 0 ; | |
9065 | bool result; | |
9066 | void *argp1 = 0 ; | |
9067 | int res1 = 0 ; | |
9068 | wxRect temp2 ; | |
9069 | PyObject * obj0 = 0 ; | |
9070 | PyObject * obj1 = 0 ; | |
9071 | char * kwnames[] = { | |
9072 | (char *) "self",(char *) "rect", NULL | |
9073 | }; | |
9074 | ||
9075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9077 | if (!SWIG_IsOK(res1)) { | |
9078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9079 | } | |
9080 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9081 | { | |
9082 | arg2 = &temp2; | |
9083 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9084 | } | |
9085 | { | |
9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9087 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | { | |
9092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9093 | } | |
9094 | return resultobj; | |
9095 | fail: | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
9100 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9101 | PyObject *resultobj = 0; | |
9102 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9103 | wxRegion *arg2 = 0 ; | |
9104 | bool result; | |
9105 | void *argp1 = 0 ; | |
9106 | int res1 = 0 ; | |
9107 | void *argp2 = 0 ; | |
9108 | int res2 = 0 ; | |
9109 | PyObject * obj0 = 0 ; | |
9110 | PyObject * obj1 = 0 ; | |
9111 | char * kwnames[] = { | |
9112 | (char *) "self",(char *) "region", NULL | |
9113 | }; | |
9114 | ||
9115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9117 | if (!SWIG_IsOK(res1)) { | |
9118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9119 | } | |
9120 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9121 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9122 | if (!SWIG_IsOK(res2)) { | |
9123 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9124 | } | |
9125 | if (!argp2) { | |
9126 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9127 | } | |
9128 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | { | |
9136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9137 | } | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj = 0; | |
9146 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9147 | int arg2 ; | |
9148 | int arg3 ; | |
9149 | int arg4 ; | |
9150 | int arg5 ; | |
9151 | bool result; | |
9152 | void *argp1 = 0 ; | |
9153 | int res1 = 0 ; | |
9154 | int val2 ; | |
9155 | int ecode2 = 0 ; | |
9156 | int val3 ; | |
9157 | int ecode3 = 0 ; | |
9158 | int val4 ; | |
9159 | int ecode4 = 0 ; | |
9160 | int val5 ; | |
9161 | int ecode5 = 0 ; | |
9162 | PyObject * obj0 = 0 ; | |
9163 | PyObject * obj1 = 0 ; | |
9164 | PyObject * obj2 = 0 ; | |
9165 | PyObject * obj3 = 0 ; | |
9166 | PyObject * obj4 = 0 ; | |
9167 | char * kwnames[] = { | |
9168 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9169 | }; | |
9170 | ||
9171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9173 | if (!SWIG_IsOK(res1)) { | |
9174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9175 | } | |
9176 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9177 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9178 | if (!SWIG_IsOK(ecode2)) { | |
9179 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
9180 | } | |
9181 | arg2 = static_cast< int >(val2); | |
9182 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9183 | if (!SWIG_IsOK(ecode3)) { | |
9184 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
9185 | } | |
9186 | arg3 = static_cast< int >(val3); | |
9187 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9188 | if (!SWIG_IsOK(ecode4)) { | |
9189 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
9190 | } | |
9191 | arg4 = static_cast< int >(val4); | |
9192 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9193 | if (!SWIG_IsOK(ecode5)) { | |
9194 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
9195 | } | |
9196 | arg5 = static_cast< int >(val5); | |
9197 | { | |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
9203 | { | |
9204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9205 | } | |
9206 | return resultobj; | |
9207 | fail: | |
9208 | return NULL; | |
9209 | } | |
9210 | ||
9211 | ||
9212 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9213 | PyObject *resultobj = 0; | |
9214 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9215 | wxRect *arg2 = 0 ; | |
9216 | bool result; | |
9217 | void *argp1 = 0 ; | |
9218 | int res1 = 0 ; | |
9219 | wxRect temp2 ; | |
9220 | PyObject * obj0 = 0 ; | |
9221 | PyObject * obj1 = 0 ; | |
9222 | char * kwnames[] = { | |
9223 | (char *) "self",(char *) "rect", NULL | |
9224 | }; | |
9225 | ||
9226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9228 | if (!SWIG_IsOK(res1)) { | |
9229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9230 | } | |
9231 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9232 | { | |
9233 | arg2 = &temp2; | |
9234 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9235 | } | |
9236 | { | |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | { | |
9243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9244 | } | |
9245 | return resultobj; | |
9246 | fail: | |
9247 | return NULL; | |
9248 | } | |
9249 | ||
9250 | ||
9251 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9252 | PyObject *resultobj = 0; | |
9253 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9254 | wxRegion *arg2 = 0 ; | |
9255 | bool result; | |
9256 | void *argp1 = 0 ; | |
9257 | int res1 = 0 ; | |
9258 | void *argp2 = 0 ; | |
9259 | int res2 = 0 ; | |
9260 | PyObject * obj0 = 0 ; | |
9261 | PyObject * obj1 = 0 ; | |
9262 | char * kwnames[] = { | |
9263 | (char *) "self",(char *) "region", NULL | |
9264 | }; | |
9265 | ||
9266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9268 | if (!SWIG_IsOK(res1)) { | |
9269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9270 | } | |
9271 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9272 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9273 | if (!SWIG_IsOK(res2)) { | |
9274 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9275 | } | |
9276 | if (!argp2) { | |
9277 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9278 | } | |
9279 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9280 | { | |
9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9282 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
9283 | wxPyEndAllowThreads(__tstate); | |
9284 | if (PyErr_Occurred()) SWIG_fail; | |
9285 | } | |
9286 | { | |
9287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9288 | } | |
9289 | return resultobj; | |
9290 | fail: | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj = 0; | |
9297 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9298 | int arg2 ; | |
9299 | int arg3 ; | |
9300 | int arg4 ; | |
9301 | int arg5 ; | |
9302 | bool result; | |
9303 | void *argp1 = 0 ; | |
9304 | int res1 = 0 ; | |
9305 | int val2 ; | |
9306 | int ecode2 = 0 ; | |
9307 | int val3 ; | |
9308 | int ecode3 = 0 ; | |
9309 | int val4 ; | |
9310 | int ecode4 = 0 ; | |
9311 | int val5 ; | |
9312 | int ecode5 = 0 ; | |
9313 | PyObject * obj0 = 0 ; | |
9314 | PyObject * obj1 = 0 ; | |
9315 | PyObject * obj2 = 0 ; | |
9316 | PyObject * obj3 = 0 ; | |
9317 | PyObject * obj4 = 0 ; | |
9318 | char * kwnames[] = { | |
9319 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9320 | }; | |
9321 | ||
9322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9324 | if (!SWIG_IsOK(res1)) { | |
9325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9326 | } | |
9327 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9328 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9329 | if (!SWIG_IsOK(ecode2)) { | |
9330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
9331 | } | |
9332 | arg2 = static_cast< int >(val2); | |
9333 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9334 | if (!SWIG_IsOK(ecode3)) { | |
9335 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
9336 | } | |
9337 | arg3 = static_cast< int >(val3); | |
9338 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9339 | if (!SWIG_IsOK(ecode4)) { | |
9340 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
9341 | } | |
9342 | arg4 = static_cast< int >(val4); | |
9343 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9344 | if (!SWIG_IsOK(ecode5)) { | |
9345 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
9346 | } | |
9347 | arg5 = static_cast< int >(val5); | |
9348 | { | |
9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9350 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
9354 | { | |
9355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9356 | } | |
9357 | return resultobj; | |
9358 | fail: | |
9359 | return NULL; | |
9360 | } | |
9361 | ||
9362 | ||
9363 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9364 | PyObject *resultobj = 0; | |
9365 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9366 | wxRect *arg2 = 0 ; | |
9367 | bool result; | |
9368 | void *argp1 = 0 ; | |
9369 | int res1 = 0 ; | |
9370 | wxRect temp2 ; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | PyObject * obj1 = 0 ; | |
9373 | char * kwnames[] = { | |
9374 | (char *) "self",(char *) "rect", NULL | |
9375 | }; | |
9376 | ||
9377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9379 | if (!SWIG_IsOK(res1)) { | |
9380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9381 | } | |
9382 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9383 | { | |
9384 | arg2 = &temp2; | |
9385 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9386 | } | |
9387 | { | |
9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9389 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
9393 | { | |
9394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9395 | } | |
9396 | return resultobj; | |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
9402 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9403 | PyObject *resultobj = 0; | |
9404 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9405 | wxRegion *arg2 = 0 ; | |
9406 | bool result; | |
9407 | void *argp1 = 0 ; | |
9408 | int res1 = 0 ; | |
9409 | void *argp2 = 0 ; | |
9410 | int res2 = 0 ; | |
9411 | PyObject * obj0 = 0 ; | |
9412 | PyObject * obj1 = 0 ; | |
9413 | char * kwnames[] = { | |
9414 | (char *) "self",(char *) "region", NULL | |
9415 | }; | |
9416 | ||
9417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
9418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9419 | if (!SWIG_IsOK(res1)) { | |
9420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9421 | } | |
9422 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9423 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
9424 | if (!SWIG_IsOK(res2)) { | |
9425 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9426 | } | |
9427 | if (!argp2) { | |
9428 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
9429 | } | |
9430 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
9431 | { | |
9432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9433 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | { | |
9438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9439 | } | |
9440 | return resultobj; | |
9441 | fail: | |
9442 | return NULL; | |
d55e5bfc RD |
9443 | } |
9444 | ||
9445 | ||
554f62e9 RD |
9446 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9447 | PyObject *resultobj = 0; | |
9448 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9449 | SwigValueWrapper<wxBitmap > result; | |
9450 | void *argp1 = 0 ; | |
9451 | int res1 = 0 ; | |
9452 | PyObject *swig_obj[1] ; | |
9453 | ||
9454 | if (!args) SWIG_fail; | |
9455 | swig_obj[0] = args; | |
9456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9457 | if (!SWIG_IsOK(res1)) { | |
9458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9459 | } | |
9460 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9461 | { | |
9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9463 | result = (arg1)->ConvertToBitmap(); | |
9464 | wxPyEndAllowThreads(__tstate); | |
9465 | if (PyErr_Occurred()) SWIG_fail; | |
9466 | } | |
9467 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
9468 | return resultobj; | |
9469 | fail: | |
9470 | return NULL; | |
9471 | } | |
9472 | ||
9473 | ||
9474 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9475 | PyObject *resultobj = 0; | |
9476 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9477 | wxBitmap *arg2 = 0 ; | |
9478 | bool result; | |
9479 | void *argp1 = 0 ; | |
9480 | int res1 = 0 ; | |
9481 | void *argp2 = 0 ; | |
9482 | int res2 = 0 ; | |
9483 | PyObject * obj0 = 0 ; | |
9484 | PyObject * obj1 = 0 ; | |
9485 | char * kwnames[] = { | |
9486 | (char *) "self",(char *) "bmp", NULL | |
9487 | }; | |
9488 | ||
9489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9491 | if (!SWIG_IsOK(res1)) { | |
9492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9493 | } | |
9494 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9495 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9496 | if (!SWIG_IsOK(res2)) { | |
9497 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9498 | } | |
9499 | if (!argp2) { | |
9500 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9501 | } | |
9502 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9503 | { | |
9504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9505 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
9506 | wxPyEndAllowThreads(__tstate); | |
9507 | if (PyErr_Occurred()) SWIG_fail; | |
9508 | } | |
9509 | { | |
9510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9511 | } | |
9512 | return resultobj; | |
9513 | fail: | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj = 0; | |
9520 | wxRegion *arg1 = (wxRegion *) 0 ; | |
9521 | wxBitmap *arg2 = 0 ; | |
9522 | wxColour *arg3 = 0 ; | |
9523 | int arg4 = (int) 0 ; | |
9524 | bool result; | |
9525 | void *argp1 = 0 ; | |
9526 | int res1 = 0 ; | |
9527 | void *argp2 = 0 ; | |
9528 | int res2 = 0 ; | |
9529 | wxColour temp3 ; | |
9530 | int val4 ; | |
9531 | int ecode4 = 0 ; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | PyObject * obj1 = 0 ; | |
9534 | PyObject * obj2 = 0 ; | |
9535 | PyObject * obj3 = 0 ; | |
9536 | char * kwnames[] = { | |
9537 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
9538 | }; | |
9539 | ||
9540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
9542 | if (!SWIG_IsOK(res1)) { | |
9543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
9544 | } | |
9545 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9546 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9547 | if (!SWIG_IsOK(res2)) { | |
9548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9549 | } | |
9550 | if (!argp2) { | |
9551 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9552 | } | |
9553 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9554 | { | |
9555 | arg3 = &temp3; | |
9556 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9557 | } | |
9558 | if (obj3) { | |
9559 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9560 | if (!SWIG_IsOK(ecode4)) { | |
9561 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
9562 | } | |
9563 | arg4 = static_cast< int >(val4); | |
9564 | } | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | { | |
9572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9573 | } | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
d55e5bfc RD |
9577 | } |
9578 | ||
9579 | ||
554f62e9 RD |
9580 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9581 | PyObject *obj; | |
9582 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9583 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
9584 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9585 | } |
9586 | ||
554f62e9 RD |
9587 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9588 | return SWIG_Python_InitShadowInstance(args); | |
9589 | } | |
d55e5bfc | 9590 | |
554f62e9 RD |
9591 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9592 | PyObject *resultobj = 0; | |
9593 | wxRegion *arg1 = 0 ; | |
9594 | wxRegionIterator *result = 0 ; | |
9595 | void *argp1 = 0 ; | |
9596 | int res1 = 0 ; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | char * kwnames[] = { | |
9599 | (char *) "region", NULL | |
9600 | }; | |
9601 | ||
9602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
9603 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
9604 | if (!SWIG_IsOK(res1)) { | |
9605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
9606 | } | |
9607 | if (!argp1) { | |
9608 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
9609 | } | |
9610 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
9611 | { | |
9612 | if (!wxPyCheckForApp()) SWIG_fail; | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
9619 | return resultobj; | |
9620 | fail: | |
9621 | return NULL; | |
d55e5bfc RD |
9622 | } |
9623 | ||
9624 | ||
554f62e9 RD |
9625 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9626 | PyObject *resultobj = 0; | |
9627 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9628 | void *argp1 = 0 ; | |
9629 | int res1 = 0 ; | |
9630 | PyObject *swig_obj[1] ; | |
9631 | ||
9632 | if (!args) SWIG_fail; | |
9633 | swig_obj[0] = args; | |
9634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
9635 | if (!SWIG_IsOK(res1)) { | |
9636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9637 | } | |
9638 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | delete arg1; | |
d55e5bfc | 9642 | |
554f62e9 RD |
9643 | wxPyEndAllowThreads(__tstate); |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | resultobj = SWIG_Py_Void(); | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
d55e5bfc RD |
9650 | } |
9651 | ||
9652 | ||
554f62e9 RD |
9653 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9654 | PyObject *resultobj = 0; | |
9655 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9656 | int result; | |
9657 | void *argp1 = 0 ; | |
9658 | int res1 = 0 ; | |
9659 | PyObject *swig_obj[1] ; | |
9660 | ||
9661 | if (!args) SWIG_fail; | |
9662 | swig_obj[0] = args; | |
9663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9664 | if (!SWIG_IsOK(res1)) { | |
9665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9666 | } | |
9667 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9668 | { | |
9669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9670 | result = (int)(arg1)->GetX(); | |
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
d55e5bfc RD |
9678 | } |
9679 | ||
9680 | ||
554f62e9 RD |
9681 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9682 | PyObject *resultobj = 0; | |
9683 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9684 | int result; | |
9685 | void *argp1 = 0 ; | |
9686 | int res1 = 0 ; | |
9687 | PyObject *swig_obj[1] ; | |
9688 | ||
9689 | if (!args) SWIG_fail; | |
9690 | swig_obj[0] = args; | |
9691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9692 | if (!SWIG_IsOK(res1)) { | |
9693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9694 | } | |
9695 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9696 | { | |
9697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9698 | result = (int)(arg1)->GetY(); | |
9699 | wxPyEndAllowThreads(__tstate); | |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
9701 | } | |
9702 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9703 | return resultobj; | |
9704 | fail: | |
9705 | return NULL; | |
d55e5bfc RD |
9706 | } |
9707 | ||
9708 | ||
554f62e9 RD |
9709 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9710 | PyObject *resultobj = 0; | |
9711 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9712 | int result; | |
9713 | void *argp1 = 0 ; | |
9714 | int res1 = 0 ; | |
9715 | PyObject *swig_obj[1] ; | |
9716 | ||
9717 | if (!args) SWIG_fail; | |
9718 | swig_obj[0] = args; | |
9719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9720 | if (!SWIG_IsOK(res1)) { | |
9721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9722 | } | |
9723 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9724 | { | |
9725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9726 | result = (int)(arg1)->GetW(); | |
9727 | wxPyEndAllowThreads(__tstate); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
d55e5bfc RD |
9734 | } |
9735 | ||
9736 | ||
554f62e9 RD |
9737 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9738 | PyObject *resultobj = 0; | |
9739 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9740 | int result; | |
9741 | void *argp1 = 0 ; | |
9742 | int res1 = 0 ; | |
9743 | PyObject *swig_obj[1] ; | |
9744 | ||
9745 | if (!args) SWIG_fail; | |
9746 | swig_obj[0] = args; | |
9747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9748 | if (!SWIG_IsOK(res1)) { | |
9749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9750 | } | |
9751 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | result = (int)(arg1)->GetWidth(); | |
9755 | wxPyEndAllowThreads(__tstate); | |
9756 | if (PyErr_Occurred()) SWIG_fail; | |
9757 | } | |
9758 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9759 | return resultobj; | |
9760 | fail: | |
9761 | return NULL; | |
d55e5bfc RD |
9762 | } |
9763 | ||
9764 | ||
554f62e9 RD |
9765 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9766 | PyObject *resultobj = 0; | |
9767 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9768 | int result; | |
9769 | void *argp1 = 0 ; | |
9770 | int res1 = 0 ; | |
9771 | PyObject *swig_obj[1] ; | |
9772 | ||
9773 | if (!args) SWIG_fail; | |
9774 | swig_obj[0] = args; | |
9775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9776 | if (!SWIG_IsOK(res1)) { | |
9777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9778 | } | |
9779 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (int)(arg1)->GetH(); | |
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
9786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9787 | return resultobj; | |
9788 | fail: | |
9789 | return NULL; | |
d55e5bfc RD |
9790 | } |
9791 | ||
9792 | ||
554f62e9 RD |
9793 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9794 | PyObject *resultobj = 0; | |
9795 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9796 | int result; | |
9797 | void *argp1 = 0 ; | |
9798 | int res1 = 0 ; | |
9799 | PyObject *swig_obj[1] ; | |
9800 | ||
9801 | if (!args) SWIG_fail; | |
9802 | swig_obj[0] = args; | |
9803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9804 | if (!SWIG_IsOK(res1)) { | |
9805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9806 | } | |
9807 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9808 | { | |
9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9810 | result = (int)(arg1)->GetHeight(); | |
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
9814 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | return NULL; | |
d55e5bfc RD |
9818 | } |
9819 | ||
9820 | ||
554f62e9 RD |
9821 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9822 | PyObject *resultobj = 0; | |
9823 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9824 | wxRect result; | |
9825 | void *argp1 = 0 ; | |
9826 | int res1 = 0 ; | |
9827 | PyObject *swig_obj[1] ; | |
9828 | ||
9829 | if (!args) SWIG_fail; | |
9830 | swig_obj[0] = args; | |
9831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9832 | if (!SWIG_IsOK(res1)) { | |
9833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9834 | } | |
9835 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9836 | { | |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9838 | result = (arg1)->GetRect(); | |
9839 | wxPyEndAllowThreads(__tstate); | |
9840 | if (PyErr_Occurred()) SWIG_fail; | |
9841 | } | |
9842 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9843 | return resultobj; | |
9844 | fail: | |
9845 | return NULL; | |
d55e5bfc RD |
9846 | } |
9847 | ||
9848 | ||
554f62e9 RD |
9849 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9850 | PyObject *resultobj = 0; | |
9851 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9852 | bool result; | |
9853 | void *argp1 = 0 ; | |
9854 | int res1 = 0 ; | |
9855 | PyObject *swig_obj[1] ; | |
9856 | ||
9857 | if (!args) SWIG_fail; | |
9858 | swig_obj[0] = args; | |
9859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9860 | if (!SWIG_IsOK(res1)) { | |
9861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9862 | } | |
9863 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | result = (bool)(arg1)->HaveRects(); | |
9867 | wxPyEndAllowThreads(__tstate); | |
9868 | if (PyErr_Occurred()) SWIG_fail; | |
9869 | } | |
9870 | { | |
9871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9872 | } | |
9873 | return resultobj; | |
9874 | fail: | |
9875 | return NULL; | |
d55e5bfc RD |
9876 | } |
9877 | ||
9878 | ||
554f62e9 RD |
9879 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9880 | PyObject *resultobj = 0; | |
9881 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9882 | void *argp1 = 0 ; | |
9883 | int res1 = 0 ; | |
9884 | PyObject *swig_obj[1] ; | |
9885 | ||
9886 | if (!args) SWIG_fail; | |
9887 | swig_obj[0] = args; | |
9888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9889 | if (!SWIG_IsOK(res1)) { | |
9890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9891 | } | |
9892 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9893 | { | |
9894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9895 | (arg1)->Reset(); | |
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
9899 | resultobj = SWIG_Py_Void(); | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | return NULL; | |
d55e5bfc RD |
9903 | } |
9904 | ||
9905 | ||
554f62e9 RD |
9906 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9907 | PyObject *resultobj = 0; | |
9908 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9909 | void *argp1 = 0 ; | |
9910 | int res1 = 0 ; | |
9911 | PyObject *swig_obj[1] ; | |
9912 | ||
9913 | if (!args) SWIG_fail; | |
9914 | swig_obj[0] = args; | |
9915 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9916 | if (!SWIG_IsOK(res1)) { | |
9917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9918 | } | |
9919 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | wxRegionIterator_Next(arg1); | |
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | resultobj = SWIG_Py_Void(); | |
9927 | return resultobj; | |
9928 | fail: | |
9929 | return NULL; | |
d55e5bfc RD |
9930 | } |
9931 | ||
9932 | ||
554f62e9 RD |
9933 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9934 | PyObject *resultobj = 0; | |
9935 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9936 | bool result; | |
9937 | void *argp1 = 0 ; | |
9938 | int res1 = 0 ; | |
9939 | PyObject *swig_obj[1] ; | |
9940 | ||
9941 | if (!args) SWIG_fail; | |
9942 | swig_obj[0] = args; | |
9943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9944 | if (!SWIG_IsOK(res1)) { | |
9945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9946 | } | |
9947 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9948 | { | |
9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9950 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | { | |
9955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9956 | } | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
d55e5bfc RD |
9960 | } |
9961 | ||
9962 | ||
554f62e9 RD |
9963 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9964 | PyObject *obj; | |
9965 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9966 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
9967 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9968 | } |
9969 | ||
554f62e9 RD |
9970 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9971 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9972 | } |
9973 | ||
554f62e9 RD |
9974 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9975 | PyObject *resultobj = 0; | |
9976 | wxNativeFontInfo *result = 0 ; | |
9977 | ||
9978 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
9979 | { | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
d55e5bfc RD |
9989 | } |
9990 | ||
9991 | ||
554f62e9 RD |
9992 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9993 | PyObject *resultobj = 0; | |
9994 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9995 | void *argp1 = 0 ; | |
9996 | int res1 = 0 ; | |
9997 | PyObject *swig_obj[1] ; | |
9998 | ||
9999 | if (!args) SWIG_fail; | |
10000 | swig_obj[0] = args; | |
10001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
10002 | if (!SWIG_IsOK(res1)) { | |
10003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10004 | } | |
10005 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | delete arg1; | |
d55e5bfc | 10009 | |
554f62e9 RD |
10010 | wxPyEndAllowThreads(__tstate); |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | resultobj = SWIG_Py_Void(); | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
d55e5bfc RD |
10017 | } |
10018 | ||
10019 | ||
554f62e9 RD |
10020 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10021 | PyObject *resultobj = 0; | |
10022 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10023 | void *argp1 = 0 ; | |
10024 | int res1 = 0 ; | |
10025 | PyObject *swig_obj[1] ; | |
10026 | ||
10027 | if (!args) SWIG_fail; | |
10028 | swig_obj[0] = args; | |
10029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10030 | if (!SWIG_IsOK(res1)) { | |
10031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10032 | } | |
10033 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | (arg1)->Init(); | |
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | resultobj = SWIG_Py_Void(); | |
10041 | return resultobj; | |
10042 | fail: | |
10043 | return NULL; | |
10044 | } | |
10045 | ||
10046 | ||
10047 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10048 | PyObject *resultobj = 0; | |
10049 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10050 | wxFont *arg2 = 0 ; | |
10051 | void *argp1 = 0 ; | |
10052 | int res1 = 0 ; | |
10053 | void *argp2 = 0 ; | |
10054 | int res2 = 0 ; | |
10055 | PyObject * obj0 = 0 ; | |
10056 | PyObject * obj1 = 0 ; | |
10057 | char * kwnames[] = { | |
10058 | (char *) "self",(char *) "font", NULL | |
10059 | }; | |
10060 | ||
10061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
10062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10063 | if (!SWIG_IsOK(res1)) { | |
10064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10065 | } | |
10066 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10067 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
10068 | if (!SWIG_IsOK(res2)) { | |
10069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10070 | } | |
10071 | if (!argp2) { | |
10072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
10073 | } | |
10074 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
10078 | wxPyEndAllowThreads(__tstate); | |
10079 | if (PyErr_Occurred()) SWIG_fail; | |
10080 | } | |
10081 | resultobj = SWIG_Py_Void(); | |
10082 | return resultobj; | |
10083 | fail: | |
10084 | return NULL; | |
d55e5bfc RD |
10085 | } |
10086 | ||
10087 | ||
554f62e9 RD |
10088 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10089 | PyObject *resultobj = 0; | |
10090 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10091 | int result; | |
10092 | void *argp1 = 0 ; | |
10093 | int res1 = 0 ; | |
10094 | PyObject *swig_obj[1] ; | |
10095 | ||
10096 | if (!args) SWIG_fail; | |
10097 | swig_obj[0] = args; | |
10098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10099 | if (!SWIG_IsOK(res1)) { | |
10100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10101 | } | |
10102 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
d55e5bfc RD |
10113 | } |
10114 | ||
10115 | ||
554f62e9 RD |
10116 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10117 | PyObject *resultobj = 0; | |
10118 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10119 | wxSize result; | |
10120 | void *argp1 = 0 ; | |
10121 | int res1 = 0 ; | |
10122 | PyObject *swig_obj[1] ; | |
10123 | ||
10124 | if (!args) SWIG_fail; | |
10125 | swig_obj[0] = args; | |
10126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10127 | if (!SWIG_IsOK(res1)) { | |
10128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10129 | } | |
10130 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10131 | { | |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | return NULL; | |
d55e5bfc RD |
10141 | } |
10142 | ||
10143 | ||
554f62e9 RD |
10144 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10145 | PyObject *resultobj = 0; | |
10146 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10147 | wxFontStyle result; | |
10148 | void *argp1 = 0 ; | |
10149 | int res1 = 0 ; | |
10150 | PyObject *swig_obj[1] ; | |
10151 | ||
10152 | if (!args) SWIG_fail; | |
10153 | swig_obj[0] = args; | |
10154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10155 | if (!SWIG_IsOK(res1)) { | |
10156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10157 | } | |
10158 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10159 | { | |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10161 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
d55e5bfc RD |
10169 | } |
10170 | ||
10171 | ||
554f62e9 RD |
10172 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10173 | PyObject *resultobj = 0; | |
10174 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10175 | wxFontWeight result; | |
10176 | void *argp1 = 0 ; | |
10177 | int res1 = 0 ; | |
10178 | PyObject *swig_obj[1] ; | |
10179 | ||
10180 | if (!args) SWIG_fail; | |
10181 | swig_obj[0] = args; | |
10182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10183 | if (!SWIG_IsOK(res1)) { | |
10184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10185 | } | |
10186 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10187 | { | |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10194 | return resultobj; | |
10195 | fail: | |
10196 | return NULL; | |
d55e5bfc RD |
10197 | } |
10198 | ||
10199 | ||
554f62e9 RD |
10200 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10201 | PyObject *resultobj = 0; | |
10202 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10203 | bool result; | |
10204 | void *argp1 = 0 ; | |
10205 | int res1 = 0 ; | |
10206 | PyObject *swig_obj[1] ; | |
10207 | ||
10208 | if (!args) SWIG_fail; | |
10209 | swig_obj[0] = args; | |
10210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10211 | if (!SWIG_IsOK(res1)) { | |
10212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10213 | } | |
10214 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10215 | { | |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | { | |
10222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10223 | } | |
10224 | return resultobj; | |
10225 | fail: | |
10226 | return NULL; | |
d55e5bfc RD |
10227 | } |
10228 | ||
10229 | ||
554f62e9 RD |
10230 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10231 | PyObject *resultobj = 0; | |
10232 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10233 | wxString result; | |
10234 | void *argp1 = 0 ; | |
10235 | int res1 = 0 ; | |
10236 | PyObject *swig_obj[1] ; | |
10237 | ||
10238 | if (!args) SWIG_fail; | |
10239 | swig_obj[0] = args; | |
10240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10241 | if (!SWIG_IsOK(res1)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10243 | } | |
10244 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10245 | { | |
10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10247 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
10251 | { | |
093d3ff1 | 10252 | #if wxUSE_UNICODE |
554f62e9 | 10253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 10254 | #else |
554f62e9 | 10255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 10256 | #endif |
554f62e9 RD |
10257 | } |
10258 | return resultobj; | |
10259 | fail: | |
10260 | return NULL; | |
d55e5bfc RD |
10261 | } |
10262 | ||
10263 | ||
554f62e9 RD |
10264 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10265 | PyObject *resultobj = 0; | |
10266 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10267 | wxFontFamily result; | |
10268 | void *argp1 = 0 ; | |
10269 | int res1 = 0 ; | |
10270 | PyObject *swig_obj[1] ; | |
10271 | ||
10272 | if (!args) SWIG_fail; | |
10273 | swig_obj[0] = args; | |
10274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10275 | if (!SWIG_IsOK(res1)) { | |
10276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10277 | } | |
10278 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10279 | { | |
10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10281 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
10282 | wxPyEndAllowThreads(__tstate); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10286 | return resultobj; | |
10287 | fail: | |
10288 | return NULL; | |
d55e5bfc RD |
10289 | } |
10290 | ||
10291 | ||
554f62e9 RD |
10292 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10293 | PyObject *resultobj = 0; | |
10294 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10295 | wxFontEncoding result; | |
10296 | void *argp1 = 0 ; | |
10297 | int res1 = 0 ; | |
10298 | PyObject *swig_obj[1] ; | |
10299 | ||
10300 | if (!args) SWIG_fail; | |
10301 | swig_obj[0] = args; | |
10302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10303 | if (!SWIG_IsOK(res1)) { | |
10304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10305 | } | |
10306 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10314 | return resultobj; | |
10315 | fail: | |
10316 | return NULL; | |
10317 | } | |
10318 | ||
10319 | ||
10320 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10321 | PyObject *resultobj = 0; | |
10322 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10323 | int arg2 ; | |
10324 | void *argp1 = 0 ; | |
10325 | int res1 = 0 ; | |
10326 | int val2 ; | |
10327 | int ecode2 = 0 ; | |
10328 | PyObject * obj0 = 0 ; | |
10329 | PyObject * obj1 = 0 ; | |
10330 | char * kwnames[] = { | |
10331 | (char *) "self",(char *) "pointsize", NULL | |
10332 | }; | |
10333 | ||
10334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10336 | if (!SWIG_IsOK(res1)) { | |
10337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10338 | } | |
10339 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10341 | if (!SWIG_IsOK(ecode2)) { | |
10342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
10343 | } | |
10344 | arg2 = static_cast< int >(val2); | |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | (arg1)->SetPointSize(arg2); | |
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = SWIG_Py_Void(); | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj = 0; | |
10360 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10361 | wxSize *arg2 = 0 ; | |
10362 | void *argp1 = 0 ; | |
10363 | int res1 = 0 ; | |
10364 | wxSize temp2 ; | |
10365 | PyObject * obj0 = 0 ; | |
10366 | PyObject * obj1 = 0 ; | |
10367 | char * kwnames[] = { | |
10368 | (char *) "self",(char *) "pixelSize", NULL | |
10369 | }; | |
10370 | ||
10371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10373 | if (!SWIG_IsOK(res1)) { | |
10374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10375 | } | |
10376 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10377 | { | |
10378 | arg2 = &temp2; | |
10379 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
10387 | resultobj = SWIG_Py_Void(); | |
10388 | return resultobj; | |
10389 | fail: | |
10390 | return NULL; | |
10391 | } | |
10392 | ||
10393 | ||
10394 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10395 | PyObject *resultobj = 0; | |
10396 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10397 | wxFontStyle arg2 ; | |
10398 | void *argp1 = 0 ; | |
10399 | int res1 = 0 ; | |
10400 | int val2 ; | |
10401 | int ecode2 = 0 ; | |
10402 | PyObject * obj0 = 0 ; | |
10403 | PyObject * obj1 = 0 ; | |
10404 | char * kwnames[] = { | |
10405 | (char *) "self",(char *) "style", NULL | |
10406 | }; | |
10407 | ||
10408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10410 | if (!SWIG_IsOK(res1)) { | |
10411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10412 | } | |
10413 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10415 | if (!SWIG_IsOK(ecode2)) { | |
10416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
10417 | } | |
10418 | arg2 = static_cast< wxFontStyle >(val2); | |
10419 | { | |
10420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10421 | (arg1)->SetStyle(arg2); | |
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | resultobj = SWIG_Py_Void(); | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10433 | PyObject *resultobj = 0; | |
10434 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10435 | wxFontWeight arg2 ; | |
10436 | void *argp1 = 0 ; | |
10437 | int res1 = 0 ; | |
10438 | int val2 ; | |
10439 | int ecode2 = 0 ; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | PyObject * obj1 = 0 ; | |
10442 | char * kwnames[] = { | |
10443 | (char *) "self",(char *) "weight", NULL | |
10444 | }; | |
10445 | ||
10446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10448 | if (!SWIG_IsOK(res1)) { | |
10449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10450 | } | |
10451 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10452 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10453 | if (!SWIG_IsOK(ecode2)) { | |
10454 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
10455 | } | |
10456 | arg2 = static_cast< wxFontWeight >(val2); | |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | (arg1)->SetWeight(arg2); | |
10460 | wxPyEndAllowThreads(__tstate); | |
10461 | if (PyErr_Occurred()) SWIG_fail; | |
10462 | } | |
10463 | resultobj = SWIG_Py_Void(); | |
10464 | return resultobj; | |
10465 | fail: | |
10466 | return NULL; | |
10467 | } | |
10468 | ||
10469 | ||
10470 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10471 | PyObject *resultobj = 0; | |
10472 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10473 | bool arg2 ; | |
10474 | void *argp1 = 0 ; | |
10475 | int res1 = 0 ; | |
10476 | bool val2 ; | |
10477 | int ecode2 = 0 ; | |
10478 | PyObject * obj0 = 0 ; | |
10479 | PyObject * obj1 = 0 ; | |
10480 | char * kwnames[] = { | |
10481 | (char *) "self",(char *) "underlined", NULL | |
10482 | }; | |
10483 | ||
10484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
10485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10486 | if (!SWIG_IsOK(res1)) { | |
10487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10488 | } | |
10489 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10490 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10491 | if (!SWIG_IsOK(ecode2)) { | |
10492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
10493 | } | |
10494 | arg2 = static_cast< bool >(val2); | |
10495 | { | |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | (arg1)->SetUnderlined(arg2); | |
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
10501 | resultobj = SWIG_Py_Void(); | |
10502 | return resultobj; | |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
10508 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10509 | PyObject *resultobj = 0; | |
10510 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10511 | wxString arg2 ; | |
10512 | void *argp1 = 0 ; | |
10513 | int res1 = 0 ; | |
10514 | PyObject * obj0 = 0 ; | |
10515 | PyObject * obj1 = 0 ; | |
10516 | char * kwnames[] = { | |
10517 | (char *) "self",(char *) "facename", NULL | |
10518 | }; | |
10519 | ||
10520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
10521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10522 | if (!SWIG_IsOK(res1)) { | |
10523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10524 | } | |
10525 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10526 | { | |
10527 | wxString* sptr = wxString_in_helper(obj1); | |
10528 | if (sptr == NULL) SWIG_fail; | |
10529 | arg2 = *sptr; | |
10530 | delete sptr; | |
10531 | } | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | (arg1)->SetFaceName(arg2); | |
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
10538 | resultobj = SWIG_Py_Void(); | |
10539 | return resultobj; | |
10540 | fail: | |
10541 | return NULL; | |
10542 | } | |
10543 | ||
10544 | ||
10545 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10546 | PyObject *resultobj = 0; | |
10547 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10548 | wxFontFamily arg2 ; | |
10549 | void *argp1 = 0 ; | |
10550 | int res1 = 0 ; | |
10551 | int val2 ; | |
10552 | int ecode2 = 0 ; | |
10553 | PyObject * obj0 = 0 ; | |
10554 | PyObject * obj1 = 0 ; | |
10555 | char * kwnames[] = { | |
10556 | (char *) "self",(char *) "family", NULL | |
10557 | }; | |
10558 | ||
10559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
10560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10561 | if (!SWIG_IsOK(res1)) { | |
10562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10563 | } | |
10564 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10565 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10566 | if (!SWIG_IsOK(ecode2)) { | |
10567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
10568 | } | |
10569 | arg2 = static_cast< wxFontFamily >(val2); | |
10570 | { | |
10571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10572 | (arg1)->SetFamily(arg2); | |
10573 | wxPyEndAllowThreads(__tstate); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | resultobj = SWIG_Py_Void(); | |
10577 | return resultobj; | |
10578 | fail: | |
10579 | return NULL; | |
10580 | } | |
10581 | ||
10582 | ||
10583 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10584 | PyObject *resultobj = 0; | |
10585 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10586 | wxFontEncoding arg2 ; | |
10587 | void *argp1 = 0 ; | |
10588 | int res1 = 0 ; | |
10589 | int val2 ; | |
10590 | int ecode2 = 0 ; | |
10591 | PyObject * obj0 = 0 ; | |
10592 | PyObject * obj1 = 0 ; | |
10593 | char * kwnames[] = { | |
10594 | (char *) "self",(char *) "encoding", NULL | |
10595 | }; | |
10596 | ||
10597 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
10598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10599 | if (!SWIG_IsOK(res1)) { | |
10600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10601 | } | |
10602 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10603 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10604 | if (!SWIG_IsOK(ecode2)) { | |
10605 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10606 | } | |
10607 | arg2 = static_cast< wxFontEncoding >(val2); | |
10608 | { | |
10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10610 | (arg1)->SetEncoding(arg2); | |
10611 | wxPyEndAllowThreads(__tstate); | |
10612 | if (PyErr_Occurred()) SWIG_fail; | |
10613 | } | |
10614 | resultobj = SWIG_Py_Void(); | |
10615 | return resultobj; | |
10616 | fail: | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
10621 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj = 0; | |
10623 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10624 | wxString *arg2 = 0 ; | |
10625 | bool result; | |
10626 | void *argp1 = 0 ; | |
10627 | int res1 = 0 ; | |
10628 | bool temp2 = false ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
10631 | char * kwnames[] = { | |
10632 | (char *) "self",(char *) "s", NULL | |
10633 | }; | |
10634 | ||
10635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10637 | if (!SWIG_IsOK(res1)) { | |
10638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10639 | } | |
10640 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10641 | { | |
10642 | arg2 = wxString_in_helper(obj1); | |
10643 | if (arg2 == NULL) SWIG_fail; | |
10644 | temp2 = true; | |
10645 | } | |
10646 | { | |
10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10648 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
10649 | wxPyEndAllowThreads(__tstate); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | { | |
10653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10654 | } | |
10655 | { | |
10656 | if (temp2) | |
10657 | delete arg2; | |
10658 | } | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | { | |
10662 | if (temp2) | |
10663 | delete arg2; | |
10664 | } | |
10665 | return NULL; | |
d55e5bfc RD |
10666 | } |
10667 | ||
10668 | ||
554f62e9 RD |
10669 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10670 | PyObject *resultobj = 0; | |
10671 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10672 | wxString result; | |
10673 | void *argp1 = 0 ; | |
10674 | int res1 = 0 ; | |
10675 | PyObject *swig_obj[1] ; | |
10676 | ||
10677 | if (!args) SWIG_fail; | |
10678 | swig_obj[0] = args; | |
10679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10680 | if (!SWIG_IsOK(res1)) { | |
10681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10682 | } | |
10683 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10684 | { | |
10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10686 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) SWIG_fail; | |
10689 | } | |
10690 | { | |
10691 | #if wxUSE_UNICODE | |
10692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10693 | #else | |
10694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10695 | #endif | |
10696 | } | |
10697 | return resultobj; | |
10698 | fail: | |
10699 | return NULL; | |
d55e5bfc RD |
10700 | } |
10701 | ||
10702 | ||
554f62e9 RD |
10703 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10704 | PyObject *resultobj = 0; | |
10705 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10706 | wxString result; | |
10707 | void *argp1 = 0 ; | |
10708 | int res1 = 0 ; | |
10709 | PyObject *swig_obj[1] ; | |
10710 | ||
10711 | if (!args) SWIG_fail; | |
10712 | swig_obj[0] = args; | |
10713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10714 | if (!SWIG_IsOK(res1)) { | |
10715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10716 | } | |
10717 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = wxNativeFontInfo___str__(arg1); | |
10721 | wxPyEndAllowThreads(__tstate); | |
10722 | if (PyErr_Occurred()) SWIG_fail; | |
10723 | } | |
10724 | { | |
10725 | #if wxUSE_UNICODE | |
10726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10727 | #else | |
10728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10729 | #endif | |
10730 | } | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10738 | PyObject *resultobj = 0; | |
10739 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10740 | wxString *arg2 = 0 ; | |
10741 | bool result; | |
10742 | void *argp1 = 0 ; | |
10743 | int res1 = 0 ; | |
10744 | bool temp2 = false ; | |
10745 | PyObject * obj0 = 0 ; | |
10746 | PyObject * obj1 = 0 ; | |
10747 | char * kwnames[] = { | |
10748 | (char *) "self",(char *) "s", NULL | |
10749 | }; | |
10750 | ||
10751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10753 | if (!SWIG_IsOK(res1)) { | |
10754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10755 | } | |
10756 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10757 | { | |
10758 | arg2 = wxString_in_helper(obj1); | |
10759 | if (arg2 == NULL) SWIG_fail; | |
10760 | temp2 = true; | |
10761 | } | |
10762 | { | |
10763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10764 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | { | |
10769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10770 | } | |
10771 | { | |
10772 | if (temp2) | |
10773 | delete arg2; | |
10774 | } | |
10775 | return resultobj; | |
10776 | fail: | |
10777 | { | |
10778 | if (temp2) | |
10779 | delete arg2; | |
10780 | } | |
10781 | return NULL; | |
a2569024 RD |
10782 | } |
10783 | ||
10784 | ||
554f62e9 RD |
10785 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10786 | PyObject *resultobj = 0; | |
10787 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10788 | wxString result; | |
10789 | void *argp1 = 0 ; | |
10790 | int res1 = 0 ; | |
10791 | PyObject *swig_obj[1] ; | |
10792 | ||
10793 | if (!args) SWIG_fail; | |
10794 | swig_obj[0] = args; | |
10795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10796 | if (!SWIG_IsOK(res1)) { | |
10797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10798 | } | |
10799 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
10806 | { | |
10807 | #if wxUSE_UNICODE | |
10808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10809 | #else | |
10810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10811 | #endif | |
10812 | } | |
10813 | return resultobj; | |
10814 | fail: | |
10815 | return NULL; | |
d55e5bfc RD |
10816 | } |
10817 | ||
10818 | ||
554f62e9 RD |
10819 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10820 | PyObject *obj; | |
10821 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10822 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
10823 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10824 | } |
10825 | ||
554f62e9 RD |
10826 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10827 | return SWIG_Python_InitShadowInstance(args); | |
10828 | } | |
d55e5bfc | 10829 | |
554f62e9 RD |
10830 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10831 | PyObject *resultobj = 0; | |
10832 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10833 | wxString *arg2 = (wxString *) 0 ; | |
10834 | void *argp1 = 0 ; | |
10835 | int res1 = 0 ; | |
10836 | bool temp2 = false ; | |
10837 | PyObject *swig_obj[2] ; | |
10838 | ||
10839 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
10840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10841 | if (!SWIG_IsOK(res1)) { | |
10842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10843 | } | |
10844 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10845 | { | |
10846 | arg2 = wxString_in_helper(swig_obj[1]); | |
10847 | if (arg2 == NULL) SWIG_fail; | |
10848 | temp2 = true; | |
10849 | } | |
10850 | if (arg1) (arg1)->facename = *arg2; | |
10851 | ||
10852 | resultobj = SWIG_Py_Void(); | |
10853 | { | |
10854 | if (temp2) | |
10855 | delete arg2; | |
10856 | } | |
10857 | return resultobj; | |
10858 | fail: | |
10859 | { | |
10860 | if (temp2) | |
10861 | delete arg2; | |
10862 | } | |
10863 | return NULL; | |
d55e5bfc RD |
10864 | } |
10865 | ||
10866 | ||
554f62e9 RD |
10867 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10868 | PyObject *resultobj = 0; | |
10869 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10870 | wxString *result = 0 ; | |
10871 | void *argp1 = 0 ; | |
10872 | int res1 = 0 ; | |
10873 | PyObject *swig_obj[1] ; | |
10874 | ||
10875 | if (!args) SWIG_fail; | |
10876 | swig_obj[0] = args; | |
10877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10878 | if (!SWIG_IsOK(res1)) { | |
10879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10880 | } | |
10881 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10882 | result = (wxString *)& ((arg1)->facename); | |
10883 | { | |
10884 | #if wxUSE_UNICODE | |
10885 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10886 | #else | |
10887 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10888 | #endif | |
10889 | } | |
10890 | return resultobj; | |
10891 | fail: | |
10892 | return NULL; | |
d55e5bfc RD |
10893 | } |
10894 | ||
10895 | ||
554f62e9 RD |
10896 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10897 | PyObject *resultobj = 0; | |
10898 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10899 | wxFontEncoding arg2 ; | |
10900 | void *argp1 = 0 ; | |
10901 | int res1 = 0 ; | |
10902 | int val2 ; | |
10903 | int ecode2 = 0 ; | |
10904 | PyObject *swig_obj[2] ; | |
10905 | ||
10906 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
10907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10908 | if (!SWIG_IsOK(res1)) { | |
10909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10910 | } | |
10911 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10912 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
10913 | if (!SWIG_IsOK(ecode2)) { | |
10914 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10915 | } | |
10916 | arg2 = static_cast< wxFontEncoding >(val2); | |
10917 | if (arg1) (arg1)->encoding = arg2; | |
10918 | ||
10919 | resultobj = SWIG_Py_Void(); | |
10920 | return resultobj; | |
10921 | fail: | |
10922 | return NULL; | |
d55e5bfc RD |
10923 | } |
10924 | ||
10925 | ||
554f62e9 RD |
10926 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10927 | PyObject *resultobj = 0; | |
10928 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10929 | wxFontEncoding result; | |
10930 | void *argp1 = 0 ; | |
10931 | int res1 = 0 ; | |
10932 | PyObject *swig_obj[1] ; | |
10933 | ||
10934 | if (!args) SWIG_fail; | |
10935 | swig_obj[0] = args; | |
10936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10937 | if (!SWIG_IsOK(res1)) { | |
10938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10939 | } | |
10940 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10941 | result = (wxFontEncoding) ((arg1)->encoding); | |
10942 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
d55e5bfc RD |
10946 | } |
10947 | ||
10948 | ||
554f62e9 RD |
10949 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10950 | PyObject *resultobj = 0; | |
10951 | wxNativeEncodingInfo *result = 0 ; | |
10952 | ||
10953 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
10954 | { | |
10955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10956 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
10957 | wxPyEndAllowThreads(__tstate); | |
10958 | if (PyErr_Occurred()) SWIG_fail; | |
10959 | } | |
10960 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
10961 | return resultobj; | |
10962 | fail: | |
10963 | return NULL; | |
d55e5bfc RD |
10964 | } |
10965 | ||
10966 | ||
554f62e9 RD |
10967 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10968 | PyObject *resultobj = 0; | |
10969 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10970 | void *argp1 = 0 ; | |
10971 | int res1 = 0 ; | |
10972 | PyObject *swig_obj[1] ; | |
10973 | ||
10974 | if (!args) SWIG_fail; | |
10975 | swig_obj[0] = args; | |
10976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
10977 | if (!SWIG_IsOK(res1)) { | |
10978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10979 | } | |
10980 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10981 | { | |
10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10983 | delete arg1; | |
d55e5bfc | 10984 | |
554f62e9 RD |
10985 | wxPyEndAllowThreads(__tstate); |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | resultobj = SWIG_Py_Void(); | |
10989 | return resultobj; | |
10990 | fail: | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
10995 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10996 | PyObject *resultobj = 0; | |
10997 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10998 | wxString *arg2 = 0 ; | |
10999 | bool result; | |
11000 | void *argp1 = 0 ; | |
11001 | int res1 = 0 ; | |
11002 | bool temp2 = false ; | |
11003 | PyObject * obj0 = 0 ; | |
11004 | PyObject * obj1 = 0 ; | |
11005 | char * kwnames[] = { | |
11006 | (char *) "self",(char *) "s", NULL | |
11007 | }; | |
11008 | ||
11009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
11010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11011 | if (!SWIG_IsOK(res1)) { | |
11012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
11013 | } | |
11014 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11015 | { | |
11016 | arg2 = wxString_in_helper(obj1); | |
11017 | if (arg2 == NULL) SWIG_fail; | |
11018 | temp2 = true; | |
11019 | } | |
11020 | { | |
11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11022 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | { | |
11027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11028 | } | |
11029 | { | |
11030 | if (temp2) | |
11031 | delete arg2; | |
11032 | } | |
11033 | return resultobj; | |
11034 | fail: | |
11035 | { | |
11036 | if (temp2) | |
11037 | delete arg2; | |
11038 | } | |
11039 | return NULL; | |
d55e5bfc RD |
11040 | } |
11041 | ||
11042 | ||
554f62e9 RD |
11043 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11044 | PyObject *resultobj = 0; | |
11045 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
11046 | wxString result; | |
11047 | void *argp1 = 0 ; | |
11048 | int res1 = 0 ; | |
11049 | PyObject *swig_obj[1] ; | |
11050 | ||
11051 | if (!args) SWIG_fail; | |
11052 | swig_obj[0] = args; | |
11053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11054 | if (!SWIG_IsOK(res1)) { | |
11055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
11056 | } | |
11057 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11058 | { | |
11059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11060 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
11061 | wxPyEndAllowThreads(__tstate); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
11064 | { | |
11065 | #if wxUSE_UNICODE | |
11066 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11067 | #else | |
11068 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11069 | #endif | |
11070 | } | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
d55e5bfc RD |
11074 | } |
11075 | ||
11076 | ||
554f62e9 RD |
11077 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11078 | PyObject *obj; | |
11079 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11080 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
11081 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11082 | } |
11083 | ||
554f62e9 RD |
11084 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11085 | return SWIG_Python_InitShadowInstance(args); | |
11086 | } | |
d55e5bfc | 11087 | |
554f62e9 RD |
11088 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11089 | PyObject *resultobj = 0; | |
11090 | wxFontEncoding arg1 ; | |
11091 | wxNativeEncodingInfo *result = 0 ; | |
11092 | int val1 ; | |
11093 | int ecode1 = 0 ; | |
11094 | PyObject * obj0 = 0 ; | |
11095 | char * kwnames[] = { | |
11096 | (char *) "encoding", NULL | |
11097 | }; | |
11098 | ||
11099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
11100 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11101 | if (!SWIG_IsOK(ecode1)) { | |
11102 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11103 | } | |
11104 | arg1 = static_cast< wxFontEncoding >(val1); | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11107 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj = 0; | |
11120 | wxNativeEncodingInfo *arg1 = 0 ; | |
11121 | bool result; | |
11122 | void *argp1 = 0 ; | |
11123 | int res1 = 0 ; | |
11124 | PyObject * obj0 = 0 ; | |
11125 | char * kwnames[] = { | |
11126 | (char *) "info", NULL | |
11127 | }; | |
11128 | ||
11129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
11130 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
11131 | if (!SWIG_IsOK(res1)) { | |
11132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
11133 | } | |
11134 | if (!argp1) { | |
11135 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
11136 | } | |
11137 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
11141 | wxPyEndAllowThreads(__tstate); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
11144 | { | |
11145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11146 | } | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
d55e5bfc RD |
11150 | } |
11151 | ||
11152 | ||
554f62e9 RD |
11153 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11154 | PyObject *resultobj = 0; | |
11155 | wxFontMapper *result = 0 ; | |
11156 | ||
11157 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | result = (wxFontMapper *)new wxFontMapper(); | |
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
11164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
11165 | return resultobj; | |
11166 | fail: | |
11167 | return NULL; | |
d55e5bfc RD |
11168 | } |
11169 | ||
11170 | ||
554f62e9 RD |
11171 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11172 | PyObject *resultobj = 0; | |
11173 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11174 | void *argp1 = 0 ; | |
11175 | int res1 = 0 ; | |
11176 | PyObject *swig_obj[1] ; | |
11177 | ||
11178 | if (!args) SWIG_fail; | |
11179 | swig_obj[0] = args; | |
11180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
11181 | if (!SWIG_IsOK(res1)) { | |
11182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11183 | } | |
11184 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11185 | { | |
11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11187 | delete arg1; | |
d55e5bfc | 11188 | |
554f62e9 RD |
11189 | wxPyEndAllowThreads(__tstate); |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
11191 | } | |
11192 | resultobj = SWIG_Py_Void(); | |
11193 | return resultobj; | |
11194 | fail: | |
11195 | return NULL; | |
d55e5bfc RD |
11196 | } |
11197 | ||
11198 | ||
554f62e9 RD |
11199 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11200 | PyObject *resultobj = 0; | |
11201 | wxFontMapper *result = 0 ; | |
11202 | ||
11203 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
11204 | { | |
11205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11206 | result = (wxFontMapper *)wxFontMapper::Get(); | |
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
11217 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11218 | PyObject *resultobj = 0; | |
11219 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11220 | wxFontMapper *result = 0 ; | |
11221 | void *argp1 = 0 ; | |
11222 | int res1 = 0 ; | |
11223 | PyObject * obj0 = 0 ; | |
11224 | char * kwnames[] = { | |
11225 | (char *) "mapper", NULL | |
11226 | }; | |
11227 | ||
11228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
11229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11230 | if (!SWIG_IsOK(res1)) { | |
11231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11232 | } | |
11233 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11248 | PyObject *resultobj = 0; | |
11249 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11250 | wxString *arg2 = 0 ; | |
11251 | bool arg3 = (bool) true ; | |
11252 | wxFontEncoding result; | |
11253 | void *argp1 = 0 ; | |
11254 | int res1 = 0 ; | |
11255 | bool temp2 = false ; | |
11256 | bool val3 ; | |
11257 | int ecode3 = 0 ; | |
11258 | PyObject * obj0 = 0 ; | |
11259 | PyObject * obj1 = 0 ; | |
11260 | PyObject * obj2 = 0 ; | |
11261 | char * kwnames[] = { | |
11262 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
11263 | }; | |
11264 | ||
11265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11267 | if (!SWIG_IsOK(res1)) { | |
11268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11269 | } | |
11270 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11271 | { | |
11272 | arg2 = wxString_in_helper(obj1); | |
11273 | if (arg2 == NULL) SWIG_fail; | |
11274 | temp2 = true; | |
11275 | } | |
11276 | if (obj2) { | |
11277 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11278 | if (!SWIG_IsOK(ecode3)) { | |
11279 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
11280 | } | |
11281 | arg3 = static_cast< bool >(val3); | |
11282 | } | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11290 | { | |
11291 | if (temp2) | |
11292 | delete arg2; | |
11293 | } | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | { | |
11297 | if (temp2) | |
11298 | delete arg2; | |
11299 | } | |
11300 | return NULL; | |
d55e5bfc RD |
11301 | } |
11302 | ||
11303 | ||
554f62e9 RD |
11304 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11305 | PyObject *resultobj = 0; | |
11306 | size_t result; | |
11307 | ||
11308 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
11309 | { | |
11310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11311 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
11322 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11323 | PyObject *resultobj = 0; | |
11324 | size_t arg1 ; | |
11325 | wxFontEncoding result; | |
11326 | size_t val1 ; | |
11327 | int ecode1 = 0 ; | |
11328 | PyObject * obj0 = 0 ; | |
11329 | char * kwnames[] = { | |
11330 | (char *) "n", NULL | |
11331 | }; | |
11332 | ||
11333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
11334 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
11335 | if (!SWIG_IsOK(ecode1)) { | |
11336 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
11337 | } | |
11338 | arg1 = static_cast< size_t >(val1); | |
11339 | { | |
11340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11341 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11346 | return resultobj; | |
11347 | fail: | |
11348 | return NULL; | |
11349 | } | |
11350 | ||
11351 | ||
11352 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11353 | PyObject *resultobj = 0; | |
11354 | wxFontEncoding arg1 ; | |
11355 | wxString result; | |
11356 | int val1 ; | |
11357 | int ecode1 = 0 ; | |
11358 | PyObject * obj0 = 0 ; | |
11359 | char * kwnames[] = { | |
11360 | (char *) "encoding", NULL | |
11361 | }; | |
11362 | ||
11363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
11364 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11365 | if (!SWIG_IsOK(ecode1)) { | |
11366 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11367 | } | |
11368 | arg1 = static_cast< wxFontEncoding >(val1); | |
11369 | { | |
11370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11371 | result = wxFontMapper::GetEncodingName(arg1); | |
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | { | |
11376 | #if wxUSE_UNICODE | |
11377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11378 | #else | |
11379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11380 | #endif | |
11381 | } | |
11382 | return resultobj; | |
11383 | fail: | |
11384 | return NULL; | |
d55e5bfc RD |
11385 | } |
11386 | ||
11387 | ||
554f62e9 RD |
11388 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11389 | PyObject *resultobj = 0; | |
11390 | wxFontEncoding arg1 ; | |
11391 | wxString result; | |
11392 | int val1 ; | |
11393 | int ecode1 = 0 ; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | char * kwnames[] = { | |
11396 | (char *) "encoding", NULL | |
11397 | }; | |
11398 | ||
11399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
11400 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11401 | if (!SWIG_IsOK(ecode1)) { | |
11402 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
11403 | } | |
11404 | arg1 = static_cast< wxFontEncoding >(val1); | |
11405 | { | |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | result = wxFontMapper::GetEncodingDescription(arg1); | |
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | { | |
11412 | #if wxUSE_UNICODE | |
11413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11414 | #else | |
11415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11416 | #endif | |
11417 | } | |
11418 | return resultobj; | |
11419 | fail: | |
11420 | return NULL; | |
d55e5bfc RD |
11421 | } |
11422 | ||
11423 | ||
554f62e9 RD |
11424 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11425 | PyObject *resultobj = 0; | |
11426 | wxString *arg1 = 0 ; | |
11427 | wxFontEncoding result; | |
11428 | bool temp1 = false ; | |
11429 | PyObject * obj0 = 0 ; | |
11430 | char * kwnames[] = { | |
11431 | (char *) "name", NULL | |
11432 | }; | |
11433 | ||
11434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
11435 | { | |
11436 | arg1 = wxString_in_helper(obj0); | |
11437 | if (arg1 == NULL) SWIG_fail; | |
11438 | temp1 = true; | |
11439 | } | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11447 | { | |
11448 | if (temp1) | |
11449 | delete arg1; | |
11450 | } | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | { | |
11454 | if (temp1) | |
11455 | delete arg1; | |
11456 | } | |
11457 | return NULL; | |
d55e5bfc RD |
11458 | } |
11459 | ||
11460 | ||
554f62e9 RD |
11461 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11462 | PyObject *resultobj = 0; | |
11463 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11464 | wxString *arg2 = 0 ; | |
11465 | void *argp1 = 0 ; | |
11466 | int res1 = 0 ; | |
11467 | bool temp2 = false ; | |
11468 | PyObject * obj0 = 0 ; | |
11469 | PyObject * obj1 = 0 ; | |
11470 | char * kwnames[] = { | |
11471 | (char *) "self",(char *) "prefix", NULL | |
11472 | }; | |
11473 | ||
11474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
11475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11476 | if (!SWIG_IsOK(res1)) { | |
11477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11478 | } | |
11479 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11480 | { | |
11481 | arg2 = wxString_in_helper(obj1); | |
11482 | if (arg2 == NULL) SWIG_fail; | |
11483 | temp2 = true; | |
11484 | } | |
11485 | { | |
11486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11487 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
11488 | wxPyEndAllowThreads(__tstate); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
11491 | resultobj = SWIG_Py_Void(); | |
11492 | { | |
11493 | if (temp2) | |
11494 | delete arg2; | |
11495 | } | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | { | |
11499 | if (temp2) | |
11500 | delete arg2; | |
11501 | } | |
11502 | return NULL; | |
d55e5bfc RD |
11503 | } |
11504 | ||
11505 | ||
554f62e9 RD |
11506 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11507 | PyObject *resultobj = 0; | |
11508 | wxString result; | |
11509 | ||
11510 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
11511 | { | |
11512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11513 | result = wxFontMapper::GetDefaultConfigPath(); | |
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
11517 | { | |
11518 | #if wxUSE_UNICODE | |
11519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11520 | #else | |
11521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11522 | #endif | |
11523 | } | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
11530 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11531 | PyObject *resultobj = 0; | |
11532 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11533 | wxFontEncoding arg2 ; | |
11534 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11535 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11536 | bool arg4 = (bool) true ; | |
11537 | PyObject *result = 0 ; | |
11538 | void *argp1 = 0 ; | |
11539 | int res1 = 0 ; | |
11540 | int val2 ; | |
11541 | int ecode2 = 0 ; | |
11542 | bool temp3 = false ; | |
11543 | bool val4 ; | |
11544 | int ecode4 = 0 ; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | PyObject * obj1 = 0 ; | |
11547 | PyObject * obj2 = 0 ; | |
11548 | PyObject * obj3 = 0 ; | |
11549 | char * kwnames[] = { | |
11550 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
11551 | }; | |
11552 | ||
11553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11555 | if (!SWIG_IsOK(res1)) { | |
11556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11557 | } | |
11558 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11559 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11560 | if (!SWIG_IsOK(ecode2)) { | |
11561 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
11562 | } | |
11563 | arg2 = static_cast< wxFontEncoding >(val2); | |
11564 | if (obj2) { | |
d55e5bfc | 11565 | { |
554f62e9 RD |
11566 | arg3 = wxString_in_helper(obj2); |
11567 | if (arg3 == NULL) SWIG_fail; | |
11568 | temp3 = true; | |
d55e5bfc | 11569 | } |
554f62e9 RD |
11570 | } |
11571 | if (obj3) { | |
11572 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
11573 | if (!SWIG_IsOK(ecode4)) { | |
11574 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
11575 | } | |
11576 | arg4 = static_cast< bool >(val4); | |
11577 | } | |
11578 | { | |
11579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11580 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
11581 | wxPyEndAllowThreads(__tstate); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | } | |
11584 | resultobj = result; | |
11585 | { | |
11586 | if (temp3) | |
11587 | delete arg3; | |
11588 | } | |
11589 | return resultobj; | |
11590 | fail: | |
11591 | { | |
11592 | if (temp3) | |
11593 | delete arg3; | |
11594 | } | |
11595 | return NULL; | |
11596 | } | |
11597 | ||
11598 | ||
11599 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11600 | PyObject *resultobj = 0; | |
11601 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11602 | wxFontEncoding arg2 ; | |
11603 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11604 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11605 | bool result; | |
11606 | void *argp1 = 0 ; | |
11607 | int res1 = 0 ; | |
11608 | int val2 ; | |
11609 | int ecode2 = 0 ; | |
11610 | bool temp3 = false ; | |
11611 | PyObject * obj0 = 0 ; | |
11612 | PyObject * obj1 = 0 ; | |
11613 | PyObject * obj2 = 0 ; | |
11614 | char * kwnames[] = { | |
11615 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
11616 | }; | |
11617 | ||
11618 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11620 | if (!SWIG_IsOK(res1)) { | |
11621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11622 | } | |
11623 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11624 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11625 | if (!SWIG_IsOK(ecode2)) { | |
11626 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
11627 | } | |
11628 | arg2 = static_cast< wxFontEncoding >(val2); | |
11629 | if (obj2) { | |
093d3ff1 | 11630 | { |
554f62e9 RD |
11631 | arg3 = wxString_in_helper(obj2); |
11632 | if (arg3 == NULL) SWIG_fail; | |
11633 | temp3 = true; | |
d55e5bfc | 11634 | } |
554f62e9 RD |
11635 | } |
11636 | { | |
11637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11638 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
11639 | wxPyEndAllowThreads(__tstate); | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | } | |
11642 | { | |
11643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11644 | } | |
11645 | { | |
11646 | if (temp3) | |
11647 | delete arg3; | |
11648 | } | |
11649 | return resultobj; | |
11650 | fail: | |
11651 | { | |
11652 | if (temp3) | |
11653 | delete arg3; | |
11654 | } | |
11655 | return NULL; | |
11656 | } | |
11657 | ||
11658 | ||
11659 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11660 | PyObject *resultobj = 0; | |
11661 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11663 | void *argp1 = 0 ; | |
11664 | int res1 = 0 ; | |
11665 | void *argp2 = 0 ; | |
11666 | int res2 = 0 ; | |
11667 | PyObject * obj0 = 0 ; | |
11668 | PyObject * obj1 = 0 ; | |
11669 | char * kwnames[] = { | |
11670 | (char *) "self",(char *) "parent", NULL | |
11671 | }; | |
11672 | ||
11673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11675 | if (!SWIG_IsOK(res1)) { | |
11676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11677 | } | |
11678 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11679 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
11680 | if (!SWIG_IsOK(res2)) { | |
11681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
11682 | } | |
11683 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11684 | { | |
11685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11686 | (arg1)->SetDialogParent(arg2); | |
11687 | wxPyEndAllowThreads(__tstate); | |
11688 | if (PyErr_Occurred()) SWIG_fail; | |
11689 | } | |
11690 | resultobj = SWIG_Py_Void(); | |
11691 | return resultobj; | |
11692 | fail: | |
11693 | return NULL; | |
11694 | } | |
11695 | ||
11696 | ||
11697 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11698 | PyObject *resultobj = 0; | |
11699 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11700 | wxString *arg2 = 0 ; | |
11701 | void *argp1 = 0 ; | |
11702 | int res1 = 0 ; | |
11703 | bool temp2 = false ; | |
11704 | PyObject * obj0 = 0 ; | |
11705 | PyObject * obj1 = 0 ; | |
11706 | char * kwnames[] = { | |
11707 | (char *) "self",(char *) "title", NULL | |
11708 | }; | |
11709 | ||
11710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
11711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11712 | if (!SWIG_IsOK(res1)) { | |
11713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11714 | } | |
11715 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11716 | { | |
11717 | arg2 = wxString_in_helper(obj1); | |
11718 | if (arg2 == NULL) SWIG_fail; | |
11719 | temp2 = true; | |
11720 | } | |
11721 | { | |
11722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11723 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
11724 | wxPyEndAllowThreads(__tstate); | |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
11726 | } | |
11727 | resultobj = SWIG_Py_Void(); | |
11728 | { | |
11729 | if (temp2) | |
11730 | delete arg2; | |
11731 | } | |
11732 | return resultobj; | |
11733 | fail: | |
11734 | { | |
11735 | if (temp2) | |
11736 | delete arg2; | |
11737 | } | |
11738 | return NULL; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11743 | PyObject *obj; | |
11744 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11745 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
11746 | return SWIG_Py_Void(); | |
11747 | } | |
11748 | ||
11749 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11750 | return SWIG_Python_InitShadowInstance(args); | |
11751 | } | |
11752 | ||
11753 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj = 0; | |
11755 | int arg1 ; | |
11756 | int arg2 ; | |
11757 | int arg3 ; | |
11758 | int arg4 ; | |
11759 | bool arg5 = (bool) false ; | |
11760 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
11761 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11762 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11763 | wxFont *result = 0 ; | |
11764 | int val1 ; | |
11765 | int ecode1 = 0 ; | |
11766 | int val2 ; | |
11767 | int ecode2 = 0 ; | |
11768 | int val3 ; | |
11769 | int ecode3 = 0 ; | |
11770 | int val4 ; | |
11771 | int ecode4 = 0 ; | |
11772 | bool val5 ; | |
11773 | int ecode5 = 0 ; | |
11774 | bool temp6 = false ; | |
11775 | int val7 ; | |
11776 | int ecode7 = 0 ; | |
11777 | PyObject * obj0 = 0 ; | |
11778 | PyObject * obj1 = 0 ; | |
11779 | PyObject * obj2 = 0 ; | |
11780 | PyObject * obj3 = 0 ; | |
11781 | PyObject * obj4 = 0 ; | |
11782 | PyObject * obj5 = 0 ; | |
11783 | PyObject * obj6 = 0 ; | |
11784 | char * kwnames[] = { | |
11785 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
11786 | }; | |
11787 | ||
11788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
11789 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11790 | if (!SWIG_IsOK(ecode1)) { | |
11791 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
11792 | } | |
11793 | arg1 = static_cast< int >(val1); | |
11794 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11795 | if (!SWIG_IsOK(ecode2)) { | |
11796 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
11797 | } | |
11798 | arg2 = static_cast< int >(val2); | |
11799 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11800 | if (!SWIG_IsOK(ecode3)) { | |
11801 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
11802 | } | |
11803 | arg3 = static_cast< int >(val3); | |
11804 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11805 | if (!SWIG_IsOK(ecode4)) { | |
11806 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
11807 | } | |
11808 | arg4 = static_cast< int >(val4); | |
11809 | if (obj4) { | |
11810 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
11811 | if (!SWIG_IsOK(ecode5)) { | |
11812 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
11813 | } | |
11814 | arg5 = static_cast< bool >(val5); | |
11815 | } | |
11816 | if (obj5) { | |
d55e5bfc | 11817 | { |
554f62e9 RD |
11818 | arg6 = wxString_in_helper(obj5); |
11819 | if (arg6 == NULL) SWIG_fail; | |
11820 | temp6 = true; | |
d55e5bfc | 11821 | } |
554f62e9 RD |
11822 | } |
11823 | if (obj6) { | |
11824 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
11825 | if (!SWIG_IsOK(ecode7)) { | |
11826 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
11827 | } | |
11828 | arg7 = static_cast< wxFontEncoding >(val7); | |
11829 | } | |
11830 | { | |
11831 | if (!wxPyCheckForApp()) SWIG_fail; | |
11832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11833 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
11834 | wxPyEndAllowThreads(__tstate); | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | } | |
11837 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
11838 | { | |
11839 | if (temp6) | |
11840 | delete arg6; | |
11841 | } | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | { | |
11845 | if (temp6) | |
11846 | delete arg6; | |
11847 | } | |
11848 | return NULL; | |
d55e5bfc RD |
11849 | } |
11850 | ||
11851 | ||
554f62e9 RD |
11852 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11853 | PyObject *resultobj = 0; | |
11854 | wxFont *arg1 = (wxFont *) 0 ; | |
11855 | void *argp1 = 0 ; | |
11856 | int res1 = 0 ; | |
11857 | PyObject *swig_obj[1] ; | |
11858 | ||
11859 | if (!args) SWIG_fail; | |
11860 | swig_obj[0] = args; | |
11861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
11862 | if (!SWIG_IsOK(res1)) { | |
11863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
11864 | } | |
11865 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | delete arg1; | |
d55e5bfc | 11869 | |
554f62e9 RD |
11870 | wxPyEndAllowThreads(__tstate); |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | resultobj = SWIG_Py_Void(); | |
11874 | return resultobj; | |
11875 | fail: | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj = 0; | |
11882 | wxNativeFontInfo *arg1 = 0 ; | |
11883 | wxFont *result = 0 ; | |
11884 | void *argp1 = 0 ; | |
11885 | int res1 = 0 ; | |
11886 | PyObject * obj0 = 0 ; | |
11887 | char * kwnames[] = { | |
11888 | (char *) "info", NULL | |
11889 | }; | |
11890 | ||
11891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
11892 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
11893 | if (!SWIG_IsOK(res1)) { | |
11894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11895 | } | |
11896 | if (!argp1) { | |
11897 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11898 | } | |
11899 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11900 | { | |
11901 | if (!wxPyCheckForApp()) SWIG_fail; | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
11904 | wxPyEndAllowThreads(__tstate); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11908 | return resultobj; | |
11909 | fail: | |
11910 | return NULL; | |
d55e5bfc RD |
11911 | } |
11912 | ||
11913 | ||
554f62e9 RD |
11914 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11915 | PyObject *resultobj = 0; | |
11916 | wxString *arg1 = 0 ; | |
11917 | wxFont *result = 0 ; | |
11918 | bool temp1 = false ; | |
11919 | PyObject * obj0 = 0 ; | |
11920 | char * kwnames[] = { | |
11921 | (char *) "info", NULL | |
11922 | }; | |
11923 | ||
11924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
11925 | { | |
11926 | arg1 = wxString_in_helper(obj0); | |
11927 | if (arg1 == NULL) SWIG_fail; | |
11928 | temp1 = true; | |
11929 | } | |
11930 | { | |
11931 | if (!wxPyCheckForApp()) SWIG_fail; | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
11934 | wxPyEndAllowThreads(__tstate); | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | } | |
11937 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11938 | { | |
11939 | if (temp1) | |
11940 | delete arg1; | |
11941 | } | |
11942 | return resultobj; | |
11943 | fail: | |
11944 | { | |
11945 | if (temp1) | |
11946 | delete arg1; | |
11947 | } | |
11948 | return NULL; | |
11949 | } | |
11950 | ||
11951 | ||
11952 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11953 | PyObject *resultobj = 0; | |
11954 | int arg1 ; | |
11955 | wxFontFamily arg2 ; | |
11956 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
11957 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11958 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11959 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11960 | wxFont *result = 0 ; | |
11961 | int val1 ; | |
11962 | int ecode1 = 0 ; | |
11963 | int val2 ; | |
11964 | int ecode2 = 0 ; | |
11965 | int val3 ; | |
11966 | int ecode3 = 0 ; | |
11967 | bool temp4 = false ; | |
11968 | int val5 ; | |
11969 | int ecode5 = 0 ; | |
11970 | PyObject * obj0 = 0 ; | |
11971 | PyObject * obj1 = 0 ; | |
11972 | PyObject * obj2 = 0 ; | |
11973 | PyObject * obj3 = 0 ; | |
11974 | PyObject * obj4 = 0 ; | |
11975 | char * kwnames[] = { | |
11976 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
11977 | }; | |
11978 | ||
11979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11980 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11981 | if (!SWIG_IsOK(ecode1)) { | |
11982 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
11983 | } | |
11984 | arg1 = static_cast< int >(val1); | |
11985 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11986 | if (!SWIG_IsOK(ecode2)) { | |
11987 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
11988 | } | |
11989 | arg2 = static_cast< wxFontFamily >(val2); | |
11990 | if (obj2) { | |
11991 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11992 | if (!SWIG_IsOK(ecode3)) { | |
11993 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
11994 | } | |
11995 | arg3 = static_cast< int >(val3); | |
11996 | } | |
11997 | if (obj3) { | |
d55e5bfc | 11998 | { |
554f62e9 RD |
11999 | arg4 = wxString_in_helper(obj3); |
12000 | if (arg4 == NULL) SWIG_fail; | |
12001 | temp4 = true; | |
d55e5bfc | 12002 | } |
554f62e9 RD |
12003 | } |
12004 | if (obj4) { | |
12005 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12006 | if (!SWIG_IsOK(ecode5)) { | |
12007 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
12008 | } | |
12009 | arg5 = static_cast< wxFontEncoding >(val5); | |
12010 | } | |
12011 | { | |
12012 | if (!wxPyCheckForApp()) SWIG_fail; | |
12013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12014 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
12018 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12019 | { | |
12020 | if (temp4) | |
12021 | delete arg4; | |
12022 | } | |
12023 | return resultobj; | |
12024 | fail: | |
12025 | { | |
12026 | if (temp4) | |
12027 | delete arg4; | |
12028 | } | |
12029 | return NULL; | |
12030 | } | |
12031 | ||
12032 | ||
12033 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12034 | PyObject *resultobj = 0; | |
12035 | wxSize *arg1 = 0 ; | |
12036 | int arg2 ; | |
12037 | int arg3 ; | |
12038 | int arg4 ; | |
12039 | bool arg5 = (bool) false ; | |
12040 | wxString const &arg6_defvalue = wxEmptyString ; | |
12041 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12042 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
12043 | wxFont *result = 0 ; | |
12044 | wxSize temp1 ; | |
12045 | int val2 ; | |
12046 | int ecode2 = 0 ; | |
12047 | int val3 ; | |
12048 | int ecode3 = 0 ; | |
12049 | int val4 ; | |
12050 | int ecode4 = 0 ; | |
12051 | bool val5 ; | |
12052 | int ecode5 = 0 ; | |
12053 | bool temp6 = false ; | |
12054 | int val7 ; | |
12055 | int ecode7 = 0 ; | |
12056 | PyObject * obj0 = 0 ; | |
12057 | PyObject * obj1 = 0 ; | |
12058 | PyObject * obj2 = 0 ; | |
12059 | PyObject * obj3 = 0 ; | |
12060 | PyObject * obj4 = 0 ; | |
12061 | PyObject * obj5 = 0 ; | |
12062 | PyObject * obj6 = 0 ; | |
12063 | char * kwnames[] = { | |
12064 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
12065 | }; | |
12066 | ||
12067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12068 | { | |
12069 | arg1 = &temp1; | |
12070 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
12071 | } | |
12072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12073 | if (!SWIG_IsOK(ecode2)) { | |
12074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
12075 | } | |
12076 | arg2 = static_cast< int >(val2); | |
12077 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12078 | if (!SWIG_IsOK(ecode3)) { | |
12079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
12080 | } | |
12081 | arg3 = static_cast< int >(val3); | |
12082 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12083 | if (!SWIG_IsOK(ecode4)) { | |
12084 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
12085 | } | |
12086 | arg4 = static_cast< int >(val4); | |
12087 | if (obj4) { | |
12088 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
12089 | if (!SWIG_IsOK(ecode5)) { | |
12090 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
12091 | } | |
12092 | arg5 = static_cast< bool >(val5); | |
12093 | } | |
12094 | if (obj5) { | |
d55e5bfc | 12095 | { |
554f62e9 RD |
12096 | arg6 = wxString_in_helper(obj5); |
12097 | if (arg6 == NULL) SWIG_fail; | |
12098 | temp6 = true; | |
d55e5bfc | 12099 | } |
554f62e9 RD |
12100 | } |
12101 | if (obj6) { | |
12102 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
12103 | if (!SWIG_IsOK(ecode7)) { | |
12104 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
12105 | } | |
12106 | arg7 = static_cast< wxFontEncoding >(val7); | |
12107 | } | |
12108 | { | |
12109 | if (!wxPyCheckForApp()) SWIG_fail; | |
12110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12111 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12116 | { | |
12117 | if (temp6) | |
12118 | delete arg6; | |
12119 | } | |
12120 | return resultobj; | |
12121 | fail: | |
12122 | { | |
12123 | if (temp6) | |
12124 | delete arg6; | |
12125 | } | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj = 0; | |
12132 | wxSize *arg1 = 0 ; | |
12133 | wxFontFamily arg2 ; | |
12134 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
12135 | wxString const &arg4_defvalue = wxEmptyString ; | |
12136 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12137 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
12138 | wxFont *result = 0 ; | |
12139 | wxSize temp1 ; | |
12140 | int val2 ; | |
12141 | int ecode2 = 0 ; | |
12142 | int val3 ; | |
12143 | int ecode3 = 0 ; | |
12144 | bool temp4 = false ; | |
12145 | int val5 ; | |
12146 | int ecode5 = 0 ; | |
12147 | PyObject * obj0 = 0 ; | |
12148 | PyObject * obj1 = 0 ; | |
12149 | PyObject * obj2 = 0 ; | |
12150 | PyObject * obj3 = 0 ; | |
12151 | PyObject * obj4 = 0 ; | |
12152 | char * kwnames[] = { | |
12153 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
12154 | }; | |
12155 | ||
12156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
12157 | { | |
12158 | arg1 = &temp1; | |
12159 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
12160 | } | |
12161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12162 | if (!SWIG_IsOK(ecode2)) { | |
12163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12164 | } | |
12165 | arg2 = static_cast< wxFontFamily >(val2); | |
12166 | if (obj2) { | |
12167 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12168 | if (!SWIG_IsOK(ecode3)) { | |
12169 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
12170 | } | |
12171 | arg3 = static_cast< int >(val3); | |
12172 | } | |
12173 | if (obj3) { | |
d55e5bfc | 12174 | { |
554f62e9 RD |
12175 | arg4 = wxString_in_helper(obj3); |
12176 | if (arg4 == NULL) SWIG_fail; | |
12177 | temp4 = true; | |
d55e5bfc | 12178 | } |
554f62e9 RD |
12179 | } |
12180 | if (obj4) { | |
12181 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12182 | if (!SWIG_IsOK(ecode5)) { | |
12183 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
12184 | } | |
12185 | arg5 = static_cast< wxFontEncoding >(val5); | |
12186 | } | |
12187 | { | |
12188 | if (!wxPyCheckForApp()) SWIG_fail; | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
12195 | { | |
12196 | if (temp4) | |
12197 | delete arg4; | |
12198 | } | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | { | |
12202 | if (temp4) | |
12203 | delete arg4; | |
12204 | } | |
12205 | return NULL; | |
d55e5bfc RD |
12206 | } |
12207 | ||
12208 | ||
554f62e9 RD |
12209 | SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12210 | PyObject *resultobj = 0; | |
12211 | wxFont *arg1 = (wxFont *) 0 ; | |
12212 | bool result; | |
12213 | void *argp1 = 0 ; | |
12214 | int res1 = 0 ; | |
12215 | PyObject *swig_obj[1] ; | |
12216 | ||
12217 | if (!args) SWIG_fail; | |
12218 | swig_obj[0] = args; | |
12219 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12220 | if (!SWIG_IsOK(res1)) { | |
12221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12222 | } | |
12223 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | result = (bool)((wxFont const *)arg1)->Ok(); | |
12227 | wxPyEndAllowThreads(__tstate); | |
12228 | if (PyErr_Occurred()) SWIG_fail; | |
12229 | } | |
12230 | { | |
12231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12232 | } | |
12233 | return resultobj; | |
12234 | fail: | |
12235 | return NULL; | |
12236 | } | |
12237 | ||
12238 | ||
12239 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12240 | PyObject *resultobj = 0; | |
12241 | wxFont *arg1 = (wxFont *) 0 ; | |
12242 | wxFont *arg2 = (wxFont *) 0 ; | |
12243 | bool result; | |
12244 | void *argp1 = 0 ; | |
12245 | int res1 = 0 ; | |
12246 | void *argp2 = 0 ; | |
12247 | int res2 = 0 ; | |
12248 | PyObject * obj0 = 0 ; | |
12249 | PyObject * obj1 = 0 ; | |
12250 | char * kwnames[] = { | |
12251 | (char *) "self",(char *) "other", NULL | |
12252 | }; | |
12253 | ||
12254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
12255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12256 | if (!SWIG_IsOK(res1)) { | |
12257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12258 | } | |
12259 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12260 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12261 | if (!SWIG_IsOK(res2)) { | |
12262 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
12263 | } | |
12264 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12265 | { | |
12266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12267 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
12268 | wxPyEndAllowThreads(__tstate); | |
12269 | if (PyErr_Occurred()) SWIG_fail; | |
12270 | } | |
12271 | { | |
12272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12273 | } | |
12274 | return resultobj; | |
12275 | fail: | |
12276 | return NULL; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12281 | PyObject *resultobj = 0; | |
12282 | wxFont *arg1 = (wxFont *) 0 ; | |
12283 | wxFont *arg2 = (wxFont *) 0 ; | |
12284 | bool result; | |
12285 | void *argp1 = 0 ; | |
12286 | int res1 = 0 ; | |
12287 | void *argp2 = 0 ; | |
12288 | int res2 = 0 ; | |
12289 | PyObject * obj0 = 0 ; | |
12290 | PyObject * obj1 = 0 ; | |
12291 | char * kwnames[] = { | |
12292 | (char *) "self",(char *) "other", NULL | |
12293 | }; | |
12294 | ||
12295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
12296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12297 | if (!SWIG_IsOK(res1)) { | |
12298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12299 | } | |
12300 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12301 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12302 | if (!SWIG_IsOK(res2)) { | |
12303 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
12304 | } | |
12305 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12306 | { | |
12307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12308 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
12309 | wxPyEndAllowThreads(__tstate); | |
12310 | if (PyErr_Occurred()) SWIG_fail; | |
12311 | } | |
12312 | { | |
12313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12314 | } | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
a2569024 RD |
12318 | } |
12319 | ||
12320 | ||
554f62e9 RD |
12321 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12322 | PyObject *resultobj = 0; | |
12323 | wxFont *arg1 = (wxFont *) 0 ; | |
12324 | int result; | |
12325 | void *argp1 = 0 ; | |
12326 | int res1 = 0 ; | |
12327 | PyObject *swig_obj[1] ; | |
12328 | ||
12329 | if (!args) SWIG_fail; | |
12330 | swig_obj[0] = args; | |
12331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12332 | if (!SWIG_IsOK(res1)) { | |
12333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12334 | } | |
12335 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12336 | { | |
12337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12338 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
d55e5bfc RD |
12346 | } |
12347 | ||
12348 | ||
554f62e9 RD |
12349 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12350 | PyObject *resultobj = 0; | |
12351 | wxFont *arg1 = (wxFont *) 0 ; | |
12352 | wxSize result; | |
12353 | void *argp1 = 0 ; | |
12354 | int res1 = 0 ; | |
12355 | PyObject *swig_obj[1] ; | |
12356 | ||
12357 | if (!args) SWIG_fail; | |
12358 | swig_obj[0] = args; | |
12359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12360 | if (!SWIG_IsOK(res1)) { | |
12361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12362 | } | |
12363 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12364 | { | |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
12367 | wxPyEndAllowThreads(__tstate); | |
12368 | if (PyErr_Occurred()) SWIG_fail; | |
12369 | } | |
12370 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12371 | return resultobj; | |
12372 | fail: | |
12373 | return NULL; | |
d55e5bfc RD |
12374 | } |
12375 | ||
12376 | ||
554f62e9 RD |
12377 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12378 | PyObject *resultobj = 0; | |
12379 | wxFont *arg1 = (wxFont *) 0 ; | |
12380 | bool result; | |
12381 | void *argp1 = 0 ; | |
12382 | int res1 = 0 ; | |
12383 | PyObject *swig_obj[1] ; | |
12384 | ||
12385 | if (!args) SWIG_fail; | |
12386 | swig_obj[0] = args; | |
12387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12388 | if (!SWIG_IsOK(res1)) { | |
12389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12390 | } | |
12391 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12392 | { | |
12393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12394 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
12395 | wxPyEndAllowThreads(__tstate); | |
12396 | if (PyErr_Occurred()) SWIG_fail; | |
12397 | } | |
12398 | { | |
12399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12400 | } | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | return NULL; | |
d55e5bfc RD |
12404 | } |
12405 | ||
12406 | ||
554f62e9 RD |
12407 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12408 | PyObject *resultobj = 0; | |
12409 | wxFont *arg1 = (wxFont *) 0 ; | |
12410 | int result; | |
12411 | void *argp1 = 0 ; | |
12412 | int res1 = 0 ; | |
12413 | PyObject *swig_obj[1] ; | |
12414 | ||
12415 | if (!args) SWIG_fail; | |
12416 | swig_obj[0] = args; | |
12417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12418 | if (!SWIG_IsOK(res1)) { | |
12419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12420 | } | |
12421 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12422 | { | |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12429 | return resultobj; | |
12430 | fail: | |
12431 | return NULL; | |
d55e5bfc RD |
12432 | } |
12433 | ||
12434 | ||
554f62e9 RD |
12435 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12436 | PyObject *resultobj = 0; | |
12437 | wxFont *arg1 = (wxFont *) 0 ; | |
12438 | int result; | |
12439 | void *argp1 = 0 ; | |
12440 | int res1 = 0 ; | |
12441 | PyObject *swig_obj[1] ; | |
12442 | ||
12443 | if (!args) SWIG_fail; | |
12444 | swig_obj[0] = args; | |
12445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12446 | if (!SWIG_IsOK(res1)) { | |
12447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12448 | } | |
12449 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12450 | { | |
12451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12452 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
d55e5bfc RD |
12460 | } |
12461 | ||
12462 | ||
554f62e9 RD |
12463 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12464 | PyObject *resultobj = 0; | |
12465 | wxFont *arg1 = (wxFont *) 0 ; | |
12466 | int result; | |
12467 | void *argp1 = 0 ; | |
12468 | int res1 = 0 ; | |
12469 | PyObject *swig_obj[1] ; | |
12470 | ||
12471 | if (!args) SWIG_fail; | |
12472 | swig_obj[0] = args; | |
12473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12474 | if (!SWIG_IsOK(res1)) { | |
12475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12476 | } | |
12477 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12478 | { | |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
d55e5bfc RD |
12488 | } |
12489 | ||
12490 | ||
554f62e9 RD |
12491 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12492 | PyObject *resultobj = 0; | |
12493 | wxFont *arg1 = (wxFont *) 0 ; | |
12494 | bool result; | |
12495 | void *argp1 = 0 ; | |
12496 | int res1 = 0 ; | |
12497 | PyObject *swig_obj[1] ; | |
12498 | ||
12499 | if (!args) SWIG_fail; | |
12500 | swig_obj[0] = args; | |
12501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12502 | if (!SWIG_IsOK(res1)) { | |
12503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12504 | } | |
12505 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12506 | { | |
12507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12508 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
12509 | wxPyEndAllowThreads(__tstate); | |
12510 | if (PyErr_Occurred()) SWIG_fail; | |
12511 | } | |
12512 | { | |
12513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12514 | } | |
12515 | return resultobj; | |
12516 | fail: | |
12517 | return NULL; | |
d55e5bfc RD |
12518 | } |
12519 | ||
12520 | ||
554f62e9 RD |
12521 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12522 | PyObject *resultobj = 0; | |
12523 | wxFont *arg1 = (wxFont *) 0 ; | |
12524 | wxString result; | |
12525 | void *argp1 = 0 ; | |
12526 | int res1 = 0 ; | |
12527 | PyObject *swig_obj[1] ; | |
12528 | ||
12529 | if (!args) SWIG_fail; | |
12530 | swig_obj[0] = args; | |
12531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12532 | if (!SWIG_IsOK(res1)) { | |
12533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12534 | } | |
12535 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12536 | { | |
12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12538 | result = ((wxFont const *)arg1)->GetFaceName(); | |
12539 | wxPyEndAllowThreads(__tstate); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
12542 | { | |
12543 | #if wxUSE_UNICODE | |
12544 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12545 | #else | |
12546 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12547 | #endif | |
12548 | } | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | return NULL; | |
d55e5bfc RD |
12552 | } |
12553 | ||
12554 | ||
554f62e9 RD |
12555 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12556 | PyObject *resultobj = 0; | |
12557 | wxFont *arg1 = (wxFont *) 0 ; | |
12558 | wxFontEncoding result; | |
12559 | void *argp1 = 0 ; | |
12560 | int res1 = 0 ; | |
12561 | PyObject *swig_obj[1] ; | |
12562 | ||
12563 | if (!args) SWIG_fail; | |
12564 | swig_obj[0] = args; | |
12565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12566 | if (!SWIG_IsOK(res1)) { | |
12567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12568 | } | |
12569 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12570 | { | |
12571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12572 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12577 | return resultobj; | |
12578 | fail: | |
12579 | return NULL; | |
d55e5bfc RD |
12580 | } |
12581 | ||
12582 | ||
554f62e9 RD |
12583 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12584 | PyObject *resultobj = 0; | |
12585 | wxFont *arg1 = (wxFont *) 0 ; | |
12586 | wxNativeFontInfo *result = 0 ; | |
12587 | void *argp1 = 0 ; | |
12588 | int res1 = 0 ; | |
12589 | PyObject *swig_obj[1] ; | |
12590 | ||
12591 | if (!args) SWIG_fail; | |
12592 | swig_obj[0] = args; | |
12593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12594 | if (!SWIG_IsOK(res1)) { | |
12595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12596 | } | |
12597 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
d55e5bfc RD |
12608 | } |
12609 | ||
12610 | ||
554f62e9 RD |
12611 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12612 | PyObject *resultobj = 0; | |
12613 | wxFont *arg1 = (wxFont *) 0 ; | |
12614 | bool result; | |
12615 | void *argp1 = 0 ; | |
12616 | int res1 = 0 ; | |
12617 | PyObject *swig_obj[1] ; | |
12618 | ||
12619 | if (!args) SWIG_fail; | |
12620 | swig_obj[0] = args; | |
12621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12622 | if (!SWIG_IsOK(res1)) { | |
12623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12624 | } | |
12625 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | { | |
12633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12634 | } | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
d55e5bfc RD |
12638 | } |
12639 | ||
12640 | ||
554f62e9 RD |
12641 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12642 | PyObject *resultobj = 0; | |
12643 | wxFont *arg1 = (wxFont *) 0 ; | |
12644 | wxString result; | |
12645 | void *argp1 = 0 ; | |
12646 | int res1 = 0 ; | |
12647 | PyObject *swig_obj[1] ; | |
12648 | ||
12649 | if (!args) SWIG_fail; | |
12650 | swig_obj[0] = args; | |
12651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12652 | if (!SWIG_IsOK(res1)) { | |
12653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12654 | } | |
12655 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
12659 | wxPyEndAllowThreads(__tstate); | |
12660 | if (PyErr_Occurred()) SWIG_fail; | |
12661 | } | |
12662 | { | |
12663 | #if wxUSE_UNICODE | |
12664 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12665 | #else | |
12666 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12667 | #endif | |
12668 | } | |
12669 | return resultobj; | |
12670 | fail: | |
12671 | return NULL; | |
d55e5bfc RD |
12672 | } |
12673 | ||
12674 | ||
554f62e9 RD |
12675 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12676 | PyObject *resultobj = 0; | |
12677 | wxFont *arg1 = (wxFont *) 0 ; | |
12678 | wxString result; | |
12679 | void *argp1 = 0 ; | |
12680 | int res1 = 0 ; | |
12681 | PyObject *swig_obj[1] ; | |
12682 | ||
12683 | if (!args) SWIG_fail; | |
12684 | swig_obj[0] = args; | |
12685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12686 | if (!SWIG_IsOK(res1)) { | |
12687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12688 | } | |
12689 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12690 | { | |
12691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12692 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
12693 | wxPyEndAllowThreads(__tstate); | |
12694 | if (PyErr_Occurred()) SWIG_fail; | |
12695 | } | |
12696 | { | |
12697 | #if wxUSE_UNICODE | |
12698 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12699 | #else | |
12700 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12701 | #endif | |
12702 | } | |
12703 | return resultobj; | |
12704 | fail: | |
12705 | return NULL; | |
12706 | } | |
12707 | ||
12708 | ||
12709 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12710 | PyObject *resultobj = 0; | |
12711 | wxFont *arg1 = (wxFont *) 0 ; | |
12712 | int arg2 ; | |
12713 | void *argp1 = 0 ; | |
12714 | int res1 = 0 ; | |
12715 | int val2 ; | |
12716 | int ecode2 = 0 ; | |
12717 | PyObject * obj0 = 0 ; | |
12718 | PyObject * obj1 = 0 ; | |
12719 | char * kwnames[] = { | |
12720 | (char *) "self",(char *) "pointSize", NULL | |
12721 | }; | |
12722 | ||
12723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12725 | if (!SWIG_IsOK(res1)) { | |
12726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12727 | } | |
12728 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12729 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12730 | if (!SWIG_IsOK(ecode2)) { | |
12731 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12732 | } | |
12733 | arg2 = static_cast< int >(val2); | |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | (arg1)->SetPointSize(arg2); | |
12737 | wxPyEndAllowThreads(__tstate); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | } | |
12740 | resultobj = SWIG_Py_Void(); | |
12741 | return resultobj; | |
12742 | fail: | |
12743 | return NULL; | |
12744 | } | |
12745 | ||
12746 | ||
12747 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12748 | PyObject *resultobj = 0; | |
12749 | wxFont *arg1 = (wxFont *) 0 ; | |
12750 | wxSize *arg2 = 0 ; | |
12751 | void *argp1 = 0 ; | |
12752 | int res1 = 0 ; | |
12753 | wxSize temp2 ; | |
12754 | PyObject * obj0 = 0 ; | |
12755 | PyObject * obj1 = 0 ; | |
12756 | char * kwnames[] = { | |
12757 | (char *) "self",(char *) "pixelSize", NULL | |
12758 | }; | |
12759 | ||
12760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12762 | if (!SWIG_IsOK(res1)) { | |
12763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12764 | } | |
12765 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12766 | { | |
12767 | arg2 = &temp2; | |
12768 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | resultobj = SWIG_Py_Void(); | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
12783 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12784 | PyObject *resultobj = 0; | |
12785 | wxFont *arg1 = (wxFont *) 0 ; | |
12786 | int arg2 ; | |
12787 | void *argp1 = 0 ; | |
12788 | int res1 = 0 ; | |
12789 | int val2 ; | |
12790 | int ecode2 = 0 ; | |
12791 | PyObject * obj0 = 0 ; | |
12792 | PyObject * obj1 = 0 ; | |
12793 | char * kwnames[] = { | |
12794 | (char *) "self",(char *) "family", NULL | |
12795 | }; | |
12796 | ||
12797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12799 | if (!SWIG_IsOK(res1)) { | |
12800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12801 | } | |
12802 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12803 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12804 | if (!SWIG_IsOK(ecode2)) { | |
12805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
12806 | } | |
12807 | arg2 = static_cast< int >(val2); | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | (arg1)->SetFamily(arg2); | |
12811 | wxPyEndAllowThreads(__tstate); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | } | |
12814 | resultobj = SWIG_Py_Void(); | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
12818 | } | |
12819 | ||
12820 | ||
12821 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12822 | PyObject *resultobj = 0; | |
12823 | wxFont *arg1 = (wxFont *) 0 ; | |
12824 | int arg2 ; | |
12825 | void *argp1 = 0 ; | |
12826 | int res1 = 0 ; | |
12827 | int val2 ; | |
12828 | int ecode2 = 0 ; | |
12829 | PyObject * obj0 = 0 ; | |
12830 | PyObject * obj1 = 0 ; | |
12831 | char * kwnames[] = { | |
12832 | (char *) "self",(char *) "style", NULL | |
12833 | }; | |
12834 | ||
12835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12837 | if (!SWIG_IsOK(res1)) { | |
12838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12839 | } | |
12840 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12841 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12842 | if (!SWIG_IsOK(ecode2)) { | |
12843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
12844 | } | |
12845 | arg2 = static_cast< int >(val2); | |
12846 | { | |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | (arg1)->SetStyle(arg2); | |
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | resultobj = SWIG_Py_Void(); | |
12853 | return resultobj; | |
12854 | fail: | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
12859 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12860 | PyObject *resultobj = 0; | |
12861 | wxFont *arg1 = (wxFont *) 0 ; | |
12862 | int arg2 ; | |
12863 | void *argp1 = 0 ; | |
12864 | int res1 = 0 ; | |
12865 | int val2 ; | |
12866 | int ecode2 = 0 ; | |
12867 | PyObject * obj0 = 0 ; | |
12868 | PyObject * obj1 = 0 ; | |
12869 | char * kwnames[] = { | |
12870 | (char *) "self",(char *) "weight", NULL | |
12871 | }; | |
12872 | ||
12873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12875 | if (!SWIG_IsOK(res1)) { | |
12876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12877 | } | |
12878 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12880 | if (!SWIG_IsOK(ecode2)) { | |
12881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
12882 | } | |
12883 | arg2 = static_cast< int >(val2); | |
12884 | { | |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | (arg1)->SetWeight(arg2); | |
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | resultobj = SWIG_Py_Void(); | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12898 | PyObject *resultobj = 0; | |
12899 | wxFont *arg1 = (wxFont *) 0 ; | |
12900 | wxString *arg2 = 0 ; | |
12901 | void *argp1 = 0 ; | |
12902 | int res1 = 0 ; | |
12903 | bool temp2 = false ; | |
12904 | PyObject * obj0 = 0 ; | |
12905 | PyObject * obj1 = 0 ; | |
12906 | char * kwnames[] = { | |
12907 | (char *) "self",(char *) "faceName", NULL | |
12908 | }; | |
12909 | ||
12910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12912 | if (!SWIG_IsOK(res1)) { | |
12913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12914 | } | |
12915 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12916 | { | |
12917 | arg2 = wxString_in_helper(obj1); | |
12918 | if (arg2 == NULL) SWIG_fail; | |
12919 | temp2 = true; | |
12920 | } | |
12921 | { | |
12922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12923 | (arg1)->SetFaceName((wxString const &)*arg2); | |
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
12927 | resultobj = SWIG_Py_Void(); | |
12928 | { | |
12929 | if (temp2) | |
12930 | delete arg2; | |
12931 | } | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | { | |
12935 | if (temp2) | |
12936 | delete arg2; | |
12937 | } | |
12938 | return NULL; | |
12939 | } | |
12940 | ||
12941 | ||
12942 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12943 | PyObject *resultobj = 0; | |
12944 | wxFont *arg1 = (wxFont *) 0 ; | |
12945 | bool arg2 ; | |
12946 | void *argp1 = 0 ; | |
12947 | int res1 = 0 ; | |
12948 | bool val2 ; | |
12949 | int ecode2 = 0 ; | |
12950 | PyObject * obj0 = 0 ; | |
12951 | PyObject * obj1 = 0 ; | |
12952 | char * kwnames[] = { | |
12953 | (char *) "self",(char *) "underlined", NULL | |
12954 | }; | |
12955 | ||
12956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12958 | if (!SWIG_IsOK(res1)) { | |
12959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12960 | } | |
12961 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12962 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12963 | if (!SWIG_IsOK(ecode2)) { | |
12964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12965 | } | |
12966 | arg2 = static_cast< bool >(val2); | |
12967 | { | |
12968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12969 | (arg1)->SetUnderlined(arg2); | |
12970 | wxPyEndAllowThreads(__tstate); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
12973 | resultobj = SWIG_Py_Void(); | |
12974 | return resultobj; | |
12975 | fail: | |
12976 | return NULL; | |
12977 | } | |
12978 | ||
12979 | ||
12980 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12981 | PyObject *resultobj = 0; | |
12982 | wxFont *arg1 = (wxFont *) 0 ; | |
12983 | wxFontEncoding arg2 ; | |
12984 | void *argp1 = 0 ; | |
12985 | int res1 = 0 ; | |
12986 | int val2 ; | |
12987 | int ecode2 = 0 ; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | PyObject * obj1 = 0 ; | |
12990 | char * kwnames[] = { | |
12991 | (char *) "self",(char *) "encoding", NULL | |
12992 | }; | |
12993 | ||
12994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12996 | if (!SWIG_IsOK(res1)) { | |
12997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12998 | } | |
12999 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13000 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13001 | if (!SWIG_IsOK(ecode2)) { | |
13002 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13003 | } | |
13004 | arg2 = static_cast< wxFontEncoding >(val2); | |
13005 | { | |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | (arg1)->SetEncoding(arg2); | |
13008 | wxPyEndAllowThreads(__tstate); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
13011 | resultobj = SWIG_Py_Void(); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj = 0; | |
13020 | wxFont *arg1 = (wxFont *) 0 ; | |
13021 | wxNativeFontInfo *arg2 = 0 ; | |
13022 | void *argp1 = 0 ; | |
13023 | int res1 = 0 ; | |
13024 | void *argp2 = 0 ; | |
13025 | int res2 = 0 ; | |
13026 | PyObject * obj0 = 0 ; | |
13027 | PyObject * obj1 = 0 ; | |
13028 | char * kwnames[] = { | |
13029 | (char *) "self",(char *) "info", NULL | |
13030 | }; | |
13031 | ||
13032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
13033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13034 | if (!SWIG_IsOK(res1)) { | |
13035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13036 | } | |
13037 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13038 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13039 | if (!SWIG_IsOK(res2)) { | |
13040 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
13041 | } | |
13042 | if (!argp2) { | |
13043 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
13044 | } | |
13045 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
13046 | { | |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
13049 | wxPyEndAllowThreads(__tstate); | |
13050 | if (PyErr_Occurred()) SWIG_fail; | |
13051 | } | |
13052 | resultobj = SWIG_Py_Void(); | |
13053 | return resultobj; | |
13054 | fail: | |
13055 | return NULL; | |
13056 | } | |
13057 | ||
13058 | ||
13059 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj = 0; | |
13061 | wxFont *arg1 = (wxFont *) 0 ; | |
13062 | wxString *arg2 = 0 ; | |
13063 | void *argp1 = 0 ; | |
13064 | int res1 = 0 ; | |
13065 | bool temp2 = false ; | |
13066 | PyObject * obj0 = 0 ; | |
13067 | PyObject * obj1 = 0 ; | |
13068 | char * kwnames[] = { | |
13069 | (char *) "self",(char *) "info", NULL | |
13070 | }; | |
13071 | ||
13072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13074 | if (!SWIG_IsOK(res1)) { | |
13075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13076 | } | |
13077 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13078 | { | |
13079 | arg2 = wxString_in_helper(obj1); | |
13080 | if (arg2 == NULL) SWIG_fail; | |
13081 | temp2 = true; | |
13082 | } | |
13083 | { | |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
13086 | wxPyEndAllowThreads(__tstate); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | } | |
13089 | resultobj = SWIG_Py_Void(); | |
13090 | { | |
13091 | if (temp2) | |
13092 | delete arg2; | |
13093 | } | |
13094 | return resultobj; | |
13095 | fail: | |
13096 | { | |
13097 | if (temp2) | |
13098 | delete arg2; | |
13099 | } | |
13100 | return NULL; | |
d55e5bfc RD |
13101 | } |
13102 | ||
13103 | ||
554f62e9 RD |
13104 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13105 | PyObject *resultobj = 0; | |
13106 | wxFont *arg1 = (wxFont *) 0 ; | |
13107 | wxString *arg2 = 0 ; | |
13108 | void *argp1 = 0 ; | |
13109 | int res1 = 0 ; | |
13110 | bool temp2 = false ; | |
13111 | PyObject * obj0 = 0 ; | |
13112 | PyObject * obj1 = 0 ; | |
13113 | char * kwnames[] = { | |
13114 | (char *) "self",(char *) "info", NULL | |
13115 | }; | |
13116 | ||
13117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
13118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13119 | if (!SWIG_IsOK(res1)) { | |
13120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13121 | } | |
13122 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13123 | { | |
13124 | arg2 = wxString_in_helper(obj1); | |
13125 | if (arg2 == NULL) SWIG_fail; | |
13126 | temp2 = true; | |
13127 | } | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | resultobj = SWIG_Py_Void(); | |
13135 | { | |
13136 | if (temp2) | |
13137 | delete arg2; | |
13138 | } | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | { | |
13142 | if (temp2) | |
13143 | delete arg2; | |
13144 | } | |
13145 | return NULL; | |
d55e5bfc RD |
13146 | } |
13147 | ||
13148 | ||
554f62e9 RD |
13149 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13150 | PyObject *resultobj = 0; | |
13151 | wxFont *arg1 = (wxFont *) 0 ; | |
13152 | wxString result; | |
13153 | void *argp1 = 0 ; | |
13154 | int res1 = 0 ; | |
13155 | PyObject *swig_obj[1] ; | |
13156 | ||
13157 | if (!args) SWIG_fail; | |
13158 | swig_obj[0] = args; | |
13159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13160 | if (!SWIG_IsOK(res1)) { | |
13161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13162 | } | |
13163 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13166 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
13167 | wxPyEndAllowThreads(__tstate); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | } | |
13170 | { | |
13171 | #if wxUSE_UNICODE | |
13172 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13173 | #else | |
13174 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13175 | #endif | |
13176 | } | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | return NULL; | |
d55e5bfc RD |
13180 | } |
13181 | ||
13182 | ||
554f62e9 RD |
13183 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13184 | PyObject *resultobj = 0; | |
13185 | wxFont *arg1 = (wxFont *) 0 ; | |
13186 | wxString result; | |
13187 | void *argp1 = 0 ; | |
13188 | int res1 = 0 ; | |
13189 | PyObject *swig_obj[1] ; | |
13190 | ||
13191 | if (!args) SWIG_fail; | |
13192 | swig_obj[0] = args; | |
13193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13194 | if (!SWIG_IsOK(res1)) { | |
13195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13196 | } | |
13197 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | result = ((wxFont const *)arg1)->GetStyleString(); | |
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | { | |
13205 | #if wxUSE_UNICODE | |
13206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13207 | #else | |
13208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13209 | #endif | |
13210 | } | |
13211 | return resultobj; | |
13212 | fail: | |
13213 | return NULL; | |
d55e5bfc RD |
13214 | } |
13215 | ||
13216 | ||
554f62e9 RD |
13217 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13218 | PyObject *resultobj = 0; | |
13219 | wxFont *arg1 = (wxFont *) 0 ; | |
13220 | wxString result; | |
13221 | void *argp1 = 0 ; | |
13222 | int res1 = 0 ; | |
13223 | PyObject *swig_obj[1] ; | |
13224 | ||
13225 | if (!args) SWIG_fail; | |
13226 | swig_obj[0] = args; | |
13227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13228 | if (!SWIG_IsOK(res1)) { | |
13229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13230 | } | |
13231 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13232 | { | |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | result = ((wxFont const *)arg1)->GetWeightString(); | |
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | { | |
13239 | #if wxUSE_UNICODE | |
13240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13241 | #else | |
13242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13243 | #endif | |
13244 | } | |
13245 | return resultobj; | |
13246 | fail: | |
13247 | return NULL; | |
13248 | } | |
13249 | ||
13250 | ||
13251 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13252 | PyObject *resultobj = 0; | |
13253 | wxFont *arg1 = (wxFont *) 0 ; | |
13254 | bool arg2 = (bool) true ; | |
13255 | void *argp1 = 0 ; | |
13256 | int res1 = 0 ; | |
13257 | bool val2 ; | |
13258 | int ecode2 = 0 ; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | PyObject * obj1 = 0 ; | |
13261 | char * kwnames[] = { | |
13262 | (char *) "self",(char *) "no", NULL | |
13263 | }; | |
13264 | ||
13265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
13266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13267 | if (!SWIG_IsOK(res1)) { | |
13268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13269 | } | |
13270 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13271 | if (obj1) { | |
13272 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13273 | if (!SWIG_IsOK(ecode2)) { | |
13274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
13275 | } | |
13276 | arg2 = static_cast< bool >(val2); | |
13277 | } | |
13278 | { | |
13279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13280 | (arg1)->SetNoAntiAliasing(arg2); | |
13281 | wxPyEndAllowThreads(__tstate); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | } | |
13284 | resultobj = SWIG_Py_Void(); | |
13285 | return resultobj; | |
13286 | fail: | |
13287 | return NULL; | |
d55e5bfc RD |
13288 | } |
13289 | ||
13290 | ||
554f62e9 RD |
13291 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13292 | PyObject *resultobj = 0; | |
13293 | wxFont *arg1 = (wxFont *) 0 ; | |
13294 | bool result; | |
13295 | void *argp1 = 0 ; | |
13296 | int res1 = 0 ; | |
13297 | PyObject *swig_obj[1] ; | |
13298 | ||
13299 | if (!args) SWIG_fail; | |
13300 | swig_obj[0] = args; | |
13301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13302 | if (!SWIG_IsOK(res1)) { | |
13303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13304 | } | |
13305 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13306 | { | |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
13309 | wxPyEndAllowThreads(__tstate); | |
13310 | if (PyErr_Occurred()) SWIG_fail; | |
13311 | } | |
13312 | { | |
13313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13314 | } | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | return NULL; | |
d55e5bfc RD |
13318 | } |
13319 | ||
13320 | ||
554f62e9 RD |
13321 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13322 | PyObject *resultobj = 0; | |
13323 | wxFontEncoding result; | |
13324 | ||
13325 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
13326 | { | |
13327 | if (!wxPyCheckForApp()) SWIG_fail; | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
13330 | wxPyEndAllowThreads(__tstate); | |
13331 | if (PyErr_Occurred()) SWIG_fail; | |
13332 | } | |
13333 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | return NULL; | |
d55e5bfc RD |
13337 | } |
13338 | ||
13339 | ||
554f62e9 RD |
13340 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13341 | PyObject *resultobj = 0; | |
13342 | wxFontEncoding arg1 ; | |
13343 | int val1 ; | |
13344 | int ecode1 = 0 ; | |
13345 | PyObject * obj0 = 0 ; | |
13346 | char * kwnames[] = { | |
13347 | (char *) "encoding", NULL | |
13348 | }; | |
13349 | ||
13350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
13351 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13352 | if (!SWIG_IsOK(ecode1)) { | |
13353 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13354 | } | |
13355 | arg1 = static_cast< wxFontEncoding >(val1); | |
13356 | { | |
13357 | if (!wxPyCheckForApp()) SWIG_fail; | |
13358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13359 | wxFont::SetDefaultEncoding(arg1); | |
13360 | wxPyEndAllowThreads(__tstate); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
13363 | resultobj = SWIG_Py_Void(); | |
13364 | return resultobj; | |
13365 | fail: | |
13366 | return NULL; | |
5e483524 RD |
13367 | } |
13368 | ||
13369 | ||
554f62e9 RD |
13370 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13371 | PyObject *obj; | |
13372 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13373 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
13374 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13375 | } |
13376 | ||
554f62e9 RD |
13377 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13378 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13379 | } |
13380 | ||
554f62e9 RD |
13381 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13382 | PyObject *resultobj = 0; | |
13383 | wxPyFontEnumerator *result = 0 ; | |
13384 | ||
13385 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
13386 | { | |
13387 | if (!wxPyCheckForApp()) SWIG_fail; | |
13388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13389 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
13390 | wxPyEndAllowThreads(__tstate); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
13393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
13394 | return resultobj; | |
13395 | fail: | |
13396 | return NULL; | |
d55e5bfc RD |
13397 | } |
13398 | ||
13399 | ||
554f62e9 RD |
13400 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13401 | PyObject *resultobj = 0; | |
13402 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13403 | void *argp1 = 0 ; | |
13404 | int res1 = 0 ; | |
13405 | PyObject *swig_obj[1] ; | |
13406 | ||
13407 | if (!args) SWIG_fail; | |
13408 | swig_obj[0] = args; | |
13409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
13410 | if (!SWIG_IsOK(res1)) { | |
13411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13412 | } | |
13413 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13414 | { | |
13415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13416 | delete arg1; | |
d55e5bfc | 13417 | |
554f62e9 RD |
13418 | wxPyEndAllowThreads(__tstate); |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | resultobj = SWIG_Py_Void(); | |
13422 | return resultobj; | |
13423 | fail: | |
13424 | return NULL; | |
13425 | } | |
13426 | ||
13427 | ||
13428 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13429 | PyObject *resultobj = 0; | |
13430 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13431 | PyObject *arg2 = (PyObject *) 0 ; | |
13432 | PyObject *arg3 = (PyObject *) 0 ; | |
13433 | bool arg4 ; | |
13434 | void *argp1 = 0 ; | |
13435 | int res1 = 0 ; | |
13436 | bool val4 ; | |
13437 | int ecode4 = 0 ; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | PyObject * obj1 = 0 ; | |
13440 | PyObject * obj2 = 0 ; | |
13441 | PyObject * obj3 = 0 ; | |
13442 | char * kwnames[] = { | |
13443 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
13444 | }; | |
13445 | ||
13446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13448 | if (!SWIG_IsOK(res1)) { | |
13449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13450 | } | |
13451 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13452 | arg2 = obj1; | |
13453 | arg3 = obj2; | |
13454 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13455 | if (!SWIG_IsOK(ecode4)) { | |
13456 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
13457 | } | |
13458 | arg4 = static_cast< bool >(val4); | |
13459 | { | |
13460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13461 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | resultobj = SWIG_Py_Void(); | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | return NULL; | |
13469 | } | |
13470 | ||
13471 | ||
13472 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13473 | PyObject *resultobj = 0; | |
13474 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13475 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
13476 | bool arg3 = (bool) false ; | |
13477 | bool result; | |
13478 | void *argp1 = 0 ; | |
13479 | int res1 = 0 ; | |
13480 | int val2 ; | |
13481 | int ecode2 = 0 ; | |
13482 | bool val3 ; | |
13483 | int ecode3 = 0 ; | |
13484 | PyObject * obj0 = 0 ; | |
13485 | PyObject * obj1 = 0 ; | |
13486 | PyObject * obj2 = 0 ; | |
13487 | char * kwnames[] = { | |
13488 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
13489 | }; | |
13490 | ||
13491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13493 | if (!SWIG_IsOK(res1)) { | |
13494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13495 | } | |
13496 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13497 | if (obj1) { | |
13498 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13499 | if (!SWIG_IsOK(ecode2)) { | |
13500 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13501 | } | |
13502 | arg2 = static_cast< wxFontEncoding >(val2); | |
13503 | } | |
13504 | if (obj2) { | |
13505 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13506 | if (!SWIG_IsOK(ecode3)) { | |
13507 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
13508 | } | |
13509 | arg3 = static_cast< bool >(val3); | |
13510 | } | |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
13517 | { | |
13518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13519 | } | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
13526 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13527 | PyObject *resultobj = 0; | |
13528 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13529 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13530 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13531 | bool result; | |
13532 | void *argp1 = 0 ; | |
13533 | int res1 = 0 ; | |
13534 | bool temp2 = false ; | |
13535 | PyObject * obj0 = 0 ; | |
13536 | PyObject * obj1 = 0 ; | |
13537 | char * kwnames[] = { | |
13538 | (char *) "self",(char *) "facename", NULL | |
13539 | }; | |
13540 | ||
13541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
13542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13543 | if (!SWIG_IsOK(res1)) { | |
13544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13545 | } | |
13546 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13547 | if (obj1) { | |
093d3ff1 | 13548 | { |
554f62e9 RD |
13549 | arg2 = wxString_in_helper(obj1); |
13550 | if (arg2 == NULL) SWIG_fail; | |
13551 | temp2 = true; | |
093d3ff1 | 13552 | } |
554f62e9 RD |
13553 | } |
13554 | { | |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
13557 | wxPyEndAllowThreads(__tstate); | |
13558 | if (PyErr_Occurred()) SWIG_fail; | |
13559 | } | |
13560 | { | |
13561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13562 | } | |
13563 | { | |
13564 | if (temp2) | |
13565 | delete arg2; | |
13566 | } | |
13567 | return resultobj; | |
13568 | fail: | |
13569 | { | |
13570 | if (temp2) | |
13571 | delete arg2; | |
13572 | } | |
13573 | return NULL; | |
d55e5bfc RD |
13574 | } |
13575 | ||
13576 | ||
554f62e9 RD |
13577 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13578 | PyObject *resultobj = 0; | |
13579 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13580 | PyObject *result = 0 ; | |
13581 | void *argp1 = 0 ; | |
13582 | int res1 = 0 ; | |
13583 | PyObject *swig_obj[1] ; | |
13584 | ||
13585 | if (!args) SWIG_fail; | |
13586 | swig_obj[0] = args; | |
13587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13588 | if (!SWIG_IsOK(res1)) { | |
13589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13590 | } | |
13591 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13592 | { | |
13593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13594 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
13595 | wxPyEndAllowThreads(__tstate); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | } | |
13598 | resultobj = result; | |
13599 | return resultobj; | |
13600 | fail: | |
13601 | return NULL; | |
d55e5bfc RD |
13602 | } |
13603 | ||
13604 | ||
554f62e9 RD |
13605 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13606 | PyObject *resultobj = 0; | |
13607 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
13608 | PyObject *result = 0 ; | |
13609 | void *argp1 = 0 ; | |
13610 | int res1 = 0 ; | |
13611 | PyObject *swig_obj[1] ; | |
13612 | ||
13613 | if (!args) SWIG_fail; | |
13614 | swig_obj[0] = args; | |
13615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
13616 | if (!SWIG_IsOK(res1)) { | |
13617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
13618 | } | |
13619 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
13620 | { | |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
13623 | wxPyEndAllowThreads(__tstate); | |
13624 | if (PyErr_Occurred()) SWIG_fail; | |
13625 | } | |
13626 | resultobj = result; | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | return NULL; | |
d55e5bfc RD |
13630 | } |
13631 | ||
13632 | ||
554f62e9 RD |
13633 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13634 | PyObject *obj; | |
13635 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13636 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
13637 | return SWIG_Py_Void(); | |
5e483524 RD |
13638 | } |
13639 | ||
554f62e9 RD |
13640 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13641 | return SWIG_Python_InitShadowInstance(args); | |
13642 | } | |
5e483524 | 13643 | |
554f62e9 RD |
13644 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13645 | PyObject *resultobj = 0; | |
13646 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13647 | int arg2 ; | |
13648 | void *argp1 = 0 ; | |
13649 | int res1 = 0 ; | |
13650 | int val2 ; | |
13651 | int ecode2 = 0 ; | |
13652 | PyObject *swig_obj[2] ; | |
13653 | ||
13654 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
13655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13656 | if (!SWIG_IsOK(res1)) { | |
13657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13658 | } | |
13659 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13660 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13661 | if (!SWIG_IsOK(ecode2)) { | |
13662 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
13663 | } | |
13664 | arg2 = static_cast< int >(val2); | |
13665 | if (arg1) (arg1)->Language = arg2; | |
13666 | ||
13667 | resultobj = SWIG_Py_Void(); | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
d55e5bfc RD |
13671 | } |
13672 | ||
13673 | ||
554f62e9 RD |
13674 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13675 | PyObject *resultobj = 0; | |
13676 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13677 | int result; | |
13678 | void *argp1 = 0 ; | |
13679 | int res1 = 0 ; | |
13680 | PyObject *swig_obj[1] ; | |
13681 | ||
13682 | if (!args) SWIG_fail; | |
13683 | swig_obj[0] = args; | |
13684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13685 | if (!SWIG_IsOK(res1)) { | |
13686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13687 | } | |
13688 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13689 | result = (int) ((arg1)->Language); | |
13690 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13691 | return resultobj; | |
13692 | fail: | |
13693 | return NULL; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13698 | PyObject *resultobj = 0; | |
13699 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13700 | wxString *arg2 = (wxString *) 0 ; | |
13701 | void *argp1 = 0 ; | |
13702 | int res1 = 0 ; | |
13703 | bool temp2 = false ; | |
13704 | PyObject *swig_obj[2] ; | |
13705 | ||
13706 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
13707 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13708 | if (!SWIG_IsOK(res1)) { | |
13709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13710 | } | |
13711 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13712 | { | |
13713 | arg2 = wxString_in_helper(swig_obj[1]); | |
13714 | if (arg2 == NULL) SWIG_fail; | |
13715 | temp2 = true; | |
13716 | } | |
13717 | if (arg1) (arg1)->CanonicalName = *arg2; | |
13718 | ||
13719 | resultobj = SWIG_Py_Void(); | |
13720 | { | |
13721 | if (temp2) | |
13722 | delete arg2; | |
13723 | } | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | { | |
13727 | if (temp2) | |
13728 | delete arg2; | |
13729 | } | |
13730 | return NULL; | |
d55e5bfc RD |
13731 | } |
13732 | ||
13733 | ||
554f62e9 RD |
13734 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13735 | PyObject *resultobj = 0; | |
13736 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13737 | wxString *result = 0 ; | |
13738 | void *argp1 = 0 ; | |
13739 | int res1 = 0 ; | |
13740 | PyObject *swig_obj[1] ; | |
13741 | ||
13742 | if (!args) SWIG_fail; | |
13743 | swig_obj[0] = args; | |
13744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13745 | if (!SWIG_IsOK(res1)) { | |
13746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13747 | } | |
13748 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13749 | result = (wxString *)& ((arg1)->CanonicalName); | |
13750 | { | |
13751 | #if wxUSE_UNICODE | |
13752 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13753 | #else | |
13754 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13755 | #endif | |
13756 | } | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | return NULL; | |
d55e5bfc RD |
13760 | } |
13761 | ||
13762 | ||
554f62e9 RD |
13763 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13764 | PyObject *resultobj = 0; | |
13765 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13766 | wxString *arg2 = (wxString *) 0 ; | |
13767 | void *argp1 = 0 ; | |
13768 | int res1 = 0 ; | |
13769 | bool temp2 = false ; | |
13770 | PyObject *swig_obj[2] ; | |
13771 | ||
13772 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
13773 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13774 | if (!SWIG_IsOK(res1)) { | |
13775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13776 | } | |
13777 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13778 | { | |
13779 | arg2 = wxString_in_helper(swig_obj[1]); | |
13780 | if (arg2 == NULL) SWIG_fail; | |
13781 | temp2 = true; | |
13782 | } | |
13783 | if (arg1) (arg1)->Description = *arg2; | |
13784 | ||
13785 | resultobj = SWIG_Py_Void(); | |
13786 | { | |
13787 | if (temp2) | |
13788 | delete arg2; | |
13789 | } | |
13790 | return resultobj; | |
13791 | fail: | |
13792 | { | |
13793 | if (temp2) | |
13794 | delete arg2; | |
13795 | } | |
13796 | return NULL; | |
d55e5bfc RD |
13797 | } |
13798 | ||
13799 | ||
554f62e9 RD |
13800 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13801 | PyObject *resultobj = 0; | |
13802 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13803 | wxString *result = 0 ; | |
13804 | void *argp1 = 0 ; | |
13805 | int res1 = 0 ; | |
13806 | PyObject *swig_obj[1] ; | |
13807 | ||
13808 | if (!args) SWIG_fail; | |
13809 | swig_obj[0] = args; | |
13810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13811 | if (!SWIG_IsOK(res1)) { | |
13812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13813 | } | |
13814 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13815 | result = (wxString *)& ((arg1)->Description); | |
13816 | { | |
13817 | #if wxUSE_UNICODE | |
13818 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13819 | #else | |
13820 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13821 | #endif | |
13822 | } | |
13823 | return resultobj; | |
13824 | fail: | |
13825 | return NULL; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13830 | PyObject *obj; | |
13831 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13832 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
13833 | return SWIG_Py_Void(); | |
13834 | } | |
13835 | ||
13836 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13837 | PyObject *resultobj = 0; | |
13838 | int arg1 = (int) -1 ; | |
13839 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
13840 | wxLocale *result = 0 ; | |
13841 | int val1 ; | |
13842 | int ecode1 = 0 ; | |
13843 | int val2 ; | |
13844 | int ecode2 = 0 ; | |
13845 | PyObject * obj0 = 0 ; | |
13846 | PyObject * obj1 = 0 ; | |
13847 | char * kwnames[] = { | |
13848 | (char *) "language",(char *) "flags", NULL | |
13849 | }; | |
13850 | ||
13851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
13852 | if (obj0) { | |
13853 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13854 | if (!SWIG_IsOK(ecode1)) { | |
13855 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
13856 | } | |
13857 | arg1 = static_cast< int >(val1); | |
13858 | } | |
13859 | if (obj1) { | |
13860 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13861 | if (!SWIG_IsOK(ecode2)) { | |
13862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
13863 | } | |
13864 | arg2 = static_cast< int >(val2); | |
13865 | } | |
13866 | { | |
13867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13868 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
13869 | wxPyEndAllowThreads(__tstate); | |
13870 | if (PyErr_Occurred()) SWIG_fail; | |
13871 | } | |
13872 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
13873 | return resultobj; | |
13874 | fail: | |
13875 | return NULL; | |
d55e5bfc RD |
13876 | } |
13877 | ||
13878 | ||
554f62e9 RD |
13879 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13880 | PyObject *resultobj = 0; | |
13881 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13882 | void *argp1 = 0 ; | |
13883 | int res1 = 0 ; | |
13884 | PyObject *swig_obj[1] ; | |
13885 | ||
13886 | if (!args) SWIG_fail; | |
13887 | swig_obj[0] = args; | |
13888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
13889 | if (!SWIG_IsOK(res1)) { | |
13890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13891 | } | |
13892 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13893 | { | |
13894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13895 | delete arg1; | |
d55e5bfc | 13896 | |
554f62e9 RD |
13897 | wxPyEndAllowThreads(__tstate); |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | resultobj = SWIG_Py_Void(); | |
13901 | return resultobj; | |
13902 | fail: | |
13903 | return NULL; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13908 | PyObject *resultobj = 0; | |
13909 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13910 | wxString *arg2 = 0 ; | |
13911 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13912 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13913 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13914 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13915 | bool arg5 = (bool) true ; | |
13916 | bool arg6 = (bool) false ; | |
13917 | bool result; | |
13918 | void *argp1 = 0 ; | |
13919 | int res1 = 0 ; | |
13920 | bool temp2 = false ; | |
13921 | bool temp3 = false ; | |
13922 | bool temp4 = false ; | |
13923 | bool val5 ; | |
13924 | int ecode5 = 0 ; | |
13925 | bool val6 ; | |
13926 | int ecode6 = 0 ; | |
13927 | PyObject * obj0 = 0 ; | |
13928 | PyObject * obj1 = 0 ; | |
13929 | PyObject * obj2 = 0 ; | |
13930 | PyObject * obj3 = 0 ; | |
13931 | PyObject * obj4 = 0 ; | |
13932 | PyObject * obj5 = 0 ; | |
13933 | char * kwnames[] = { | |
13934 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
13935 | }; | |
13936 | ||
13937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13939 | if (!SWIG_IsOK(res1)) { | |
13940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13941 | } | |
13942 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13943 | { | |
13944 | arg2 = wxString_in_helper(obj1); | |
13945 | if (arg2 == NULL) SWIG_fail; | |
13946 | temp2 = true; | |
13947 | } | |
13948 | if (obj2) { | |
093d3ff1 | 13949 | { |
554f62e9 RD |
13950 | arg3 = wxString_in_helper(obj2); |
13951 | if (arg3 == NULL) SWIG_fail; | |
13952 | temp3 = true; | |
093d3ff1 | 13953 | } |
554f62e9 RD |
13954 | } |
13955 | if (obj3) { | |
d55e5bfc | 13956 | { |
554f62e9 RD |
13957 | arg4 = wxString_in_helper(obj3); |
13958 | if (arg4 == NULL) SWIG_fail; | |
13959 | temp4 = true; | |
d55e5bfc | 13960 | } |
554f62e9 RD |
13961 | } |
13962 | if (obj4) { | |
13963 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13964 | if (!SWIG_IsOK(ecode5)) { | |
13965 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
13966 | } | |
13967 | arg5 = static_cast< bool >(val5); | |
13968 | } | |
13969 | if (obj5) { | |
13970 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
13971 | if (!SWIG_IsOK(ecode6)) { | |
13972 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
13973 | } | |
13974 | arg6 = static_cast< bool >(val6); | |
13975 | } | |
13976 | { | |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13978 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | { | |
13983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13984 | } | |
13985 | { | |
13986 | if (temp2) | |
13987 | delete arg2; | |
13988 | } | |
13989 | { | |
13990 | if (temp3) | |
13991 | delete arg3; | |
13992 | } | |
13993 | { | |
13994 | if (temp4) | |
13995 | delete arg4; | |
13996 | } | |
13997 | return resultobj; | |
13998 | fail: | |
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 NULL; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14016 | PyObject *resultobj = 0; | |
14017 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14018 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
14019 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
14020 | bool result; | |
14021 | void *argp1 = 0 ; | |
14022 | int res1 = 0 ; | |
14023 | int val2 ; | |
14024 | int ecode2 = 0 ; | |
14025 | int val3 ; | |
14026 | int ecode3 = 0 ; | |
14027 | PyObject * obj0 = 0 ; | |
14028 | PyObject * obj1 = 0 ; | |
14029 | PyObject * obj2 = 0 ; | |
14030 | char * kwnames[] = { | |
14031 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
14032 | }; | |
14033 | ||
14034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14036 | if (!SWIG_IsOK(res1)) { | |
14037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
14038 | } | |
14039 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14040 | if (obj1) { | |
14041 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14042 | if (!SWIG_IsOK(ecode2)) { | |
14043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
14044 | } | |
14045 | arg2 = static_cast< int >(val2); | |
14046 | } | |
14047 | if (obj2) { | |
14048 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14049 | if (!SWIG_IsOK(ecode3)) { | |
14050 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
14051 | } | |
14052 | arg3 = static_cast< int >(val3); | |
14053 | } | |
14054 | { | |
14055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14056 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
14057 | wxPyEndAllowThreads(__tstate); | |
14058 | if (PyErr_Occurred()) SWIG_fail; | |
14059 | } | |
14060 | { | |
14061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14062 | } | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
d55e5bfc RD |
14066 | } |
14067 | ||
14068 | ||
554f62e9 RD |
14069 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14070 | PyObject *resultobj = 0; | |
14071 | int result; | |
14072 | ||
14073 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
14074 | { | |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | result = (int)wxLocale::GetSystemLanguage(); | |
14077 | wxPyEndAllowThreads(__tstate); | |
14078 | if (PyErr_Occurred()) SWIG_fail; | |
14079 | } | |
14080 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
d55e5bfc RD |
14084 | } |
14085 | ||
14086 | ||
554f62e9 RD |
14087 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14088 | PyObject *resultobj = 0; | |
14089 | wxFontEncoding result; | |
14090 | ||
14091 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
14092 | { | |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14099 | return resultobj; | |
14100 | fail: | |
14101 | return NULL; | |
d55e5bfc RD |
14102 | } |
14103 | ||
14104 | ||
554f62e9 RD |
14105 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14106 | PyObject *resultobj = 0; | |
14107 | wxString result; | |
14108 | ||
14109 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = wxLocale::GetSystemEncodingName(); | |
14113 | wxPyEndAllowThreads(__tstate); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
14115 | } | |
14116 | { | |
14117 | #if wxUSE_UNICODE | |
14118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14119 | #else | |
14120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14121 | #endif | |
14122 | } | |
14123 | return resultobj; | |
14124 | fail: | |
14125 | return NULL; | |
d55e5bfc RD |
14126 | } |
14127 | ||
14128 | ||
554f62e9 RD |
14129 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14130 | PyObject *resultobj = 0; | |
14131 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14132 | bool result; | |
14133 | void *argp1 = 0 ; | |
14134 | int res1 = 0 ; | |
14135 | PyObject *swig_obj[1] ; | |
14136 | ||
14137 | if (!args) SWIG_fail; | |
14138 | swig_obj[0] = args; | |
14139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14140 | if (!SWIG_IsOK(res1)) { | |
14141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14142 | } | |
14143 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14144 | { | |
14145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14146 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
14147 | wxPyEndAllowThreads(__tstate); | |
14148 | if (PyErr_Occurred()) SWIG_fail; | |
14149 | } | |
14150 | { | |
14151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14152 | } | |
14153 | return resultobj; | |
14154 | fail: | |
14155 | return NULL; | |
d55e5bfc RD |
14156 | } |
14157 | ||
14158 | ||
554f62e9 RD |
14159 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14160 | PyObject *resultobj = 0; | |
14161 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14162 | wxString result; | |
14163 | void *argp1 = 0 ; | |
14164 | int res1 = 0 ; | |
14165 | PyObject *swig_obj[1] ; | |
14166 | ||
14167 | if (!args) SWIG_fail; | |
14168 | swig_obj[0] = args; | |
14169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14170 | if (!SWIG_IsOK(res1)) { | |
14171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14172 | } | |
14173 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = ((wxLocale const *)arg1)->GetLocale(); | |
14177 | wxPyEndAllowThreads(__tstate); | |
14178 | if (PyErr_Occurred()) SWIG_fail; | |
14179 | } | |
14180 | { | |
14181 | #if wxUSE_UNICODE | |
14182 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14183 | #else | |
14184 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14185 | #endif | |
14186 | } | |
14187 | return resultobj; | |
14188 | fail: | |
14189 | return NULL; | |
d55e5bfc RD |
14190 | } |
14191 | ||
14192 | ||
554f62e9 RD |
14193 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14194 | PyObject *resultobj = 0; | |
14195 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14196 | int result; | |
14197 | void *argp1 = 0 ; | |
14198 | int res1 = 0 ; | |
14199 | PyObject *swig_obj[1] ; | |
14200 | ||
14201 | if (!args) SWIG_fail; | |
14202 | swig_obj[0] = args; | |
14203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14204 | if (!SWIG_IsOK(res1)) { | |
14205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14206 | } | |
14207 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14208 | { | |
14209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14210 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
14211 | wxPyEndAllowThreads(__tstate); | |
14212 | if (PyErr_Occurred()) SWIG_fail; | |
14213 | } | |
14214 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14215 | return resultobj; | |
14216 | fail: | |
14217 | return NULL; | |
d55e5bfc RD |
14218 | } |
14219 | ||
14220 | ||
554f62e9 RD |
14221 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14222 | PyObject *resultobj = 0; | |
14223 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14224 | wxString result; | |
14225 | void *argp1 = 0 ; | |
14226 | int res1 = 0 ; | |
14227 | PyObject *swig_obj[1] ; | |
14228 | ||
14229 | if (!args) SWIG_fail; | |
14230 | swig_obj[0] = args; | |
14231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14232 | if (!SWIG_IsOK(res1)) { | |
14233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14234 | } | |
14235 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14236 | { | |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = ((wxLocale const *)arg1)->GetSysName(); | |
14239 | wxPyEndAllowThreads(__tstate); | |
14240 | if (PyErr_Occurred()) SWIG_fail; | |
14241 | } | |
14242 | { | |
14243 | #if wxUSE_UNICODE | |
14244 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14245 | #else | |
14246 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14247 | #endif | |
14248 | } | |
14249 | return resultobj; | |
14250 | fail: | |
14251 | return NULL; | |
d55e5bfc RD |
14252 | } |
14253 | ||
14254 | ||
554f62e9 RD |
14255 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14256 | PyObject *resultobj = 0; | |
14257 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14258 | wxString result; | |
14259 | void *argp1 = 0 ; | |
14260 | int res1 = 0 ; | |
14261 | PyObject *swig_obj[1] ; | |
14262 | ||
14263 | if (!args) SWIG_fail; | |
14264 | swig_obj[0] = args; | |
14265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14266 | if (!SWIG_IsOK(res1)) { | |
14267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14268 | } | |
14269 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
14273 | wxPyEndAllowThreads(__tstate); | |
14274 | if (PyErr_Occurred()) SWIG_fail; | |
14275 | } | |
14276 | { | |
093d3ff1 | 14277 | #if wxUSE_UNICODE |
554f62e9 | 14278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14279 | #else |
554f62e9 | 14280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14281 | #endif |
554f62e9 RD |
14282 | } |
14283 | return resultobj; | |
14284 | fail: | |
14285 | return NULL; | |
d55e5bfc RD |
14286 | } |
14287 | ||
14288 | ||
554f62e9 RD |
14289 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14290 | PyObject *resultobj = 0; | |
14291 | wxString *arg1 = 0 ; | |
14292 | bool temp1 = false ; | |
14293 | PyObject * obj0 = 0 ; | |
14294 | char * kwnames[] = { | |
14295 | (char *) "prefix", NULL | |
14296 | }; | |
14297 | ||
14298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
14299 | { | |
14300 | arg1 = wxString_in_helper(obj0); | |
14301 | if (arg1 == NULL) SWIG_fail; | |
14302 | temp1 = true; | |
14303 | } | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
14307 | wxPyEndAllowThreads(__tstate); | |
14308 | if (PyErr_Occurred()) SWIG_fail; | |
14309 | } | |
14310 | resultobj = SWIG_Py_Void(); | |
14311 | { | |
14312 | if (temp1) | |
14313 | delete arg1; | |
14314 | } | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | { | |
14318 | if (temp1) | |
14319 | delete arg1; | |
14320 | } | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj = 0; | |
14327 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14328 | wxString *arg2 = 0 ; | |
14329 | bool result; | |
14330 | void *argp1 = 0 ; | |
14331 | int res1 = 0 ; | |
14332 | bool temp2 = false ; | |
14333 | PyObject * obj0 = 0 ; | |
14334 | PyObject * obj1 = 0 ; | |
14335 | char * kwnames[] = { | |
14336 | (char *) "self",(char *) "szDomain", NULL | |
14337 | }; | |
14338 | ||
14339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
14340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14341 | if (!SWIG_IsOK(res1)) { | |
14342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
14343 | } | |
14344 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14345 | { | |
14346 | arg2 = wxString_in_helper(obj1); | |
14347 | if (arg2 == NULL) SWIG_fail; | |
14348 | temp2 = true; | |
14349 | } | |
14350 | { | |
14351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14352 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
14353 | wxPyEndAllowThreads(__tstate); | |
14354 | if (PyErr_Occurred()) SWIG_fail; | |
14355 | } | |
14356 | { | |
14357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14358 | } | |
14359 | { | |
14360 | if (temp2) | |
14361 | delete arg2; | |
14362 | } | |
14363 | return resultobj; | |
14364 | fail: | |
14365 | { | |
14366 | if (temp2) | |
14367 | delete arg2; | |
14368 | } | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14374 | PyObject *resultobj = 0; | |
14375 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14376 | wxString *arg2 = 0 ; | |
14377 | bool result; | |
14378 | void *argp1 = 0 ; | |
14379 | int res1 = 0 ; | |
14380 | bool temp2 = false ; | |
14381 | PyObject * obj0 = 0 ; | |
14382 | PyObject * obj1 = 0 ; | |
14383 | char * kwnames[] = { | |
14384 | (char *) "self",(char *) "szDomain", NULL | |
14385 | }; | |
14386 | ||
14387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
14388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14389 | if (!SWIG_IsOK(res1)) { | |
14390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14391 | } | |
14392 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14393 | { | |
14394 | arg2 = wxString_in_helper(obj1); | |
14395 | if (arg2 == NULL) SWIG_fail; | |
14396 | temp2 = true; | |
14397 | } | |
14398 | { | |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
14401 | wxPyEndAllowThreads(__tstate); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | } | |
14404 | { | |
14405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14406 | } | |
14407 | { | |
14408 | if (temp2) | |
14409 | delete arg2; | |
14410 | } | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | { | |
14414 | if (temp2) | |
14415 | delete arg2; | |
14416 | } | |
14417 | return NULL; | |
d55e5bfc RD |
14418 | } |
14419 | ||
14420 | ||
554f62e9 RD |
14421 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14422 | PyObject *resultobj = 0; | |
14423 | int arg1 ; | |
14424 | wxLanguageInfo *result = 0 ; | |
14425 | int val1 ; | |
14426 | int ecode1 = 0 ; | |
14427 | PyObject * obj0 = 0 ; | |
14428 | char * kwnames[] = { | |
14429 | (char *) "lang", NULL | |
14430 | }; | |
14431 | ||
14432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
14433 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14434 | if (!SWIG_IsOK(ecode1)) { | |
14435 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
14436 | } | |
14437 | arg1 = static_cast< int >(val1); | |
14438 | { | |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
14445 | return resultobj; | |
14446 | fail: | |
14447 | return NULL; | |
14448 | } | |
14449 | ||
14450 | ||
14451 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14452 | PyObject *resultobj = 0; | |
14453 | int arg1 ; | |
14454 | wxString result; | |
14455 | int val1 ; | |
14456 | int ecode1 = 0 ; | |
14457 | PyObject * obj0 = 0 ; | |
14458 | char * kwnames[] = { | |
14459 | (char *) "lang", NULL | |
14460 | }; | |
14461 | ||
14462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
14463 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14464 | if (!SWIG_IsOK(ecode1)) { | |
14465 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
14466 | } | |
14467 | arg1 = static_cast< int >(val1); | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = wxLocale::GetLanguageName(arg1); | |
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | { | |
14475 | #if wxUSE_UNICODE | |
14476 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14477 | #else | |
14478 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14479 | #endif | |
14480 | } | |
14481 | return resultobj; | |
14482 | fail: | |
14483 | return NULL; | |
093d3ff1 RD |
14484 | } |
14485 | ||
14486 | ||
554f62e9 RD |
14487 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14488 | PyObject *resultobj = 0; | |
14489 | wxString *arg1 = 0 ; | |
14490 | wxLanguageInfo *result = 0 ; | |
14491 | bool temp1 = false ; | |
14492 | PyObject * obj0 = 0 ; | |
14493 | char * kwnames[] = { | |
14494 | (char *) "locale", NULL | |
14495 | }; | |
14496 | ||
14497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
14498 | { | |
14499 | arg1 = wxString_in_helper(obj0); | |
14500 | if (arg1 == NULL) SWIG_fail; | |
14501 | temp1 = true; | |
14502 | } | |
14503 | { | |
14504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14505 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
14506 | wxPyEndAllowThreads(__tstate); | |
14507 | if (PyErr_Occurred()) SWIG_fail; | |
14508 | } | |
14509 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
14510 | { | |
14511 | if (temp1) | |
14512 | delete arg1; | |
14513 | } | |
14514 | return resultobj; | |
14515 | fail: | |
14516 | { | |
14517 | if (temp1) | |
14518 | delete arg1; | |
14519 | } | |
14520 | return NULL; | |
d55e5bfc RD |
14521 | } |
14522 | ||
14523 | ||
554f62e9 RD |
14524 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14525 | PyObject *resultobj = 0; | |
14526 | wxLanguageInfo *arg1 = 0 ; | |
14527 | void *argp1 = 0 ; | |
14528 | int res1 = 0 ; | |
14529 | PyObject * obj0 = 0 ; | |
14530 | char * kwnames[] = { | |
14531 | (char *) "info", NULL | |
14532 | }; | |
14533 | ||
14534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
14535 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
14536 | if (!SWIG_IsOK(res1)) { | |
14537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
14538 | } | |
14539 | if (!argp1) { | |
14540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
14541 | } | |
14542 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = SWIG_Py_Void(); | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj = 0; | |
14558 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14559 | wxString *arg2 = 0 ; | |
14560 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14561 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14562 | wxString result; | |
14563 | void *argp1 = 0 ; | |
14564 | int res1 = 0 ; | |
14565 | bool temp2 = false ; | |
14566 | bool temp3 = false ; | |
14567 | PyObject * obj0 = 0 ; | |
14568 | PyObject * obj1 = 0 ; | |
14569 | PyObject * obj2 = 0 ; | |
14570 | char * kwnames[] = { | |
14571 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
14572 | }; | |
14573 | ||
14574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14576 | if (!SWIG_IsOK(res1)) { | |
14577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14578 | } | |
14579 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14580 | { | |
14581 | arg2 = wxString_in_helper(obj1); | |
14582 | if (arg2 == NULL) SWIG_fail; | |
14583 | temp2 = true; | |
14584 | } | |
14585 | if (obj2) { | |
d55e5bfc | 14586 | { |
554f62e9 RD |
14587 | arg3 = wxString_in_helper(obj2); |
14588 | if (arg3 == NULL) SWIG_fail; | |
14589 | temp3 = true; | |
d55e5bfc | 14590 | } |
554f62e9 RD |
14591 | } |
14592 | { | |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | { | |
14599 | #if wxUSE_UNICODE | |
14600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14601 | #else | |
14602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14603 | #endif | |
14604 | } | |
14605 | { | |
14606 | if (temp2) | |
14607 | delete arg2; | |
14608 | } | |
14609 | { | |
14610 | if (temp3) | |
14611 | delete arg3; | |
14612 | } | |
14613 | return resultobj; | |
14614 | fail: | |
14615 | { | |
14616 | if (temp2) | |
14617 | delete arg2; | |
14618 | } | |
14619 | { | |
14620 | if (temp3) | |
14621 | delete arg3; | |
14622 | } | |
14623 | return NULL; | |
d55e5bfc RD |
14624 | } |
14625 | ||
14626 | ||
554f62e9 RD |
14627 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14628 | PyObject *resultobj = 0; | |
14629 | wxLocale *arg1 = (wxLocale *) 0 ; | |
14630 | wxString *result = 0 ; | |
14631 | void *argp1 = 0 ; | |
14632 | int res1 = 0 ; | |
14633 | PyObject *swig_obj[1] ; | |
14634 | ||
14635 | if (!args) SWIG_fail; | |
14636 | swig_obj[0] = args; | |
14637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14638 | if (!SWIG_IsOK(res1)) { | |
14639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
14640 | } | |
14641 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
14642 | { | |
14643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 14644 | { |
554f62e9 RD |
14645 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); |
14646 | result = (wxString *) &_result_ref; | |
d55e5bfc | 14647 | } |
554f62e9 RD |
14648 | wxPyEndAllowThreads(__tstate); |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | } | |
14651 | { | |
14652 | #if wxUSE_UNICODE | |
14653 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14654 | #else | |
14655 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14656 | #endif | |
14657 | } | |
14658 | return resultobj; | |
14659 | fail: | |
14660 | return NULL; | |
d55e5bfc RD |
14661 | } |
14662 | ||
14663 | ||
554f62e9 RD |
14664 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14665 | PyObject *obj; | |
14666 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14667 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
14668 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14669 | } |
14670 | ||
554f62e9 RD |
14671 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14672 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14673 | } |
14674 | ||
554f62e9 RD |
14675 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14676 | PyObject *resultobj = 0; | |
14677 | wxLocale *result = 0 ; | |
14678 | ||
14679 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
14680 | { | |
14681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14682 | result = (wxLocale *)wxGetLocale(); | |
14683 | wxPyEndAllowThreads(__tstate); | |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
14685 | } | |
14686 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14687 | return resultobj; | |
14688 | fail: | |
14689 | return NULL; | |
d55e5bfc RD |
14690 | } |
14691 | ||
14692 | ||
554f62e9 RD |
14693 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14694 | PyObject *resultobj = 0; | |
14695 | wxString *arg1 = 0 ; | |
14696 | wxString result; | |
14697 | bool temp1 = false ; | |
14698 | ||
14699 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
14700 | { | |
14701 | arg1 = wxString_in_helper(swig_obj[0]); | |
14702 | if (arg1 == NULL) SWIG_fail; | |
14703 | temp1 = true; | |
14704 | } | |
14705 | { | |
14706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14707 | result = wxGetTranslation((wxString const &)*arg1); | |
14708 | wxPyEndAllowThreads(__tstate); | |
14709 | if (PyErr_Occurred()) SWIG_fail; | |
14710 | } | |
14711 | { | |
093d3ff1 | 14712 | #if wxUSE_UNICODE |
554f62e9 | 14713 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14714 | #else |
554f62e9 | 14715 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14716 | #endif |
554f62e9 RD |
14717 | } |
14718 | { | |
14719 | if (temp1) | |
14720 | delete arg1; | |
14721 | } | |
14722 | return resultobj; | |
14723 | fail: | |
14724 | { | |
14725 | if (temp1) | |
14726 | delete arg1; | |
14727 | } | |
14728 | return NULL; | |
d55e5bfc RD |
14729 | } |
14730 | ||
14731 | ||
554f62e9 RD |
14732 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14733 | PyObject *resultobj = 0; | |
14734 | wxString *arg1 = 0 ; | |
14735 | wxString *arg2 = 0 ; | |
14736 | size_t arg3 ; | |
14737 | wxString result; | |
14738 | bool temp1 = false ; | |
14739 | bool temp2 = false ; | |
14740 | size_t val3 ; | |
14741 | int ecode3 = 0 ; | |
14742 | ||
14743 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
14744 | { | |
14745 | arg1 = wxString_in_helper(swig_obj[0]); | |
14746 | if (arg1 == NULL) SWIG_fail; | |
14747 | temp1 = true; | |
14748 | } | |
14749 | { | |
14750 | arg2 = wxString_in_helper(swig_obj[1]); | |
14751 | if (arg2 == NULL) SWIG_fail; | |
14752 | temp2 = true; | |
14753 | } | |
14754 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
14755 | if (!SWIG_IsOK(ecode3)) { | |
14756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
14757 | } | |
14758 | arg3 = static_cast< size_t >(val3); | |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
14762 | wxPyEndAllowThreads(__tstate); | |
14763 | if (PyErr_Occurred()) SWIG_fail; | |
14764 | } | |
14765 | { | |
093d3ff1 | 14766 | #if wxUSE_UNICODE |
554f62e9 | 14767 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14768 | #else |
554f62e9 | 14769 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 14770 | #endif |
554f62e9 RD |
14771 | } |
14772 | { | |
14773 | if (temp1) | |
14774 | delete arg1; | |
14775 | } | |
14776 | { | |
14777 | if (temp2) | |
14778 | delete arg2; | |
14779 | } | |
14780 | return resultobj; | |
14781 | fail: | |
14782 | { | |
14783 | if (temp1) | |
14784 | delete arg1; | |
14785 | } | |
14786 | { | |
14787 | if (temp2) | |
14788 | delete arg2; | |
14789 | } | |
14790 | return NULL; | |
d55e5bfc RD |
14791 | } |
14792 | ||
14793 | ||
554f62e9 RD |
14794 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
14795 | int argc; | |
14796 | PyObject *argv[4]; | |
14797 | ||
14798 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail; | |
14799 | --argc; | |
14800 | if (argc == 1) { | |
14801 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
14802 | } | |
14803 | if (argc == 3) { | |
14804 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); | |
14805 | } | |
14806 | ||
14807 | fail: | |
14808 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
14809 | return NULL; | |
d55e5bfc RD |
14810 | } |
14811 | ||
14812 | ||
554f62e9 RD |
14813 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14814 | PyObject *resultobj = 0; | |
14815 | wxEncodingConverter *result = 0 ; | |
14816 | ||
14817 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
14818 | { | |
14819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14820 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
14824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
14825 | return resultobj; | |
14826 | fail: | |
14827 | return NULL; | |
d55e5bfc RD |
14828 | } |
14829 | ||
14830 | ||
554f62e9 RD |
14831 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14832 | PyObject *resultobj = 0; | |
14833 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14834 | void *argp1 = 0 ; | |
14835 | int res1 = 0 ; | |
14836 | PyObject *swig_obj[1] ; | |
14837 | ||
14838 | if (!args) SWIG_fail; | |
14839 | swig_obj[0] = args; | |
14840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
14841 | if (!SWIG_IsOK(res1)) { | |
14842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14843 | } | |
14844 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14845 | { | |
14846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14847 | delete arg1; | |
d55e5bfc | 14848 | |
554f62e9 RD |
14849 | wxPyEndAllowThreads(__tstate); |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | resultobj = SWIG_Py_Void(); | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj = 0; | |
14861 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14862 | wxFontEncoding arg2 ; | |
14863 | wxFontEncoding arg3 ; | |
14864 | int arg4 = (int) wxCONVERT_STRICT ; | |
14865 | bool result; | |
14866 | void *argp1 = 0 ; | |
14867 | int res1 = 0 ; | |
14868 | int val2 ; | |
14869 | int ecode2 = 0 ; | |
14870 | int val3 ; | |
14871 | int ecode3 = 0 ; | |
14872 | int val4 ; | |
14873 | int ecode4 = 0 ; | |
14874 | PyObject * obj0 = 0 ; | |
14875 | PyObject * obj1 = 0 ; | |
14876 | PyObject * obj2 = 0 ; | |
14877 | PyObject * obj3 = 0 ; | |
14878 | char * kwnames[] = { | |
14879 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
14880 | }; | |
14881 | ||
14882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14884 | if (!SWIG_IsOK(res1)) { | |
14885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14886 | } | |
14887 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14888 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14889 | if (!SWIG_IsOK(ecode2)) { | |
14890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14891 | } | |
14892 | arg2 = static_cast< wxFontEncoding >(val2); | |
14893 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14894 | if (!SWIG_IsOK(ecode3)) { | |
14895 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
14896 | } | |
14897 | arg3 = static_cast< wxFontEncoding >(val3); | |
14898 | if (obj3) { | |
14899 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14900 | if (!SWIG_IsOK(ecode4)) { | |
14901 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
14902 | } | |
14903 | arg4 = static_cast< int >(val4); | |
14904 | } | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14907 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
14908 | wxPyEndAllowThreads(__tstate); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
14911 | { | |
14912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14913 | } | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
14920 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14921 | PyObject *resultobj = 0; | |
14922 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14923 | wxString *arg2 = 0 ; | |
14924 | wxString result; | |
14925 | void *argp1 = 0 ; | |
14926 | int res1 = 0 ; | |
14927 | bool temp2 = false ; | |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | char * kwnames[] = { | |
14931 | (char *) "self",(char *) "input", NULL | |
14932 | }; | |
14933 | ||
14934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
14935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14936 | if (!SWIG_IsOK(res1)) { | |
14937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14938 | } | |
14939 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14940 | { | |
14941 | arg2 = wxString_in_helper(obj1); | |
14942 | if (arg2 == NULL) SWIG_fail; | |
14943 | temp2 = true; | |
14944 | } | |
14945 | { | |
14946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14947 | result = (arg1)->Convert((wxString const &)*arg2); | |
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
14951 | { | |
d55e5bfc | 14952 | #if wxUSE_UNICODE |
554f62e9 | 14953 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14954 | #else |
554f62e9 | 14955 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14956 | #endif |
554f62e9 RD |
14957 | } |
14958 | { | |
14959 | if (temp2) | |
14960 | delete arg2; | |
14961 | } | |
14962 | return resultobj; | |
14963 | fail: | |
14964 | { | |
14965 | if (temp2) | |
14966 | delete arg2; | |
14967 | } | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj = 0; | |
14974 | wxFontEncoding arg1 ; | |
14975 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
14976 | wxFontEncodingArray result; | |
14977 | int val1 ; | |
14978 | int ecode1 = 0 ; | |
14979 | int val2 ; | |
14980 | int ecode2 = 0 ; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | PyObject * obj1 = 0 ; | |
14983 | char * kwnames[] = { | |
14984 | (char *) "enc",(char *) "platform", NULL | |
14985 | }; | |
14986 | ||
14987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
14988 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14989 | if (!SWIG_IsOK(ecode1)) { | |
14990 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14991 | } | |
14992 | arg1 = static_cast< wxFontEncoding >(val1); | |
14993 | if (obj1) { | |
14994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14995 | if (!SWIG_IsOK(ecode2)) { | |
14996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
14997 | } | |
14998 | arg2 = static_cast< int >(val2); | |
14999 | } | |
15000 | { | |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
15006 | { | |
15007 | resultobj = PyList_New(0); | |
15008 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
15009 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
15010 | PyList_Append(resultobj, number); | |
15011 | Py_DECREF(number); | |
d55e5bfc | 15012 | } |
554f62e9 RD |
15013 | } |
15014 | return resultobj; | |
15015 | fail: | |
15016 | return NULL; | |
d55e5bfc RD |
15017 | } |
15018 | ||
15019 | ||
554f62e9 RD |
15020 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15021 | PyObject *resultobj = 0; | |
15022 | wxFontEncoding arg1 ; | |
15023 | wxFontEncodingArray result; | |
15024 | int val1 ; | |
15025 | int ecode1 = 0 ; | |
15026 | PyObject * obj0 = 0 ; | |
15027 | char * kwnames[] = { | |
15028 | (char *) "enc", NULL | |
15029 | }; | |
15030 | ||
15031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
15032 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15033 | if (!SWIG_IsOK(ecode1)) { | |
15034 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15035 | } | |
15036 | arg1 = static_cast< wxFontEncoding >(val1); | |
15037 | { | |
15038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15039 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
15040 | wxPyEndAllowThreads(__tstate); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
15043 | { | |
15044 | resultobj = PyList_New(0); | |
15045 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
15046 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
15047 | PyList_Append(resultobj, number); | |
15048 | Py_DECREF(number); | |
d55e5bfc | 15049 | } |
554f62e9 RD |
15050 | } |
15051 | return resultobj; | |
15052 | fail: | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
15057 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15058 | PyObject *resultobj = 0; | |
15059 | wxFontEncoding arg1 ; | |
15060 | wxFontEncoding arg2 ; | |
15061 | bool result; | |
15062 | int val1 ; | |
15063 | int ecode1 = 0 ; | |
15064 | int val2 ; | |
15065 | int ecode2 = 0 ; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | PyObject * obj1 = 0 ; | |
15068 | char * kwnames[] = { | |
15069 | (char *) "encIn",(char *) "encOut", NULL | |
15070 | }; | |
15071 | ||
15072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
15073 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15074 | if (!SWIG_IsOK(ecode1)) { | |
15075 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15076 | } | |
15077 | arg1 = static_cast< wxFontEncoding >(val1); | |
15078 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15079 | if (!SWIG_IsOK(ecode2)) { | |
15080 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15081 | } | |
15082 | arg2 = static_cast< wxFontEncoding >(val2); | |
15083 | { | |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
15086 | wxPyEndAllowThreads(__tstate); | |
15087 | if (PyErr_Occurred()) SWIG_fail; | |
15088 | } | |
15089 | { | |
15090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15091 | } | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
d55e5bfc RD |
15095 | } |
15096 | ||
15097 | ||
554f62e9 RD |
15098 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15099 | PyObject *obj; | |
15100 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15101 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
15102 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15103 | } |
15104 | ||
554f62e9 RD |
15105 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15106 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
15107 | } |
15108 | ||
554f62e9 RD |
15109 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15110 | PyObject *resultobj = 0; | |
15111 | wxDC *arg1 = (wxDC *) 0 ; | |
15112 | void *argp1 = 0 ; | |
15113 | int res1 = 0 ; | |
15114 | PyObject *swig_obj[1] ; | |
15115 | ||
15116 | if (!args) SWIG_fail; | |
15117 | swig_obj[0] = args; | |
15118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
15119 | if (!SWIG_IsOK(res1)) { | |
15120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15121 | } | |
15122 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15123 | { | |
15124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15125 | delete arg1; | |
d55e5bfc | 15126 | |
554f62e9 RD |
15127 | wxPyEndAllowThreads(__tstate); |
15128 | if (PyErr_Occurred()) SWIG_fail; | |
15129 | } | |
15130 | resultobj = SWIG_Py_Void(); | |
15131 | return resultobj; | |
15132 | fail: | |
15133 | return NULL; | |
15134 | } | |
15135 | ||
15136 | ||
15137 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15138 | PyObject *resultobj = 0; | |
15139 | wxDC *arg1 = (wxDC *) 0 ; | |
15140 | int arg2 ; | |
15141 | int arg3 ; | |
15142 | wxColour *arg4 = 0 ; | |
15143 | int arg5 = (int) wxFLOOD_SURFACE ; | |
15144 | bool result; | |
15145 | void *argp1 = 0 ; | |
15146 | int res1 = 0 ; | |
15147 | int val2 ; | |
15148 | int ecode2 = 0 ; | |
15149 | int val3 ; | |
15150 | int ecode3 = 0 ; | |
15151 | wxColour temp4 ; | |
15152 | int val5 ; | |
15153 | int ecode5 = 0 ; | |
15154 | PyObject * obj0 = 0 ; | |
15155 | PyObject * obj1 = 0 ; | |
15156 | PyObject * obj2 = 0 ; | |
15157 | PyObject * obj3 = 0 ; | |
15158 | PyObject * obj4 = 0 ; | |
15159 | char * kwnames[] = { | |
15160 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
15161 | }; | |
15162 | ||
15163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15165 | if (!SWIG_IsOK(res1)) { | |
15166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15167 | } | |
15168 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15169 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15170 | if (!SWIG_IsOK(ecode2)) { | |
15171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
15172 | } | |
15173 | arg2 = static_cast< int >(val2); | |
15174 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15175 | if (!SWIG_IsOK(ecode3)) { | |
15176 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
15177 | } | |
15178 | arg3 = static_cast< int >(val3); | |
15179 | { | |
15180 | arg4 = &temp4; | |
15181 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15182 | } | |
15183 | if (obj4) { | |
15184 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15185 | if (!SWIG_IsOK(ecode5)) { | |
15186 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
15187 | } | |
15188 | arg5 = static_cast< int >(val5); | |
15189 | } | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | { | |
15197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15198 | } | |
15199 | return resultobj; | |
15200 | fail: | |
15201 | return NULL; | |
15202 | } | |
15203 | ||
15204 | ||
15205 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15206 | PyObject *resultobj = 0; | |
15207 | wxDC *arg1 = (wxDC *) 0 ; | |
15208 | wxPoint *arg2 = 0 ; | |
15209 | wxColour *arg3 = 0 ; | |
15210 | int arg4 = (int) wxFLOOD_SURFACE ; | |
15211 | bool result; | |
15212 | void *argp1 = 0 ; | |
15213 | int res1 = 0 ; | |
15214 | wxPoint temp2 ; | |
15215 | wxColour temp3 ; | |
15216 | int val4 ; | |
15217 | int ecode4 = 0 ; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | PyObject * obj1 = 0 ; | |
15220 | PyObject * obj2 = 0 ; | |
15221 | PyObject * obj3 = 0 ; | |
15222 | char * kwnames[] = { | |
15223 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
15224 | }; | |
15225 | ||
15226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15228 | if (!SWIG_IsOK(res1)) { | |
15229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15230 | } | |
15231 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15232 | { | |
15233 | arg2 = &temp2; | |
15234 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15235 | } | |
15236 | { | |
15237 | arg3 = &temp3; | |
15238 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15239 | } | |
15240 | if (obj3) { | |
15241 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15242 | if (!SWIG_IsOK(ecode4)) { | |
15243 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
15244 | } | |
15245 | arg4 = static_cast< int >(val4); | |
15246 | } | |
15247 | { | |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
15250 | wxPyEndAllowThreads(__tstate); | |
15251 | if (PyErr_Occurred()) SWIG_fail; | |
15252 | } | |
15253 | { | |
15254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15255 | } | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
15262 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj = 0; | |
15264 | wxDC *arg1 = (wxDC *) 0 ; | |
15265 | wxRect *arg2 = 0 ; | |
15266 | wxColour *arg3 = 0 ; | |
15267 | wxColour *arg4 = 0 ; | |
15268 | wxPoint *arg5 = 0 ; | |
15269 | void *argp1 = 0 ; | |
15270 | int res1 = 0 ; | |
15271 | wxRect temp2 ; | |
15272 | wxColour temp3 ; | |
15273 | wxColour temp4 ; | |
15274 | wxPoint temp5 ; | |
15275 | PyObject * obj0 = 0 ; | |
15276 | PyObject * obj1 = 0 ; | |
15277 | PyObject * obj2 = 0 ; | |
15278 | PyObject * obj3 = 0 ; | |
15279 | PyObject * obj4 = 0 ; | |
15280 | char * kwnames[] = { | |
15281 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
15282 | }; | |
15283 | ||
15284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15286 | if (!SWIG_IsOK(res1)) { | |
15287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15288 | } | |
15289 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15290 | { | |
15291 | arg2 = &temp2; | |
15292 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15293 | } | |
15294 | { | |
15295 | arg3 = &temp3; | |
15296 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15297 | } | |
15298 | { | |
15299 | arg4 = &temp4; | |
15300 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15301 | } | |
15302 | { | |
15303 | arg5 = &temp5; | |
15304 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15305 | } | |
15306 | { | |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | resultobj = SWIG_Py_Void(); | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
15319 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15320 | PyObject *resultobj = 0; | |
15321 | wxDC *arg1 = (wxDC *) 0 ; | |
15322 | wxRect *arg2 = 0 ; | |
15323 | wxColour *arg3 = 0 ; | |
15324 | wxColour *arg4 = 0 ; | |
15325 | wxDirection arg5 = (wxDirection) wxEAST ; | |
15326 | void *argp1 = 0 ; | |
15327 | int res1 = 0 ; | |
15328 | wxRect temp2 ; | |
15329 | wxColour temp3 ; | |
15330 | wxColour temp4 ; | |
15331 | int val5 ; | |
15332 | int ecode5 = 0 ; | |
15333 | PyObject * obj0 = 0 ; | |
15334 | PyObject * obj1 = 0 ; | |
15335 | PyObject * obj2 = 0 ; | |
15336 | PyObject * obj3 = 0 ; | |
15337 | PyObject * obj4 = 0 ; | |
15338 | char * kwnames[] = { | |
15339 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
15340 | }; | |
15341 | ||
15342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15344 | if (!SWIG_IsOK(res1)) { | |
15345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15346 | } | |
15347 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15348 | { | |
15349 | arg2 = &temp2; | |
15350 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15351 | } | |
15352 | { | |
15353 | arg3 = &temp3; | |
15354 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15355 | } | |
15356 | { | |
15357 | arg4 = &temp4; | |
15358 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
15359 | } | |
15360 | if (obj4) { | |
15361 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15362 | if (!SWIG_IsOK(ecode5)) { | |
15363 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
15364 | } | |
15365 | arg5 = static_cast< wxDirection >(val5); | |
15366 | } | |
15367 | { | |
15368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15369 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
15373 | resultobj = SWIG_Py_Void(); | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
15380 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15381 | PyObject *resultobj = 0; | |
15382 | wxDC *arg1 = (wxDC *) 0 ; | |
15383 | int arg2 ; | |
15384 | int arg3 ; | |
15385 | wxColour result; | |
15386 | void *argp1 = 0 ; | |
15387 | int res1 = 0 ; | |
15388 | int val2 ; | |
15389 | int ecode2 = 0 ; | |
15390 | int val3 ; | |
15391 | int ecode3 = 0 ; | |
15392 | PyObject * obj0 = 0 ; | |
15393 | PyObject * obj1 = 0 ; | |
15394 | PyObject * obj2 = 0 ; | |
15395 | char * kwnames[] = { | |
15396 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15397 | }; | |
15398 | ||
15399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15401 | if (!SWIG_IsOK(res1)) { | |
15402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15403 | } | |
15404 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15405 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15406 | if (!SWIG_IsOK(ecode2)) { | |
15407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
15408 | } | |
15409 | arg2 = static_cast< int >(val2); | |
15410 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15411 | if (!SWIG_IsOK(ecode3)) { | |
15412 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
15413 | } | |
15414 | arg3 = static_cast< int >(val3); | |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
15418 | wxPyEndAllowThreads(__tstate); | |
15419 | if (PyErr_Occurred()) SWIG_fail; | |
15420 | } | |
15421 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
15422 | return resultobj; | |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
15428 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15429 | PyObject *resultobj = 0; | |
15430 | wxDC *arg1 = (wxDC *) 0 ; | |
15431 | wxPoint *arg2 = 0 ; | |
15432 | wxColour result; | |
15433 | void *argp1 = 0 ; | |
15434 | int res1 = 0 ; | |
15435 | wxPoint temp2 ; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | PyObject * obj1 = 0 ; | |
15438 | char * kwnames[] = { | |
15439 | (char *) "self",(char *) "pt", NULL | |
15440 | }; | |
15441 | ||
15442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
15443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15444 | if (!SWIG_IsOK(res1)) { | |
15445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15446 | } | |
15447 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15448 | { | |
15449 | arg2 = &temp2; | |
15450 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15451 | } | |
15452 | { | |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15454 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
15459 | return resultobj; | |
15460 | fail: | |
15461 | return NULL; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj = 0; | |
15467 | wxDC *arg1 = (wxDC *) 0 ; | |
15468 | int arg2 ; | |
15469 | int arg3 ; | |
15470 | int arg4 ; | |
15471 | int arg5 ; | |
15472 | void *argp1 = 0 ; | |
15473 | int res1 = 0 ; | |
15474 | int val2 ; | |
15475 | int ecode2 = 0 ; | |
15476 | int val3 ; | |
15477 | int ecode3 = 0 ; | |
15478 | int val4 ; | |
15479 | int ecode4 = 0 ; | |
15480 | int val5 ; | |
15481 | int ecode5 = 0 ; | |
15482 | PyObject * obj0 = 0 ; | |
15483 | PyObject * obj1 = 0 ; | |
15484 | PyObject * obj2 = 0 ; | |
15485 | PyObject * obj3 = 0 ; | |
15486 | PyObject * obj4 = 0 ; | |
15487 | char * kwnames[] = { | |
15488 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
15489 | }; | |
15490 | ||
15491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15493 | if (!SWIG_IsOK(res1)) { | |
15494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15495 | } | |
15496 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15497 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15498 | if (!SWIG_IsOK(ecode2)) { | |
15499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
15500 | } | |
15501 | arg2 = static_cast< int >(val2); | |
15502 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15503 | if (!SWIG_IsOK(ecode3)) { | |
15504 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
15505 | } | |
15506 | arg3 = static_cast< int >(val3); | |
15507 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15508 | if (!SWIG_IsOK(ecode4)) { | |
15509 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
15510 | } | |
15511 | arg4 = static_cast< int >(val4); | |
15512 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15513 | if (!SWIG_IsOK(ecode5)) { | |
15514 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
15515 | } | |
15516 | arg5 = static_cast< int >(val5); | |
15517 | { | |
15518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15519 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
15520 | wxPyEndAllowThreads(__tstate); | |
15521 | if (PyErr_Occurred()) SWIG_fail; | |
15522 | } | |
15523 | resultobj = SWIG_Py_Void(); | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj = 0; | |
15532 | wxDC *arg1 = (wxDC *) 0 ; | |
15533 | wxPoint *arg2 = 0 ; | |
15534 | wxPoint *arg3 = 0 ; | |
15535 | void *argp1 = 0 ; | |
15536 | int res1 = 0 ; | |
15537 | wxPoint temp2 ; | |
15538 | wxPoint temp3 ; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | PyObject * obj1 = 0 ; | |
15541 | PyObject * obj2 = 0 ; | |
15542 | char * kwnames[] = { | |
15543 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
15544 | }; | |
15545 | ||
15546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15548 | if (!SWIG_IsOK(res1)) { | |
15549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15550 | } | |
15551 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15552 | { | |
15553 | arg2 = &temp2; | |
15554 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15555 | } | |
15556 | { | |
15557 | arg3 = &temp3; | |
15558 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15559 | } | |
15560 | { | |
15561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15562 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
15563 | wxPyEndAllowThreads(__tstate); | |
15564 | if (PyErr_Occurred()) SWIG_fail; | |
15565 | } | |
15566 | resultobj = SWIG_Py_Void(); | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | return NULL; | |
15570 | } | |
15571 | ||
15572 | ||
15573 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15574 | PyObject *resultobj = 0; | |
15575 | wxDC *arg1 = (wxDC *) 0 ; | |
15576 | int arg2 ; | |
15577 | int arg3 ; | |
15578 | void *argp1 = 0 ; | |
15579 | int res1 = 0 ; | |
15580 | int val2 ; | |
15581 | int ecode2 = 0 ; | |
15582 | int val3 ; | |
15583 | int ecode3 = 0 ; | |
15584 | PyObject * obj0 = 0 ; | |
15585 | PyObject * obj1 = 0 ; | |
15586 | PyObject * obj2 = 0 ; | |
15587 | char * kwnames[] = { | |
15588 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15589 | }; | |
15590 | ||
15591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15593 | if (!SWIG_IsOK(res1)) { | |
15594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15595 | } | |
15596 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15597 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15598 | if (!SWIG_IsOK(ecode2)) { | |
15599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
15600 | } | |
15601 | arg2 = static_cast< int >(val2); | |
15602 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15603 | if (!SWIG_IsOK(ecode3)) { | |
15604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
15605 | } | |
15606 | arg3 = static_cast< int >(val3); | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | (arg1)->CrossHair(arg2,arg3); | |
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | resultobj = SWIG_Py_Void(); | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15621 | PyObject *resultobj = 0; | |
15622 | wxDC *arg1 = (wxDC *) 0 ; | |
15623 | wxPoint *arg2 = 0 ; | |
15624 | void *argp1 = 0 ; | |
15625 | int res1 = 0 ; | |
15626 | wxPoint temp2 ; | |
15627 | PyObject * obj0 = 0 ; | |
15628 | PyObject * obj1 = 0 ; | |
15629 | char * kwnames[] = { | |
15630 | (char *) "self",(char *) "pt", NULL | |
15631 | }; | |
15632 | ||
15633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
15634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15635 | if (!SWIG_IsOK(res1)) { | |
15636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15637 | } | |
15638 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15639 | { | |
15640 | arg2 = &temp2; | |
15641 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15642 | } | |
15643 | { | |
15644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15645 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
15646 | wxPyEndAllowThreads(__tstate); | |
15647 | if (PyErr_Occurred()) SWIG_fail; | |
15648 | } | |
15649 | resultobj = SWIG_Py_Void(); | |
15650 | return resultobj; | |
15651 | fail: | |
15652 | return NULL; | |
15653 | } | |
15654 | ||
15655 | ||
15656 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15657 | PyObject *resultobj = 0; | |
15658 | wxDC *arg1 = (wxDC *) 0 ; | |
15659 | int arg2 ; | |
15660 | int arg3 ; | |
15661 | int arg4 ; | |
15662 | int arg5 ; | |
15663 | int arg6 ; | |
15664 | int arg7 ; | |
15665 | void *argp1 = 0 ; | |
15666 | int res1 = 0 ; | |
15667 | int val2 ; | |
15668 | int ecode2 = 0 ; | |
15669 | int val3 ; | |
15670 | int ecode3 = 0 ; | |
15671 | int val4 ; | |
15672 | int ecode4 = 0 ; | |
15673 | int val5 ; | |
15674 | int ecode5 = 0 ; | |
15675 | int val6 ; | |
15676 | int ecode6 = 0 ; | |
15677 | int val7 ; | |
15678 | int ecode7 = 0 ; | |
15679 | PyObject * obj0 = 0 ; | |
15680 | PyObject * obj1 = 0 ; | |
15681 | PyObject * obj2 = 0 ; | |
15682 | PyObject * obj3 = 0 ; | |
15683 | PyObject * obj4 = 0 ; | |
15684 | PyObject * obj5 = 0 ; | |
15685 | PyObject * obj6 = 0 ; | |
15686 | char * kwnames[] = { | |
15687 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
15688 | }; | |
15689 | ||
15690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15692 | if (!SWIG_IsOK(res1)) { | |
15693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15694 | } | |
15695 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15696 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15697 | if (!SWIG_IsOK(ecode2)) { | |
15698 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
15699 | } | |
15700 | arg2 = static_cast< int >(val2); | |
15701 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15702 | if (!SWIG_IsOK(ecode3)) { | |
15703 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
15704 | } | |
15705 | arg3 = static_cast< int >(val3); | |
15706 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15707 | if (!SWIG_IsOK(ecode4)) { | |
15708 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
15709 | } | |
15710 | arg4 = static_cast< int >(val4); | |
15711 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15712 | if (!SWIG_IsOK(ecode5)) { | |
15713 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
15714 | } | |
15715 | arg5 = static_cast< int >(val5); | |
15716 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
15717 | if (!SWIG_IsOK(ecode6)) { | |
15718 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
15719 | } | |
15720 | arg6 = static_cast< int >(val6); | |
15721 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15722 | if (!SWIG_IsOK(ecode7)) { | |
15723 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
15724 | } | |
15725 | arg7 = static_cast< int >(val7); | |
15726 | { | |
15727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15728 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15729 | wxPyEndAllowThreads(__tstate); | |
15730 | if (PyErr_Occurred()) SWIG_fail; | |
15731 | } | |
15732 | resultobj = SWIG_Py_Void(); | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15740 | PyObject *resultobj = 0; | |
15741 | wxDC *arg1 = (wxDC *) 0 ; | |
15742 | wxPoint *arg2 = 0 ; | |
15743 | wxPoint *arg3 = 0 ; | |
15744 | wxPoint *arg4 = 0 ; | |
15745 | void *argp1 = 0 ; | |
15746 | int res1 = 0 ; | |
15747 | wxPoint temp2 ; | |
15748 | wxPoint temp3 ; | |
15749 | wxPoint temp4 ; | |
15750 | PyObject * obj0 = 0 ; | |
15751 | PyObject * obj1 = 0 ; | |
15752 | PyObject * obj2 = 0 ; | |
15753 | PyObject * obj3 = 0 ; | |
15754 | char * kwnames[] = { | |
15755 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
15756 | }; | |
15757 | ||
15758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15760 | if (!SWIG_IsOK(res1)) { | |
15761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15762 | } | |
15763 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15764 | { | |
15765 | arg2 = &temp2; | |
15766 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15767 | } | |
15768 | { | |
15769 | arg3 = &temp3; | |
15770 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15771 | } | |
15772 | { | |
15773 | arg4 = &temp4; | |
15774 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15775 | } | |
15776 | { | |
15777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15778 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
15779 | wxPyEndAllowThreads(__tstate); | |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
15782 | resultobj = SWIG_Py_Void(); | |
15783 | return resultobj; | |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj = 0; | |
15791 | wxDC *arg1 = (wxDC *) 0 ; | |
15792 | int arg2 ; | |
15793 | int arg3 ; | |
15794 | int arg4 ; | |
15795 | int arg5 ; | |
15796 | void *argp1 = 0 ; | |
15797 | int res1 = 0 ; | |
15798 | int val2 ; | |
15799 | int ecode2 = 0 ; | |
15800 | int val3 ; | |
15801 | int ecode3 = 0 ; | |
15802 | int val4 ; | |
15803 | int ecode4 = 0 ; | |
15804 | int val5 ; | |
15805 | int ecode5 = 0 ; | |
15806 | PyObject * obj0 = 0 ; | |
15807 | PyObject * obj1 = 0 ; | |
15808 | PyObject * obj2 = 0 ; | |
15809 | PyObject * obj3 = 0 ; | |
15810 | PyObject * obj4 = 0 ; | |
15811 | char * kwnames[] = { | |
15812 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15813 | }; | |
15814 | ||
15815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15817 | if (!SWIG_IsOK(res1)) { | |
15818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15819 | } | |
15820 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15821 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15822 | if (!SWIG_IsOK(ecode2)) { | |
15823 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
15824 | } | |
15825 | arg2 = static_cast< int >(val2); | |
15826 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15827 | if (!SWIG_IsOK(ecode3)) { | |
15828 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
15829 | } | |
15830 | arg3 = static_cast< int >(val3); | |
15831 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15832 | if (!SWIG_IsOK(ecode4)) { | |
15833 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
15834 | } | |
15835 | arg4 = static_cast< int >(val4); | |
15836 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15837 | if (!SWIG_IsOK(ecode5)) { | |
15838 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
15839 | } | |
15840 | arg5 = static_cast< int >(val5); | |
15841 | { | |
15842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15843 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
15844 | wxPyEndAllowThreads(__tstate); | |
15845 | if (PyErr_Occurred()) SWIG_fail; | |
15846 | } | |
15847 | resultobj = SWIG_Py_Void(); | |
15848 | return resultobj; | |
15849 | fail: | |
15850 | return NULL; | |
15851 | } | |
15852 | ||
15853 | ||
15854 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15855 | PyObject *resultobj = 0; | |
15856 | wxDC *arg1 = (wxDC *) 0 ; | |
15857 | wxRect *arg2 = 0 ; | |
15858 | void *argp1 = 0 ; | |
15859 | int res1 = 0 ; | |
15860 | wxRect temp2 ; | |
15861 | PyObject * obj0 = 0 ; | |
15862 | PyObject * obj1 = 0 ; | |
15863 | char * kwnames[] = { | |
15864 | (char *) "self",(char *) "rect", NULL | |
15865 | }; | |
15866 | ||
15867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
15868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15869 | if (!SWIG_IsOK(res1)) { | |
15870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15871 | } | |
15872 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15873 | { | |
15874 | arg2 = &temp2; | |
15875 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15876 | } | |
15877 | { | |
15878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15879 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
15883 | resultobj = SWIG_Py_Void(); | |
15884 | return resultobj; | |
15885 | fail: | |
15886 | return NULL; | |
15887 | } | |
15888 | ||
15889 | ||
15890 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15891 | PyObject *resultobj = 0; | |
15892 | wxDC *arg1 = (wxDC *) 0 ; | |
15893 | int arg2 ; | |
15894 | int arg3 ; | |
15895 | int arg4 ; | |
15896 | int arg5 ; | |
15897 | double arg6 ; | |
15898 | double arg7 ; | |
15899 | void *argp1 = 0 ; | |
15900 | int res1 = 0 ; | |
15901 | int val2 ; | |
15902 | int ecode2 = 0 ; | |
15903 | int val3 ; | |
15904 | int ecode3 = 0 ; | |
15905 | int val4 ; | |
15906 | int ecode4 = 0 ; | |
15907 | int val5 ; | |
15908 | int ecode5 = 0 ; | |
15909 | double val6 ; | |
15910 | int ecode6 = 0 ; | |
15911 | double val7 ; | |
15912 | int ecode7 = 0 ; | |
15913 | PyObject * obj0 = 0 ; | |
15914 | PyObject * obj1 = 0 ; | |
15915 | PyObject * obj2 = 0 ; | |
15916 | PyObject * obj3 = 0 ; | |
15917 | PyObject * obj4 = 0 ; | |
15918 | PyObject * obj5 = 0 ; | |
15919 | PyObject * obj6 = 0 ; | |
15920 | char * kwnames[] = { | |
15921 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
15922 | }; | |
15923 | ||
15924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15926 | if (!SWIG_IsOK(res1)) { | |
15927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15928 | } | |
15929 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15931 | if (!SWIG_IsOK(ecode2)) { | |
15932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
15933 | } | |
15934 | arg2 = static_cast< int >(val2); | |
15935 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15936 | if (!SWIG_IsOK(ecode3)) { | |
15937 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
15938 | } | |
15939 | arg3 = static_cast< int >(val3); | |
15940 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15941 | if (!SWIG_IsOK(ecode4)) { | |
15942 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
15943 | } | |
15944 | arg4 = static_cast< int >(val4); | |
15945 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15946 | if (!SWIG_IsOK(ecode5)) { | |
15947 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
15948 | } | |
15949 | arg5 = static_cast< int >(val5); | |
15950 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
15951 | if (!SWIG_IsOK(ecode6)) { | |
15952 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
15953 | } | |
15954 | arg6 = static_cast< double >(val6); | |
15955 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
15956 | if (!SWIG_IsOK(ecode7)) { | |
15957 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
15958 | } | |
15959 | arg7 = static_cast< double >(val7); | |
15960 | { | |
15961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15962 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15963 | wxPyEndAllowThreads(__tstate); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | } | |
15966 | resultobj = SWIG_Py_Void(); | |
15967 | return resultobj; | |
15968 | fail: | |
15969 | return NULL; | |
15970 | } | |
15971 | ||
15972 | ||
15973 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15974 | PyObject *resultobj = 0; | |
15975 | wxDC *arg1 = (wxDC *) 0 ; | |
15976 | wxPoint *arg2 = 0 ; | |
15977 | wxSize *arg3 = 0 ; | |
15978 | double arg4 ; | |
15979 | double arg5 ; | |
15980 | void *argp1 = 0 ; | |
15981 | int res1 = 0 ; | |
15982 | wxPoint temp2 ; | |
15983 | wxSize temp3 ; | |
15984 | double val4 ; | |
15985 | int ecode4 = 0 ; | |
15986 | double val5 ; | |
15987 | int ecode5 = 0 ; | |
15988 | PyObject * obj0 = 0 ; | |
15989 | PyObject * obj1 = 0 ; | |
15990 | PyObject * obj2 = 0 ; | |
15991 | PyObject * obj3 = 0 ; | |
15992 | PyObject * obj4 = 0 ; | |
15993 | char * kwnames[] = { | |
15994 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
15995 | }; | |
15996 | ||
15997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15999 | if (!SWIG_IsOK(res1)) { | |
16000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16001 | } | |
16002 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16003 | { | |
16004 | arg2 = &temp2; | |
16005 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16006 | } | |
16007 | { | |
16008 | arg3 = &temp3; | |
16009 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16010 | } | |
16011 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
16012 | if (!SWIG_IsOK(ecode4)) { | |
16013 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
16014 | } | |
16015 | arg4 = static_cast< double >(val4); | |
16016 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
16017 | if (!SWIG_IsOK(ecode5)) { | |
16018 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
16019 | } | |
16020 | arg5 = static_cast< double >(val5); | |
16021 | { | |
16022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16023 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
16024 | wxPyEndAllowThreads(__tstate); | |
16025 | if (PyErr_Occurred()) SWIG_fail; | |
16026 | } | |
16027 | resultobj = SWIG_Py_Void(); | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
16034 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16035 | PyObject *resultobj = 0; | |
16036 | wxDC *arg1 = (wxDC *) 0 ; | |
16037 | int arg2 ; | |
16038 | int arg3 ; | |
16039 | void *argp1 = 0 ; | |
16040 | int res1 = 0 ; | |
16041 | int val2 ; | |
16042 | int ecode2 = 0 ; | |
16043 | int val3 ; | |
16044 | int ecode3 = 0 ; | |
16045 | PyObject * obj0 = 0 ; | |
16046 | PyObject * obj1 = 0 ; | |
16047 | PyObject * obj2 = 0 ; | |
16048 | char * kwnames[] = { | |
16049 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16050 | }; | |
16051 | ||
16052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16054 | if (!SWIG_IsOK(res1)) { | |
16055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16056 | } | |
16057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16059 | if (!SWIG_IsOK(ecode2)) { | |
16060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
16061 | } | |
16062 | arg2 = static_cast< int >(val2); | |
16063 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16064 | if (!SWIG_IsOK(ecode3)) { | |
16065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
16066 | } | |
16067 | arg3 = static_cast< int >(val3); | |
16068 | { | |
16069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16070 | (arg1)->DrawPoint(arg2,arg3); | |
16071 | wxPyEndAllowThreads(__tstate); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | } | |
16074 | resultobj = SWIG_Py_Void(); | |
16075 | return resultobj; | |
16076 | fail: | |
16077 | return NULL; | |
16078 | } | |
16079 | ||
16080 | ||
16081 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16082 | PyObject *resultobj = 0; | |
16083 | wxDC *arg1 = (wxDC *) 0 ; | |
16084 | wxPoint *arg2 = 0 ; | |
16085 | void *argp1 = 0 ; | |
16086 | int res1 = 0 ; | |
16087 | wxPoint temp2 ; | |
16088 | PyObject * obj0 = 0 ; | |
16089 | PyObject * obj1 = 0 ; | |
16090 | char * kwnames[] = { | |
16091 | (char *) "self",(char *) "pt", NULL | |
16092 | }; | |
16093 | ||
16094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
16095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16096 | if (!SWIG_IsOK(res1)) { | |
16097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16098 | } | |
16099 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16100 | { | |
16101 | arg2 = &temp2; | |
16102 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16103 | } | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
16107 | wxPyEndAllowThreads(__tstate); | |
16108 | if (PyErr_Occurred()) SWIG_fail; | |
16109 | } | |
16110 | resultobj = SWIG_Py_Void(); | |
16111 | return resultobj; | |
16112 | fail: | |
16113 | return NULL; | |
16114 | } | |
16115 | ||
16116 | ||
16117 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16118 | PyObject *resultobj = 0; | |
16119 | wxDC *arg1 = (wxDC *) 0 ; | |
16120 | int arg2 ; | |
16121 | int arg3 ; | |
16122 | int arg4 ; | |
16123 | int arg5 ; | |
16124 | void *argp1 = 0 ; | |
16125 | int res1 = 0 ; | |
16126 | int val2 ; | |
16127 | int ecode2 = 0 ; | |
16128 | int val3 ; | |
16129 | int ecode3 = 0 ; | |
16130 | int val4 ; | |
16131 | int ecode4 = 0 ; | |
16132 | int val5 ; | |
16133 | int ecode5 = 0 ; | |
16134 | PyObject * obj0 = 0 ; | |
16135 | PyObject * obj1 = 0 ; | |
16136 | PyObject * obj2 = 0 ; | |
16137 | PyObject * obj3 = 0 ; | |
16138 | PyObject * obj4 = 0 ; | |
16139 | char * kwnames[] = { | |
16140 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16141 | }; | |
16142 | ||
16143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16145 | if (!SWIG_IsOK(res1)) { | |
16146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16147 | } | |
16148 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16149 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16150 | if (!SWIG_IsOK(ecode2)) { | |
16151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
16152 | } | |
16153 | arg2 = static_cast< int >(val2); | |
16154 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16155 | if (!SWIG_IsOK(ecode3)) { | |
16156 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
16157 | } | |
16158 | arg3 = static_cast< int >(val3); | |
16159 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16160 | if (!SWIG_IsOK(ecode4)) { | |
16161 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
16162 | } | |
16163 | arg4 = static_cast< int >(val4); | |
16164 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16165 | if (!SWIG_IsOK(ecode5)) { | |
16166 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
16167 | } | |
16168 | arg5 = static_cast< int >(val5); | |
16169 | { | |
16170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16171 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
16172 | wxPyEndAllowThreads(__tstate); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
16175 | resultobj = SWIG_Py_Void(); | |
16176 | return resultobj; | |
16177 | fail: | |
16178 | return NULL; | |
16179 | } | |
16180 | ||
16181 | ||
16182 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16183 | PyObject *resultobj = 0; | |
16184 | wxDC *arg1 = (wxDC *) 0 ; | |
16185 | wxRect *arg2 = 0 ; | |
16186 | void *argp1 = 0 ; | |
16187 | int res1 = 0 ; | |
16188 | wxRect temp2 ; | |
16189 | PyObject * obj0 = 0 ; | |
16190 | PyObject * obj1 = 0 ; | |
16191 | char * kwnames[] = { | |
16192 | (char *) "self",(char *) "rect", NULL | |
16193 | }; | |
16194 | ||
16195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
16196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16197 | if (!SWIG_IsOK(res1)) { | |
16198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16199 | } | |
16200 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16201 | { | |
16202 | arg2 = &temp2; | |
16203 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16207 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
16208 | wxPyEndAllowThreads(__tstate); | |
16209 | if (PyErr_Occurred()) SWIG_fail; | |
16210 | } | |
16211 | resultobj = SWIG_Py_Void(); | |
16212 | return resultobj; | |
16213 | fail: | |
16214 | return NULL; | |
16215 | } | |
16216 | ||
16217 | ||
16218 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16219 | PyObject *resultobj = 0; | |
16220 | wxDC *arg1 = (wxDC *) 0 ; | |
16221 | wxPoint *arg2 = 0 ; | |
16222 | wxSize *arg3 = 0 ; | |
16223 | void *argp1 = 0 ; | |
16224 | int res1 = 0 ; | |
16225 | wxPoint temp2 ; | |
16226 | wxSize temp3 ; | |
16227 | PyObject * obj0 = 0 ; | |
16228 | PyObject * obj1 = 0 ; | |
16229 | PyObject * obj2 = 0 ; | |
16230 | char * kwnames[] = { | |
16231 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
16232 | }; | |
16233 | ||
16234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16236 | if (!SWIG_IsOK(res1)) { | |
16237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16238 | } | |
16239 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16240 | { | |
16241 | arg2 = &temp2; | |
16242 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16243 | } | |
16244 | { | |
16245 | arg3 = &temp3; | |
16246 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16247 | } | |
16248 | { | |
16249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16250 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16251 | wxPyEndAllowThreads(__tstate); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
16254 | resultobj = SWIG_Py_Void(); | |
16255 | return resultobj; | |
16256 | fail: | |
16257 | return NULL; | |
16258 | } | |
16259 | ||
16260 | ||
16261 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16262 | PyObject *resultobj = 0; | |
16263 | wxDC *arg1 = (wxDC *) 0 ; | |
16264 | int arg2 ; | |
16265 | int arg3 ; | |
16266 | int arg4 ; | |
16267 | int arg5 ; | |
16268 | double arg6 ; | |
16269 | void *argp1 = 0 ; | |
16270 | int res1 = 0 ; | |
16271 | int val2 ; | |
16272 | int ecode2 = 0 ; | |
16273 | int val3 ; | |
16274 | int ecode3 = 0 ; | |
16275 | int val4 ; | |
16276 | int ecode4 = 0 ; | |
16277 | int val5 ; | |
16278 | int ecode5 = 0 ; | |
16279 | double val6 ; | |
16280 | int ecode6 = 0 ; | |
16281 | PyObject * obj0 = 0 ; | |
16282 | PyObject * obj1 = 0 ; | |
16283 | PyObject * obj2 = 0 ; | |
16284 | PyObject * obj3 = 0 ; | |
16285 | PyObject * obj4 = 0 ; | |
16286 | PyObject * obj5 = 0 ; | |
16287 | char * kwnames[] = { | |
16288 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
16289 | }; | |
16290 | ||
16291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16293 | if (!SWIG_IsOK(res1)) { | |
16294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16295 | } | |
16296 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16297 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16298 | if (!SWIG_IsOK(ecode2)) { | |
16299 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
16300 | } | |
16301 | arg2 = static_cast< int >(val2); | |
16302 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16303 | if (!SWIG_IsOK(ecode3)) { | |
16304 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
16305 | } | |
16306 | arg3 = static_cast< int >(val3); | |
16307 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16308 | if (!SWIG_IsOK(ecode4)) { | |
16309 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
16310 | } | |
16311 | arg4 = static_cast< int >(val4); | |
16312 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16313 | if (!SWIG_IsOK(ecode5)) { | |
16314 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
16315 | } | |
16316 | arg5 = static_cast< int >(val5); | |
16317 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
16318 | if (!SWIG_IsOK(ecode6)) { | |
16319 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
16320 | } | |
16321 | arg6 = static_cast< double >(val6); | |
16322 | { | |
16323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16324 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
16325 | wxPyEndAllowThreads(__tstate); | |
16326 | if (PyErr_Occurred()) SWIG_fail; | |
16327 | } | |
16328 | resultobj = SWIG_Py_Void(); | |
16329 | return resultobj; | |
16330 | fail: | |
16331 | return NULL; | |
16332 | } | |
16333 | ||
16334 | ||
16335 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16336 | PyObject *resultobj = 0; | |
16337 | wxDC *arg1 = (wxDC *) 0 ; | |
16338 | wxRect *arg2 = 0 ; | |
16339 | double arg3 ; | |
16340 | void *argp1 = 0 ; | |
16341 | int res1 = 0 ; | |
16342 | wxRect temp2 ; | |
16343 | double val3 ; | |
16344 | int ecode3 = 0 ; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | PyObject * obj1 = 0 ; | |
16347 | PyObject * obj2 = 0 ; | |
16348 | char * kwnames[] = { | |
16349 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
16350 | }; | |
16351 | ||
16352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16354 | if (!SWIG_IsOK(res1)) { | |
16355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16356 | } | |
16357 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16358 | { | |
16359 | arg2 = &temp2; | |
16360 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16361 | } | |
16362 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
16363 | if (!SWIG_IsOK(ecode3)) { | |
16364 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
16365 | } | |
16366 | arg3 = static_cast< double >(val3); | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
16370 | wxPyEndAllowThreads(__tstate); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | } | |
16373 | resultobj = SWIG_Py_Void(); | |
16374 | return resultobj; | |
16375 | fail: | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
16380 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16381 | PyObject *resultobj = 0; | |
16382 | wxDC *arg1 = (wxDC *) 0 ; | |
16383 | wxPoint *arg2 = 0 ; | |
16384 | wxSize *arg3 = 0 ; | |
16385 | double arg4 ; | |
16386 | void *argp1 = 0 ; | |
16387 | int res1 = 0 ; | |
16388 | wxPoint temp2 ; | |
16389 | wxSize temp3 ; | |
16390 | double val4 ; | |
16391 | int ecode4 = 0 ; | |
16392 | PyObject * obj0 = 0 ; | |
16393 | PyObject * obj1 = 0 ; | |
16394 | PyObject * obj2 = 0 ; | |
16395 | PyObject * obj3 = 0 ; | |
16396 | char * kwnames[] = { | |
16397 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
16398 | }; | |
16399 | ||
16400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16402 | if (!SWIG_IsOK(res1)) { | |
16403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16404 | } | |
16405 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16406 | { | |
16407 | arg2 = &temp2; | |
16408 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16409 | } | |
16410 | { | |
16411 | arg3 = &temp3; | |
16412 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16413 | } | |
16414 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
16415 | if (!SWIG_IsOK(ecode4)) { | |
16416 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
16417 | } | |
16418 | arg4 = static_cast< double >(val4); | |
16419 | { | |
16420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16421 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
16422 | wxPyEndAllowThreads(__tstate); | |
16423 | if (PyErr_Occurred()) SWIG_fail; | |
16424 | } | |
16425 | resultobj = SWIG_Py_Void(); | |
16426 | return resultobj; | |
16427 | fail: | |
16428 | return NULL; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16433 | PyObject *resultobj = 0; | |
16434 | wxDC *arg1 = (wxDC *) 0 ; | |
16435 | int arg2 ; | |
16436 | int arg3 ; | |
16437 | int arg4 ; | |
16438 | void *argp1 = 0 ; | |
16439 | int res1 = 0 ; | |
16440 | int val2 ; | |
16441 | int ecode2 = 0 ; | |
16442 | int val3 ; | |
16443 | int ecode3 = 0 ; | |
16444 | int val4 ; | |
16445 | int ecode4 = 0 ; | |
16446 | PyObject * obj0 = 0 ; | |
16447 | PyObject * obj1 = 0 ; | |
16448 | PyObject * obj2 = 0 ; | |
16449 | PyObject * obj3 = 0 ; | |
16450 | char * kwnames[] = { | |
16451 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
16452 | }; | |
16453 | ||
16454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16456 | if (!SWIG_IsOK(res1)) { | |
16457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16458 | } | |
16459 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16460 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16461 | if (!SWIG_IsOK(ecode2)) { | |
16462 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
16463 | } | |
16464 | arg2 = static_cast< int >(val2); | |
16465 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16466 | if (!SWIG_IsOK(ecode3)) { | |
16467 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
16468 | } | |
16469 | arg3 = static_cast< int >(val3); | |
16470 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16471 | if (!SWIG_IsOK(ecode4)) { | |
16472 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
16473 | } | |
16474 | arg4 = static_cast< int >(val4); | |
16475 | { | |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
16478 | wxPyEndAllowThreads(__tstate); | |
16479 | if (PyErr_Occurred()) SWIG_fail; | |
16480 | } | |
16481 | resultobj = SWIG_Py_Void(); | |
16482 | return resultobj; | |
16483 | fail: | |
16484 | return NULL; | |
16485 | } | |
16486 | ||
16487 | ||
16488 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16489 | PyObject *resultobj = 0; | |
16490 | wxDC *arg1 = (wxDC *) 0 ; | |
16491 | wxPoint *arg2 = 0 ; | |
16492 | int arg3 ; | |
16493 | void *argp1 = 0 ; | |
16494 | int res1 = 0 ; | |
16495 | wxPoint temp2 ; | |
16496 | int val3 ; | |
16497 | int ecode3 = 0 ; | |
16498 | PyObject * obj0 = 0 ; | |
16499 | PyObject * obj1 = 0 ; | |
16500 | PyObject * obj2 = 0 ; | |
16501 | char * kwnames[] = { | |
16502 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
16503 | }; | |
16504 | ||
16505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16507 | if (!SWIG_IsOK(res1)) { | |
16508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16509 | } | |
16510 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16511 | { | |
16512 | arg2 = &temp2; | |
16513 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16514 | } | |
16515 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16516 | if (!SWIG_IsOK(ecode3)) { | |
16517 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
16518 | } | |
16519 | arg3 = static_cast< int >(val3); | |
16520 | { | |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16522 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
16523 | wxPyEndAllowThreads(__tstate); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | resultobj = SWIG_Py_Void(); | |
16527 | return resultobj; | |
16528 | fail: | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
16533 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16534 | PyObject *resultobj = 0; | |
16535 | wxDC *arg1 = (wxDC *) 0 ; | |
16536 | int arg2 ; | |
16537 | int arg3 ; | |
16538 | int arg4 ; | |
16539 | int arg5 ; | |
16540 | void *argp1 = 0 ; | |
16541 | int res1 = 0 ; | |
16542 | int val2 ; | |
16543 | int ecode2 = 0 ; | |
16544 | int val3 ; | |
16545 | int ecode3 = 0 ; | |
16546 | int val4 ; | |
16547 | int ecode4 = 0 ; | |
16548 | int val5 ; | |
16549 | int ecode5 = 0 ; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | PyObject * obj1 = 0 ; | |
16552 | PyObject * obj2 = 0 ; | |
16553 | PyObject * obj3 = 0 ; | |
16554 | PyObject * obj4 = 0 ; | |
16555 | char * kwnames[] = { | |
16556 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16557 | }; | |
16558 | ||
16559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16561 | if (!SWIG_IsOK(res1)) { | |
16562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16563 | } | |
16564 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16565 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16566 | if (!SWIG_IsOK(ecode2)) { | |
16567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
16568 | } | |
16569 | arg2 = static_cast< int >(val2); | |
16570 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16571 | if (!SWIG_IsOK(ecode3)) { | |
16572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
16573 | } | |
16574 | arg3 = static_cast< int >(val3); | |
16575 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16576 | if (!SWIG_IsOK(ecode4)) { | |
16577 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
16578 | } | |
16579 | arg4 = static_cast< int >(val4); | |
16580 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16581 | if (!SWIG_IsOK(ecode5)) { | |
16582 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
16583 | } | |
16584 | arg5 = static_cast< int >(val5); | |
16585 | { | |
16586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16587 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
16588 | wxPyEndAllowThreads(__tstate); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
16591 | resultobj = SWIG_Py_Void(); | |
16592 | return resultobj; | |
16593 | fail: | |
16594 | return NULL; | |
16595 | } | |
16596 | ||
16597 | ||
16598 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16599 | PyObject *resultobj = 0; | |
16600 | wxDC *arg1 = (wxDC *) 0 ; | |
16601 | wxRect *arg2 = 0 ; | |
16602 | void *argp1 = 0 ; | |
16603 | int res1 = 0 ; | |
16604 | wxRect temp2 ; | |
16605 | PyObject * obj0 = 0 ; | |
16606 | PyObject * obj1 = 0 ; | |
16607 | char * kwnames[] = { | |
16608 | (char *) "self",(char *) "rect", NULL | |
16609 | }; | |
16610 | ||
16611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
16612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16613 | if (!SWIG_IsOK(res1)) { | |
16614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16615 | } | |
16616 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16617 | { | |
16618 | arg2 = &temp2; | |
16619 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16620 | } | |
16621 | { | |
16622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16623 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
16627 | resultobj = SWIG_Py_Void(); | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
16634 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16635 | PyObject *resultobj = 0; | |
16636 | wxDC *arg1 = (wxDC *) 0 ; | |
16637 | wxPoint *arg2 = 0 ; | |
16638 | wxSize *arg3 = 0 ; | |
16639 | void *argp1 = 0 ; | |
16640 | int res1 = 0 ; | |
16641 | wxPoint temp2 ; | |
16642 | wxSize temp3 ; | |
16643 | PyObject * obj0 = 0 ; | |
16644 | PyObject * obj1 = 0 ; | |
16645 | PyObject * obj2 = 0 ; | |
16646 | char * kwnames[] = { | |
16647 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
16648 | }; | |
16649 | ||
16650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16652 | if (!SWIG_IsOK(res1)) { | |
16653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16654 | } | |
16655 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16656 | { | |
16657 | arg2 = &temp2; | |
16658 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16659 | } | |
16660 | { | |
16661 | arg3 = &temp3; | |
16662 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16663 | } | |
16664 | { | |
16665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16666 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16667 | wxPyEndAllowThreads(__tstate); | |
16668 | if (PyErr_Occurred()) SWIG_fail; | |
16669 | } | |
16670 | resultobj = SWIG_Py_Void(); | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | return NULL; | |
16674 | } | |
16675 | ||
16676 | ||
16677 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16678 | PyObject *resultobj = 0; | |
16679 | wxDC *arg1 = (wxDC *) 0 ; | |
16680 | wxIcon *arg2 = 0 ; | |
16681 | int arg3 ; | |
16682 | int arg4 ; | |
16683 | void *argp1 = 0 ; | |
16684 | int res1 = 0 ; | |
16685 | void *argp2 = 0 ; | |
16686 | int res2 = 0 ; | |
16687 | int val3 ; | |
16688 | int ecode3 = 0 ; | |
16689 | int val4 ; | |
16690 | int ecode4 = 0 ; | |
16691 | PyObject * obj0 = 0 ; | |
16692 | PyObject * obj1 = 0 ; | |
16693 | PyObject * obj2 = 0 ; | |
16694 | PyObject * obj3 = 0 ; | |
16695 | char * kwnames[] = { | |
16696 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
16697 | }; | |
16698 | ||
16699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16701 | if (!SWIG_IsOK(res1)) { | |
16702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16703 | } | |
16704 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16705 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16706 | if (!SWIG_IsOK(res2)) { | |
16707 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16708 | } | |
16709 | if (!argp2) { | |
16710 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16711 | } | |
16712 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16713 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16714 | if (!SWIG_IsOK(ecode3)) { | |
16715 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
16716 | } | |
16717 | arg3 = static_cast< int >(val3); | |
16718 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16719 | if (!SWIG_IsOK(ecode4)) { | |
16720 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
16721 | } | |
16722 | arg4 = static_cast< int >(val4); | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | resultobj = SWIG_Py_Void(); | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
16736 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16737 | PyObject *resultobj = 0; | |
16738 | wxDC *arg1 = (wxDC *) 0 ; | |
16739 | wxIcon *arg2 = 0 ; | |
16740 | wxPoint *arg3 = 0 ; | |
16741 | void *argp1 = 0 ; | |
16742 | int res1 = 0 ; | |
16743 | void *argp2 = 0 ; | |
16744 | int res2 = 0 ; | |
16745 | wxPoint temp3 ; | |
16746 | PyObject * obj0 = 0 ; | |
16747 | PyObject * obj1 = 0 ; | |
16748 | PyObject * obj2 = 0 ; | |
16749 | char * kwnames[] = { | |
16750 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
16751 | }; | |
16752 | ||
16753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16755 | if (!SWIG_IsOK(res1)) { | |
16756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16757 | } | |
16758 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16759 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16760 | if (!SWIG_IsOK(res2)) { | |
16761 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16762 | } | |
16763 | if (!argp2) { | |
16764 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16765 | } | |
16766 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16767 | { | |
16768 | arg3 = &temp3; | |
16769 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16770 | } | |
16771 | { | |
16772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16773 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
16774 | wxPyEndAllowThreads(__tstate); | |
16775 | if (PyErr_Occurred()) SWIG_fail; | |
16776 | } | |
16777 | resultobj = SWIG_Py_Void(); | |
16778 | return resultobj; | |
16779 | fail: | |
16780 | return NULL; | |
16781 | } | |
16782 | ||
16783 | ||
16784 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16785 | PyObject *resultobj = 0; | |
16786 | wxDC *arg1 = (wxDC *) 0 ; | |
16787 | wxBitmap *arg2 = 0 ; | |
16788 | int arg3 ; | |
16789 | int arg4 ; | |
16790 | bool arg5 = (bool) false ; | |
16791 | void *argp1 = 0 ; | |
16792 | int res1 = 0 ; | |
16793 | void *argp2 = 0 ; | |
16794 | int res2 = 0 ; | |
16795 | int val3 ; | |
16796 | int ecode3 = 0 ; | |
16797 | int val4 ; | |
16798 | int ecode4 = 0 ; | |
16799 | bool val5 ; | |
16800 | int ecode5 = 0 ; | |
16801 | PyObject * obj0 = 0 ; | |
16802 | PyObject * obj1 = 0 ; | |
16803 | PyObject * obj2 = 0 ; | |
16804 | PyObject * obj3 = 0 ; | |
16805 | PyObject * obj4 = 0 ; | |
16806 | char * kwnames[] = { | |
16807 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
16808 | }; | |
16809 | ||
16810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16812 | if (!SWIG_IsOK(res1)) { | |
16813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16814 | } | |
16815 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16816 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16817 | if (!SWIG_IsOK(res2)) { | |
16818 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16819 | } | |
16820 | if (!argp2) { | |
16821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16822 | } | |
16823 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16824 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16825 | if (!SWIG_IsOK(ecode3)) { | |
16826 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
16827 | } | |
16828 | arg3 = static_cast< int >(val3); | |
16829 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16830 | if (!SWIG_IsOK(ecode4)) { | |
16831 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
16832 | } | |
16833 | arg4 = static_cast< int >(val4); | |
16834 | if (obj4) { | |
16835 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16836 | if (!SWIG_IsOK(ecode5)) { | |
16837 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
16838 | } | |
16839 | arg5 = static_cast< bool >(val5); | |
16840 | } | |
16841 | { | |
16842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16843 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
16847 | resultobj = SWIG_Py_Void(); | |
16848 | return resultobj; | |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
16854 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16855 | PyObject *resultobj = 0; | |
16856 | wxDC *arg1 = (wxDC *) 0 ; | |
16857 | wxBitmap *arg2 = 0 ; | |
16858 | wxPoint *arg3 = 0 ; | |
16859 | bool arg4 = (bool) false ; | |
16860 | void *argp1 = 0 ; | |
16861 | int res1 = 0 ; | |
16862 | void *argp2 = 0 ; | |
16863 | int res2 = 0 ; | |
16864 | wxPoint temp3 ; | |
16865 | bool val4 ; | |
16866 | int ecode4 = 0 ; | |
16867 | PyObject * obj0 = 0 ; | |
16868 | PyObject * obj1 = 0 ; | |
16869 | PyObject * obj2 = 0 ; | |
16870 | PyObject * obj3 = 0 ; | |
16871 | char * kwnames[] = { | |
16872 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
16873 | }; | |
16874 | ||
16875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16877 | if (!SWIG_IsOK(res1)) { | |
16878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16879 | } | |
16880 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16881 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16882 | if (!SWIG_IsOK(res2)) { | |
16883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16884 | } | |
16885 | if (!argp2) { | |
16886 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16887 | } | |
16888 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16889 | { | |
16890 | arg3 = &temp3; | |
16891 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16892 | } | |
16893 | if (obj3) { | |
16894 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
16895 | if (!SWIG_IsOK(ecode4)) { | |
16896 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
16897 | } | |
16898 | arg4 = static_cast< bool >(val4); | |
16899 | } | |
16900 | { | |
16901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16902 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | resultobj = SWIG_Py_Void(); | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
16913 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16914 | PyObject *resultobj = 0; | |
16915 | wxDC *arg1 = (wxDC *) 0 ; | |
16916 | wxString *arg2 = 0 ; | |
16917 | int arg3 ; | |
16918 | int arg4 ; | |
16919 | void *argp1 = 0 ; | |
16920 | int res1 = 0 ; | |
16921 | bool temp2 = false ; | |
16922 | int val3 ; | |
16923 | int ecode3 = 0 ; | |
16924 | int val4 ; | |
16925 | int ecode4 = 0 ; | |
16926 | PyObject * obj0 = 0 ; | |
16927 | PyObject * obj1 = 0 ; | |
16928 | PyObject * obj2 = 0 ; | |
16929 | PyObject * obj3 = 0 ; | |
16930 | char * kwnames[] = { | |
16931 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
16932 | }; | |
16933 | ||
16934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16936 | if (!SWIG_IsOK(res1)) { | |
16937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16938 | } | |
16939 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16940 | { | |
16941 | arg2 = wxString_in_helper(obj1); | |
16942 | if (arg2 == NULL) SWIG_fail; | |
16943 | temp2 = true; | |
16944 | } | |
16945 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16946 | if (!SWIG_IsOK(ecode3)) { | |
16947 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
16948 | } | |
16949 | arg3 = static_cast< int >(val3); | |
16950 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16951 | if (!SWIG_IsOK(ecode4)) { | |
16952 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
16953 | } | |
16954 | arg4 = static_cast< int >(val4); | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | resultobj = SWIG_Py_Void(); | |
16962 | { | |
16963 | if (temp2) | |
16964 | delete arg2; | |
16965 | } | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | { | |
16969 | if (temp2) | |
16970 | delete arg2; | |
16971 | } | |
16972 | return NULL; | |
16973 | } | |
16974 | ||
16975 | ||
16976 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16977 | PyObject *resultobj = 0; | |
16978 | wxDC *arg1 = (wxDC *) 0 ; | |
16979 | wxString *arg2 = 0 ; | |
16980 | wxPoint *arg3 = 0 ; | |
16981 | void *argp1 = 0 ; | |
16982 | int res1 = 0 ; | |
16983 | bool temp2 = false ; | |
16984 | wxPoint temp3 ; | |
16985 | PyObject * obj0 = 0 ; | |
16986 | PyObject * obj1 = 0 ; | |
16987 | PyObject * obj2 = 0 ; | |
16988 | char * kwnames[] = { | |
16989 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
16990 | }; | |
16991 | ||
16992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16994 | if (!SWIG_IsOK(res1)) { | |
16995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16996 | } | |
16997 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16998 | { | |
16999 | arg2 = wxString_in_helper(obj1); | |
17000 | if (arg2 == NULL) SWIG_fail; | |
17001 | temp2 = true; | |
17002 | } | |
17003 | { | |
17004 | arg3 = &temp3; | |
17005 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17006 | } | |
17007 | { | |
17008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17009 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
17010 | wxPyEndAllowThreads(__tstate); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
17013 | resultobj = SWIG_Py_Void(); | |
17014 | { | |
17015 | if (temp2) | |
17016 | delete arg2; | |
17017 | } | |
17018 | return resultobj; | |
17019 | fail: | |
17020 | { | |
17021 | if (temp2) | |
17022 | delete arg2; | |
17023 | } | |
17024 | return NULL; | |
17025 | } | |
17026 | ||
17027 | ||
17028 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17029 | PyObject *resultobj = 0; | |
17030 | wxDC *arg1 = (wxDC *) 0 ; | |
17031 | wxString *arg2 = 0 ; | |
17032 | int arg3 ; | |
17033 | int arg4 ; | |
17034 | double arg5 ; | |
17035 | void *argp1 = 0 ; | |
17036 | int res1 = 0 ; | |
17037 | bool temp2 = false ; | |
17038 | int val3 ; | |
17039 | int ecode3 = 0 ; | |
17040 | int val4 ; | |
17041 | int ecode4 = 0 ; | |
17042 | double val5 ; | |
17043 | int ecode5 = 0 ; | |
17044 | PyObject * obj0 = 0 ; | |
17045 | PyObject * obj1 = 0 ; | |
17046 | PyObject * obj2 = 0 ; | |
17047 | PyObject * obj3 = 0 ; | |
17048 | PyObject * obj4 = 0 ; | |
17049 | char * kwnames[] = { | |
17050 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
17051 | }; | |
17052 | ||
17053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17055 | if (!SWIG_IsOK(res1)) { | |
17056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17057 | } | |
17058 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17059 | { | |
17060 | arg2 = wxString_in_helper(obj1); | |
17061 | if (arg2 == NULL) SWIG_fail; | |
17062 | temp2 = true; | |
17063 | } | |
17064 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17065 | if (!SWIG_IsOK(ecode3)) { | |
17066 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
17067 | } | |
17068 | arg3 = static_cast< int >(val3); | |
17069 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17070 | if (!SWIG_IsOK(ecode4)) { | |
17071 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
17072 | } | |
17073 | arg4 = static_cast< int >(val4); | |
17074 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
17075 | if (!SWIG_IsOK(ecode5)) { | |
17076 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
17077 | } | |
17078 | arg5 = static_cast< double >(val5); | |
17079 | { | |
17080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17081 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
17082 | wxPyEndAllowThreads(__tstate); | |
17083 | if (PyErr_Occurred()) SWIG_fail; | |
17084 | } | |
17085 | resultobj = SWIG_Py_Void(); | |
17086 | { | |
17087 | if (temp2) | |
17088 | delete arg2; | |
17089 | } | |
17090 | return resultobj; | |
17091 | fail: | |
17092 | { | |
17093 | if (temp2) | |
17094 | delete arg2; | |
17095 | } | |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17101 | PyObject *resultobj = 0; | |
17102 | wxDC *arg1 = (wxDC *) 0 ; | |
17103 | wxString *arg2 = 0 ; | |
17104 | wxPoint *arg3 = 0 ; | |
17105 | double arg4 ; | |
17106 | void *argp1 = 0 ; | |
17107 | int res1 = 0 ; | |
17108 | bool temp2 = false ; | |
17109 | wxPoint temp3 ; | |
17110 | double val4 ; | |
17111 | int ecode4 = 0 ; | |
17112 | PyObject * obj0 = 0 ; | |
17113 | PyObject * obj1 = 0 ; | |
17114 | PyObject * obj2 = 0 ; | |
17115 | PyObject * obj3 = 0 ; | |
17116 | char * kwnames[] = { | |
17117 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
17118 | }; | |
17119 | ||
17120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17122 | if (!SWIG_IsOK(res1)) { | |
17123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17124 | } | |
17125 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17126 | { | |
17127 | arg2 = wxString_in_helper(obj1); | |
17128 | if (arg2 == NULL) SWIG_fail; | |
17129 | temp2 = true; | |
17130 | } | |
17131 | { | |
17132 | arg3 = &temp3; | |
17133 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17134 | } | |
17135 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
17136 | if (!SWIG_IsOK(ecode4)) { | |
17137 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
17138 | } | |
17139 | arg4 = static_cast< double >(val4); | |
17140 | { | |
17141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17142 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
17143 | wxPyEndAllowThreads(__tstate); | |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
17145 | } | |
17146 | resultobj = SWIG_Py_Void(); | |
17147 | { | |
17148 | if (temp2) | |
17149 | delete arg2; | |
17150 | } | |
17151 | return resultobj; | |
17152 | fail: | |
17153 | { | |
17154 | if (temp2) | |
17155 | delete arg2; | |
17156 | } | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj = 0; | |
17163 | wxDC *arg1 = (wxDC *) 0 ; | |
17164 | int arg2 ; | |
17165 | int arg3 ; | |
17166 | int arg4 ; | |
17167 | int arg5 ; | |
17168 | wxDC *arg6 = (wxDC *) 0 ; | |
17169 | int arg7 ; | |
17170 | int arg8 ; | |
17171 | int arg9 = (int) wxCOPY ; | |
17172 | bool arg10 = (bool) false ; | |
17173 | int arg11 = (int) -1 ; | |
17174 | int arg12 = (int) -1 ; | |
17175 | bool result; | |
17176 | void *argp1 = 0 ; | |
17177 | int res1 = 0 ; | |
17178 | int val2 ; | |
17179 | int ecode2 = 0 ; | |
17180 | int val3 ; | |
17181 | int ecode3 = 0 ; | |
17182 | int val4 ; | |
17183 | int ecode4 = 0 ; | |
17184 | int val5 ; | |
17185 | int ecode5 = 0 ; | |
17186 | void *argp6 = 0 ; | |
17187 | int res6 = 0 ; | |
17188 | int val7 ; | |
17189 | int ecode7 = 0 ; | |
17190 | int val8 ; | |
17191 | int ecode8 = 0 ; | |
17192 | int val9 ; | |
17193 | int ecode9 = 0 ; | |
17194 | bool val10 ; | |
17195 | int ecode10 = 0 ; | |
17196 | int val11 ; | |
17197 | int ecode11 = 0 ; | |
17198 | int val12 ; | |
17199 | int ecode12 = 0 ; | |
17200 | PyObject * obj0 = 0 ; | |
17201 | PyObject * obj1 = 0 ; | |
17202 | PyObject * obj2 = 0 ; | |
17203 | PyObject * obj3 = 0 ; | |
17204 | PyObject * obj4 = 0 ; | |
17205 | PyObject * obj5 = 0 ; | |
17206 | PyObject * obj6 = 0 ; | |
17207 | PyObject * obj7 = 0 ; | |
17208 | PyObject * obj8 = 0 ; | |
17209 | PyObject * obj9 = 0 ; | |
17210 | PyObject * obj10 = 0 ; | |
17211 | PyObject * obj11 = 0 ; | |
17212 | char * kwnames[] = { | |
17213 | (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 | |
17214 | }; | |
17215 | ||
17216 | 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; | |
17217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17218 | if (!SWIG_IsOK(res1)) { | |
17219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17220 | } | |
17221 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17223 | if (!SWIG_IsOK(ecode2)) { | |
17224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
17225 | } | |
17226 | arg2 = static_cast< int >(val2); | |
17227 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17228 | if (!SWIG_IsOK(ecode3)) { | |
17229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
17230 | } | |
17231 | arg3 = static_cast< int >(val3); | |
17232 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17233 | if (!SWIG_IsOK(ecode4)) { | |
17234 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
17235 | } | |
17236 | arg4 = static_cast< int >(val4); | |
17237 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17238 | if (!SWIG_IsOK(ecode5)) { | |
17239 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
17240 | } | |
17241 | arg5 = static_cast< int >(val5); | |
17242 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17243 | if (!SWIG_IsOK(res6)) { | |
17244 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
17245 | } | |
17246 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
17247 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
17248 | if (!SWIG_IsOK(ecode7)) { | |
17249 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
17250 | } | |
17251 | arg7 = static_cast< int >(val7); | |
17252 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
17253 | if (!SWIG_IsOK(ecode8)) { | |
17254 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
17255 | } | |
17256 | arg8 = static_cast< int >(val8); | |
17257 | if (obj8) { | |
17258 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
17259 | if (!SWIG_IsOK(ecode9)) { | |
17260 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
17261 | } | |
17262 | arg9 = static_cast< int >(val9); | |
17263 | } | |
17264 | if (obj9) { | |
17265 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
17266 | if (!SWIG_IsOK(ecode10)) { | |
17267 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
17268 | } | |
17269 | arg10 = static_cast< bool >(val10); | |
17270 | } | |
17271 | if (obj10) { | |
17272 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
17273 | if (!SWIG_IsOK(ecode11)) { | |
17274 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
17275 | } | |
17276 | arg11 = static_cast< int >(val11); | |
17277 | } | |
17278 | if (obj11) { | |
17279 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
17280 | if (!SWIG_IsOK(ecode12)) { | |
17281 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
17282 | } | |
17283 | arg12 = static_cast< int >(val12); | |
17284 | } | |
17285 | { | |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17287 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
17288 | wxPyEndAllowThreads(__tstate); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
17291 | { | |
17292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17293 | } | |
17294 | return resultobj; | |
17295 | fail: | |
17296 | return NULL; | |
17297 | } | |
17298 | ||
17299 | ||
17300 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17301 | PyObject *resultobj = 0; | |
17302 | wxDC *arg1 = (wxDC *) 0 ; | |
17303 | wxPoint *arg2 = 0 ; | |
17304 | wxSize *arg3 = 0 ; | |
17305 | wxDC *arg4 = (wxDC *) 0 ; | |
17306 | wxPoint *arg5 = 0 ; | |
17307 | int arg6 = (int) wxCOPY ; | |
17308 | bool arg7 = (bool) false ; | |
17309 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
17310 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
17311 | bool result; | |
17312 | void *argp1 = 0 ; | |
17313 | int res1 = 0 ; | |
17314 | wxPoint temp2 ; | |
17315 | wxSize temp3 ; | |
17316 | void *argp4 = 0 ; | |
17317 | int res4 = 0 ; | |
17318 | wxPoint temp5 ; | |
17319 | int val6 ; | |
17320 | int ecode6 = 0 ; | |
17321 | bool val7 ; | |
17322 | int ecode7 = 0 ; | |
17323 | wxPoint temp8 ; | |
17324 | PyObject * obj0 = 0 ; | |
17325 | PyObject * obj1 = 0 ; | |
17326 | PyObject * obj2 = 0 ; | |
17327 | PyObject * obj3 = 0 ; | |
17328 | PyObject * obj4 = 0 ; | |
17329 | PyObject * obj5 = 0 ; | |
17330 | PyObject * obj6 = 0 ; | |
17331 | PyObject * obj7 = 0 ; | |
17332 | char * kwnames[] = { | |
17333 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
17334 | }; | |
17335 | ||
17336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
17337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17338 | if (!SWIG_IsOK(res1)) { | |
17339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17340 | } | |
17341 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17342 | { | |
17343 | arg2 = &temp2; | |
17344 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17345 | } | |
17346 | { | |
17347 | arg3 = &temp3; | |
17348 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17349 | } | |
17350 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17351 | if (!SWIG_IsOK(res4)) { | |
17352 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
17353 | } | |
17354 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
17355 | { | |
17356 | arg5 = &temp5; | |
17357 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17358 | } | |
17359 | if (obj5) { | |
17360 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17361 | if (!SWIG_IsOK(ecode6)) { | |
17362 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
17363 | } | |
17364 | arg6 = static_cast< int >(val6); | |
17365 | } | |
17366 | if (obj6) { | |
17367 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
17368 | if (!SWIG_IsOK(ecode7)) { | |
17369 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
17370 | } | |
17371 | arg7 = static_cast< bool >(val7); | |
17372 | } | |
17373 | if (obj7) { | |
093d3ff1 | 17374 | { |
554f62e9 RD |
17375 | arg8 = &temp8; |
17376 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 17377 | } |
554f62e9 RD |
17378 | } |
17379 | { | |
17380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17381 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
17385 | { | |
17386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17387 | } | |
17388 | return resultobj; | |
17389 | fail: | |
17390 | return NULL; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17395 | PyObject *resultobj = 0; | |
17396 | wxDC *arg1 = (wxDC *) 0 ; | |
17397 | int arg2 ; | |
17398 | int arg3 ; | |
17399 | int arg4 ; | |
17400 | int arg5 ; | |
17401 | void *argp1 = 0 ; | |
17402 | int res1 = 0 ; | |
17403 | int val2 ; | |
17404 | int ecode2 = 0 ; | |
17405 | int val3 ; | |
17406 | int ecode3 = 0 ; | |
17407 | int val4 ; | |
17408 | int ecode4 = 0 ; | |
17409 | int val5 ; | |
17410 | int ecode5 = 0 ; | |
17411 | PyObject * obj0 = 0 ; | |
17412 | PyObject * obj1 = 0 ; | |
17413 | PyObject * obj2 = 0 ; | |
17414 | PyObject * obj3 = 0 ; | |
17415 | PyObject * obj4 = 0 ; | |
17416 | char * kwnames[] = { | |
17417 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17418 | }; | |
17419 | ||
17420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17422 | if (!SWIG_IsOK(res1)) { | |
17423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17424 | } | |
17425 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17426 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17427 | if (!SWIG_IsOK(ecode2)) { | |
17428 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
17429 | } | |
17430 | arg2 = static_cast< int >(val2); | |
17431 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17432 | if (!SWIG_IsOK(ecode3)) { | |
17433 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
17434 | } | |
17435 | arg3 = static_cast< int >(val3); | |
17436 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17437 | if (!SWIG_IsOK(ecode4)) { | |
17438 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
17439 | } | |
17440 | arg4 = static_cast< int >(val4); | |
17441 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17442 | if (!SWIG_IsOK(ecode5)) { | |
17443 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
17444 | } | |
17445 | arg5 = static_cast< int >(val5); | |
17446 | { | |
17447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17448 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
17449 | wxPyEndAllowThreads(__tstate); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
17452 | resultobj = SWIG_Py_Void(); | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
17459 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17460 | PyObject *resultobj = 0; | |
17461 | wxDC *arg1 = (wxDC *) 0 ; | |
17462 | wxPoint *arg2 = 0 ; | |
17463 | wxSize *arg3 = 0 ; | |
17464 | void *argp1 = 0 ; | |
17465 | int res1 = 0 ; | |
17466 | wxPoint temp2 ; | |
17467 | wxSize temp3 ; | |
17468 | PyObject * obj0 = 0 ; | |
17469 | PyObject * obj1 = 0 ; | |
17470 | PyObject * obj2 = 0 ; | |
17471 | char * kwnames[] = { | |
17472 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
17473 | }; | |
17474 | ||
17475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17477 | if (!SWIG_IsOK(res1)) { | |
17478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17479 | } | |
17480 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17481 | { | |
17482 | arg2 = &temp2; | |
17483 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17484 | } | |
17485 | { | |
17486 | arg3 = &temp3; | |
17487 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17488 | } | |
17489 | { | |
17490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17491 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
17492 | wxPyEndAllowThreads(__tstate); | |
17493 | if (PyErr_Occurred()) SWIG_fail; | |
17494 | } | |
17495 | resultobj = SWIG_Py_Void(); | |
17496 | return resultobj; | |
17497 | fail: | |
17498 | return NULL; | |
17499 | } | |
17500 | ||
17501 | ||
17502 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17503 | PyObject *resultobj = 0; | |
17504 | wxDC *arg1 = (wxDC *) 0 ; | |
17505 | wxRegion *arg2 = 0 ; | |
17506 | void *argp1 = 0 ; | |
17507 | int res1 = 0 ; | |
17508 | void *argp2 = 0 ; | |
17509 | int res2 = 0 ; | |
17510 | PyObject * obj0 = 0 ; | |
17511 | PyObject * obj1 = 0 ; | |
17512 | char * kwnames[] = { | |
17513 | (char *) "self",(char *) "region", NULL | |
17514 | }; | |
17515 | ||
17516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
17517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17518 | if (!SWIG_IsOK(res1)) { | |
17519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17520 | } | |
17521 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17522 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
17523 | if (!SWIG_IsOK(res2)) { | |
17524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
17525 | } | |
17526 | if (!argp2) { | |
17527 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
17528 | } | |
17529 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
17530 | { | |
17531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17532 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
17533 | wxPyEndAllowThreads(__tstate); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | } | |
17536 | resultobj = SWIG_Py_Void(); | |
17537 | return resultobj; | |
17538 | fail: | |
17539 | return NULL; | |
17540 | } | |
17541 | ||
17542 | ||
17543 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17544 | PyObject *resultobj = 0; | |
17545 | wxDC *arg1 = (wxDC *) 0 ; | |
17546 | wxRect *arg2 = 0 ; | |
17547 | void *argp1 = 0 ; | |
17548 | int res1 = 0 ; | |
17549 | wxRect temp2 ; | |
17550 | PyObject * obj0 = 0 ; | |
17551 | PyObject * obj1 = 0 ; | |
17552 | char * kwnames[] = { | |
17553 | (char *) "self",(char *) "rect", NULL | |
17554 | }; | |
17555 | ||
17556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
17557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17558 | if (!SWIG_IsOK(res1)) { | |
17559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17560 | } | |
17561 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17562 | { | |
17563 | arg2 = &temp2; | |
17564 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17565 | } | |
17566 | { | |
17567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17568 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
17569 | wxPyEndAllowThreads(__tstate); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
17572 | resultobj = SWIG_Py_Void(); | |
17573 | return resultobj; | |
17574 | fail: | |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj = 0; | |
17581 | wxDC *arg1 = (wxDC *) 0 ; | |
17582 | int arg2 ; | |
17583 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17584 | int arg4 = (int) 0 ; | |
17585 | int arg5 = (int) 0 ; | |
17586 | void *argp1 = 0 ; | |
17587 | int res1 = 0 ; | |
17588 | int val4 ; | |
17589 | int ecode4 = 0 ; | |
17590 | int val5 ; | |
17591 | int ecode5 = 0 ; | |
17592 | PyObject * obj0 = 0 ; | |
17593 | PyObject * obj1 = 0 ; | |
17594 | PyObject * obj2 = 0 ; | |
17595 | PyObject * obj3 = 0 ; | |
17596 | char * kwnames[] = { | |
17597 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
17598 | }; | |
17599 | ||
17600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17602 | if (!SWIG_IsOK(res1)) { | |
17603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17604 | } | |
17605 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17606 | { | |
17607 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17608 | if (arg3 == NULL) SWIG_fail; | |
17609 | } | |
17610 | if (obj2) { | |
17611 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
17612 | if (!SWIG_IsOK(ecode4)) { | |
17613 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
17614 | } | |
17615 | arg4 = static_cast< int >(val4); | |
17616 | } | |
17617 | if (obj3) { | |
17618 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
17619 | if (!SWIG_IsOK(ecode5)) { | |
17620 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
17621 | } | |
17622 | arg5 = static_cast< int >(val5); | |
17623 | } | |
17624 | { | |
17625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17626 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
17627 | wxPyEndAllowThreads(__tstate); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
17630 | resultobj = SWIG_Py_Void(); | |
17631 | { | |
17632 | if (arg3) delete [] arg3; | |
17633 | } | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | { | |
17637 | if (arg3) delete [] arg3; | |
17638 | } | |
17639 | return NULL; | |
17640 | } | |
17641 | ||
17642 | ||
17643 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17644 | PyObject *resultobj = 0; | |
17645 | wxDC *arg1 = (wxDC *) 0 ; | |
17646 | int arg2 ; | |
17647 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17648 | int arg4 = (int) 0 ; | |
17649 | int arg5 = (int) 0 ; | |
17650 | int arg6 = (int) wxODDEVEN_RULE ; | |
17651 | void *argp1 = 0 ; | |
17652 | int res1 = 0 ; | |
17653 | int val4 ; | |
17654 | int ecode4 = 0 ; | |
17655 | int val5 ; | |
17656 | int ecode5 = 0 ; | |
17657 | int val6 ; | |
17658 | int ecode6 = 0 ; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | PyObject * obj2 = 0 ; | |
17662 | PyObject * obj3 = 0 ; | |
17663 | PyObject * obj4 = 0 ; | |
17664 | char * kwnames[] = { | |
17665 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
17666 | }; | |
17667 | ||
17668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17670 | if (!SWIG_IsOK(res1)) { | |
17671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17672 | } | |
17673 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17674 | { | |
17675 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17676 | if (arg3 == NULL) SWIG_fail; | |
17677 | } | |
17678 | if (obj2) { | |
17679 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
17680 | if (!SWIG_IsOK(ecode4)) { | |
17681 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
17682 | } | |
17683 | arg4 = static_cast< int >(val4); | |
17684 | } | |
17685 | if (obj3) { | |
17686 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
17687 | if (!SWIG_IsOK(ecode5)) { | |
17688 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
17689 | } | |
17690 | arg5 = static_cast< int >(val5); | |
17691 | } | |
17692 | if (obj4) { | |
17693 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
17694 | if (!SWIG_IsOK(ecode6)) { | |
17695 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
17696 | } | |
17697 | arg6 = static_cast< int >(val6); | |
17698 | } | |
17699 | { | |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
17702 | wxPyEndAllowThreads(__tstate); | |
17703 | if (PyErr_Occurred()) SWIG_fail; | |
17704 | } | |
17705 | resultobj = SWIG_Py_Void(); | |
17706 | { | |
17707 | if (arg3) delete [] arg3; | |
17708 | } | |
17709 | return resultobj; | |
17710 | fail: | |
17711 | { | |
17712 | if (arg3) delete [] arg3; | |
17713 | } | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj = 0; | |
17720 | wxDC *arg1 = (wxDC *) 0 ; | |
17721 | wxString *arg2 = 0 ; | |
17722 | wxRect *arg3 = 0 ; | |
17723 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17724 | int arg5 = (int) -1 ; | |
17725 | void *argp1 = 0 ; | |
17726 | int res1 = 0 ; | |
17727 | bool temp2 = false ; | |
17728 | wxRect temp3 ; | |
17729 | int val4 ; | |
17730 | int ecode4 = 0 ; | |
17731 | int val5 ; | |
17732 | int ecode5 = 0 ; | |
17733 | PyObject * obj0 = 0 ; | |
17734 | PyObject * obj1 = 0 ; | |
17735 | PyObject * obj2 = 0 ; | |
17736 | PyObject * obj3 = 0 ; | |
17737 | PyObject * obj4 = 0 ; | |
17738 | char * kwnames[] = { | |
17739 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17740 | }; | |
17741 | ||
17742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17744 | if (!SWIG_IsOK(res1)) { | |
17745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17746 | } | |
17747 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17748 | { | |
17749 | arg2 = wxString_in_helper(obj1); | |
17750 | if (arg2 == NULL) SWIG_fail; | |
17751 | temp2 = true; | |
17752 | } | |
17753 | { | |
17754 | arg3 = &temp3; | |
17755 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17756 | } | |
17757 | if (obj3) { | |
17758 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17759 | if (!SWIG_IsOK(ecode4)) { | |
17760 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
17761 | } | |
17762 | arg4 = static_cast< int >(val4); | |
17763 | } | |
17764 | if (obj4) { | |
17765 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17766 | if (!SWIG_IsOK(ecode5)) { | |
17767 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
17768 | } | |
17769 | arg5 = static_cast< int >(val5); | |
17770 | } | |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
17774 | wxPyEndAllowThreads(__tstate); | |
17775 | if (PyErr_Occurred()) SWIG_fail; | |
17776 | } | |
17777 | resultobj = SWIG_Py_Void(); | |
17778 | { | |
17779 | if (temp2) | |
17780 | delete arg2; | |
17781 | } | |
17782 | return resultobj; | |
17783 | fail: | |
17784 | { | |
17785 | if (temp2) | |
17786 | delete arg2; | |
17787 | } | |
17788 | return NULL; | |
17789 | } | |
17790 | ||
17791 | ||
17792 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17793 | PyObject *resultobj = 0; | |
17794 | wxDC *arg1 = (wxDC *) 0 ; | |
17795 | wxString *arg2 = 0 ; | |
17796 | wxBitmap *arg3 = 0 ; | |
17797 | wxRect *arg4 = 0 ; | |
17798 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17799 | int arg6 = (int) -1 ; | |
17800 | wxRect result; | |
17801 | void *argp1 = 0 ; | |
17802 | int res1 = 0 ; | |
17803 | bool temp2 = false ; | |
17804 | void *argp3 = 0 ; | |
17805 | int res3 = 0 ; | |
17806 | wxRect temp4 ; | |
17807 | int val5 ; | |
17808 | int ecode5 = 0 ; | |
17809 | int val6 ; | |
17810 | int ecode6 = 0 ; | |
17811 | PyObject * obj0 = 0 ; | |
17812 | PyObject * obj1 = 0 ; | |
17813 | PyObject * obj2 = 0 ; | |
17814 | PyObject * obj3 = 0 ; | |
17815 | PyObject * obj4 = 0 ; | |
17816 | PyObject * obj5 = 0 ; | |
17817 | char * kwnames[] = { | |
17818 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17819 | }; | |
17820 | ||
17821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17823 | if (!SWIG_IsOK(res1)) { | |
17824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17825 | } | |
17826 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17827 | { | |
17828 | arg2 = wxString_in_helper(obj1); | |
17829 | if (arg2 == NULL) SWIG_fail; | |
17830 | temp2 = true; | |
17831 | } | |
17832 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
17833 | if (!SWIG_IsOK(res3)) { | |
17834 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17835 | } | |
17836 | if (!argp3) { | |
17837 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17838 | } | |
17839 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
17840 | { | |
17841 | arg4 = &temp4; | |
17842 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
17843 | } | |
17844 | if (obj4) { | |
17845 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17846 | if (!SWIG_IsOK(ecode5)) { | |
17847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
17848 | } | |
17849 | arg5 = static_cast< int >(val5); | |
17850 | } | |
17851 | if (obj5) { | |
17852 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17853 | if (!SWIG_IsOK(ecode6)) { | |
17854 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
17855 | } | |
17856 | arg6 = static_cast< int >(val6); | |
17857 | } | |
17858 | { | |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
17865 | { | |
17866 | if (temp2) | |
17867 | delete arg2; | |
17868 | } | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | { | |
17872 | if (temp2) | |
17873 | delete arg2; | |
17874 | } | |
17875 | return NULL; | |
17876 | } | |
17877 | ||
17878 | ||
17879 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17880 | PyObject *resultobj = 0; | |
17881 | wxDC *arg1 = (wxDC *) 0 ; | |
17882 | int arg2 ; | |
17883 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17884 | void *argp1 = 0 ; | |
17885 | int res1 = 0 ; | |
17886 | PyObject * obj0 = 0 ; | |
17887 | PyObject * obj1 = 0 ; | |
17888 | char * kwnames[] = { | |
17889 | (char *) "self",(char *) "points", NULL | |
17890 | }; | |
17891 | ||
17892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
17893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17894 | if (!SWIG_IsOK(res1)) { | |
17895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17896 | } | |
17897 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17898 | { | |
17899 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17900 | if (arg3 == NULL) SWIG_fail; | |
17901 | } | |
17902 | { | |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | (arg1)->DrawSpline(arg2,arg3); | |
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
17908 | resultobj = SWIG_Py_Void(); | |
17909 | { | |
17910 | if (arg3) delete [] arg3; | |
17911 | } | |
17912 | return resultobj; | |
17913 | fail: | |
17914 | { | |
17915 | if (arg3) delete [] arg3; | |
17916 | } | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
17921 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17922 | PyObject *resultobj = 0; | |
17923 | wxDC *arg1 = (wxDC *) 0 ; | |
17924 | void *argp1 = 0 ; | |
17925 | int res1 = 0 ; | |
17926 | PyObject *swig_obj[1] ; | |
17927 | ||
17928 | if (!args) SWIG_fail; | |
17929 | swig_obj[0] = args; | |
17930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17931 | if (!SWIG_IsOK(res1)) { | |
17932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17933 | } | |
17934 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17935 | { | |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | (arg1)->Clear(); | |
17938 | wxPyEndAllowThreads(__tstate); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
17941 | resultobj = SWIG_Py_Void(); | |
17942 | return resultobj; | |
17943 | fail: | |
17944 | return NULL; | |
17945 | } | |
17946 | ||
17947 | ||
17948 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17949 | PyObject *resultobj = 0; | |
17950 | wxDC *arg1 = (wxDC *) 0 ; | |
17951 | wxString *arg2 = 0 ; | |
17952 | bool result; | |
17953 | void *argp1 = 0 ; | |
17954 | int res1 = 0 ; | |
17955 | bool temp2 = false ; | |
17956 | PyObject * obj0 = 0 ; | |
17957 | PyObject * obj1 = 0 ; | |
17958 | char * kwnames[] = { | |
17959 | (char *) "self",(char *) "message", NULL | |
17960 | }; | |
17961 | ||
17962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
17963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17964 | if (!SWIG_IsOK(res1)) { | |
17965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17966 | } | |
17967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17968 | { | |
17969 | arg2 = wxString_in_helper(obj1); | |
17970 | if (arg2 == NULL) SWIG_fail; | |
17971 | temp2 = true; | |
17972 | } | |
17973 | { | |
17974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17975 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
17976 | wxPyEndAllowThreads(__tstate); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
17979 | { | |
17980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17981 | } | |
17982 | { | |
17983 | if (temp2) | |
17984 | delete arg2; | |
17985 | } | |
17986 | return resultobj; | |
17987 | fail: | |
17988 | { | |
17989 | if (temp2) | |
17990 | delete arg2; | |
17991 | } | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
17996 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17997 | PyObject *resultobj = 0; | |
17998 | wxDC *arg1 = (wxDC *) 0 ; | |
17999 | void *argp1 = 0 ; | |
18000 | int res1 = 0 ; | |
18001 | PyObject *swig_obj[1] ; | |
18002 | ||
18003 | if (!args) SWIG_fail; | |
18004 | swig_obj[0] = args; | |
18005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18006 | if (!SWIG_IsOK(res1)) { | |
18007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18008 | } | |
18009 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18010 | { | |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18012 | (arg1)->EndDoc(); | |
18013 | wxPyEndAllowThreads(__tstate); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
18016 | resultobj = SWIG_Py_Void(); | |
18017 | return resultobj; | |
18018 | fail: | |
18019 | return NULL; | |
18020 | } | |
18021 | ||
18022 | ||
18023 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18024 | PyObject *resultobj = 0; | |
18025 | wxDC *arg1 = (wxDC *) 0 ; | |
18026 | void *argp1 = 0 ; | |
18027 | int res1 = 0 ; | |
18028 | PyObject *swig_obj[1] ; | |
18029 | ||
18030 | if (!args) SWIG_fail; | |
18031 | swig_obj[0] = args; | |
18032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18033 | if (!SWIG_IsOK(res1)) { | |
18034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18035 | } | |
18036 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18037 | { | |
18038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18039 | (arg1)->StartPage(); | |
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
18043 | resultobj = SWIG_Py_Void(); | |
18044 | return resultobj; | |
18045 | fail: | |
18046 | return NULL; | |
18047 | } | |
18048 | ||
18049 | ||
18050 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18051 | PyObject *resultobj = 0; | |
18052 | wxDC *arg1 = (wxDC *) 0 ; | |
18053 | void *argp1 = 0 ; | |
18054 | int res1 = 0 ; | |
18055 | PyObject *swig_obj[1] ; | |
18056 | ||
18057 | if (!args) SWIG_fail; | |
18058 | swig_obj[0] = args; | |
18059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18060 | if (!SWIG_IsOK(res1)) { | |
18061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18062 | } | |
18063 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18064 | { | |
18065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18066 | (arg1)->EndPage(); | |
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | resultobj = SWIG_Py_Void(); | |
18071 | return resultobj; | |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj = 0; | |
18079 | wxDC *arg1 = (wxDC *) 0 ; | |
18080 | wxFont *arg2 = 0 ; | |
18081 | void *argp1 = 0 ; | |
18082 | int res1 = 0 ; | |
18083 | void *argp2 = 0 ; | |
18084 | int res2 = 0 ; | |
18085 | PyObject * obj0 = 0 ; | |
18086 | PyObject * obj1 = 0 ; | |
18087 | char * kwnames[] = { | |
18088 | (char *) "self",(char *) "font", NULL | |
18089 | }; | |
18090 | ||
18091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18093 | if (!SWIG_IsOK(res1)) { | |
18094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18095 | } | |
18096 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18097 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18098 | if (!SWIG_IsOK(res2)) { | |
18099 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18100 | } | |
18101 | if (!argp2) { | |
18102 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18103 | } | |
18104 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18105 | { | |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | (arg1)->SetFont((wxFont const &)*arg2); | |
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | resultobj = SWIG_Py_Void(); | |
18112 | return resultobj; | |
18113 | fail: | |
18114 | return NULL; | |
18115 | } | |
18116 | ||
18117 | ||
18118 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18119 | PyObject *resultobj = 0; | |
18120 | wxDC *arg1 = (wxDC *) 0 ; | |
18121 | wxPen *arg2 = 0 ; | |
18122 | void *argp1 = 0 ; | |
18123 | int res1 = 0 ; | |
18124 | void *argp2 = 0 ; | |
18125 | int res2 = 0 ; | |
18126 | PyObject * obj0 = 0 ; | |
18127 | PyObject * obj1 = 0 ; | |
18128 | char * kwnames[] = { | |
18129 | (char *) "self",(char *) "pen", NULL | |
18130 | }; | |
18131 | ||
18132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
18133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18134 | if (!SWIG_IsOK(res1)) { | |
18135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18136 | } | |
18137 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18138 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
18139 | if (!SWIG_IsOK(res2)) { | |
18140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
18141 | } | |
18142 | if (!argp2) { | |
18143 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
18144 | } | |
18145 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
18146 | { | |
18147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18148 | (arg1)->SetPen((wxPen const &)*arg2); | |
18149 | wxPyEndAllowThreads(__tstate); | |
18150 | if (PyErr_Occurred()) SWIG_fail; | |
18151 | } | |
18152 | resultobj = SWIG_Py_Void(); | |
18153 | return resultobj; | |
18154 | fail: | |
18155 | return NULL; | |
18156 | } | |
18157 | ||
18158 | ||
18159 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18160 | PyObject *resultobj = 0; | |
18161 | wxDC *arg1 = (wxDC *) 0 ; | |
18162 | wxBrush *arg2 = 0 ; | |
18163 | void *argp1 = 0 ; | |
18164 | int res1 = 0 ; | |
18165 | void *argp2 = 0 ; | |
18166 | int res2 = 0 ; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | PyObject * obj1 = 0 ; | |
18169 | char * kwnames[] = { | |
18170 | (char *) "self",(char *) "brush", NULL | |
18171 | }; | |
18172 | ||
18173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
18174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18175 | if (!SWIG_IsOK(res1)) { | |
18176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18177 | } | |
18178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18179 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
18180 | if (!SWIG_IsOK(res2)) { | |
18181 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18182 | } | |
18183 | if (!argp2) { | |
18184 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18185 | } | |
18186 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
18187 | { | |
18188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18189 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | resultobj = SWIG_Py_Void(); | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
18200 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18201 | PyObject *resultobj = 0; | |
18202 | wxDC *arg1 = (wxDC *) 0 ; | |
18203 | wxBrush *arg2 = 0 ; | |
18204 | void *argp1 = 0 ; | |
18205 | int res1 = 0 ; | |
18206 | void *argp2 = 0 ; | |
18207 | int res2 = 0 ; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | PyObject * obj1 = 0 ; | |
18210 | char * kwnames[] = { | |
18211 | (char *) "self",(char *) "brush", NULL | |
18212 | }; | |
18213 | ||
18214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
18215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18216 | if (!SWIG_IsOK(res1)) { | |
18217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18218 | } | |
18219 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18220 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
18221 | if (!SWIG_IsOK(res2)) { | |
18222 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18223 | } | |
18224 | if (!argp2) { | |
18225 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
18226 | } | |
18227 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
18228 | { | |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | resultobj = SWIG_Py_Void(); | |
18235 | return resultobj; | |
18236 | fail: | |
18237 | return NULL; | |
18238 | } | |
18239 | ||
18240 | ||
18241 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18242 | PyObject *resultobj = 0; | |
18243 | wxDC *arg1 = (wxDC *) 0 ; | |
18244 | int arg2 ; | |
18245 | void *argp1 = 0 ; | |
18246 | int res1 = 0 ; | |
18247 | int val2 ; | |
18248 | int ecode2 = 0 ; | |
18249 | PyObject * obj0 = 0 ; | |
18250 | PyObject * obj1 = 0 ; | |
18251 | char * kwnames[] = { | |
18252 | (char *) "self",(char *) "mode", NULL | |
18253 | }; | |
18254 | ||
18255 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
18256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18257 | if (!SWIG_IsOK(res1)) { | |
18258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18259 | } | |
18260 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18261 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18262 | if (!SWIG_IsOK(ecode2)) { | |
18263 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
18264 | } | |
18265 | arg2 = static_cast< int >(val2); | |
18266 | { | |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | (arg1)->SetBackgroundMode(arg2); | |
18269 | wxPyEndAllowThreads(__tstate); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | } | |
18272 | resultobj = SWIG_Py_Void(); | |
18273 | return resultobj; | |
18274 | fail: | |
18275 | return NULL; | |
18276 | } | |
18277 | ||
18278 | ||
18279 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18280 | PyObject *resultobj = 0; | |
18281 | wxDC *arg1 = (wxDC *) 0 ; | |
18282 | wxPalette *arg2 = 0 ; | |
18283 | void *argp1 = 0 ; | |
18284 | int res1 = 0 ; | |
18285 | void *argp2 = 0 ; | |
18286 | int res2 = 0 ; | |
18287 | PyObject * obj0 = 0 ; | |
18288 | PyObject * obj1 = 0 ; | |
18289 | char * kwnames[] = { | |
18290 | (char *) "self",(char *) "palette", NULL | |
18291 | }; | |
18292 | ||
18293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
18294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18295 | if (!SWIG_IsOK(res1)) { | |
18296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18297 | } | |
18298 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18299 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
18300 | if (!SWIG_IsOK(res2)) { | |
18301 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
18302 | } | |
18303 | if (!argp2) { | |
18304 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
18305 | } | |
18306 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
18313 | resultobj = SWIG_Py_Void(); | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18321 | PyObject *resultobj = 0; | |
18322 | wxDC *arg1 = (wxDC *) 0 ; | |
18323 | void *argp1 = 0 ; | |
18324 | int res1 = 0 ; | |
18325 | PyObject *swig_obj[1] ; | |
18326 | ||
18327 | if (!args) SWIG_fail; | |
18328 | swig_obj[0] = args; | |
18329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18330 | if (!SWIG_IsOK(res1)) { | |
18331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18332 | } | |
18333 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | (arg1)->DestroyClippingRegion(); | |
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | resultobj = SWIG_Py_Void(); | |
18341 | return resultobj; | |
18342 | fail: | |
18343 | return NULL; | |
18344 | } | |
18345 | ||
18346 | ||
18347 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18348 | PyObject *resultobj = 0; | |
18349 | wxDC *arg1 = (wxDC *) 0 ; | |
18350 | int *arg2 = (int *) 0 ; | |
18351 | int *arg3 = (int *) 0 ; | |
18352 | int *arg4 = (int *) 0 ; | |
18353 | int *arg5 = (int *) 0 ; | |
18354 | void *argp1 = 0 ; | |
18355 | int res1 = 0 ; | |
18356 | int temp2 ; | |
18357 | int res2 = SWIG_TMPOBJ ; | |
18358 | int temp3 ; | |
18359 | int res3 = SWIG_TMPOBJ ; | |
18360 | int temp4 ; | |
18361 | int res4 = SWIG_TMPOBJ ; | |
18362 | int temp5 ; | |
18363 | int res5 = SWIG_TMPOBJ ; | |
18364 | PyObject *swig_obj[1] ; | |
18365 | ||
18366 | arg2 = &temp2; | |
18367 | arg3 = &temp3; | |
18368 | arg4 = &temp4; | |
18369 | arg5 = &temp5; | |
18370 | if (!args) SWIG_fail; | |
18371 | swig_obj[0] = args; | |
18372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18373 | if (!SWIG_IsOK(res1)) { | |
18374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18375 | } | |
18376 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18377 | { | |
18378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18379 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | resultobj = SWIG_Py_Void(); | |
18384 | if (SWIG_IsTmpObj(res2)) { | |
18385 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18386 | } else { | |
18387 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18388 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18389 | } | |
18390 | if (SWIG_IsTmpObj(res3)) { | |
18391 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18392 | } else { | |
18393 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18394 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18395 | } | |
18396 | if (SWIG_IsTmpObj(res4)) { | |
18397 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18398 | } else { | |
18399 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18400 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18401 | } | |
18402 | if (SWIG_IsTmpObj(res5)) { | |
18403 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18404 | } else { | |
18405 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18406 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18407 | } | |
18408 | return resultobj; | |
18409 | fail: | |
18410 | return NULL; | |
18411 | } | |
18412 | ||
18413 | ||
18414 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18415 | PyObject *resultobj = 0; | |
18416 | wxDC *arg1 = (wxDC *) 0 ; | |
18417 | wxRect result; | |
18418 | void *argp1 = 0 ; | |
18419 | int res1 = 0 ; | |
18420 | PyObject *swig_obj[1] ; | |
18421 | ||
18422 | if (!args) SWIG_fail; | |
18423 | swig_obj[0] = args; | |
18424 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18425 | if (!SWIG_IsOK(res1)) { | |
18426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18427 | } | |
18428 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | result = wxDC_GetClippingRect(arg1); | |
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18443 | PyObject *resultobj = 0; | |
18444 | wxDC *arg1 = (wxDC *) 0 ; | |
18445 | int result; | |
18446 | void *argp1 = 0 ; | |
18447 | int res1 = 0 ; | |
18448 | PyObject *swig_obj[1] ; | |
18449 | ||
18450 | if (!args) SWIG_fail; | |
18451 | swig_obj[0] = args; | |
18452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18453 | if (!SWIG_IsOK(res1)) { | |
18454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18455 | } | |
18456 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18457 | { | |
18458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18459 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
18460 | wxPyEndAllowThreads(__tstate); | |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
18463 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18464 | return resultobj; | |
18465 | fail: | |
18466 | return NULL; | |
18467 | } | |
18468 | ||
18469 | ||
18470 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18471 | PyObject *resultobj = 0; | |
18472 | wxDC *arg1 = (wxDC *) 0 ; | |
18473 | int result; | |
18474 | void *argp1 = 0 ; | |
18475 | int res1 = 0 ; | |
18476 | PyObject *swig_obj[1] ; | |
18477 | ||
18478 | if (!args) SWIG_fail; | |
18479 | swig_obj[0] = args; | |
18480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18481 | if (!SWIG_IsOK(res1)) { | |
18482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18483 | } | |
18484 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
18488 | wxPyEndAllowThreads(__tstate); | |
18489 | if (PyErr_Occurred()) SWIG_fail; | |
18490 | } | |
18491 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18492 | return resultobj; | |
18493 | fail: | |
18494 | return NULL; | |
18495 | } | |
18496 | ||
18497 | ||
18498 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18499 | PyObject *resultobj = 0; | |
18500 | wxDC *arg1 = (wxDC *) 0 ; | |
18501 | wxString *arg2 = 0 ; | |
18502 | int *arg3 = (int *) 0 ; | |
18503 | int *arg4 = (int *) 0 ; | |
18504 | void *argp1 = 0 ; | |
18505 | int res1 = 0 ; | |
18506 | bool temp2 = false ; | |
18507 | int temp3 ; | |
18508 | int res3 = SWIG_TMPOBJ ; | |
18509 | int temp4 ; | |
18510 | int res4 = SWIG_TMPOBJ ; | |
18511 | PyObject * obj0 = 0 ; | |
18512 | PyObject * obj1 = 0 ; | |
18513 | char * kwnames[] = { | |
18514 | (char *) "self",(char *) "string", NULL | |
18515 | }; | |
18516 | ||
18517 | arg3 = &temp3; | |
18518 | arg4 = &temp4; | |
18519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
18520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18521 | if (!SWIG_IsOK(res1)) { | |
18522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18523 | } | |
18524 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18525 | { | |
18526 | arg2 = wxString_in_helper(obj1); | |
18527 | if (arg2 == NULL) SWIG_fail; | |
18528 | temp2 = true; | |
18529 | } | |
18530 | { | |
18531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18532 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
18533 | wxPyEndAllowThreads(__tstate); | |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
18535 | } | |
18536 | resultobj = SWIG_Py_Void(); | |
18537 | if (SWIG_IsTmpObj(res3)) { | |
18538 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18539 | } else { | |
18540 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18541 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18542 | } | |
18543 | if (SWIG_IsTmpObj(res4)) { | |
18544 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18545 | } else { | |
18546 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18547 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18548 | } | |
18549 | { | |
18550 | if (temp2) | |
18551 | delete arg2; | |
18552 | } | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | { | |
18556 | if (temp2) | |
18557 | delete arg2; | |
18558 | } | |
18559 | return NULL; | |
18560 | } | |
18561 | ||
18562 | ||
18563 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18564 | PyObject *resultobj = 0; | |
18565 | wxDC *arg1 = (wxDC *) 0 ; | |
18566 | wxString *arg2 = 0 ; | |
18567 | int *arg3 = (int *) 0 ; | |
18568 | int *arg4 = (int *) 0 ; | |
18569 | int *arg5 = (int *) 0 ; | |
18570 | int *arg6 = (int *) 0 ; | |
18571 | wxFont *arg7 = (wxFont *) NULL ; | |
18572 | void *argp1 = 0 ; | |
18573 | int res1 = 0 ; | |
18574 | bool temp2 = false ; | |
18575 | int temp3 ; | |
18576 | int res3 = SWIG_TMPOBJ ; | |
18577 | int temp4 ; | |
18578 | int res4 = SWIG_TMPOBJ ; | |
18579 | int temp5 ; | |
18580 | int res5 = SWIG_TMPOBJ ; | |
18581 | int temp6 ; | |
18582 | int res6 = SWIG_TMPOBJ ; | |
18583 | void *argp7 = 0 ; | |
18584 | int res7 = 0 ; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | PyObject * obj1 = 0 ; | |
18587 | PyObject * obj2 = 0 ; | |
18588 | char * kwnames[] = { | |
18589 | (char *) "self",(char *) "string",(char *) "font", NULL | |
18590 | }; | |
18591 | ||
18592 | arg3 = &temp3; | |
18593 | arg4 = &temp4; | |
18594 | arg5 = &temp5; | |
18595 | arg6 = &temp6; | |
18596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18598 | if (!SWIG_IsOK(res1)) { | |
18599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18600 | } | |
18601 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18602 | { | |
18603 | arg2 = wxString_in_helper(obj1); | |
18604 | if (arg2 == NULL) SWIG_fail; | |
18605 | temp2 = true; | |
18606 | } | |
18607 | if (obj2) { | |
18608 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
18609 | if (!SWIG_IsOK(res7)) { | |
18610 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 18611 | } |
554f62e9 RD |
18612 | arg7 = reinterpret_cast< wxFont * >(argp7); |
18613 | } | |
18614 | { | |
18615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18616 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
18617 | wxPyEndAllowThreads(__tstate); | |
18618 | if (PyErr_Occurred()) SWIG_fail; | |
18619 | } | |
18620 | resultobj = SWIG_Py_Void(); | |
18621 | if (SWIG_IsTmpObj(res3)) { | |
18622 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18623 | } else { | |
18624 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18625 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18626 | } | |
18627 | if (SWIG_IsTmpObj(res4)) { | |
18628 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18629 | } else { | |
18630 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18631 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18632 | } | |
18633 | if (SWIG_IsTmpObj(res5)) { | |
18634 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18635 | } else { | |
18636 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18637 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18638 | } | |
18639 | if (SWIG_IsTmpObj(res6)) { | |
18640 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
18641 | } else { | |
18642 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18643 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
18644 | } | |
18645 | { | |
18646 | if (temp2) | |
18647 | delete arg2; | |
18648 | } | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | { | |
18652 | if (temp2) | |
18653 | delete arg2; | |
18654 | } | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
18659 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18660 | PyObject *resultobj = 0; | |
18661 | wxDC *arg1 = (wxDC *) 0 ; | |
18662 | wxString *arg2 = 0 ; | |
18663 | int *arg3 = (int *) 0 ; | |
18664 | int *arg4 = (int *) 0 ; | |
18665 | int *arg5 = (int *) 0 ; | |
18666 | wxFont *arg6 = (wxFont *) NULL ; | |
18667 | void *argp1 = 0 ; | |
18668 | int res1 = 0 ; | |
18669 | bool temp2 = false ; | |
18670 | int temp3 ; | |
18671 | int res3 = SWIG_TMPOBJ ; | |
18672 | int temp4 ; | |
18673 | int res4 = SWIG_TMPOBJ ; | |
18674 | int temp5 ; | |
18675 | int res5 = SWIG_TMPOBJ ; | |
18676 | void *argp6 = 0 ; | |
18677 | int res6 = 0 ; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | PyObject * obj1 = 0 ; | |
18680 | PyObject * obj2 = 0 ; | |
18681 | char * kwnames[] = { | |
18682 | (char *) "self",(char *) "text",(char *) "font", NULL | |
18683 | }; | |
18684 | ||
18685 | arg3 = &temp3; | |
18686 | arg4 = &temp4; | |
18687 | arg5 = &temp5; | |
18688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18690 | if (!SWIG_IsOK(res1)) { | |
18691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18692 | } | |
18693 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18694 | { | |
18695 | arg2 = wxString_in_helper(obj1); | |
18696 | if (arg2 == NULL) SWIG_fail; | |
18697 | temp2 = true; | |
18698 | } | |
18699 | if (obj2) { | |
18700 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
18701 | if (!SWIG_IsOK(res6)) { | |
18702 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 18703 | } |
554f62e9 RD |
18704 | arg6 = reinterpret_cast< wxFont * >(argp6); |
18705 | } | |
18706 | { | |
18707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18708 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
18709 | wxPyEndAllowThreads(__tstate); | |
18710 | if (PyErr_Occurred()) SWIG_fail; | |
18711 | } | |
18712 | resultobj = SWIG_Py_Void(); | |
18713 | if (SWIG_IsTmpObj(res3)) { | |
18714 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18715 | } else { | |
18716 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18717 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18718 | } | |
18719 | if (SWIG_IsTmpObj(res4)) { | |
18720 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18721 | } else { | |
18722 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18723 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18724 | } | |
18725 | if (SWIG_IsTmpObj(res5)) { | |
18726 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18727 | } else { | |
18728 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18729 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18730 | } | |
18731 | { | |
18732 | if (temp2) | |
18733 | delete arg2; | |
18734 | } | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | { | |
18738 | if (temp2) | |
18739 | delete arg2; | |
18740 | } | |
18741 | return NULL; | |
18742 | } | |
18743 | ||
18744 | ||
18745 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18746 | PyObject *resultobj = 0; | |
18747 | wxDC *arg1 = (wxDC *) 0 ; | |
18748 | wxString *arg2 = 0 ; | |
18749 | wxArrayInt result; | |
18750 | void *argp1 = 0 ; | |
18751 | int res1 = 0 ; | |
18752 | bool temp2 = false ; | |
18753 | PyObject * obj0 = 0 ; | |
18754 | PyObject * obj1 = 0 ; | |
18755 | char * kwnames[] = { | |
18756 | (char *) "self",(char *) "text", NULL | |
18757 | }; | |
18758 | ||
18759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18761 | if (!SWIG_IsOK(res1)) { | |
18762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18763 | } | |
18764 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18765 | { | |
18766 | arg2 = wxString_in_helper(obj1); | |
18767 | if (arg2 == NULL) SWIG_fail; | |
18768 | temp2 = true; | |
18769 | } | |
18770 | { | |
18771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18772 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
18773 | wxPyEndAllowThreads(__tstate); | |
18774 | if (PyErr_Occurred()) SWIG_fail; | |
18775 | } | |
18776 | { | |
18777 | resultobj = PyList_New(0); | |
18778 | size_t idx; | |
18779 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
18780 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
18781 | PyList_Append(resultobj, val); | |
18782 | Py_DECREF(val); | |
093d3ff1 | 18783 | } |
554f62e9 RD |
18784 | } |
18785 | { | |
18786 | if (temp2) | |
18787 | delete arg2; | |
18788 | } | |
18789 | return resultobj; | |
18790 | fail: | |
18791 | { | |
18792 | if (temp2) | |
18793 | delete arg2; | |
18794 | } | |
18795 | return NULL; | |
18796 | } | |
18797 | ||
18798 | ||
18799 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18800 | PyObject *resultobj = 0; | |
18801 | wxDC *arg1 = (wxDC *) 0 ; | |
18802 | wxSize result; | |
18803 | void *argp1 = 0 ; | |
18804 | int res1 = 0 ; | |
18805 | PyObject *swig_obj[1] ; | |
18806 | ||
18807 | if (!args) SWIG_fail; | |
18808 | swig_obj[0] = args; | |
18809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18810 | if (!SWIG_IsOK(res1)) { | |
18811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18812 | } | |
18813 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18814 | { | |
18815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18816 | result = (arg1)->GetSize(); | |
18817 | wxPyEndAllowThreads(__tstate); | |
18818 | if (PyErr_Occurred()) SWIG_fail; | |
18819 | } | |
18820 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18821 | return resultobj; | |
18822 | fail: | |
18823 | return NULL; | |
18824 | } | |
18825 | ||
18826 | ||
18827 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18828 | PyObject *resultobj = 0; | |
18829 | wxDC *arg1 = (wxDC *) 0 ; | |
18830 | int *arg2 = (int *) 0 ; | |
18831 | int *arg3 = (int *) 0 ; | |
18832 | void *argp1 = 0 ; | |
18833 | int res1 = 0 ; | |
18834 | int temp2 ; | |
18835 | int res2 = SWIG_TMPOBJ ; | |
18836 | int temp3 ; | |
18837 | int res3 = SWIG_TMPOBJ ; | |
18838 | PyObject *swig_obj[1] ; | |
18839 | ||
18840 | arg2 = &temp2; | |
18841 | arg3 = &temp3; | |
18842 | if (!args) SWIG_fail; | |
18843 | swig_obj[0] = args; | |
18844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18845 | if (!SWIG_IsOK(res1)) { | |
18846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18847 | } | |
18848 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18849 | { | |
18850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18851 | (arg1)->GetSize(arg2,arg3); | |
18852 | wxPyEndAllowThreads(__tstate); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | } | |
18855 | resultobj = SWIG_Py_Void(); | |
18856 | if (SWIG_IsTmpObj(res2)) { | |
18857 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18858 | } else { | |
18859 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18860 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18861 | } | |
18862 | if (SWIG_IsTmpObj(res3)) { | |
18863 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18864 | } else { | |
18865 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18866 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18867 | } | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
18874 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18875 | PyObject *resultobj = 0; | |
18876 | wxDC *arg1 = (wxDC *) 0 ; | |
18877 | wxSize result; | |
18878 | void *argp1 = 0 ; | |
18879 | int res1 = 0 ; | |
18880 | PyObject *swig_obj[1] ; | |
18881 | ||
18882 | if (!args) SWIG_fail; | |
18883 | swig_obj[0] = args; | |
18884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18885 | if (!SWIG_IsOK(res1)) { | |
18886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18887 | } | |
18888 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18889 | { | |
18890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18891 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
18892 | wxPyEndAllowThreads(__tstate); | |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
18894 | } | |
18895 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18896 | return resultobj; | |
18897 | fail: | |
18898 | return NULL; | |
18899 | } | |
18900 | ||
18901 | ||
18902 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18903 | PyObject *resultobj = 0; | |
18904 | wxDC *arg1 = (wxDC *) 0 ; | |
18905 | int *arg2 = (int *) 0 ; | |
18906 | int *arg3 = (int *) 0 ; | |
18907 | void *argp1 = 0 ; | |
18908 | int res1 = 0 ; | |
18909 | int temp2 ; | |
18910 | int res2 = SWIG_TMPOBJ ; | |
18911 | int temp3 ; | |
18912 | int res3 = SWIG_TMPOBJ ; | |
18913 | PyObject *swig_obj[1] ; | |
18914 | ||
18915 | arg2 = &temp2; | |
18916 | arg3 = &temp3; | |
18917 | if (!args) SWIG_fail; | |
18918 | swig_obj[0] = args; | |
18919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18920 | if (!SWIG_IsOK(res1)) { | |
18921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18922 | } | |
18923 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18924 | { | |
18925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18926 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
18927 | wxPyEndAllowThreads(__tstate); | |
18928 | if (PyErr_Occurred()) SWIG_fail; | |
18929 | } | |
18930 | resultobj = SWIG_Py_Void(); | |
18931 | if (SWIG_IsTmpObj(res2)) { | |
18932 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18933 | } else { | |
18934 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18935 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18936 | } | |
18937 | if (SWIG_IsTmpObj(res3)) { | |
18938 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18939 | } else { | |
18940 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18941 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18942 | } | |
18943 | return resultobj; | |
18944 | fail: | |
18945 | return NULL; | |
18946 | } | |
18947 | ||
18948 | ||
18949 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18950 | PyObject *resultobj = 0; | |
18951 | wxDC *arg1 = (wxDC *) 0 ; | |
18952 | int arg2 ; | |
18953 | int result; | |
18954 | void *argp1 = 0 ; | |
18955 | int res1 = 0 ; | |
18956 | int val2 ; | |
18957 | int ecode2 = 0 ; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | PyObject * obj1 = 0 ; | |
18960 | char * kwnames[] = { | |
18961 | (char *) "self",(char *) "x", NULL | |
18962 | }; | |
18963 | ||
18964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
18965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18966 | if (!SWIG_IsOK(res1)) { | |
18967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18968 | } | |
18969 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18970 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18971 | if (!SWIG_IsOK(ecode2)) { | |
18972 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
18973 | } | |
18974 | arg2 = static_cast< int >(val2); | |
18975 | { | |
18976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18977 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
18978 | wxPyEndAllowThreads(__tstate); | |
18979 | if (PyErr_Occurred()) SWIG_fail; | |
18980 | } | |
18981 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18982 | return resultobj; | |
18983 | fail: | |
18984 | return NULL; | |
18985 | } | |
18986 | ||
18987 | ||
18988 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18989 | PyObject *resultobj = 0; | |
18990 | wxDC *arg1 = (wxDC *) 0 ; | |
18991 | int arg2 ; | |
18992 | int result; | |
18993 | void *argp1 = 0 ; | |
18994 | int res1 = 0 ; | |
18995 | int val2 ; | |
18996 | int ecode2 = 0 ; | |
18997 | PyObject * obj0 = 0 ; | |
18998 | PyObject * obj1 = 0 ; | |
18999 | char * kwnames[] = { | |
19000 | (char *) "self",(char *) "y", NULL | |
19001 | }; | |
19002 | ||
19003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
19004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19005 | if (!SWIG_IsOK(res1)) { | |
19006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19007 | } | |
19008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19009 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19010 | if (!SWIG_IsOK(ecode2)) { | |
19011 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
19012 | } | |
19013 | arg2 = static_cast< int >(val2); | |
19014 | { | |
19015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19016 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
19017 | wxPyEndAllowThreads(__tstate); | |
19018 | if (PyErr_Occurred()) SWIG_fail; | |
19019 | } | |
19020 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19021 | return resultobj; | |
19022 | fail: | |
19023 | return NULL; | |
19024 | } | |
19025 | ||
19026 | ||
19027 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19028 | PyObject *resultobj = 0; | |
19029 | wxDC *arg1 = (wxDC *) 0 ; | |
19030 | int arg2 ; | |
19031 | int result; | |
19032 | void *argp1 = 0 ; | |
19033 | int res1 = 0 ; | |
19034 | int val2 ; | |
19035 | int ecode2 = 0 ; | |
19036 | PyObject * obj0 = 0 ; | |
19037 | PyObject * obj1 = 0 ; | |
19038 | char * kwnames[] = { | |
19039 | (char *) "self",(char *) "x", NULL | |
19040 | }; | |
19041 | ||
19042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19044 | if (!SWIG_IsOK(res1)) { | |
19045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19046 | } | |
19047 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19048 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19049 | if (!SWIG_IsOK(ecode2)) { | |
19050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
19051 | } | |
19052 | arg2 = static_cast< int >(val2); | |
19053 | { | |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19067 | PyObject *resultobj = 0; | |
19068 | wxDC *arg1 = (wxDC *) 0 ; | |
19069 | int arg2 ; | |
19070 | int result; | |
19071 | void *argp1 = 0 ; | |
19072 | int res1 = 0 ; | |
19073 | int val2 ; | |
19074 | int ecode2 = 0 ; | |
19075 | PyObject * obj0 = 0 ; | |
19076 | PyObject * obj1 = 0 ; | |
19077 | char * kwnames[] = { | |
19078 | (char *) "self",(char *) "y", NULL | |
19079 | }; | |
19080 | ||
19081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19083 | if (!SWIG_IsOK(res1)) { | |
19084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19085 | } | |
19086 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19087 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19088 | if (!SWIG_IsOK(ecode2)) { | |
19089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
19090 | } | |
19091 | arg2 = static_cast< int >(val2); | |
19092 | { | |
19093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19094 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
19095 | wxPyEndAllowThreads(__tstate); | |
19096 | if (PyErr_Occurred()) SWIG_fail; | |
19097 | } | |
19098 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19099 | return resultobj; | |
19100 | fail: | |
19101 | return NULL; | |
19102 | } | |
19103 | ||
19104 | ||
19105 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19106 | PyObject *resultobj = 0; | |
19107 | wxDC *arg1 = (wxDC *) 0 ; | |
19108 | int arg2 ; | |
19109 | int result; | |
19110 | void *argp1 = 0 ; | |
19111 | int res1 = 0 ; | |
19112 | int val2 ; | |
19113 | int ecode2 = 0 ; | |
19114 | PyObject * obj0 = 0 ; | |
19115 | PyObject * obj1 = 0 ; | |
19116 | char * kwnames[] = { | |
19117 | (char *) "self",(char *) "x", NULL | |
19118 | }; | |
19119 | ||
19120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
19121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19122 | if (!SWIG_IsOK(res1)) { | |
19123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19124 | } | |
19125 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19126 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19127 | if (!SWIG_IsOK(ecode2)) { | |
19128 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
19129 | } | |
19130 | arg2 = static_cast< int >(val2); | |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19133 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
19134 | wxPyEndAllowThreads(__tstate); | |
19135 | if (PyErr_Occurred()) SWIG_fail; | |
19136 | } | |
19137 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19138 | return resultobj; | |
19139 | fail: | |
19140 | return NULL; | |
19141 | } | |
19142 | ||
19143 | ||
19144 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19145 | PyObject *resultobj = 0; | |
19146 | wxDC *arg1 = (wxDC *) 0 ; | |
19147 | int arg2 ; | |
19148 | int result; | |
19149 | void *argp1 = 0 ; | |
19150 | int res1 = 0 ; | |
19151 | int val2 ; | |
19152 | int ecode2 = 0 ; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | PyObject * obj1 = 0 ; | |
19155 | char * kwnames[] = { | |
19156 | (char *) "self",(char *) "y", NULL | |
19157 | }; | |
19158 | ||
19159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
19160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19161 | if (!SWIG_IsOK(res1)) { | |
19162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19163 | } | |
19164 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19166 | if (!SWIG_IsOK(ecode2)) { | |
19167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
19168 | } | |
19169 | arg2 = static_cast< int >(val2); | |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
19173 | wxPyEndAllowThreads(__tstate); | |
19174 | if (PyErr_Occurred()) SWIG_fail; | |
19175 | } | |
19176 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19177 | return resultobj; | |
19178 | fail: | |
19179 | return NULL; | |
19180 | } | |
19181 | ||
19182 | ||
19183 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19184 | PyObject *resultobj = 0; | |
19185 | wxDC *arg1 = (wxDC *) 0 ; | |
19186 | int arg2 ; | |
19187 | int result; | |
19188 | void *argp1 = 0 ; | |
19189 | int res1 = 0 ; | |
19190 | int val2 ; | |
19191 | int ecode2 = 0 ; | |
19192 | PyObject * obj0 = 0 ; | |
19193 | PyObject * obj1 = 0 ; | |
19194 | char * kwnames[] = { | |
19195 | (char *) "self",(char *) "x", NULL | |
19196 | }; | |
19197 | ||
19198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19200 | if (!SWIG_IsOK(res1)) { | |
19201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19202 | } | |
19203 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19204 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19205 | if (!SWIG_IsOK(ecode2)) { | |
19206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
19207 | } | |
19208 | arg2 = static_cast< int >(val2); | |
19209 | { | |
19210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19211 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
19212 | wxPyEndAllowThreads(__tstate); | |
19213 | if (PyErr_Occurred()) SWIG_fail; | |
19214 | } | |
19215 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19216 | return resultobj; | |
19217 | fail: | |
19218 | return NULL; | |
19219 | } | |
19220 | ||
19221 | ||
19222 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19223 | PyObject *resultobj = 0; | |
19224 | wxDC *arg1 = (wxDC *) 0 ; | |
19225 | int arg2 ; | |
19226 | int result; | |
19227 | void *argp1 = 0 ; | |
19228 | int res1 = 0 ; | |
19229 | int val2 ; | |
19230 | int ecode2 = 0 ; | |
19231 | PyObject * obj0 = 0 ; | |
19232 | PyObject * obj1 = 0 ; | |
19233 | char * kwnames[] = { | |
19234 | (char *) "self",(char *) "y", NULL | |
19235 | }; | |
19236 | ||
19237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
19238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19239 | if (!SWIG_IsOK(res1)) { | |
19240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19241 | } | |
19242 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19243 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19244 | if (!SWIG_IsOK(ecode2)) { | |
19245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
19246 | } | |
19247 | arg2 = static_cast< int >(val2); | |
19248 | { | |
19249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19250 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
19251 | wxPyEndAllowThreads(__tstate); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | } | |
19254 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19255 | return resultobj; | |
19256 | fail: | |
19257 | return NULL; | |
19258 | } | |
19259 | ||
19260 | ||
19261 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19262 | PyObject *resultobj = 0; | |
19263 | wxDC *arg1 = (wxDC *) 0 ; | |
19264 | bool result; | |
19265 | void *argp1 = 0 ; | |
19266 | int res1 = 0 ; | |
19267 | PyObject *swig_obj[1] ; | |
19268 | ||
19269 | if (!args) SWIG_fail; | |
19270 | swig_obj[0] = args; | |
19271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19272 | if (!SWIG_IsOK(res1)) { | |
19273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19274 | } | |
19275 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19276 | { | |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
19279 | wxPyEndAllowThreads(__tstate); | |
19280 | if (PyErr_Occurred()) SWIG_fail; | |
19281 | } | |
19282 | { | |
19283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19284 | } | |
19285 | return resultobj; | |
19286 | fail: | |
19287 | return NULL; | |
19288 | } | |
19289 | ||
19290 | ||
19291 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19292 | PyObject *resultobj = 0; | |
19293 | wxDC *arg1 = (wxDC *) 0 ; | |
19294 | bool result; | |
19295 | void *argp1 = 0 ; | |
19296 | int res1 = 0 ; | |
19297 | PyObject *swig_obj[1] ; | |
19298 | ||
19299 | if (!args) SWIG_fail; | |
19300 | swig_obj[0] = args; | |
19301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19302 | if (!SWIG_IsOK(res1)) { | |
19303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19304 | } | |
19305 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19306 | { | |
19307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19308 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | { | |
19313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19314 | } | |
19315 | return resultobj; | |
19316 | fail: | |
19317 | return NULL; | |
19318 | } | |
19319 | ||
19320 | ||
19321 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19322 | PyObject *resultobj = 0; | |
19323 | wxDC *arg1 = (wxDC *) 0 ; | |
19324 | int result; | |
19325 | void *argp1 = 0 ; | |
19326 | int res1 = 0 ; | |
19327 | PyObject *swig_obj[1] ; | |
19328 | ||
19329 | if (!args) SWIG_fail; | |
19330 | swig_obj[0] = args; | |
19331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19332 | if (!SWIG_IsOK(res1)) { | |
19333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19334 | } | |
19335 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19336 | { | |
19337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19338 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
19339 | wxPyEndAllowThreads(__tstate); | |
19340 | if (PyErr_Occurred()) SWIG_fail; | |
19341 | } | |
19342 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19343 | return resultobj; | |
19344 | fail: | |
19345 | return NULL; | |
19346 | } | |
19347 | ||
19348 | ||
19349 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19350 | PyObject *resultobj = 0; | |
19351 | wxDC *arg1 = (wxDC *) 0 ; | |
19352 | wxSize result; | |
19353 | void *argp1 = 0 ; | |
19354 | int res1 = 0 ; | |
19355 | PyObject *swig_obj[1] ; | |
19356 | ||
19357 | if (!args) SWIG_fail; | |
19358 | swig_obj[0] = args; | |
19359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19360 | if (!SWIG_IsOK(res1)) { | |
19361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19362 | } | |
19363 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19364 | { | |
19365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19366 | result = ((wxDC const *)arg1)->GetPPI(); | |
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
19370 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19378 | PyObject *resultobj = 0; | |
19379 | wxDC *arg1 = (wxDC *) 0 ; | |
19380 | bool result; | |
19381 | void *argp1 = 0 ; | |
19382 | int res1 = 0 ; | |
19383 | PyObject *swig_obj[1] ; | |
19384 | ||
19385 | if (!args) SWIG_fail; | |
19386 | swig_obj[0] = args; | |
19387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19388 | if (!SWIG_IsOK(res1)) { | |
19389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19390 | } | |
19391 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19392 | { | |
19393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19394 | result = (bool)((wxDC const *)arg1)->Ok(); | |
19395 | wxPyEndAllowThreads(__tstate); | |
19396 | if (PyErr_Occurred()) SWIG_fail; | |
19397 | } | |
19398 | { | |
19399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19400 | } | |
19401 | return resultobj; | |
19402 | fail: | |
19403 | return NULL; | |
19404 | } | |
19405 | ||
19406 | ||
19407 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19408 | PyObject *resultobj = 0; | |
19409 | wxDC *arg1 = (wxDC *) 0 ; | |
19410 | int result; | |
19411 | void *argp1 = 0 ; | |
19412 | int res1 = 0 ; | |
19413 | PyObject *swig_obj[1] ; | |
19414 | ||
19415 | if (!args) SWIG_fail; | |
19416 | swig_obj[0] = args; | |
19417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19418 | if (!SWIG_IsOK(res1)) { | |
19419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19420 | } | |
19421 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19422 | { | |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
19428 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19429 | return resultobj; | |
19430 | fail: | |
19431 | return NULL; | |
19432 | } | |
19433 | ||
19434 | ||
19435 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19436 | PyObject *resultobj = 0; | |
19437 | wxDC *arg1 = (wxDC *) 0 ; | |
19438 | wxBrush *result = 0 ; | |
19439 | void *argp1 = 0 ; | |
19440 | int res1 = 0 ; | |
19441 | PyObject *swig_obj[1] ; | |
19442 | ||
19443 | if (!args) SWIG_fail; | |
19444 | swig_obj[0] = args; | |
19445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19446 | if (!SWIG_IsOK(res1)) { | |
19447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19448 | } | |
19449 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19450 | { | |
19451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19452 | { |
554f62e9 RD |
19453 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
19454 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 19455 | } |
554f62e9 RD |
19456 | wxPyEndAllowThreads(__tstate); |
19457 | if (PyErr_Occurred()) SWIG_fail; | |
19458 | } | |
19459 | { | |
19460 | wxBrush* resultptr = new wxBrush(*result); | |
19461 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
19462 | } | |
19463 | return resultobj; | |
19464 | fail: | |
19465 | return NULL; | |
19466 | } | |
19467 | ||
19468 | ||
19469 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19470 | PyObject *resultobj = 0; | |
19471 | wxDC *arg1 = (wxDC *) 0 ; | |
19472 | wxBrush *result = 0 ; | |
19473 | void *argp1 = 0 ; | |
19474 | int res1 = 0 ; | |
19475 | PyObject *swig_obj[1] ; | |
19476 | ||
19477 | if (!args) SWIG_fail; | |
19478 | swig_obj[0] = args; | |
19479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19480 | if (!SWIG_IsOK(res1)) { | |
19481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19482 | } | |
19483 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19484 | { | |
19485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19486 | { |
554f62e9 RD |
19487 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
19488 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 19489 | } |
554f62e9 RD |
19490 | wxPyEndAllowThreads(__tstate); |
19491 | if (PyErr_Occurred()) SWIG_fail; | |
19492 | } | |
19493 | { | |
19494 | wxBrush* resultptr = new wxBrush(*result); | |
19495 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
19496 | } | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19504 | PyObject *resultobj = 0; | |
19505 | wxDC *arg1 = (wxDC *) 0 ; | |
19506 | wxFont *result = 0 ; | |
19507 | void *argp1 = 0 ; | |
19508 | int res1 = 0 ; | |
19509 | PyObject *swig_obj[1] ; | |
19510 | ||
19511 | if (!args) SWIG_fail; | |
19512 | swig_obj[0] = args; | |
19513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19514 | if (!SWIG_IsOK(res1)) { | |
19515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19516 | } | |
19517 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19518 | { | |
19519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19520 | { |
554f62e9 RD |
19521 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
19522 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 19523 | } |
554f62e9 RD |
19524 | wxPyEndAllowThreads(__tstate); |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
19527 | { | |
19528 | wxFont* resultptr = new wxFont(*result); | |
19529 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19530 | } | |
19531 | return resultobj; | |
19532 | fail: | |
19533 | return NULL; | |
19534 | } | |
19535 | ||
19536 | ||
19537 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19538 | PyObject *resultobj = 0; | |
19539 | wxDC *arg1 = (wxDC *) 0 ; | |
19540 | wxPen *result = 0 ; | |
19541 | void *argp1 = 0 ; | |
19542 | int res1 = 0 ; | |
19543 | PyObject *swig_obj[1] ; | |
19544 | ||
19545 | if (!args) SWIG_fail; | |
19546 | swig_obj[0] = args; | |
19547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19548 | if (!SWIG_IsOK(res1)) { | |
19549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19550 | } | |
19551 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19552 | { | |
19553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19554 | { |
554f62e9 RD |
19555 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
19556 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 19557 | } |
554f62e9 RD |
19558 | wxPyEndAllowThreads(__tstate); |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | { | |
19562 | wxPen* resultptr = new wxPen(*result); | |
19563 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
19564 | } | |
19565 | return resultobj; | |
19566 | fail: | |
19567 | return NULL; | |
19568 | } | |
19569 | ||
19570 | ||
19571 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19572 | PyObject *resultobj = 0; | |
19573 | wxDC *arg1 = (wxDC *) 0 ; | |
19574 | wxColour *result = 0 ; | |
19575 | void *argp1 = 0 ; | |
19576 | int res1 = 0 ; | |
19577 | PyObject *swig_obj[1] ; | |
19578 | ||
19579 | if (!args) SWIG_fail; | |
19580 | swig_obj[0] = args; | |
19581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19582 | if (!SWIG_IsOK(res1)) { | |
19583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19584 | } | |
19585 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19586 | { | |
19587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19588 | { |
554f62e9 RD |
19589 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
19590 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 19591 | } |
554f62e9 RD |
19592 | wxPyEndAllowThreads(__tstate); |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
19596 | return resultobj; | |
19597 | fail: | |
19598 | return NULL; | |
19599 | } | |
19600 | ||
19601 | ||
19602 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19603 | PyObject *resultobj = 0; | |
19604 | wxDC *arg1 = (wxDC *) 0 ; | |
19605 | wxColour *result = 0 ; | |
19606 | void *argp1 = 0 ; | |
19607 | int res1 = 0 ; | |
19608 | PyObject *swig_obj[1] ; | |
19609 | ||
19610 | if (!args) SWIG_fail; | |
19611 | swig_obj[0] = args; | |
19612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19613 | if (!SWIG_IsOK(res1)) { | |
19614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19615 | } | |
19616 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19617 | { | |
19618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19619 | { |
554f62e9 RD |
19620 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
19621 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 19622 | } |
554f62e9 RD |
19623 | wxPyEndAllowThreads(__tstate); |
19624 | if (PyErr_Occurred()) SWIG_fail; | |
19625 | } | |
19626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
19627 | return resultobj; | |
19628 | fail: | |
19629 | return NULL; | |
19630 | } | |
19631 | ||
19632 | ||
19633 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19634 | PyObject *resultobj = 0; | |
19635 | wxDC *arg1 = (wxDC *) 0 ; | |
19636 | wxColour *arg2 = 0 ; | |
19637 | void *argp1 = 0 ; | |
19638 | int res1 = 0 ; | |
19639 | wxColour temp2 ; | |
19640 | PyObject * obj0 = 0 ; | |
19641 | PyObject * obj1 = 0 ; | |
19642 | char * kwnames[] = { | |
19643 | (char *) "self",(char *) "colour", NULL | |
19644 | }; | |
19645 | ||
19646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
19647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19648 | if (!SWIG_IsOK(res1)) { | |
19649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19650 | } | |
19651 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19652 | { | |
19653 | arg2 = &temp2; | |
19654 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19655 | } | |
19656 | { | |
19657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19658 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
19662 | resultobj = SWIG_Py_Void(); | |
19663 | return resultobj; | |
19664 | fail: | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
19669 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19670 | PyObject *resultobj = 0; | |
19671 | wxDC *arg1 = (wxDC *) 0 ; | |
19672 | wxColour *arg2 = 0 ; | |
19673 | void *argp1 = 0 ; | |
19674 | int res1 = 0 ; | |
19675 | wxColour temp2 ; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | PyObject * obj1 = 0 ; | |
19678 | char * kwnames[] = { | |
19679 | (char *) "self",(char *) "colour", NULL | |
19680 | }; | |
19681 | ||
19682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
19683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19684 | if (!SWIG_IsOK(res1)) { | |
19685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19686 | } | |
19687 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19688 | { | |
19689 | arg2 = &temp2; | |
19690 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19691 | } | |
19692 | { | |
19693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19694 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | resultobj = SWIG_Py_Void(); | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19706 | PyObject *resultobj = 0; | |
19707 | wxDC *arg1 = (wxDC *) 0 ; | |
19708 | int result; | |
19709 | void *argp1 = 0 ; | |
19710 | int res1 = 0 ; | |
19711 | PyObject *swig_obj[1] ; | |
19712 | ||
19713 | if (!args) SWIG_fail; | |
19714 | swig_obj[0] = args; | |
19715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19716 | if (!SWIG_IsOK(res1)) { | |
19717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19718 | } | |
19719 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19720 | { | |
19721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19722 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj = 0; | |
19735 | wxDC *arg1 = (wxDC *) 0 ; | |
19736 | int arg2 ; | |
19737 | void *argp1 = 0 ; | |
19738 | int res1 = 0 ; | |
19739 | int val2 ; | |
19740 | int ecode2 = 0 ; | |
19741 | PyObject * obj0 = 0 ; | |
19742 | PyObject * obj1 = 0 ; | |
19743 | char * kwnames[] = { | |
19744 | (char *) "self",(char *) "mode", NULL | |
19745 | }; | |
19746 | ||
19747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
19748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19749 | if (!SWIG_IsOK(res1)) { | |
19750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19751 | } | |
19752 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19753 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19754 | if (!SWIG_IsOK(ecode2)) { | |
19755 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
19756 | } | |
19757 | arg2 = static_cast< int >(val2); | |
19758 | { | |
19759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19760 | (arg1)->SetMapMode(arg2); | |
19761 | wxPyEndAllowThreads(__tstate); | |
19762 | if (PyErr_Occurred()) SWIG_fail; | |
19763 | } | |
19764 | resultobj = SWIG_Py_Void(); | |
19765 | return resultobj; | |
19766 | fail: | |
19767 | return NULL; | |
19768 | } | |
19769 | ||
19770 | ||
19771 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19772 | PyObject *resultobj = 0; | |
19773 | wxDC *arg1 = (wxDC *) 0 ; | |
19774 | double *arg2 = (double *) 0 ; | |
19775 | double *arg3 = (double *) 0 ; | |
19776 | void *argp1 = 0 ; | |
19777 | int res1 = 0 ; | |
19778 | double temp2 ; | |
19779 | int res2 = SWIG_TMPOBJ ; | |
19780 | double temp3 ; | |
19781 | int res3 = SWIG_TMPOBJ ; | |
19782 | PyObject *swig_obj[1] ; | |
19783 | ||
19784 | arg2 = &temp2; | |
19785 | arg3 = &temp3; | |
19786 | if (!args) SWIG_fail; | |
19787 | swig_obj[0] = args; | |
19788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19789 | if (!SWIG_IsOK(res1)) { | |
19790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19791 | } | |
19792 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
19799 | resultobj = SWIG_Py_Void(); | |
19800 | if (SWIG_IsTmpObj(res2)) { | |
19801 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19802 | } else { | |
19803 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19804 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19805 | } | |
19806 | if (SWIG_IsTmpObj(res3)) { | |
19807 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19808 | } else { | |
19809 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19810 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19811 | } | |
19812 | return resultobj; | |
19813 | fail: | |
19814 | return NULL; | |
19815 | } | |
19816 | ||
19817 | ||
19818 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19819 | PyObject *resultobj = 0; | |
19820 | wxDC *arg1 = (wxDC *) 0 ; | |
19821 | double arg2 ; | |
19822 | double arg3 ; | |
19823 | void *argp1 = 0 ; | |
19824 | int res1 = 0 ; | |
19825 | double val2 ; | |
19826 | int ecode2 = 0 ; | |
19827 | double val3 ; | |
19828 | int ecode3 = 0 ; | |
19829 | PyObject * obj0 = 0 ; | |
19830 | PyObject * obj1 = 0 ; | |
19831 | PyObject * obj2 = 0 ; | |
19832 | char * kwnames[] = { | |
19833 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19834 | }; | |
19835 | ||
19836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19838 | if (!SWIG_IsOK(res1)) { | |
19839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19840 | } | |
19841 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19842 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19843 | if (!SWIG_IsOK(ecode2)) { | |
19844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
19845 | } | |
19846 | arg2 = static_cast< double >(val2); | |
19847 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19848 | if (!SWIG_IsOK(ecode3)) { | |
19849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
19850 | } | |
19851 | arg3 = static_cast< double >(val3); | |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | (arg1)->SetUserScale(arg2,arg3); | |
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | resultobj = SWIG_Py_Void(); | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
19862 | } | |
19863 | ||
19864 | ||
19865 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19866 | PyObject *resultobj = 0; | |
19867 | wxDC *arg1 = (wxDC *) 0 ; | |
19868 | double *arg2 = (double *) 0 ; | |
19869 | double *arg3 = (double *) 0 ; | |
19870 | void *argp1 = 0 ; | |
19871 | int res1 = 0 ; | |
19872 | double temp2 ; | |
19873 | int res2 = SWIG_TMPOBJ ; | |
19874 | double temp3 ; | |
19875 | int res3 = SWIG_TMPOBJ ; | |
19876 | PyObject *swig_obj[1] ; | |
19877 | ||
19878 | arg2 = &temp2; | |
19879 | arg3 = &temp3; | |
19880 | if (!args) SWIG_fail; | |
19881 | swig_obj[0] = args; | |
19882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19883 | if (!SWIG_IsOK(res1)) { | |
19884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19885 | } | |
19886 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19887 | { | |
19888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19889 | (arg1)->GetLogicalScale(arg2,arg3); | |
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | resultobj = SWIG_Py_Void(); | |
19894 | if (SWIG_IsTmpObj(res2)) { | |
19895 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19896 | } else { | |
19897 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19898 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19899 | } | |
19900 | if (SWIG_IsTmpObj(res3)) { | |
19901 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19902 | } else { | |
19903 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19904 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19905 | } | |
19906 | return resultobj; | |
19907 | fail: | |
19908 | return NULL; | |
19909 | } | |
19910 | ||
19911 | ||
19912 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19913 | PyObject *resultobj = 0; | |
19914 | wxDC *arg1 = (wxDC *) 0 ; | |
19915 | double arg2 ; | |
19916 | double arg3 ; | |
19917 | void *argp1 = 0 ; | |
19918 | int res1 = 0 ; | |
19919 | double val2 ; | |
19920 | int ecode2 = 0 ; | |
19921 | double val3 ; | |
19922 | int ecode3 = 0 ; | |
19923 | PyObject * obj0 = 0 ; | |
19924 | PyObject * obj1 = 0 ; | |
19925 | PyObject * obj2 = 0 ; | |
19926 | char * kwnames[] = { | |
19927 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19928 | }; | |
19929 | ||
19930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19932 | if (!SWIG_IsOK(res1)) { | |
19933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19934 | } | |
19935 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19936 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19937 | if (!SWIG_IsOK(ecode2)) { | |
19938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
19939 | } | |
19940 | arg2 = static_cast< double >(val2); | |
19941 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19942 | if (!SWIG_IsOK(ecode3)) { | |
19943 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
19944 | } | |
19945 | arg3 = static_cast< double >(val3); | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | (arg1)->SetLogicalScale(arg2,arg3); | |
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | resultobj = SWIG_Py_Void(); | |
19953 | return resultobj; | |
19954 | fail: | |
19955 | return NULL; | |
19956 | } | |
19957 | ||
19958 | ||
19959 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19960 | PyObject *resultobj = 0; | |
19961 | wxDC *arg1 = (wxDC *) 0 ; | |
19962 | wxPoint result; | |
19963 | void *argp1 = 0 ; | |
19964 | int res1 = 0 ; | |
19965 | PyObject *swig_obj[1] ; | |
19966 | ||
19967 | if (!args) SWIG_fail; | |
19968 | swig_obj[0] = args; | |
19969 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19970 | if (!SWIG_IsOK(res1)) { | |
19971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19972 | } | |
19973 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19976 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
19977 | wxPyEndAllowThreads(__tstate); | |
19978 | if (PyErr_Occurred()) SWIG_fail; | |
19979 | } | |
19980 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
19981 | return resultobj; | |
19982 | fail: | |
19983 | return NULL; | |
19984 | } | |
19985 | ||
19986 | ||
19987 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19988 | PyObject *resultobj = 0; | |
19989 | wxDC *arg1 = (wxDC *) 0 ; | |
19990 | int *arg2 = (int *) 0 ; | |
19991 | int *arg3 = (int *) 0 ; | |
19992 | void *argp1 = 0 ; | |
19993 | int res1 = 0 ; | |
19994 | int temp2 ; | |
19995 | int res2 = SWIG_TMPOBJ ; | |
19996 | int temp3 ; | |
19997 | int res3 = SWIG_TMPOBJ ; | |
19998 | PyObject *swig_obj[1] ; | |
19999 | ||
20000 | arg2 = &temp2; | |
20001 | arg3 = &temp3; | |
20002 | if (!args) SWIG_fail; | |
20003 | swig_obj[0] = args; | |
20004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20005 | if (!SWIG_IsOK(res1)) { | |
20006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20007 | } | |
20008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20009 | { | |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | resultobj = SWIG_Py_Void(); | |
20016 | if (SWIG_IsTmpObj(res2)) { | |
20017 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20018 | } else { | |
20019 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20020 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20021 | } | |
20022 | if (SWIG_IsTmpObj(res3)) { | |
20023 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20024 | } else { | |
20025 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20026 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20027 | } | |
20028 | return resultobj; | |
20029 | fail: | |
20030 | return NULL; | |
20031 | } | |
20032 | ||
20033 | ||
20034 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20035 | PyObject *resultobj = 0; | |
20036 | wxDC *arg1 = (wxDC *) 0 ; | |
20037 | int arg2 ; | |
20038 | int arg3 ; | |
20039 | void *argp1 = 0 ; | |
20040 | int res1 = 0 ; | |
20041 | int val2 ; | |
20042 | int ecode2 = 0 ; | |
20043 | int val3 ; | |
20044 | int ecode3 = 0 ; | |
20045 | PyObject * obj0 = 0 ; | |
20046 | PyObject * obj1 = 0 ; | |
20047 | PyObject * obj2 = 0 ; | |
20048 | char * kwnames[] = { | |
20049 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20050 | }; | |
20051 | ||
20052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20054 | if (!SWIG_IsOK(res1)) { | |
20055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20056 | } | |
20057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20059 | if (!SWIG_IsOK(ecode2)) { | |
20060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
20061 | } | |
20062 | arg2 = static_cast< int >(val2); | |
20063 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20064 | if (!SWIG_IsOK(ecode3)) { | |
20065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
20066 | } | |
20067 | arg3 = static_cast< int >(val3); | |
20068 | { | |
20069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20070 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
20071 | wxPyEndAllowThreads(__tstate); | |
20072 | if (PyErr_Occurred()) SWIG_fail; | |
20073 | } | |
20074 | resultobj = SWIG_Py_Void(); | |
20075 | return resultobj; | |
20076 | fail: | |
20077 | return NULL; | |
20078 | } | |
20079 | ||
20080 | ||
20081 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20082 | PyObject *resultobj = 0; | |
20083 | wxDC *arg1 = (wxDC *) 0 ; | |
20084 | wxPoint *arg2 = 0 ; | |
20085 | void *argp1 = 0 ; | |
20086 | int res1 = 0 ; | |
20087 | wxPoint temp2 ; | |
20088 | PyObject * obj0 = 0 ; | |
20089 | PyObject * obj1 = 0 ; | |
20090 | char * kwnames[] = { | |
20091 | (char *) "self",(char *) "point", NULL | |
20092 | }; | |
20093 | ||
20094 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20096 | if (!SWIG_IsOK(res1)) { | |
20097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20098 | } | |
20099 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20100 | { | |
20101 | arg2 = &temp2; | |
20102 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20103 | } | |
20104 | { | |
20105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20106 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
20107 | wxPyEndAllowThreads(__tstate); | |
20108 | if (PyErr_Occurred()) SWIG_fail; | |
20109 | } | |
20110 | resultobj = SWIG_Py_Void(); | |
20111 | return resultobj; | |
20112 | fail: | |
20113 | return NULL; | |
20114 | } | |
20115 | ||
20116 | ||
20117 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20118 | PyObject *resultobj = 0; | |
20119 | wxDC *arg1 = (wxDC *) 0 ; | |
20120 | wxPoint result; | |
20121 | void *argp1 = 0 ; | |
20122 | int res1 = 0 ; | |
20123 | PyObject *swig_obj[1] ; | |
20124 | ||
20125 | if (!args) SWIG_fail; | |
20126 | swig_obj[0] = args; | |
20127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20128 | if (!SWIG_IsOK(res1)) { | |
20129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20130 | } | |
20131 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20132 | { | |
20133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20134 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
20138 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
20139 | return resultobj; | |
20140 | fail: | |
20141 | return NULL; | |
20142 | } | |
20143 | ||
20144 | ||
20145 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20146 | PyObject *resultobj = 0; | |
20147 | wxDC *arg1 = (wxDC *) 0 ; | |
20148 | int *arg2 = (int *) 0 ; | |
20149 | int *arg3 = (int *) 0 ; | |
20150 | void *argp1 = 0 ; | |
20151 | int res1 = 0 ; | |
20152 | int temp2 ; | |
20153 | int res2 = SWIG_TMPOBJ ; | |
20154 | int temp3 ; | |
20155 | int res3 = SWIG_TMPOBJ ; | |
20156 | PyObject *swig_obj[1] ; | |
20157 | ||
20158 | arg2 = &temp2; | |
20159 | arg3 = &temp3; | |
20160 | if (!args) SWIG_fail; | |
20161 | swig_obj[0] = args; | |
20162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20163 | if (!SWIG_IsOK(res1)) { | |
20164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20165 | } | |
20166 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20167 | { | |
20168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20169 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
20170 | wxPyEndAllowThreads(__tstate); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | resultobj = SWIG_Py_Void(); | |
20174 | if (SWIG_IsTmpObj(res2)) { | |
20175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20176 | } else { | |
20177 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20179 | } | |
20180 | if (SWIG_IsTmpObj(res3)) { | |
20181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20182 | } else { | |
20183 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20185 | } | |
20186 | return resultobj; | |
20187 | fail: | |
20188 | return NULL; | |
20189 | } | |
20190 | ||
20191 | ||
20192 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20193 | PyObject *resultobj = 0; | |
20194 | wxDC *arg1 = (wxDC *) 0 ; | |
20195 | int arg2 ; | |
20196 | int arg3 ; | |
20197 | void *argp1 = 0 ; | |
20198 | int res1 = 0 ; | |
20199 | int val2 ; | |
20200 | int ecode2 = 0 ; | |
20201 | int val3 ; | |
20202 | int ecode3 = 0 ; | |
20203 | PyObject * obj0 = 0 ; | |
20204 | PyObject * obj1 = 0 ; | |
20205 | PyObject * obj2 = 0 ; | |
20206 | char * kwnames[] = { | |
20207 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20208 | }; | |
20209 | ||
20210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20212 | if (!SWIG_IsOK(res1)) { | |
20213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20214 | } | |
20215 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20216 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20217 | if (!SWIG_IsOK(ecode2)) { | |
20218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
20219 | } | |
20220 | arg2 = static_cast< int >(val2); | |
20221 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20222 | if (!SWIG_IsOK(ecode3)) { | |
20223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
20224 | } | |
20225 | arg3 = static_cast< int >(val3); | |
20226 | { | |
20227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20228 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
20229 | wxPyEndAllowThreads(__tstate); | |
20230 | if (PyErr_Occurred()) SWIG_fail; | |
20231 | } | |
20232 | resultobj = SWIG_Py_Void(); | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
20239 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20240 | PyObject *resultobj = 0; | |
20241 | wxDC *arg1 = (wxDC *) 0 ; | |
20242 | wxPoint *arg2 = 0 ; | |
20243 | void *argp1 = 0 ; | |
20244 | int res1 = 0 ; | |
20245 | wxPoint temp2 ; | |
20246 | PyObject * obj0 = 0 ; | |
20247 | PyObject * obj1 = 0 ; | |
20248 | char * kwnames[] = { | |
20249 | (char *) "self",(char *) "point", NULL | |
20250 | }; | |
20251 | ||
20252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20254 | if (!SWIG_IsOK(res1)) { | |
20255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20256 | } | |
20257 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20258 | { | |
20259 | arg2 = &temp2; | |
20260 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20261 | } | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
20265 | wxPyEndAllowThreads(__tstate); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
20268 | resultobj = SWIG_Py_Void(); | |
20269 | return resultobj; | |
20270 | fail: | |
20271 | return NULL; | |
20272 | } | |
20273 | ||
20274 | ||
20275 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20276 | PyObject *resultobj = 0; | |
20277 | wxDC *arg1 = (wxDC *) 0 ; | |
20278 | bool arg2 ; | |
20279 | bool arg3 ; | |
20280 | void *argp1 = 0 ; | |
20281 | int res1 = 0 ; | |
20282 | bool val2 ; | |
20283 | int ecode2 = 0 ; | |
20284 | bool val3 ; | |
20285 | int ecode3 = 0 ; | |
20286 | PyObject * obj0 = 0 ; | |
20287 | PyObject * obj1 = 0 ; | |
20288 | PyObject * obj2 = 0 ; | |
20289 | char * kwnames[] = { | |
20290 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
20291 | }; | |
20292 | ||
20293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20295 | if (!SWIG_IsOK(res1)) { | |
20296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20297 | } | |
20298 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20299 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20300 | if (!SWIG_IsOK(ecode2)) { | |
20301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
20302 | } | |
20303 | arg2 = static_cast< bool >(val2); | |
20304 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
20305 | if (!SWIG_IsOK(ecode3)) { | |
20306 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
20307 | } | |
20308 | arg3 = static_cast< bool >(val3); | |
20309 | { | |
20310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20311 | (arg1)->SetAxisOrientation(arg2,arg3); | |
20312 | wxPyEndAllowThreads(__tstate); | |
20313 | if (PyErr_Occurred()) SWIG_fail; | |
20314 | } | |
20315 | resultobj = SWIG_Py_Void(); | |
20316 | return resultobj; | |
20317 | fail: | |
20318 | return NULL; | |
20319 | } | |
20320 | ||
20321 | ||
20322 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20323 | PyObject *resultobj = 0; | |
20324 | wxDC *arg1 = (wxDC *) 0 ; | |
20325 | int result; | |
20326 | void *argp1 = 0 ; | |
20327 | int res1 = 0 ; | |
20328 | PyObject *swig_obj[1] ; | |
20329 | ||
20330 | if (!args) SWIG_fail; | |
20331 | swig_obj[0] = args; | |
20332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20333 | if (!SWIG_IsOK(res1)) { | |
20334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20335 | } | |
20336 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20337 | { | |
20338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20339 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
20340 | wxPyEndAllowThreads(__tstate); | |
20341 | if (PyErr_Occurred()) SWIG_fail; | |
20342 | } | |
20343 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20344 | return resultobj; | |
20345 | fail: | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
20350 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20351 | PyObject *resultobj = 0; | |
20352 | wxDC *arg1 = (wxDC *) 0 ; | |
20353 | int arg2 ; | |
20354 | void *argp1 = 0 ; | |
20355 | int res1 = 0 ; | |
20356 | int val2 ; | |
20357 | int ecode2 = 0 ; | |
20358 | PyObject * obj0 = 0 ; | |
20359 | PyObject * obj1 = 0 ; | |
20360 | char * kwnames[] = { | |
20361 | (char *) "self",(char *) "function", NULL | |
20362 | }; | |
20363 | ||
20364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
20365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20366 | if (!SWIG_IsOK(res1)) { | |
20367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20368 | } | |
20369 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20370 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20371 | if (!SWIG_IsOK(ecode2)) { | |
20372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
20373 | } | |
20374 | arg2 = static_cast< int >(val2); | |
20375 | { | |
20376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20377 | (arg1)->SetLogicalFunction(arg2); | |
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
20381 | resultobj = SWIG_Py_Void(); | |
20382 | return resultobj; | |
20383 | fail: | |
20384 | return NULL; | |
20385 | } | |
20386 | ||
20387 | ||
20388 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20389 | PyObject *resultobj = 0; | |
20390 | wxDC *arg1 = (wxDC *) 0 ; | |
20391 | void *argp1 = 0 ; | |
20392 | int res1 = 0 ; | |
20393 | PyObject *swig_obj[1] ; | |
20394 | ||
20395 | if (!args) SWIG_fail; | |
20396 | swig_obj[0] = args; | |
20397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20398 | if (!SWIG_IsOK(res1)) { | |
20399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20400 | } | |
20401 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20402 | { | |
20403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20404 | (arg1)->ComputeScaleAndOrigin(); | |
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | resultobj = SWIG_Py_Void(); | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20416 | PyObject *resultobj = 0; | |
20417 | wxDC *arg1 = (wxDC *) 0 ; | |
20418 | int arg2 ; | |
20419 | int arg3 ; | |
20420 | void *argp1 = 0 ; | |
20421 | int res1 = 0 ; | |
20422 | int val2 ; | |
20423 | int ecode2 = 0 ; | |
20424 | int val3 ; | |
20425 | int ecode3 = 0 ; | |
20426 | PyObject * obj0 = 0 ; | |
20427 | PyObject * obj1 = 0 ; | |
20428 | PyObject * obj2 = 0 ; | |
20429 | char * kwnames[] = { | |
20430 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20431 | }; | |
20432 | ||
20433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20435 | if (!SWIG_IsOK(res1)) { | |
20436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20437 | } | |
20438 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20439 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20440 | if (!SWIG_IsOK(ecode2)) { | |
20441 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
20442 | } | |
20443 | arg2 = static_cast< int >(val2); | |
20444 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20445 | if (!SWIG_IsOK(ecode3)) { | |
20446 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
20447 | } | |
20448 | arg3 = static_cast< int >(val3); | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | (arg1)->CalcBoundingBox(arg2,arg3); | |
20452 | wxPyEndAllowThreads(__tstate); | |
20453 | if (PyErr_Occurred()) SWIG_fail; | |
20454 | } | |
20455 | resultobj = SWIG_Py_Void(); | |
20456 | return resultobj; | |
20457 | fail: | |
20458 | return NULL; | |
20459 | } | |
20460 | ||
20461 | ||
20462 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20463 | PyObject *resultobj = 0; | |
20464 | wxDC *arg1 = (wxDC *) 0 ; | |
20465 | wxPoint *arg2 = 0 ; | |
20466 | void *argp1 = 0 ; | |
20467 | int res1 = 0 ; | |
20468 | wxPoint temp2 ; | |
20469 | PyObject * obj0 = 0 ; | |
20470 | PyObject * obj1 = 0 ; | |
20471 | char * kwnames[] = { | |
20472 | (char *) "self",(char *) "point", NULL | |
20473 | }; | |
20474 | ||
20475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
20476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20477 | if (!SWIG_IsOK(res1)) { | |
20478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20479 | } | |
20480 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20481 | { | |
20482 | arg2 = &temp2; | |
20483 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20484 | } | |
20485 | { | |
20486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20487 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
20491 | resultobj = SWIG_Py_Void(); | |
20492 | return resultobj; | |
20493 | fail: | |
20494 | return NULL; | |
20495 | } | |
20496 | ||
20497 | ||
20498 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20499 | PyObject *resultobj = 0; | |
20500 | wxDC *arg1 = (wxDC *) 0 ; | |
20501 | void *argp1 = 0 ; | |
20502 | int res1 = 0 ; | |
20503 | PyObject *swig_obj[1] ; | |
20504 | ||
20505 | if (!args) SWIG_fail; | |
20506 | swig_obj[0] = args; | |
20507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20508 | if (!SWIG_IsOK(res1)) { | |
20509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20510 | } | |
20511 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20512 | { | |
20513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20514 | (arg1)->ResetBoundingBox(); | |
20515 | wxPyEndAllowThreads(__tstate); | |
20516 | if (PyErr_Occurred()) SWIG_fail; | |
20517 | } | |
20518 | resultobj = SWIG_Py_Void(); | |
20519 | return resultobj; | |
20520 | fail: | |
20521 | return NULL; | |
20522 | } | |
20523 | ||
20524 | ||
20525 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20526 | PyObject *resultobj = 0; | |
20527 | wxDC *arg1 = (wxDC *) 0 ; | |
20528 | int result; | |
20529 | void *argp1 = 0 ; | |
20530 | int res1 = 0 ; | |
20531 | PyObject *swig_obj[1] ; | |
20532 | ||
20533 | if (!args) SWIG_fail; | |
20534 | swig_obj[0] = args; | |
20535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20536 | if (!SWIG_IsOK(res1)) { | |
20537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20538 | } | |
20539 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20540 | { | |
20541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20542 | result = (int)((wxDC const *)arg1)->MinX(); | |
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
20546 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20547 | return resultobj; | |
20548 | fail: | |
20549 | return NULL; | |
20550 | } | |
20551 | ||
20552 | ||
20553 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20554 | PyObject *resultobj = 0; | |
20555 | wxDC *arg1 = (wxDC *) 0 ; | |
20556 | int result; | |
20557 | void *argp1 = 0 ; | |
20558 | int res1 = 0 ; | |
20559 | PyObject *swig_obj[1] ; | |
20560 | ||
20561 | if (!args) SWIG_fail; | |
20562 | swig_obj[0] = args; | |
20563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20564 | if (!SWIG_IsOK(res1)) { | |
20565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20566 | } | |
20567 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20568 | { | |
20569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20570 | result = (int)((wxDC const *)arg1)->MaxX(); | |
20571 | wxPyEndAllowThreads(__tstate); | |
20572 | if (PyErr_Occurred()) SWIG_fail; | |
20573 | } | |
20574 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20575 | return resultobj; | |
20576 | fail: | |
20577 | return NULL; | |
20578 | } | |
20579 | ||
20580 | ||
20581 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20582 | PyObject *resultobj = 0; | |
20583 | wxDC *arg1 = (wxDC *) 0 ; | |
20584 | int result; | |
20585 | void *argp1 = 0 ; | |
20586 | int res1 = 0 ; | |
20587 | PyObject *swig_obj[1] ; | |
20588 | ||
20589 | if (!args) SWIG_fail; | |
20590 | swig_obj[0] = args; | |
20591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20592 | if (!SWIG_IsOK(res1)) { | |
20593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20594 | } | |
20595 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20596 | { | |
20597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20598 | result = (int)((wxDC const *)arg1)->MinY(); | |
20599 | wxPyEndAllowThreads(__tstate); | |
20600 | if (PyErr_Occurred()) SWIG_fail; | |
20601 | } | |
20602 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20603 | return resultobj; | |
20604 | fail: | |
20605 | return NULL; | |
20606 | } | |
20607 | ||
20608 | ||
20609 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20610 | PyObject *resultobj = 0; | |
20611 | wxDC *arg1 = (wxDC *) 0 ; | |
20612 | int result; | |
20613 | void *argp1 = 0 ; | |
20614 | int res1 = 0 ; | |
20615 | PyObject *swig_obj[1] ; | |
20616 | ||
20617 | if (!args) SWIG_fail; | |
20618 | swig_obj[0] = args; | |
20619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20620 | if (!SWIG_IsOK(res1)) { | |
20621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20622 | } | |
20623 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20624 | { | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = (int)((wxDC const *)arg1)->MaxY(); | |
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20631 | return resultobj; | |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20638 | PyObject *resultobj = 0; | |
20639 | wxDC *arg1 = (wxDC *) 0 ; | |
20640 | int *arg2 = (int *) 0 ; | |
20641 | int *arg3 = (int *) 0 ; | |
20642 | int *arg4 = (int *) 0 ; | |
20643 | int *arg5 = (int *) 0 ; | |
20644 | void *argp1 = 0 ; | |
20645 | int res1 = 0 ; | |
20646 | int temp2 ; | |
20647 | int res2 = SWIG_TMPOBJ ; | |
20648 | int temp3 ; | |
20649 | int res3 = SWIG_TMPOBJ ; | |
20650 | int temp4 ; | |
20651 | int res4 = SWIG_TMPOBJ ; | |
20652 | int temp5 ; | |
20653 | int res5 = SWIG_TMPOBJ ; | |
20654 | PyObject *swig_obj[1] ; | |
20655 | ||
20656 | arg2 = &temp2; | |
20657 | arg3 = &temp3; | |
20658 | arg4 = &temp4; | |
20659 | arg5 = &temp5; | |
20660 | if (!args) SWIG_fail; | |
20661 | swig_obj[0] = args; | |
20662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20663 | if (!SWIG_IsOK(res1)) { | |
20664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20665 | } | |
20666 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20667 | { | |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
20670 | wxPyEndAllowThreads(__tstate); | |
20671 | if (PyErr_Occurred()) SWIG_fail; | |
20672 | } | |
20673 | resultobj = SWIG_Py_Void(); | |
20674 | if (SWIG_IsTmpObj(res2)) { | |
20675 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20676 | } else { | |
20677 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20678 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20679 | } | |
20680 | if (SWIG_IsTmpObj(res3)) { | |
20681 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20682 | } else { | |
20683 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20684 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20685 | } | |
20686 | if (SWIG_IsTmpObj(res4)) { | |
20687 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20688 | } else { | |
20689 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20690 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20691 | } | |
20692 | if (SWIG_IsTmpObj(res5)) { | |
20693 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20694 | } else { | |
20695 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20696 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20697 | } | |
20698 | return resultobj; | |
20699 | fail: | |
20700 | return NULL; | |
20701 | } | |
20702 | ||
20703 | ||
20704 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20705 | PyObject *resultobj = 0; | |
20706 | wxDC *arg1 = (wxDC *) 0 ; | |
20707 | long result; | |
20708 | void *argp1 = 0 ; | |
20709 | int res1 = 0 ; | |
20710 | PyObject *swig_obj[1] ; | |
20711 | ||
20712 | if (!args) SWIG_fail; | |
20713 | swig_obj[0] = args; | |
20714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20715 | if (!SWIG_IsOK(res1)) { | |
20716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20717 | } | |
20718 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20719 | { | |
20720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20721 | result = (long)(arg1)->GetHDC(); | |
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
20725 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj = 0; | |
20734 | wxDC *arg1 = (wxDC *) 0 ; | |
20735 | PyObject *arg2 = (PyObject *) 0 ; | |
20736 | PyObject *arg3 = (PyObject *) 0 ; | |
20737 | PyObject *arg4 = (PyObject *) 0 ; | |
20738 | PyObject *result = 0 ; | |
20739 | void *argp1 = 0 ; | |
20740 | int res1 = 0 ; | |
20741 | PyObject * obj0 = 0 ; | |
20742 | PyObject * obj1 = 0 ; | |
20743 | PyObject * obj2 = 0 ; | |
20744 | PyObject * obj3 = 0 ; | |
20745 | char * kwnames[] = { | |
20746 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20747 | }; | |
20748 | ||
20749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20751 | if (!SWIG_IsOK(res1)) { | |
20752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20753 | } | |
20754 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20755 | arg2 = obj1; | |
20756 | arg3 = obj2; | |
20757 | arg4 = obj3; | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
20761 | wxPyEndAllowThreads(__tstate); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
20764 | resultobj = result; | |
20765 | return resultobj; | |
20766 | fail: | |
20767 | return NULL; | |
20768 | } | |
20769 | ||
20770 | ||
20771 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20772 | PyObject *resultobj = 0; | |
20773 | wxDC *arg1 = (wxDC *) 0 ; | |
20774 | PyObject *arg2 = (PyObject *) 0 ; | |
20775 | PyObject *arg3 = (PyObject *) 0 ; | |
20776 | PyObject *arg4 = (PyObject *) 0 ; | |
20777 | PyObject *result = 0 ; | |
20778 | void *argp1 = 0 ; | |
20779 | int res1 = 0 ; | |
20780 | PyObject * obj0 = 0 ; | |
20781 | PyObject * obj1 = 0 ; | |
20782 | PyObject * obj2 = 0 ; | |
20783 | PyObject * obj3 = 0 ; | |
20784 | char * kwnames[] = { | |
20785 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20786 | }; | |
20787 | ||
20788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20790 | if (!SWIG_IsOK(res1)) { | |
20791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20792 | } | |
20793 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20794 | arg2 = obj1; | |
20795 | arg3 = obj2; | |
20796 | arg4 = obj3; | |
20797 | { | |
20798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20799 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
20800 | wxPyEndAllowThreads(__tstate); | |
20801 | if (PyErr_Occurred()) SWIG_fail; | |
20802 | } | |
20803 | resultobj = result; | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
20810 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20811 | PyObject *resultobj = 0; | |
20812 | wxDC *arg1 = (wxDC *) 0 ; | |
20813 | PyObject *arg2 = (PyObject *) 0 ; | |
20814 | PyObject *arg3 = (PyObject *) 0 ; | |
20815 | PyObject *arg4 = (PyObject *) 0 ; | |
20816 | PyObject *result = 0 ; | |
20817 | void *argp1 = 0 ; | |
20818 | int res1 = 0 ; | |
20819 | PyObject * obj0 = 0 ; | |
20820 | PyObject * obj1 = 0 ; | |
20821 | PyObject * obj2 = 0 ; | |
20822 | PyObject * obj3 = 0 ; | |
20823 | char * kwnames[] = { | |
20824 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20825 | }; | |
20826 | ||
20827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20829 | if (!SWIG_IsOK(res1)) { | |
20830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20831 | } | |
20832 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20833 | arg2 = obj1; | |
20834 | arg3 = obj2; | |
20835 | arg4 = obj3; | |
20836 | { | |
20837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20838 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
20839 | wxPyEndAllowThreads(__tstate); | |
20840 | if (PyErr_Occurred()) SWIG_fail; | |
20841 | } | |
20842 | resultobj = result; | |
20843 | return resultobj; | |
20844 | fail: | |
20845 | return NULL; | |
20846 | } | |
20847 | ||
20848 | ||
20849 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20850 | PyObject *resultobj = 0; | |
20851 | wxDC *arg1 = (wxDC *) 0 ; | |
20852 | PyObject *arg2 = (PyObject *) 0 ; | |
20853 | PyObject *arg3 = (PyObject *) 0 ; | |
20854 | PyObject *arg4 = (PyObject *) 0 ; | |
20855 | PyObject *result = 0 ; | |
20856 | void *argp1 = 0 ; | |
20857 | int res1 = 0 ; | |
20858 | PyObject * obj0 = 0 ; | |
20859 | PyObject * obj1 = 0 ; | |
20860 | PyObject * obj2 = 0 ; | |
20861 | PyObject * obj3 = 0 ; | |
20862 | char * kwnames[] = { | |
20863 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20864 | }; | |
20865 | ||
20866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20868 | if (!SWIG_IsOK(res1)) { | |
20869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20870 | } | |
20871 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20872 | arg2 = obj1; | |
20873 | arg3 = obj2; | |
20874 | arg4 = obj3; | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
20881 | resultobj = result; | |
20882 | return resultobj; | |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj = 0; | |
20890 | wxDC *arg1 = (wxDC *) 0 ; | |
20891 | PyObject *arg2 = (PyObject *) 0 ; | |
20892 | PyObject *arg3 = (PyObject *) 0 ; | |
20893 | PyObject *arg4 = (PyObject *) 0 ; | |
20894 | PyObject *result = 0 ; | |
20895 | void *argp1 = 0 ; | |
20896 | int res1 = 0 ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | PyObject * obj1 = 0 ; | |
20899 | PyObject * obj2 = 0 ; | |
20900 | PyObject * obj3 = 0 ; | |
20901 | char * kwnames[] = { | |
20902 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20903 | }; | |
20904 | ||
20905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20907 | if (!SWIG_IsOK(res1)) { | |
20908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20909 | } | |
20910 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20911 | arg2 = obj1; | |
20912 | arg3 = obj2; | |
20913 | arg4 = obj3; | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
20917 | wxPyEndAllowThreads(__tstate); | |
20918 | if (PyErr_Occurred()) SWIG_fail; | |
20919 | } | |
20920 | resultobj = result; | |
20921 | return resultobj; | |
20922 | fail: | |
20923 | return NULL; | |
20924 | } | |
20925 | ||
20926 | ||
20927 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20928 | PyObject *resultobj = 0; | |
20929 | wxDC *arg1 = (wxDC *) 0 ; | |
20930 | PyObject *arg2 = (PyObject *) 0 ; | |
20931 | PyObject *arg3 = (PyObject *) 0 ; | |
20932 | PyObject *arg4 = (PyObject *) 0 ; | |
20933 | PyObject *arg5 = (PyObject *) 0 ; | |
20934 | PyObject *result = 0 ; | |
20935 | void *argp1 = 0 ; | |
20936 | int res1 = 0 ; | |
20937 | PyObject * obj0 = 0 ; | |
20938 | PyObject * obj1 = 0 ; | |
20939 | PyObject * obj2 = 0 ; | |
20940 | PyObject * obj3 = 0 ; | |
20941 | PyObject * obj4 = 0 ; | |
20942 | char * kwnames[] = { | |
20943 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
20944 | }; | |
20945 | ||
20946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20948 | if (!SWIG_IsOK(res1)) { | |
20949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20950 | } | |
20951 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20952 | arg2 = obj1; | |
20953 | arg3 = obj2; | |
20954 | arg4 = obj3; | |
20955 | arg5 = obj4; | |
20956 | { | |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
20959 | wxPyEndAllowThreads(__tstate); | |
20960 | if (PyErr_Occurred()) SWIG_fail; | |
20961 | } | |
20962 | resultobj = result; | |
20963 | return resultobj; | |
20964 | fail: | |
20965 | return NULL; | |
20966 | } | |
20967 | ||
20968 | ||
20969 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20970 | PyObject *obj; | |
20971 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20972 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
20973 | return SWIG_Py_Void(); | |
20974 | } | |
20975 | ||
20976 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20977 | PyObject *resultobj = 0; | |
20978 | wxMemoryDC *result = 0 ; | |
20979 | ||
20980 | if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail; | |
20981 | { | |
20982 | if (!wxPyCheckForApp()) SWIG_fail; | |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | result = (wxMemoryDC *)new wxMemoryDC(); | |
20985 | wxPyEndAllowThreads(__tstate); | |
20986 | if (PyErr_Occurred()) SWIG_fail; | |
20987 | } | |
20988 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
20989 | return resultobj; | |
20990 | fail: | |
20991 | return NULL; | |
20992 | } | |
20993 | ||
20994 | ||
20995 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20996 | PyObject *resultobj = 0; | |
20997 | wxDC *arg1 = (wxDC *) 0 ; | |
20998 | wxMemoryDC *result = 0 ; | |
20999 | void *argp1 = 0 ; | |
21000 | int res1 = 0 ; | |
21001 | PyObject * obj0 = 0 ; | |
21002 | char * kwnames[] = { | |
21003 | (char *) "oldDC", NULL | |
21004 | }; | |
21005 | ||
21006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
21007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21008 | if (!SWIG_IsOK(res1)) { | |
21009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21010 | } | |
21011 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21012 | { | |
21013 | if (!wxPyCheckForApp()) SWIG_fail; | |
21014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21015 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
21016 | wxPyEndAllowThreads(__tstate); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
21019 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
21020 | return resultobj; | |
21021 | fail: | |
21022 | return NULL; | |
21023 | } | |
21024 | ||
21025 | ||
21026 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21027 | PyObject *resultobj = 0; | |
21028 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
21029 | wxBitmap *arg2 = 0 ; | |
21030 | void *argp1 = 0 ; | |
21031 | int res1 = 0 ; | |
21032 | void *argp2 = 0 ; | |
21033 | int res2 = 0 ; | |
21034 | PyObject * obj0 = 0 ; | |
21035 | PyObject * obj1 = 0 ; | |
21036 | char * kwnames[] = { | |
21037 | (char *) "self",(char *) "bitmap", NULL | |
21038 | }; | |
21039 | ||
21040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
21041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
21042 | if (!SWIG_IsOK(res1)) { | |
21043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
21044 | } | |
21045 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
21046 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21047 | if (!SWIG_IsOK(res2)) { | |
21048 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21049 | } | |
21050 | if (!argp2) { | |
21051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21052 | } | |
21053 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
21054 | { | |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
21057 | wxPyEndAllowThreads(__tstate); | |
21058 | if (PyErr_Occurred()) SWIG_fail; | |
21059 | } | |
21060 | resultobj = SWIG_Py_Void(); | |
21061 | return resultobj; | |
21062 | fail: | |
21063 | return NULL; | |
21064 | } | |
21065 | ||
21066 | ||
21067 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21068 | PyObject *obj; | |
21069 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21070 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
21071 | return SWIG_Py_Void(); | |
21072 | } | |
21073 | ||
21074 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21075 | return SWIG_Python_InitShadowInstance(args); | |
21076 | } | |
21077 | ||
21078 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
21079 | PyObject *resultobj = 0; | |
21080 | wxDC *arg1 = (wxDC *) 0 ; | |
21081 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
21082 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
21083 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21084 | wxBufferedDC *result = 0 ; | |
21085 | void *argp1 = 0 ; | |
21086 | int res1 = 0 ; | |
21087 | void *argp2 = 0 ; | |
21088 | int res2 = 0 ; | |
21089 | int val3 ; | |
21090 | int ecode3 = 0 ; | |
21091 | ||
21092 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
21093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21094 | if (!SWIG_IsOK(res1)) { | |
21095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21096 | } | |
21097 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21098 | if (swig_obj[1]) { | |
21099 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21100 | if (!SWIG_IsOK(res2)) { | |
21101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21102 | } |
554f62e9 RD |
21103 | if (!argp2) { |
21104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21105 | } |
554f62e9 RD |
21106 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
21107 | } | |
21108 | if (swig_obj[2]) { | |
21109 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
21110 | if (!SWIG_IsOK(ecode3)) { | |
21111 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
21112 | } | |
21113 | arg3 = static_cast< int >(val3); | |
21114 | } | |
21115 | { | |
21116 | if (!wxPyCheckForApp()) SWIG_fail; | |
21117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21118 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
21119 | wxPyEndAllowThreads(__tstate); | |
21120 | if (PyErr_Occurred()) SWIG_fail; | |
21121 | } | |
21122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
21123 | return resultobj; | |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
21130 | PyObject *resultobj = 0; | |
21131 | wxDC *arg1 = (wxDC *) 0 ; | |
21132 | wxSize *arg2 = 0 ; | |
21133 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21134 | wxBufferedDC *result = 0 ; | |
21135 | void *argp1 = 0 ; | |
21136 | int res1 = 0 ; | |
21137 | wxSize temp2 ; | |
21138 | int val3 ; | |
21139 | int ecode3 = 0 ; | |
21140 | ||
21141 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
21142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21143 | if (!SWIG_IsOK(res1)) { | |
21144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21145 | } | |
21146 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21147 | { | |
21148 | arg2 = &temp2; | |
21149 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
21150 | } | |
21151 | if (swig_obj[2]) { | |
21152 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
21153 | if (!SWIG_IsOK(ecode3)) { | |
21154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
21155 | } | |
21156 | arg3 = static_cast< int >(val3); | |
21157 | } | |
21158 | { | |
21159 | if (!wxPyCheckForApp()) SWIG_fail; | |
21160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21161 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
21162 | wxPyEndAllowThreads(__tstate); | |
21163 | if (PyErr_Occurred()) SWIG_fail; | |
21164 | } | |
21165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
21166 | return resultobj; | |
21167 | fail: | |
21168 | return NULL; | |
21169 | } | |
21170 | ||
21171 | ||
21172 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
21173 | int argc; | |
21174 | PyObject *argv[4]; | |
21175 | ||
21176 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; | |
21177 | --argc; | |
21178 | if ((argc >= 1) && (argc <= 3)) { | |
21179 | int _v = 0; | |
21180 | if (argc > 1) { | |
21181 | { | |
21182 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
21183 | _v = SWIG_CheckState(res); | |
21184 | } | |
21185 | if (!_v) goto check_1; | |
093d3ff1 | 21186 | } |
554f62e9 RD |
21187 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
21188 | } | |
21189 | check_1: | |
21190 | ||
21191 | if ((argc >= 2) && (argc <= 3)) { | |
21192 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
21193 | } | |
21194 | ||
21195 | fail: | |
21196 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
21197 | return NULL; | |
21198 | } | |
21199 | ||
21200 | ||
21201 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21202 | PyObject *resultobj = 0; | |
21203 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
21204 | void *argp1 = 0 ; | |
21205 | int res1 = 0 ; | |
21206 | PyObject *swig_obj[1] ; | |
21207 | ||
21208 | if (!args) SWIG_fail; | |
21209 | swig_obj[0] = args; | |
21210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
21211 | if (!SWIG_IsOK(res1)) { | |
21212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
21213 | } | |
21214 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
21215 | { | |
21216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21217 | delete arg1; | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | resultobj = SWIG_Py_Void(); | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21230 | PyObject *resultobj = 0; | |
21231 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
21232 | void *argp1 = 0 ; | |
21233 | int res1 = 0 ; | |
21234 | PyObject *swig_obj[1] ; | |
21235 | ||
21236 | if (!args) SWIG_fail; | |
21237 | swig_obj[0] = args; | |
21238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
21239 | if (!SWIG_IsOK(res1)) { | |
21240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
21241 | } | |
21242 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
21243 | { | |
21244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21245 | (arg1)->UnMask(); | |
21246 | wxPyEndAllowThreads(__tstate); | |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
21248 | } | |
21249 | resultobj = SWIG_Py_Void(); | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21257 | PyObject *obj; | |
21258 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21259 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
21260 | return SWIG_Py_Void(); | |
21261 | } | |
21262 | ||
21263 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21264 | return SWIG_Python_InitShadowInstance(args); | |
21265 | } | |
21266 | ||
21267 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21268 | PyObject *resultobj = 0; | |
21269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21270 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
21271 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
21272 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
21273 | wxBufferedPaintDC *result = 0 ; | |
21274 | void *argp1 = 0 ; | |
21275 | int res1 = 0 ; | |
21276 | void *argp2 = 0 ; | |
21277 | int res2 = 0 ; | |
21278 | int val3 ; | |
21279 | int ecode3 = 0 ; | |
21280 | PyObject * obj0 = 0 ; | |
21281 | PyObject * obj1 = 0 ; | |
21282 | PyObject * obj2 = 0 ; | |
21283 | char * kwnames[] = { | |
21284 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
21285 | }; | |
21286 | ||
21287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21289 | if (!SWIG_IsOK(res1)) { | |
21290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21291 | } | |
21292 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21293 | if (obj1) { | |
21294 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21295 | if (!SWIG_IsOK(res2)) { | |
21296 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21297 | } |
554f62e9 RD |
21298 | if (!argp2) { |
21299 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 21300 | } |
554f62e9 RD |
21301 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
21302 | } | |
21303 | if (obj2) { | |
21304 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21305 | if (!SWIG_IsOK(ecode3)) { | |
21306 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
21307 | } | |
21308 | arg3 = static_cast< int >(val3); | |
21309 | } | |
21310 | { | |
21311 | if (!wxPyCheckForApp()) SWIG_fail; | |
21312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21313 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
21324 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21325 | PyObject *obj; | |
21326 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21327 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
21328 | return SWIG_Py_Void(); | |
21329 | } | |
21330 | ||
21331 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21332 | return SWIG_Python_InitShadowInstance(args); | |
21333 | } | |
21334 | ||
21335 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21336 | PyObject *resultobj = 0; | |
21337 | wxScreenDC *result = 0 ; | |
21338 | ||
21339 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
21340 | { | |
21341 | if (!wxPyCheckForApp()) SWIG_fail; | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | result = (wxScreenDC *)new wxScreenDC(); | |
21344 | wxPyEndAllowThreads(__tstate); | |
21345 | if (PyErr_Occurred()) SWIG_fail; | |
21346 | } | |
21347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
21348 | return resultobj; | |
21349 | fail: | |
21350 | return NULL; | |
21351 | } | |
21352 | ||
21353 | ||
21354 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21355 | PyObject *resultobj = 0; | |
21356 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21357 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21358 | bool result; | |
21359 | void *argp1 = 0 ; | |
21360 | int res1 = 0 ; | |
21361 | void *argp2 = 0 ; | |
21362 | int res2 = 0 ; | |
21363 | PyObject * obj0 = 0 ; | |
21364 | PyObject * obj1 = 0 ; | |
21365 | char * kwnames[] = { | |
21366 | (char *) "self",(char *) "window", NULL | |
21367 | }; | |
21368 | ||
21369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
21370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21371 | if (!SWIG_IsOK(res1)) { | |
21372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21373 | } | |
21374 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21375 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21376 | if (!SWIG_IsOK(res2)) { | |
21377 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21378 | } | |
21379 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
21383 | wxPyEndAllowThreads(__tstate); | |
21384 | if (PyErr_Occurred()) SWIG_fail; | |
21385 | } | |
21386 | { | |
21387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21388 | } | |
21389 | return resultobj; | |
21390 | fail: | |
21391 | return NULL; | |
21392 | } | |
21393 | ||
21394 | ||
21395 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21396 | PyObject *resultobj = 0; | |
21397 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21398 | wxRect *arg2 = (wxRect *) NULL ; | |
21399 | bool result; | |
21400 | void *argp1 = 0 ; | |
21401 | int res1 = 0 ; | |
21402 | void *argp2 = 0 ; | |
21403 | int res2 = 0 ; | |
21404 | PyObject * obj0 = 0 ; | |
21405 | PyObject * obj1 = 0 ; | |
21406 | char * kwnames[] = { | |
21407 | (char *) "self",(char *) "rect", NULL | |
21408 | }; | |
21409 | ||
21410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
21411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21412 | if (!SWIG_IsOK(res1)) { | |
21413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21414 | } | |
21415 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21416 | if (obj1) { | |
21417 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
21418 | if (!SWIG_IsOK(res2)) { | |
21419 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
093d3ff1 | 21420 | } |
554f62e9 RD |
21421 | arg2 = reinterpret_cast< wxRect * >(argp2); |
21422 | } | |
21423 | { | |
21424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21425 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
21426 | wxPyEndAllowThreads(__tstate); | |
21427 | if (PyErr_Occurred()) SWIG_fail; | |
21428 | } | |
21429 | { | |
21430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21431 | } | |
21432 | return resultobj; | |
21433 | fail: | |
21434 | return NULL; | |
21435 | } | |
21436 | ||
21437 | ||
21438 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21439 | PyObject *resultobj = 0; | |
21440 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
21441 | bool result; | |
21442 | void *argp1 = 0 ; | |
21443 | int res1 = 0 ; | |
21444 | PyObject *swig_obj[1] ; | |
21445 | ||
21446 | if (!args) SWIG_fail; | |
21447 | swig_obj[0] = args; | |
21448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
21449 | if (!SWIG_IsOK(res1)) { | |
21450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
21451 | } | |
21452 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
21453 | { | |
21454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21455 | result = (bool)(arg1)->EndDrawingOnTop(); | |
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
21459 | { | |
21460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21461 | } | |
21462 | return resultobj; | |
21463 | fail: | |
21464 | return NULL; | |
21465 | } | |
21466 | ||
21467 | ||
21468 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21469 | PyObject *obj; | |
21470 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21471 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
21472 | return SWIG_Py_Void(); | |
21473 | } | |
21474 | ||
21475 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21476 | return SWIG_Python_InitShadowInstance(args); | |
21477 | } | |
21478 | ||
21479 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj = 0; | |
21481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21482 | wxClientDC *result = 0 ; | |
21483 | void *argp1 = 0 ; | |
21484 | int res1 = 0 ; | |
21485 | PyObject * obj0 = 0 ; | |
21486 | char * kwnames[] = { | |
21487 | (char *) "win", NULL | |
21488 | }; | |
21489 | ||
21490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
21491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21492 | if (!SWIG_IsOK(res1)) { | |
21493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21494 | } | |
21495 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21496 | { | |
21497 | if (!wxPyCheckForApp()) SWIG_fail; | |
21498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21499 | result = (wxClientDC *)new wxClientDC(arg1); | |
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
21510 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21511 | PyObject *obj; | |
21512 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21513 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
21514 | return SWIG_Py_Void(); | |
21515 | } | |
21516 | ||
21517 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21518 | return SWIG_Python_InitShadowInstance(args); | |
21519 | } | |
21520 | ||
21521 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21522 | PyObject *resultobj = 0; | |
21523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21524 | wxPaintDC *result = 0 ; | |
21525 | void *argp1 = 0 ; | |
21526 | int res1 = 0 ; | |
21527 | PyObject * obj0 = 0 ; | |
21528 | char * kwnames[] = { | |
21529 | (char *) "win", NULL | |
21530 | }; | |
21531 | ||
21532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
21533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21534 | if (!SWIG_IsOK(res1)) { | |
21535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21536 | } | |
21537 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21538 | { | |
21539 | if (!wxPyCheckForApp()) SWIG_fail; | |
21540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21541 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
21542 | wxPyEndAllowThreads(__tstate); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
21545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
21546 | return resultobj; | |
21547 | fail: | |
21548 | return NULL; | |
21549 | } | |
21550 | ||
21551 | ||
21552 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21553 | PyObject *obj; | |
21554 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21555 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
21556 | return SWIG_Py_Void(); | |
21557 | } | |
21558 | ||
21559 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21560 | return SWIG_Python_InitShadowInstance(args); | |
21561 | } | |
21562 | ||
21563 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj = 0; | |
21565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21566 | wxWindowDC *result = 0 ; | |
21567 | void *argp1 = 0 ; | |
21568 | int res1 = 0 ; | |
21569 | PyObject * obj0 = 0 ; | |
21570 | char * kwnames[] = { | |
21571 | (char *) "win", NULL | |
21572 | }; | |
21573 | ||
21574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
21575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21576 | if (!SWIG_IsOK(res1)) { | |
21577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21578 | } | |
21579 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21580 | { | |
21581 | if (!wxPyCheckForApp()) SWIG_fail; | |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
21584 | wxPyEndAllowThreads(__tstate); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
21587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
21588 | return resultobj; | |
21589 | fail: | |
21590 | return NULL; | |
21591 | } | |
21592 | ||
21593 | ||
21594 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21595 | PyObject *obj; | |
21596 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21597 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
21598 | return SWIG_Py_Void(); | |
21599 | } | |
21600 | ||
21601 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21602 | return SWIG_Python_InitShadowInstance(args); | |
21603 | } | |
21604 | ||
21605 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21606 | PyObject *resultobj = 0; | |
21607 | wxDC *arg1 = 0 ; | |
21608 | bool arg2 ; | |
21609 | wxMirrorDC *result = 0 ; | |
21610 | void *argp1 = 0 ; | |
21611 | int res1 = 0 ; | |
21612 | bool val2 ; | |
21613 | int ecode2 = 0 ; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | PyObject * obj1 = 0 ; | |
21616 | char * kwnames[] = { | |
21617 | (char *) "dc",(char *) "mirror", NULL | |
21618 | }; | |
21619 | ||
21620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
21621 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
21622 | if (!SWIG_IsOK(res1)) { | |
21623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
21624 | } | |
21625 | if (!argp1) { | |
21626 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
21627 | } | |
21628 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21629 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
21630 | if (!SWIG_IsOK(ecode2)) { | |
21631 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
21632 | } | |
21633 | arg2 = static_cast< bool >(val2); | |
21634 | { | |
21635 | if (!wxPyCheckForApp()) SWIG_fail; | |
21636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21637 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
21638 | wxPyEndAllowThreads(__tstate); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
21641 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
21642 | return resultobj; | |
21643 | fail: | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
21648 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21649 | PyObject *obj; | |
21650 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21651 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
21652 | return SWIG_Py_Void(); | |
21653 | } | |
21654 | ||
21655 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21656 | return SWIG_Python_InitShadowInstance(args); | |
21657 | } | |
21658 | ||
21659 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21660 | PyObject *resultobj = 0; | |
21661 | wxPrintData *arg1 = 0 ; | |
21662 | wxPostScriptDC *result = 0 ; | |
21663 | void *argp1 = 0 ; | |
21664 | int res1 = 0 ; | |
21665 | PyObject * obj0 = 0 ; | |
21666 | char * kwnames[] = { | |
21667 | (char *) "printData", NULL | |
21668 | }; | |
21669 | ||
21670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
21671 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21672 | if (!SWIG_IsOK(res1)) { | |
21673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21674 | } | |
21675 | if (!argp1) { | |
21676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21677 | } | |
21678 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
21679 | { | |
21680 | if (!wxPyCheckForApp()) SWIG_fail; | |
21681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21682 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
21683 | wxPyEndAllowThreads(__tstate); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
21693 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21694 | PyObject *resultobj = 0; | |
21695 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21696 | wxPrintData *result = 0 ; | |
21697 | void *argp1 = 0 ; | |
21698 | int res1 = 0 ; | |
21699 | PyObject *swig_obj[1] ; | |
21700 | ||
21701 | if (!args) SWIG_fail; | |
21702 | swig_obj[0] = args; | |
21703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21704 | if (!SWIG_IsOK(res1)) { | |
21705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21706 | } | |
21707 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21708 | { | |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21710 | { |
554f62e9 RD |
21711 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
21712 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 21713 | } |
554f62e9 RD |
21714 | wxPyEndAllowThreads(__tstate); |
21715 | if (PyErr_Occurred()) SWIG_fail; | |
21716 | } | |
21717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
21718 | return resultobj; | |
21719 | fail: | |
21720 | return NULL; | |
21721 | } | |
21722 | ||
21723 | ||
21724 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21725 | PyObject *resultobj = 0; | |
21726 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21727 | wxPrintData *arg2 = 0 ; | |
21728 | void *argp1 = 0 ; | |
21729 | int res1 = 0 ; | |
21730 | void *argp2 = 0 ; | |
21731 | int res2 = 0 ; | |
21732 | PyObject * obj0 = 0 ; | |
21733 | PyObject * obj1 = 0 ; | |
21734 | char * kwnames[] = { | |
21735 | (char *) "self",(char *) "data", NULL | |
21736 | }; | |
21737 | ||
21738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
21739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21740 | if (!SWIG_IsOK(res1)) { | |
21741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21742 | } | |
21743 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21744 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21745 | if (!SWIG_IsOK(res2)) { | |
21746 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21747 | } | |
21748 | if (!argp2) { | |
21749 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21750 | } | |
21751 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
21752 | { | |
21753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21754 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21755 | wxPyEndAllowThreads(__tstate); | |
21756 | if (PyErr_Occurred()) SWIG_fail; | |
21757 | } | |
21758 | resultobj = SWIG_Py_Void(); | |
21759 | return resultobj; | |
21760 | fail: | |
21761 | return NULL; | |
21762 | } | |
21763 | ||
21764 | ||
21765 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21766 | PyObject *resultobj = 0; | |
21767 | int arg1 ; | |
21768 | int val1 ; | |
21769 | int ecode1 = 0 ; | |
21770 | PyObject * obj0 = 0 ; | |
21771 | char * kwnames[] = { | |
21772 | (char *) "ppi", NULL | |
21773 | }; | |
21774 | ||
21775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
21776 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21777 | if (!SWIG_IsOK(ecode1)) { | |
21778 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
21779 | } | |
21780 | arg1 = static_cast< int >(val1); | |
21781 | { | |
21782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21783 | wxPostScriptDC::SetResolution(arg1); | |
21784 | wxPyEndAllowThreads(__tstate); | |
21785 | if (PyErr_Occurred()) SWIG_fail; | |
21786 | } | |
21787 | resultobj = SWIG_Py_Void(); | |
21788 | return resultobj; | |
21789 | fail: | |
21790 | return NULL; | |
21791 | } | |
21792 | ||
21793 | ||
21794 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21795 | PyObject *resultobj = 0; | |
21796 | int result; | |
21797 | ||
21798 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
21799 | { | |
21800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21801 | result = (int)wxPostScriptDC::GetResolution(); | |
21802 | wxPyEndAllowThreads(__tstate); | |
21803 | if (PyErr_Occurred()) SWIG_fail; | |
21804 | } | |
21805 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21806 | return resultobj; | |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
21812 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21813 | PyObject *obj; | |
21814 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21815 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
21816 | return SWIG_Py_Void(); | |
21817 | } | |
21818 | ||
21819 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21820 | return SWIG_Python_InitShadowInstance(args); | |
21821 | } | |
21822 | ||
21823 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21824 | PyObject *resultobj = 0; | |
21825 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
21826 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21827 | wxMetaFile *result = 0 ; | |
21828 | bool temp1 = false ; | |
21829 | PyObject * obj0 = 0 ; | |
21830 | char * kwnames[] = { | |
21831 | (char *) "filename", NULL | |
21832 | }; | |
21833 | ||
21834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
21835 | if (obj0) { | |
093d3ff1 | 21836 | { |
554f62e9 RD |
21837 | arg1 = wxString_in_helper(obj0); |
21838 | if (arg1 == NULL) SWIG_fail; | |
21839 | temp1 = true; | |
093d3ff1 | 21840 | } |
554f62e9 RD |
21841 | } |
21842 | { | |
21843 | if (!wxPyCheckForApp()) SWIG_fail; | |
21844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21845 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
21846 | wxPyEndAllowThreads(__tstate); | |
21847 | if (PyErr_Occurred()) SWIG_fail; | |
21848 | } | |
21849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
21850 | { | |
21851 | if (temp1) | |
21852 | delete arg1; | |
21853 | } | |
21854 | return resultobj; | |
21855 | fail: | |
21856 | { | |
21857 | if (temp1) | |
21858 | delete arg1; | |
21859 | } | |
21860 | return NULL; | |
21861 | } | |
21862 | ||
21863 | ||
21864 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21865 | PyObject *resultobj = 0; | |
21866 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21867 | void *argp1 = 0 ; | |
21868 | int res1 = 0 ; | |
21869 | PyObject *swig_obj[1] ; | |
21870 | ||
21871 | if (!args) SWIG_fail; | |
21872 | swig_obj[0] = args; | |
21873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
21874 | if (!SWIG_IsOK(res1)) { | |
21875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21876 | } | |
21877 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21878 | { | |
21879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21880 | delete arg1; | |
21881 | ||
21882 | wxPyEndAllowThreads(__tstate); | |
21883 | if (PyErr_Occurred()) SWIG_fail; | |
21884 | } | |
21885 | resultobj = SWIG_Py_Void(); | |
21886 | return resultobj; | |
21887 | fail: | |
21888 | return NULL; | |
21889 | } | |
21890 | ||
21891 | ||
21892 | SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21893 | PyObject *resultobj = 0; | |
21894 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21895 | bool result; | |
21896 | void *argp1 = 0 ; | |
21897 | int res1 = 0 ; | |
21898 | PyObject *swig_obj[1] ; | |
21899 | ||
21900 | if (!args) SWIG_fail; | |
21901 | swig_obj[0] = args; | |
21902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21903 | if (!SWIG_IsOK(res1)) { | |
21904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21905 | } | |
21906 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21907 | { | |
21908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21909 | result = (bool)(arg1)->Ok(); | |
21910 | wxPyEndAllowThreads(__tstate); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
21913 | { | |
21914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21915 | } | |
21916 | return resultobj; | |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
21922 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21923 | PyObject *resultobj = 0; | |
21924 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21925 | int arg2 = (int) 0 ; | |
21926 | int arg3 = (int) 0 ; | |
21927 | bool result; | |
21928 | void *argp1 = 0 ; | |
21929 | int res1 = 0 ; | |
21930 | int val2 ; | |
21931 | int ecode2 = 0 ; | |
21932 | int val3 ; | |
21933 | int ecode3 = 0 ; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | PyObject * obj1 = 0 ; | |
21936 | PyObject * obj2 = 0 ; | |
21937 | char * kwnames[] = { | |
21938 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21939 | }; | |
21940 | ||
21941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21943 | if (!SWIG_IsOK(res1)) { | |
21944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21945 | } | |
21946 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21947 | if (obj1) { | |
21948 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21949 | if (!SWIG_IsOK(ecode2)) { | |
21950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
21951 | } | |
21952 | arg2 = static_cast< int >(val2); | |
21953 | } | |
21954 | if (obj2) { | |
21955 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21956 | if (!SWIG_IsOK(ecode3)) { | |
21957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
21958 | } | |
21959 | arg3 = static_cast< int >(val3); | |
21960 | } | |
21961 | { | |
21962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21963 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
21964 | wxPyEndAllowThreads(__tstate); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
21966 | } | |
21967 | { | |
21968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21969 | } | |
21970 | return resultobj; | |
21971 | fail: | |
21972 | return NULL; | |
21973 | } | |
21974 | ||
21975 | ||
21976 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21977 | PyObject *resultobj = 0; | |
21978 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21979 | wxSize result; | |
21980 | void *argp1 = 0 ; | |
21981 | int res1 = 0 ; | |
21982 | PyObject *swig_obj[1] ; | |
21983 | ||
21984 | if (!args) SWIG_fail; | |
21985 | swig_obj[0] = args; | |
21986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21987 | if (!SWIG_IsOK(res1)) { | |
21988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21989 | } | |
21990 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21991 | { | |
21992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21993 | result = (arg1)->GetSize(); | |
21994 | wxPyEndAllowThreads(__tstate); | |
21995 | if (PyErr_Occurred()) SWIG_fail; | |
21996 | } | |
21997 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21998 | return resultobj; | |
21999 | fail: | |
22000 | return NULL; | |
22001 | } | |
22002 | ||
22003 | ||
22004 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22005 | PyObject *resultobj = 0; | |
22006 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22007 | int result; | |
22008 | void *argp1 = 0 ; | |
22009 | int res1 = 0 ; | |
22010 | PyObject *swig_obj[1] ; | |
22011 | ||
22012 | if (!args) SWIG_fail; | |
22013 | swig_obj[0] = args; | |
22014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22015 | if (!SWIG_IsOK(res1)) { | |
22016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
22017 | } | |
22018 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22019 | { | |
22020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22021 | result = (int)(arg1)->GetWidth(); | |
22022 | wxPyEndAllowThreads(__tstate); | |
22023 | if (PyErr_Occurred()) SWIG_fail; | |
22024 | } | |
22025 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22026 | return resultobj; | |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
22032 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22033 | PyObject *resultobj = 0; | |
22034 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22035 | int result; | |
22036 | void *argp1 = 0 ; | |
22037 | int res1 = 0 ; | |
22038 | PyObject *swig_obj[1] ; | |
22039 | ||
22040 | if (!args) SWIG_fail; | |
22041 | swig_obj[0] = args; | |
22042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22043 | if (!SWIG_IsOK(res1)) { | |
22044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
22045 | } | |
22046 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22047 | { | |
22048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22049 | result = (int)(arg1)->GetHeight(); | |
22050 | wxPyEndAllowThreads(__tstate); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
22053 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22054 | return resultobj; | |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22061 | PyObject *resultobj = 0; | |
22062 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
22063 | wxString *result = 0 ; | |
22064 | void *argp1 = 0 ; | |
22065 | int res1 = 0 ; | |
22066 | PyObject *swig_obj[1] ; | |
22067 | ||
22068 | if (!args) SWIG_fail; | |
22069 | swig_obj[0] = args; | |
22070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22071 | if (!SWIG_IsOK(res1)) { | |
22072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
22073 | } | |
22074 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
22075 | { | |
22076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 22077 | { |
554f62e9 RD |
22078 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
22079 | result = (wxString *) &_result_ref; | |
e2950dbb | 22080 | } |
554f62e9 RD |
22081 | wxPyEndAllowThreads(__tstate); |
22082 | if (PyErr_Occurred()) SWIG_fail; | |
22083 | } | |
22084 | { | |
22085 | #if wxUSE_UNICODE | |
22086 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22087 | #else | |
22088 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22089 | #endif | |
22090 | } | |
22091 | return resultobj; | |
22092 | fail: | |
22093 | return NULL; | |
22094 | } | |
22095 | ||
22096 | ||
22097 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22098 | PyObject *obj; | |
22099 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22100 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
22101 | return SWIG_Py_Void(); | |
22102 | } | |
22103 | ||
22104 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22105 | return SWIG_Python_InitShadowInstance(args); | |
22106 | } | |
22107 | ||
22108 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22109 | PyObject *resultobj = 0; | |
22110 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22111 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22112 | int arg2 = (int) 0 ; | |
22113 | int arg3 = (int) 0 ; | |
22114 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
22115 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
22116 | wxMetaFileDC *result = 0 ; | |
22117 | bool temp1 = false ; | |
22118 | int val2 ; | |
22119 | int ecode2 = 0 ; | |
22120 | int val3 ; | |
22121 | int ecode3 = 0 ; | |
22122 | bool temp4 = false ; | |
22123 | PyObject * obj0 = 0 ; | |
22124 | PyObject * obj1 = 0 ; | |
22125 | PyObject * obj2 = 0 ; | |
22126 | PyObject * obj3 = 0 ; | |
22127 | char * kwnames[] = { | |
22128 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
22129 | }; | |
22130 | ||
22131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22132 | if (obj0) { | |
e2950dbb | 22133 | { |
554f62e9 RD |
22134 | arg1 = wxString_in_helper(obj0); |
22135 | if (arg1 == NULL) SWIG_fail; | |
22136 | temp1 = true; | |
e2950dbb | 22137 | } |
554f62e9 RD |
22138 | } |
22139 | if (obj1) { | |
22140 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22141 | if (!SWIG_IsOK(ecode2)) { | |
22142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
22143 | } | |
22144 | arg2 = static_cast< int >(val2); | |
22145 | } | |
22146 | if (obj2) { | |
22147 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22148 | if (!SWIG_IsOK(ecode3)) { | |
22149 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
22150 | } | |
22151 | arg3 = static_cast< int >(val3); | |
22152 | } | |
22153 | if (obj3) { | |
093d3ff1 | 22154 | { |
554f62e9 RD |
22155 | arg4 = wxString_in_helper(obj3); |
22156 | if (arg4 == NULL) SWIG_fail; | |
22157 | temp4 = true; | |
093d3ff1 | 22158 | } |
554f62e9 RD |
22159 | } |
22160 | { | |
22161 | if (!wxPyCheckForApp()) SWIG_fail; | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
22168 | { | |
22169 | if (temp1) | |
22170 | delete arg1; | |
22171 | } | |
22172 | { | |
22173 | if (temp4) | |
22174 | delete arg4; | |
22175 | } | |
22176 | return resultobj; | |
22177 | fail: | |
22178 | { | |
22179 | if (temp1) | |
22180 | delete arg1; | |
22181 | } | |
22182 | { | |
22183 | if (temp4) | |
22184 | delete arg4; | |
22185 | } | |
22186 | return NULL; | |
22187 | } | |
22188 | ||
22189 | ||
22190 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22191 | PyObject *resultobj = 0; | |
22192 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
22193 | wxMetaFile *result = 0 ; | |
22194 | void *argp1 = 0 ; | |
22195 | int res1 = 0 ; | |
22196 | PyObject *swig_obj[1] ; | |
22197 | ||
22198 | if (!args) SWIG_fail; | |
22199 | swig_obj[0] = args; | |
22200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
22201 | if (!SWIG_IsOK(res1)) { | |
22202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
22203 | } | |
22204 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
22205 | { | |
22206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22207 | result = (wxMetaFile *)(arg1)->Close(); | |
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
22211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
22215 | } | |
22216 | ||
22217 | ||
22218 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22219 | PyObject *obj; | |
22220 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22221 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
22222 | return SWIG_Py_Void(); | |
22223 | } | |
22224 | ||
22225 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22226 | return SWIG_Python_InitShadowInstance(args); | |
22227 | } | |
22228 | ||
22229 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22230 | PyObject *resultobj = 0; | |
22231 | wxPrintData *arg1 = 0 ; | |
22232 | wxPrinterDC *result = 0 ; | |
22233 | void *argp1 = 0 ; | |
22234 | int res1 = 0 ; | |
22235 | PyObject * obj0 = 0 ; | |
22236 | char * kwnames[] = { | |
22237 | (char *) "printData", NULL | |
22238 | }; | |
22239 | ||
22240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
22241 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
22242 | if (!SWIG_IsOK(res1)) { | |
22243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
22244 | } | |
22245 | if (!argp1) { | |
22246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
22247 | } | |
22248 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
22249 | { | |
22250 | if (!wxPyCheckForApp()) SWIG_fail; | |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
22253 | wxPyEndAllowThreads(__tstate); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | } | |
22256 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
22257 | return resultobj; | |
22258 | fail: | |
22259 | return NULL; | |
22260 | } | |
22261 | ||
22262 | ||
22263 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22264 | PyObject *obj; | |
22265 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22266 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
22267 | return SWIG_Py_Void(); | |
22268 | } | |
22269 | ||
22270 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22271 | return SWIG_Python_InitShadowInstance(args); | |
22272 | } | |
22273 | ||
22274 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22275 | PyObject *resultobj = 0; | |
22276 | int arg1 ; | |
22277 | int arg2 ; | |
22278 | int arg3 = (int) true ; | |
22279 | int arg4 = (int) 1 ; | |
22280 | wxImageList *result = 0 ; | |
22281 | int val1 ; | |
22282 | int ecode1 = 0 ; | |
22283 | int val2 ; | |
22284 | int ecode2 = 0 ; | |
22285 | int val3 ; | |
22286 | int ecode3 = 0 ; | |
22287 | int val4 ; | |
22288 | int ecode4 = 0 ; | |
22289 | PyObject * obj0 = 0 ; | |
22290 | PyObject * obj1 = 0 ; | |
22291 | PyObject * obj2 = 0 ; | |
22292 | PyObject * obj3 = 0 ; | |
22293 | char * kwnames[] = { | |
22294 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
22295 | }; | |
22296 | ||
22297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22298 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22299 | if (!SWIG_IsOK(ecode1)) { | |
22300 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
22301 | } | |
22302 | arg1 = static_cast< int >(val1); | |
22303 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22304 | if (!SWIG_IsOK(ecode2)) { | |
22305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
22306 | } | |
22307 | arg2 = static_cast< int >(val2); | |
22308 | if (obj2) { | |
22309 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22310 | if (!SWIG_IsOK(ecode3)) { | |
22311 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
22312 | } | |
22313 | arg3 = static_cast< int >(val3); | |
22314 | } | |
22315 | if (obj3) { | |
22316 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22317 | if (!SWIG_IsOK(ecode4)) { | |
22318 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
22319 | } | |
22320 | arg4 = static_cast< int >(val4); | |
22321 | } | |
22322 | { | |
22323 | if (!wxPyCheckForApp()) SWIG_fail; | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | { | |
22330 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
22331 | } | |
22332 | return resultobj; | |
22333 | fail: | |
22334 | return NULL; | |
22335 | } | |
22336 | ||
22337 | ||
22338 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22339 | PyObject *resultobj = 0; | |
22340 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22341 | void *argp1 = 0 ; | |
22342 | int res1 = 0 ; | |
22343 | PyObject *swig_obj[1] ; | |
22344 | ||
22345 | if (!args) SWIG_fail; | |
22346 | swig_obj[0] = args; | |
22347 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
22348 | if (!SWIG_IsOK(res1)) { | |
22349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22350 | } | |
22351 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | delete arg1; | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | resultobj = SWIG_Py_Void(); | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj = 0; | |
22368 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22369 | wxBitmap *arg2 = 0 ; | |
22370 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
22371 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
22372 | int result; | |
22373 | void *argp1 = 0 ; | |
22374 | int res1 = 0 ; | |
22375 | void *argp2 = 0 ; | |
22376 | int res2 = 0 ; | |
22377 | void *argp3 = 0 ; | |
22378 | int res3 = 0 ; | |
22379 | PyObject * obj0 = 0 ; | |
22380 | PyObject * obj1 = 0 ; | |
22381 | PyObject * obj2 = 0 ; | |
22382 | char * kwnames[] = { | |
22383 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
22384 | }; | |
22385 | ||
22386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22388 | if (!SWIG_IsOK(res1)) { | |
22389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22390 | } | |
22391 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22392 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22393 | if (!SWIG_IsOK(res2)) { | |
22394 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22395 | } | |
22396 | if (!argp2) { | |
22397 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22398 | } | |
22399 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22400 | if (obj2) { | |
22401 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22402 | if (!SWIG_IsOK(res3)) { | |
22403 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22404 | } |
554f62e9 RD |
22405 | if (!argp3) { |
22406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22407 | } |
554f62e9 RD |
22408 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
22409 | } | |
22410 | { | |
22411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22412 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
22413 | wxPyEndAllowThreads(__tstate); | |
22414 | if (PyErr_Occurred()) SWIG_fail; | |
22415 | } | |
22416 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22417 | return resultobj; | |
22418 | fail: | |
22419 | return NULL; | |
22420 | } | |
22421 | ||
22422 | ||
22423 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22424 | PyObject *resultobj = 0; | |
22425 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22426 | wxBitmap *arg2 = 0 ; | |
22427 | wxColour *arg3 = 0 ; | |
22428 | int result; | |
22429 | void *argp1 = 0 ; | |
22430 | int res1 = 0 ; | |
22431 | void *argp2 = 0 ; | |
22432 | int res2 = 0 ; | |
22433 | wxColour temp3 ; | |
22434 | PyObject * obj0 = 0 ; | |
22435 | PyObject * obj1 = 0 ; | |
22436 | PyObject * obj2 = 0 ; | |
22437 | char * kwnames[] = { | |
22438 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
22439 | }; | |
22440 | ||
22441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22443 | if (!SWIG_IsOK(res1)) { | |
22444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22445 | } | |
22446 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22447 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22448 | if (!SWIG_IsOK(res2)) { | |
22449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22450 | } | |
22451 | if (!argp2) { | |
22452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22453 | } | |
22454 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22455 | { | |
22456 | arg3 = &temp3; | |
22457 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22458 | } | |
22459 | { | |
22460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22461 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
22462 | wxPyEndAllowThreads(__tstate); | |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
22464 | } | |
22465 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22466 | return resultobj; | |
22467 | fail: | |
22468 | return NULL; | |
22469 | } | |
22470 | ||
22471 | ||
22472 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22473 | PyObject *resultobj = 0; | |
22474 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22475 | wxIcon *arg2 = 0 ; | |
22476 | int result; | |
22477 | void *argp1 = 0 ; | |
22478 | int res1 = 0 ; | |
22479 | void *argp2 = 0 ; | |
22480 | int res2 = 0 ; | |
22481 | PyObject * obj0 = 0 ; | |
22482 | PyObject * obj1 = 0 ; | |
22483 | char * kwnames[] = { | |
22484 | (char *) "self",(char *) "icon", NULL | |
22485 | }; | |
22486 | ||
22487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
22488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22489 | if (!SWIG_IsOK(res1)) { | |
22490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22491 | } | |
22492 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22493 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
22494 | if (!SWIG_IsOK(res2)) { | |
22495 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
22496 | } | |
22497 | if (!argp2) { | |
22498 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
22499 | } | |
22500 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
22501 | { | |
22502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22503 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj = 0; | |
22516 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22517 | int arg2 ; | |
22518 | SwigValueWrapper<wxBitmap > result; | |
22519 | void *argp1 = 0 ; | |
22520 | int res1 = 0 ; | |
22521 | int val2 ; | |
22522 | int ecode2 = 0 ; | |
22523 | PyObject * obj0 = 0 ; | |
22524 | PyObject * obj1 = 0 ; | |
22525 | char * kwnames[] = { | |
22526 | (char *) "self",(char *) "index", NULL | |
22527 | }; | |
22528 | ||
22529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
22530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22531 | if (!SWIG_IsOK(res1)) { | |
22532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
22533 | } | |
22534 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22535 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22536 | if (!SWIG_IsOK(ecode2)) { | |
22537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
22538 | } | |
22539 | arg2 = static_cast< int >(val2); | |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
22553 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj = 0; | |
22555 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22556 | int arg2 ; | |
22557 | wxIcon result; | |
22558 | void *argp1 = 0 ; | |
22559 | int res1 = 0 ; | |
22560 | int val2 ; | |
22561 | int ecode2 = 0 ; | |
22562 | PyObject * obj0 = 0 ; | |
22563 | PyObject * obj1 = 0 ; | |
22564 | char * kwnames[] = { | |
22565 | (char *) "self",(char *) "index", NULL | |
22566 | }; | |
22567 | ||
22568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
22569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22570 | if (!SWIG_IsOK(res1)) { | |
22571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
22572 | } | |
22573 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22574 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22575 | if (!SWIG_IsOK(ecode2)) { | |
22576 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
22577 | } | |
22578 | arg2 = static_cast< int >(val2); | |
22579 | { | |
22580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22581 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
22582 | wxPyEndAllowThreads(__tstate); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
22586 | return resultobj; | |
22587 | fail: | |
22588 | return NULL; | |
22589 | } | |
22590 | ||
22591 | ||
22592 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22593 | PyObject *resultobj = 0; | |
22594 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22595 | int arg2 ; | |
22596 | wxBitmap *arg3 = 0 ; | |
22597 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
22598 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
22599 | bool result; | |
22600 | void *argp1 = 0 ; | |
22601 | int res1 = 0 ; | |
22602 | int val2 ; | |
22603 | int ecode2 = 0 ; | |
22604 | void *argp3 = 0 ; | |
22605 | int res3 = 0 ; | |
22606 | void *argp4 = 0 ; | |
22607 | int res4 = 0 ; | |
22608 | PyObject * obj0 = 0 ; | |
22609 | PyObject * obj1 = 0 ; | |
22610 | PyObject * obj2 = 0 ; | |
22611 | PyObject * obj3 = 0 ; | |
22612 | char * kwnames[] = { | |
22613 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
22614 | }; | |
22615 | ||
22616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22618 | if (!SWIG_IsOK(res1)) { | |
22619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22620 | } | |
22621 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22622 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22623 | if (!SWIG_IsOK(ecode2)) { | |
22624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
22625 | } | |
22626 | arg2 = static_cast< int >(val2); | |
22627 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22628 | if (!SWIG_IsOK(res3)) { | |
22629 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
22630 | } | |
22631 | if (!argp3) { | |
22632 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
22633 | } | |
22634 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
22635 | if (obj3) { | |
22636 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22637 | if (!SWIG_IsOK(res4)) { | |
22638 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22639 | } |
554f62e9 RD |
22640 | if (!argp4) { |
22641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22642 | } |
554f62e9 RD |
22643 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
22644 | } | |
22645 | { | |
22646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22647 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
22648 | wxPyEndAllowThreads(__tstate); | |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
22650 | } | |
22651 | { | |
22652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22653 | } | |
22654 | return resultobj; | |
22655 | fail: | |
22656 | return NULL; | |
22657 | } | |
22658 | ||
22659 | ||
22660 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22661 | PyObject *resultobj = 0; | |
22662 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22663 | int arg2 ; | |
22664 | wxDC *arg3 = 0 ; | |
22665 | int arg4 ; | |
22666 | int arg5 ; | |
22667 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
22668 | bool arg7 = (bool) (bool)false ; | |
22669 | bool result; | |
22670 | void *argp1 = 0 ; | |
22671 | int res1 = 0 ; | |
22672 | int val2 ; | |
22673 | int ecode2 = 0 ; | |
22674 | void *argp3 = 0 ; | |
22675 | int res3 = 0 ; | |
22676 | int val4 ; | |
22677 | int ecode4 = 0 ; | |
22678 | int val5 ; | |
22679 | int ecode5 = 0 ; | |
22680 | int val6 ; | |
22681 | int ecode6 = 0 ; | |
22682 | bool val7 ; | |
22683 | int ecode7 = 0 ; | |
22684 | PyObject * obj0 = 0 ; | |
22685 | PyObject * obj1 = 0 ; | |
22686 | PyObject * obj2 = 0 ; | |
22687 | PyObject * obj3 = 0 ; | |
22688 | PyObject * obj4 = 0 ; | |
22689 | PyObject * obj5 = 0 ; | |
22690 | PyObject * obj6 = 0 ; | |
22691 | char * kwnames[] = { | |
22692 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
22693 | }; | |
22694 | ||
22695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
22696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22697 | if (!SWIG_IsOK(res1)) { | |
22698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22699 | } | |
22700 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22702 | if (!SWIG_IsOK(ecode2)) { | |
22703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
22704 | } | |
22705 | arg2 = static_cast< int >(val2); | |
22706 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
22707 | if (!SWIG_IsOK(res3)) { | |
22708 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
22709 | } | |
22710 | if (!argp3) { | |
22711 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
22712 | } | |
22713 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
22714 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22715 | if (!SWIG_IsOK(ecode4)) { | |
22716 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
22717 | } | |
22718 | arg4 = static_cast< int >(val4); | |
22719 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22720 | if (!SWIG_IsOK(ecode5)) { | |
22721 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
22722 | } | |
22723 | arg5 = static_cast< int >(val5); | |
22724 | if (obj5) { | |
22725 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22726 | if (!SWIG_IsOK(ecode6)) { | |
22727 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
22728 | } | |
22729 | arg6 = static_cast< int >(val6); | |
22730 | } | |
22731 | if (obj6) { | |
22732 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
22733 | if (!SWIG_IsOK(ecode7)) { | |
22734 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
22735 | } | |
22736 | arg7 = static_cast< bool >(val7); | |
22737 | } | |
22738 | { | |
22739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22740 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
22744 | { | |
22745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22746 | } | |
22747 | return resultobj; | |
22748 | fail: | |
22749 | return NULL; | |
22750 | } | |
22751 | ||
22752 | ||
22753 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22754 | PyObject *resultobj = 0; | |
22755 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22756 | int result; | |
22757 | void *argp1 = 0 ; | |
22758 | int res1 = 0 ; | |
22759 | PyObject *swig_obj[1] ; | |
22760 | ||
22761 | if (!args) SWIG_fail; | |
22762 | swig_obj[0] = args; | |
22763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22764 | if (!SWIG_IsOK(res1)) { | |
22765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22766 | } | |
22767 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22768 | { | |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | result = (int)(arg1)->GetImageCount(); | |
22771 | wxPyEndAllowThreads(__tstate); | |
22772 | if (PyErr_Occurred()) SWIG_fail; | |
22773 | } | |
22774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22775 | return resultobj; | |
22776 | fail: | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
22781 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22782 | PyObject *resultobj = 0; | |
22783 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22784 | int arg2 ; | |
22785 | bool result; | |
22786 | void *argp1 = 0 ; | |
22787 | int res1 = 0 ; | |
22788 | int val2 ; | |
22789 | int ecode2 = 0 ; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | char * kwnames[] = { | |
22793 | (char *) "self",(char *) "index", NULL | |
22794 | }; | |
22795 | ||
22796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
22797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22798 | if (!SWIG_IsOK(res1)) { | |
22799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22800 | } | |
22801 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22802 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22803 | if (!SWIG_IsOK(ecode2)) { | |
22804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
22805 | } | |
22806 | arg2 = static_cast< int >(val2); | |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | result = (bool)(arg1)->Remove(arg2); | |
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
22813 | { | |
22814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22815 | } | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22823 | PyObject *resultobj = 0; | |
22824 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22825 | bool result; | |
22826 | void *argp1 = 0 ; | |
22827 | int res1 = 0 ; | |
22828 | PyObject *swig_obj[1] ; | |
22829 | ||
22830 | if (!args) SWIG_fail; | |
22831 | swig_obj[0] = args; | |
22832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22833 | if (!SWIG_IsOK(res1)) { | |
22834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22835 | } | |
22836 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22837 | { | |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22839 | result = (bool)(arg1)->RemoveAll(); | |
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22845 | } | |
22846 | return resultobj; | |
22847 | fail: | |
22848 | return NULL; | |
22849 | } | |
22850 | ||
22851 | ||
22852 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22853 | PyObject *resultobj = 0; | |
22854 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22855 | int arg2 ; | |
22856 | int *arg3 = 0 ; | |
22857 | int *arg4 = 0 ; | |
22858 | void *argp1 = 0 ; | |
22859 | int res1 = 0 ; | |
22860 | int val2 ; | |
22861 | int ecode2 = 0 ; | |
22862 | int temp3 ; | |
22863 | int res3 = SWIG_TMPOBJ ; | |
22864 | int temp4 ; | |
22865 | int res4 = SWIG_TMPOBJ ; | |
22866 | PyObject * obj0 = 0 ; | |
22867 | PyObject * obj1 = 0 ; | |
22868 | char * kwnames[] = { | |
22869 | (char *) "self",(char *) "index", NULL | |
22870 | }; | |
22871 | ||
22872 | arg3 = &temp3; | |
22873 | arg4 = &temp4; | |
22874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22876 | if (!SWIG_IsOK(res1)) { | |
22877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22878 | } | |
22879 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22880 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22881 | if (!SWIG_IsOK(ecode2)) { | |
22882 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
22883 | } | |
22884 | arg2 = static_cast< int >(val2); | |
22885 | { | |
22886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22887 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
22888 | wxPyEndAllowThreads(__tstate); | |
22889 | if (PyErr_Occurred()) SWIG_fail; | |
22890 | } | |
22891 | resultobj = SWIG_Py_Void(); | |
22892 | if (SWIG_IsTmpObj(res3)) { | |
22893 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22894 | } else { | |
22895 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22896 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22897 | } | |
22898 | if (SWIG_IsTmpObj(res4)) { | |
22899 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
22900 | } else { | |
22901 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22902 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
22903 | } | |
22904 | return resultobj; | |
22905 | fail: | |
22906 | return NULL; | |
22907 | } | |
22908 | ||
22909 | ||
22910 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22911 | PyObject *obj; | |
22912 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22913 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
22914 | return SWIG_Py_Void(); | |
22915 | } | |
22916 | ||
22917 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22918 | return SWIG_Python_InitShadowInstance(args); | |
22919 | } | |
22920 | ||
22921 | SWIGINTERN int NORMAL_FONT_set(PyObject *) { | |
22922 | SWIG_Error(SWIG_AttributeError,"Variable NORMAL_FONT is read-only."); | |
22923 | return 1; | |
22924 | } | |
22925 | ||
22926 | ||
22927 | SWIGINTERN PyObject *NORMAL_FONT_get(void) { | |
22928 | PyObject *pyobj = 0; | |
22929 | ||
22930 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22931 | return pyobj; | |
22932 | } | |
22933 | ||
22934 | ||
22935 | SWIGINTERN int SMALL_FONT_set(PyObject *) { | |
22936 | SWIG_Error(SWIG_AttributeError,"Variable SMALL_FONT is read-only."); | |
22937 | return 1; | |
22938 | } | |
22939 | ||
22940 | ||
22941 | SWIGINTERN PyObject *SMALL_FONT_get(void) { | |
22942 | PyObject *pyobj = 0; | |
22943 | ||
22944 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22945 | return pyobj; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | SWIGINTERN int ITALIC_FONT_set(PyObject *) { | |
22950 | SWIG_Error(SWIG_AttributeError,"Variable ITALIC_FONT is read-only."); | |
22951 | return 1; | |
22952 | } | |
22953 | ||
22954 | ||
22955 | SWIGINTERN PyObject *ITALIC_FONT_get(void) { | |
22956 | PyObject *pyobj = 0; | |
22957 | ||
22958 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22959 | return pyobj; | |
22960 | } | |
22961 | ||
22962 | ||
22963 | SWIGINTERN int SWISS_FONT_set(PyObject *) { | |
22964 | SWIG_Error(SWIG_AttributeError,"Variable SWISS_FONT is read-only."); | |
22965 | return 1; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | SWIGINTERN PyObject *SWISS_FONT_get(void) { | |
22970 | PyObject *pyobj = 0; | |
22971 | ||
22972 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0 ); | |
22973 | return pyobj; | |
22974 | } | |
22975 | ||
22976 | ||
22977 | SWIGINTERN int RED_PEN_set(PyObject *) { | |
22978 | SWIG_Error(SWIG_AttributeError,"Variable RED_PEN is read-only."); | |
22979 | return 1; | |
22980 | } | |
22981 | ||
22982 | ||
22983 | SWIGINTERN PyObject *RED_PEN_get(void) { | |
22984 | PyObject *pyobj = 0; | |
22985 | ||
22986 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_PEN), SWIGTYPE_p_wxPen, 0 ); | |
22987 | return pyobj; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | SWIGINTERN int CYAN_PEN_set(PyObject *) { | |
22992 | SWIG_Error(SWIG_AttributeError,"Variable CYAN_PEN is read-only."); | |
22993 | return 1; | |
22994 | } | |
22995 | ||
22996 | ||
22997 | SWIGINTERN PyObject *CYAN_PEN_get(void) { | |
22998 | PyObject *pyobj = 0; | |
22999 | ||
23000 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23001 | return pyobj; | |
23002 | } | |
23003 | ||
23004 | ||
23005 | SWIGINTERN int GREEN_PEN_set(PyObject *) { | |
23006 | SWIG_Error(SWIG_AttributeError,"Variable GREEN_PEN is read-only."); | |
23007 | return 1; | |
23008 | } | |
23009 | ||
23010 | ||
23011 | SWIGINTERN PyObject *GREEN_PEN_get(void) { | |
23012 | PyObject *pyobj = 0; | |
23013 | ||
23014 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23015 | return pyobj; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | SWIGINTERN int BLACK_PEN_set(PyObject *) { | |
23020 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_PEN is read-only."); | |
23021 | return 1; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | SWIGINTERN PyObject *BLACK_PEN_get(void) { | |
23026 | PyObject *pyobj = 0; | |
23027 | ||
23028 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23029 | return pyobj; | |
23030 | } | |
23031 | ||
23032 | ||
23033 | SWIGINTERN int WHITE_PEN_set(PyObject *) { | |
23034 | SWIG_Error(SWIG_AttributeError,"Variable WHITE_PEN is read-only."); | |
23035 | return 1; | |
23036 | } | |
23037 | ||
23038 | ||
23039 | SWIGINTERN PyObject *WHITE_PEN_get(void) { | |
23040 | PyObject *pyobj = 0; | |
23041 | ||
23042 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23043 | return pyobj; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | SWIGINTERN int TRANSPARENT_PEN_set(PyObject *) { | |
23048 | SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_PEN is read-only."); | |
23049 | return 1; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | SWIGINTERN PyObject *TRANSPARENT_PEN_get(void) { | |
23054 | PyObject *pyobj = 0; | |
23055 | ||
23056 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23057 | return pyobj; | |
23058 | } | |
23059 | ||
23060 | ||
23061 | SWIGINTERN int BLACK_DASHED_PEN_set(PyObject *) { | |
23062 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_DASHED_PEN is read-only."); | |
23063 | return 1; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | SWIGINTERN PyObject *BLACK_DASHED_PEN_get(void) { | |
23068 | PyObject *pyobj = 0; | |
23069 | ||
23070 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23071 | return pyobj; | |
23072 | } | |
23073 | ||
23074 | ||
23075 | SWIGINTERN int GREY_PEN_set(PyObject *) { | |
23076 | SWIG_Error(SWIG_AttributeError,"Variable GREY_PEN is read-only."); | |
23077 | return 1; | |
23078 | } | |
23079 | ||
23080 | ||
23081 | SWIGINTERN PyObject *GREY_PEN_get(void) { | |
23082 | PyObject *pyobj = 0; | |
23083 | ||
23084 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23085 | return pyobj; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | SWIGINTERN int MEDIUM_GREY_PEN_set(PyObject *) { | |
23090 | SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
23091 | return 1; | |
23092 | } | |
23093 | ||
23094 | ||
23095 | SWIGINTERN PyObject *MEDIUM_GREY_PEN_get(void) { | |
23096 | PyObject *pyobj = 0; | |
23097 | ||
23098 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23099 | return pyobj; | |
23100 | } | |
23101 | ||
23102 | ||
23103 | SWIGINTERN int LIGHT_GREY_PEN_set(PyObject *) { | |
23104 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_PEN is read-only."); | |
23105 | return 1; | |
23106 | } | |
23107 | ||
23108 | ||
23109 | SWIGINTERN PyObject *LIGHT_GREY_PEN_get(void) { | |
23110 | PyObject *pyobj = 0; | |
23111 | ||
23112 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0 ); | |
23113 | return pyobj; | |
23114 | } | |
23115 | ||
23116 | ||
23117 | SWIGINTERN int BLUE_BRUSH_set(PyObject *) { | |
23118 | SWIG_Error(SWIG_AttributeError,"Variable BLUE_BRUSH is read-only."); | |
23119 | return 1; | |
23120 | } | |
23121 | ||
23122 | ||
23123 | SWIGINTERN PyObject *BLUE_BRUSH_get(void) { | |
23124 | PyObject *pyobj = 0; | |
23125 | ||
23126 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23127 | return pyobj; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | SWIGINTERN int GREEN_BRUSH_set(PyObject *) { | |
23132 | SWIG_Error(SWIG_AttributeError,"Variable GREEN_BRUSH is read-only."); | |
23133 | return 1; | |
23134 | } | |
23135 | ||
23136 | ||
23137 | SWIGINTERN PyObject *GREEN_BRUSH_get(void) { | |
23138 | PyObject *pyobj = 0; | |
23139 | ||
23140 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23141 | return pyobj; | |
23142 | } | |
23143 | ||
23144 | ||
23145 | SWIGINTERN int WHITE_BRUSH_set(PyObject *) { | |
23146 | SWIG_Error(SWIG_AttributeError,"Variable WHITE_BRUSH is read-only."); | |
23147 | return 1; | |
23148 | } | |
23149 | ||
23150 | ||
23151 | SWIGINTERN PyObject *WHITE_BRUSH_get(void) { | |
23152 | PyObject *pyobj = 0; | |
23153 | ||
23154 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23155 | return pyobj; | |
23156 | } | |
23157 | ||
23158 | ||
23159 | SWIGINTERN int BLACK_BRUSH_set(PyObject *) { | |
23160 | SWIG_Error(SWIG_AttributeError,"Variable BLACK_BRUSH is read-only."); | |
23161 | return 1; | |
23162 | } | |
23163 | ||
23164 | ||
23165 | SWIGINTERN PyObject *BLACK_BRUSH_get(void) { | |
23166 | PyObject *pyobj = 0; | |
23167 | ||
23168 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23169 | return pyobj; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | SWIGINTERN int TRANSPARENT_BRUSH_set(PyObject *) { | |
23174 | SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
23175 | return 1; | |
23176 | } | |
23177 | ||
23178 | ||
23179 | SWIGINTERN PyObject *TRANSPARENT_BRUSH_get(void) { | |
23180 | PyObject *pyobj = 0; | |
23181 | ||
23182 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23183 | return pyobj; | |
23184 | } | |
23185 | ||
23186 | ||
23187 | SWIGINTERN int CYAN_BRUSH_set(PyObject *) { | |
23188 | SWIG_Error(SWIG_AttributeError,"Variable CYAN_BRUSH is read-only."); | |
23189 | return 1; | |
23190 | } | |
23191 | ||
23192 | ||
23193 | SWIGINTERN PyObject *CYAN_BRUSH_get(void) { | |
23194 | PyObject *pyobj = 0; | |
23195 | ||
23196 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23197 | return pyobj; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | SWIGINTERN int RED_BRUSH_set(PyObject *) { | |
23202 | SWIG_Error(SWIG_AttributeError,"Variable RED_BRUSH is read-only."); | |
23203 | return 1; | |
23204 | } | |
23205 | ||
23206 | ||
23207 | SWIGINTERN PyObject *RED_BRUSH_get(void) { | |
23208 | PyObject *pyobj = 0; | |
23209 | ||
23210 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23211 | return pyobj; | |
23212 | } | |
23213 | ||
23214 | ||
23215 | SWIGINTERN int GREY_BRUSH_set(PyObject *) { | |
23216 | SWIG_Error(SWIG_AttributeError,"Variable GREY_BRUSH is read-only."); | |
23217 | return 1; | |
23218 | } | |
23219 | ||
23220 | ||
23221 | SWIGINTERN PyObject *GREY_BRUSH_get(void) { | |
23222 | PyObject *pyobj = 0; | |
23223 | ||
23224 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23225 | return pyobj; | |
23226 | } | |
23227 | ||
23228 | ||
23229 | SWIGINTERN int MEDIUM_GREY_BRUSH_set(PyObject *) { | |
23230 | SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
23231 | return 1; | |
23232 | } | |
23233 | ||
23234 | ||
23235 | SWIGINTERN PyObject *MEDIUM_GREY_BRUSH_get(void) { | |
23236 | PyObject *pyobj = 0; | |
23237 | ||
23238 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23239 | return pyobj; | |
23240 | } | |
23241 | ||
23242 | ||
23243 | SWIGINTERN int LIGHT_GREY_BRUSH_set(PyObject *) { | |
23244 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
23245 | return 1; | |
23246 | } | |
23247 | ||
23248 | ||
23249 | SWIGINTERN PyObject *LIGHT_GREY_BRUSH_get(void) { | |
23250 | PyObject *pyobj = 0; | |
23251 | ||
23252 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 ); | |
23253 | return pyobj; | |
23254 | } | |
23255 | ||
23256 | ||
23257 | SWIGINTERN int BLACK_set(PyObject *) { | |
23258 | SWIG_Error(SWIG_AttributeError,"Variable BLACK is read-only."); | |
23259 | return 1; | |
23260 | } | |
23261 | ||
23262 | ||
23263 | SWIGINTERN PyObject *BLACK_get(void) { | |
23264 | PyObject *pyobj = 0; | |
23265 | ||
23266 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK), SWIGTYPE_p_wxColour, 0 ); | |
23267 | return pyobj; | |
23268 | } | |
23269 | ||
23270 | ||
23271 | SWIGINTERN int WHITE_set(PyObject *) { | |
23272 | SWIG_Error(SWIG_AttributeError,"Variable WHITE is read-only."); | |
23273 | return 1; | |
23274 | } | |
23275 | ||
23276 | ||
23277 | SWIGINTERN PyObject *WHITE_get(void) { | |
23278 | PyObject *pyobj = 0; | |
23279 | ||
23280 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE), SWIGTYPE_p_wxColour, 0 ); | |
23281 | return pyobj; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | SWIGINTERN int RED_set(PyObject *) { | |
23286 | SWIG_Error(SWIG_AttributeError,"Variable RED is read-only."); | |
23287 | return 1; | |
23288 | } | |
23289 | ||
23290 | ||
23291 | SWIGINTERN PyObject *RED_get(void) { | |
23292 | PyObject *pyobj = 0; | |
23293 | ||
23294 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED), SWIGTYPE_p_wxColour, 0 ); | |
23295 | return pyobj; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | SWIGINTERN int BLUE_set(PyObject *) { | |
23300 | SWIG_Error(SWIG_AttributeError,"Variable BLUE is read-only."); | |
23301 | return 1; | |
23302 | } | |
23303 | ||
23304 | ||
23305 | SWIGINTERN PyObject *BLUE_get(void) { | |
23306 | PyObject *pyobj = 0; | |
23307 | ||
23308 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE), SWIGTYPE_p_wxColour, 0 ); | |
23309 | return pyobj; | |
23310 | } | |
23311 | ||
23312 | ||
23313 | SWIGINTERN int GREEN_set(PyObject *) { | |
23314 | SWIG_Error(SWIG_AttributeError,"Variable GREEN is read-only."); | |
23315 | return 1; | |
23316 | } | |
23317 | ||
23318 | ||
23319 | SWIGINTERN PyObject *GREEN_get(void) { | |
23320 | PyObject *pyobj = 0; | |
23321 | ||
23322 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN), SWIGTYPE_p_wxColour, 0 ); | |
23323 | return pyobj; | |
23324 | } | |
23325 | ||
23326 | ||
23327 | SWIGINTERN int CYAN_set(PyObject *) { | |
23328 | SWIG_Error(SWIG_AttributeError,"Variable CYAN is read-only."); | |
23329 | return 1; | |
23330 | } | |
23331 | ||
23332 | ||
23333 | SWIGINTERN PyObject *CYAN_get(void) { | |
23334 | PyObject *pyobj = 0; | |
23335 | ||
23336 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN), SWIGTYPE_p_wxColour, 0 ); | |
23337 | return pyobj; | |
23338 | } | |
23339 | ||
23340 | ||
23341 | SWIGINTERN int LIGHT_GREY_set(PyObject *) { | |
23342 | SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY is read-only."); | |
23343 | return 1; | |
23344 | } | |
23345 | ||
23346 | ||
23347 | SWIGINTERN PyObject *LIGHT_GREY_get(void) { | |
23348 | PyObject *pyobj = 0; | |
23349 | ||
23350 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0 ); | |
23351 | return pyobj; | |
23352 | } | |
23353 | ||
23354 | ||
23355 | SWIGINTERN int STANDARD_CURSOR_set(PyObject *) { | |
23356 | SWIG_Error(SWIG_AttributeError,"Variable STANDARD_CURSOR is read-only."); | |
23357 | return 1; | |
23358 | } | |
23359 | ||
23360 | ||
23361 | SWIGINTERN PyObject *STANDARD_CURSOR_get(void) { | |
23362 | PyObject *pyobj = 0; | |
23363 | ||
23364 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23365 | return pyobj; | |
23366 | } | |
23367 | ||
23368 | ||
23369 | SWIGINTERN int HOURGLASS_CURSOR_set(PyObject *) { | |
23370 | SWIG_Error(SWIG_AttributeError,"Variable HOURGLASS_CURSOR is read-only."); | |
23371 | return 1; | |
23372 | } | |
23373 | ||
23374 | ||
23375 | SWIGINTERN PyObject *HOURGLASS_CURSOR_get(void) { | |
23376 | PyObject *pyobj = 0; | |
23377 | ||
23378 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23379 | return pyobj; | |
23380 | } | |
23381 | ||
23382 | ||
23383 | SWIGINTERN int CROSS_CURSOR_set(PyObject *) { | |
23384 | SWIG_Error(SWIG_AttributeError,"Variable CROSS_CURSOR is read-only."); | |
23385 | return 1; | |
23386 | } | |
23387 | ||
23388 | ||
23389 | SWIGINTERN PyObject *CROSS_CURSOR_get(void) { | |
23390 | PyObject *pyobj = 0; | |
23391 | ||
23392 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0 ); | |
23393 | return pyobj; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | SWIGINTERN int NullBitmap_set(PyObject *) { | |
23398 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
23399 | return 1; | |
23400 | } | |
23401 | ||
23402 | ||
23403 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
23404 | PyObject *pyobj = 0; | |
23405 | ||
23406 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
23407 | return pyobj; | |
23408 | } | |
23409 | ||
23410 | ||
23411 | SWIGINTERN int NullIcon_set(PyObject *) { | |
23412 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
23413 | return 1; | |
23414 | } | |
23415 | ||
23416 | ||
23417 | SWIGINTERN PyObject *NullIcon_get(void) { | |
23418 | PyObject *pyobj = 0; | |
23419 | ||
23420 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
23421 | return pyobj; | |
23422 | } | |
23423 | ||
23424 | ||
23425 | SWIGINTERN int NullCursor_set(PyObject *) { | |
23426 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
23427 | return 1; | |
23428 | } | |
23429 | ||
23430 | ||
23431 | SWIGINTERN PyObject *NullCursor_get(void) { | |
23432 | PyObject *pyobj = 0; | |
23433 | ||
23434 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
23435 | return pyobj; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | SWIGINTERN int NullPen_set(PyObject *) { | |
23440 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
23441 | return 1; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | SWIGINTERN PyObject *NullPen_get(void) { | |
23446 | PyObject *pyobj = 0; | |
23447 | ||
23448 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
23449 | return pyobj; | |
23450 | } | |
23451 | ||
23452 | ||
23453 | SWIGINTERN int NullBrush_set(PyObject *) { | |
23454 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
23455 | return 1; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | SWIGINTERN PyObject *NullBrush_get(void) { | |
23460 | PyObject *pyobj = 0; | |
23461 | ||
23462 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
23463 | return pyobj; | |
23464 | } | |
23465 | ||
23466 | ||
23467 | SWIGINTERN int NullPalette_set(PyObject *) { | |
23468 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
23469 | return 1; | |
23470 | } | |
23471 | ||
23472 | ||
23473 | SWIGINTERN PyObject *NullPalette_get(void) { | |
23474 | PyObject *pyobj = 0; | |
23475 | ||
23476 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
23477 | return pyobj; | |
23478 | } | |
23479 | ||
23480 | ||
23481 | SWIGINTERN int NullFont_set(PyObject *) { | |
23482 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
23483 | return 1; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | SWIGINTERN PyObject *NullFont_get(void) { | |
23488 | PyObject *pyobj = 0; | |
23489 | ||
23490 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
23491 | return pyobj; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | SWIGINTERN int NullColour_set(PyObject *) { | |
23496 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
23497 | return 1; | |
23498 | } | |
23499 | ||
23500 | ||
23501 | SWIGINTERN PyObject *NullColour_get(void) { | |
23502 | PyObject *pyobj = 0; | |
23503 | ||
23504 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
23505 | return pyobj; | |
23506 | } | |
23507 | ||
23508 | ||
23509 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23510 | PyObject *resultobj = 0; | |
23511 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23512 | wxPen *arg2 = (wxPen *) 0 ; | |
23513 | void *argp1 = 0 ; | |
23514 | int res1 = 0 ; | |
23515 | void *argp2 = 0 ; | |
23516 | int res2 = 0 ; | |
23517 | PyObject * obj0 = 0 ; | |
23518 | PyObject * obj1 = 0 ; | |
23519 | char * kwnames[] = { | |
23520 | (char *) "self",(char *) "pen", NULL | |
23521 | }; | |
23522 | ||
23523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
23524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23525 | if (!SWIG_IsOK(res1)) { | |
23526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23527 | } | |
23528 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23529 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
23530 | if (!SWIG_IsOK(res2)) { | |
23531 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
23532 | } | |
23533 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23534 | { | |
23535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23536 | (arg1)->AddPen(arg2); | |
23537 | wxPyEndAllowThreads(__tstate); | |
23538 | if (PyErr_Occurred()) SWIG_fail; | |
23539 | } | |
23540 | resultobj = SWIG_Py_Void(); | |
23541 | return resultobj; | |
23542 | fail: | |
23543 | return NULL; | |
23544 | } | |
23545 | ||
23546 | ||
23547 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23548 | PyObject *resultobj = 0; | |
23549 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23550 | wxColour *arg2 = 0 ; | |
23551 | int arg3 ; | |
23552 | int arg4 ; | |
23553 | wxPen *result = 0 ; | |
23554 | void *argp1 = 0 ; | |
23555 | int res1 = 0 ; | |
23556 | wxColour temp2 ; | |
23557 | int val3 ; | |
23558 | int ecode3 = 0 ; | |
23559 | int val4 ; | |
23560 | int ecode4 = 0 ; | |
23561 | PyObject * obj0 = 0 ; | |
23562 | PyObject * obj1 = 0 ; | |
23563 | PyObject * obj2 = 0 ; | |
23564 | PyObject * obj3 = 0 ; | |
23565 | char * kwnames[] = { | |
23566 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
23567 | }; | |
23568 | ||
23569 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23570 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23571 | if (!SWIG_IsOK(res1)) { | |
23572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23573 | } | |
23574 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23575 | { | |
23576 | arg2 = &temp2; | |
23577 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23578 | } | |
23579 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23580 | if (!SWIG_IsOK(ecode3)) { | |
23581 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
23582 | } | |
23583 | arg3 = static_cast< int >(val3); | |
23584 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23585 | if (!SWIG_IsOK(ecode4)) { | |
23586 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
23587 | } | |
23588 | arg4 = static_cast< int >(val4); | |
23589 | { | |
23590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23591 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
23592 | wxPyEndAllowThreads(__tstate); | |
23593 | if (PyErr_Occurred()) SWIG_fail; | |
23594 | } | |
23595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
23596 | return resultobj; | |
23597 | fail: | |
23598 | return NULL; | |
23599 | } | |
23600 | ||
23601 | ||
23602 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23603 | PyObject *resultobj = 0; | |
23604 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23605 | wxPen *arg2 = (wxPen *) 0 ; | |
23606 | void *argp1 = 0 ; | |
23607 | int res1 = 0 ; | |
23608 | void *argp2 = 0 ; | |
23609 | int res2 = 0 ; | |
23610 | PyObject * obj0 = 0 ; | |
23611 | PyObject * obj1 = 0 ; | |
23612 | char * kwnames[] = { | |
23613 | (char *) "self",(char *) "pen", NULL | |
23614 | }; | |
23615 | ||
23616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
23617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23618 | if (!SWIG_IsOK(res1)) { | |
23619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23620 | } | |
23621 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
23623 | if (!SWIG_IsOK(res2)) { | |
23624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
23625 | } | |
23626 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23627 | { | |
23628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23629 | (arg1)->RemovePen(arg2); | |
23630 | wxPyEndAllowThreads(__tstate); | |
23631 | if (PyErr_Occurred()) SWIG_fail; | |
23632 | } | |
23633 | resultobj = SWIG_Py_Void(); | |
23634 | return resultobj; | |
23635 | fail: | |
23636 | return NULL; | |
23637 | } | |
23638 | ||
23639 | ||
23640 | SWIGINTERN PyObject *_wrap_PenList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23641 | PyObject *resultobj = 0; | |
23642 | wxPenList *arg1 = (wxPenList *) 0 ; | |
23643 | int result; | |
23644 | void *argp1 = 0 ; | |
23645 | int res1 = 0 ; | |
23646 | PyObject *swig_obj[1] ; | |
23647 | ||
23648 | if (!args) SWIG_fail; | |
23649 | swig_obj[0] = args; | |
23650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
23651 | if (!SWIG_IsOK(res1)) { | |
23652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_GetCount" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
23653 | } | |
23654 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
23655 | { | |
23656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23657 | result = (int)(arg1)->GetCount(); | |
23658 | wxPyEndAllowThreads(__tstate); | |
23659 | if (PyErr_Occurred()) SWIG_fail; | |
23660 | } | |
23661 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23662 | return resultobj; | |
23663 | fail: | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
23668 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23669 | PyObject *obj; | |
23670 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23671 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
23672 | return SWIG_Py_Void(); | |
23673 | } | |
23674 | ||
23675 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23676 | PyObject *resultobj = 0; | |
23677 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23678 | wxBrush *arg2 = (wxBrush *) 0 ; | |
23679 | void *argp1 = 0 ; | |
23680 | int res1 = 0 ; | |
23681 | void *argp2 = 0 ; | |
23682 | int res2 = 0 ; | |
23683 | PyObject * obj0 = 0 ; | |
23684 | PyObject * obj1 = 0 ; | |
23685 | char * kwnames[] = { | |
23686 | (char *) "self",(char *) "brush", NULL | |
23687 | }; | |
23688 | ||
23689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
23690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23691 | if (!SWIG_IsOK(res1)) { | |
23692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23693 | } | |
23694 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23695 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23696 | if (!SWIG_IsOK(res2)) { | |
23697 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
23698 | } | |
23699 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23700 | { | |
23701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23702 | (arg1)->AddBrush(arg2); | |
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
23706 | resultobj = SWIG_Py_Void(); | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj = 0; | |
23715 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23716 | wxColour *arg2 = 0 ; | |
23717 | int arg3 = (int) wxSOLID ; | |
23718 | wxBrush *result = 0 ; | |
23719 | void *argp1 = 0 ; | |
23720 | int res1 = 0 ; | |
23721 | wxColour temp2 ; | |
23722 | int val3 ; | |
23723 | int ecode3 = 0 ; | |
23724 | PyObject * obj0 = 0 ; | |
23725 | PyObject * obj1 = 0 ; | |
23726 | PyObject * obj2 = 0 ; | |
23727 | char * kwnames[] = { | |
23728 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
23729 | }; | |
23730 | ||
23731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23733 | if (!SWIG_IsOK(res1)) { | |
23734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23735 | } | |
23736 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23737 | { | |
23738 | arg2 = &temp2; | |
23739 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23740 | } | |
23741 | if (obj2) { | |
23742 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23743 | if (!SWIG_IsOK(ecode3)) { | |
23744 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
23745 | } | |
23746 | arg3 = static_cast< int >(val3); | |
23747 | } | |
23748 | { | |
23749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23750 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
23751 | wxPyEndAllowThreads(__tstate); | |
23752 | if (PyErr_Occurred()) SWIG_fail; | |
23753 | } | |
23754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23755 | return resultobj; | |
23756 | fail: | |
23757 | return NULL; | |
23758 | } | |
23759 | ||
23760 | ||
23761 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23762 | PyObject *resultobj = 0; | |
23763 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23764 | wxBrush *arg2 = (wxBrush *) 0 ; | |
23765 | void *argp1 = 0 ; | |
23766 | int res1 = 0 ; | |
23767 | void *argp2 = 0 ; | |
23768 | int res2 = 0 ; | |
23769 | PyObject * obj0 = 0 ; | |
23770 | PyObject * obj1 = 0 ; | |
23771 | char * kwnames[] = { | |
23772 | (char *) "self",(char *) "brush", NULL | |
23773 | }; | |
23774 | ||
23775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
23776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23777 | if (!SWIG_IsOK(res1)) { | |
23778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23779 | } | |
23780 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23781 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
23782 | if (!SWIG_IsOK(res2)) { | |
23783 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
23784 | } | |
23785 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23786 | { | |
23787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23788 | (arg1)->RemoveBrush(arg2); | |
23789 | wxPyEndAllowThreads(__tstate); | |
23790 | if (PyErr_Occurred()) SWIG_fail; | |
23791 | } | |
23792 | resultobj = SWIG_Py_Void(); | |
23793 | return resultobj; | |
23794 | fail: | |
23795 | return NULL; | |
23796 | } | |
23797 | ||
23798 | ||
23799 | SWIGINTERN PyObject *_wrap_BrushList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23800 | PyObject *resultobj = 0; | |
23801 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
23802 | int result; | |
23803 | void *argp1 = 0 ; | |
23804 | int res1 = 0 ; | |
23805 | PyObject *swig_obj[1] ; | |
23806 | ||
23807 | if (!args) SWIG_fail; | |
23808 | swig_obj[0] = args; | |
23809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23810 | if (!SWIG_IsOK(res1)) { | |
23811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_GetCount" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
23812 | } | |
23813 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | result = (int)(arg1)->GetCount(); | |
23817 | wxPyEndAllowThreads(__tstate); | |
23818 | if (PyErr_Occurred()) SWIG_fail; | |
23819 | } | |
23820 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | return NULL; | |
23824 | } | |
23825 | ||
23826 | ||
23827 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23828 | PyObject *obj; | |
23829 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23830 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
23831 | return SWIG_Py_Void(); | |
23832 | } | |
23833 | ||
23834 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23835 | PyObject *resultobj = 0; | |
23836 | wxColourDatabase *result = 0 ; | |
23837 | ||
23838 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
23839 | { | |
23840 | if (!wxPyCheckForApp()) SWIG_fail; | |
23841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23842 | result = (wxColourDatabase *)new wxColourDatabase(); | |
23843 | wxPyEndAllowThreads(__tstate); | |
23844 | if (PyErr_Occurred()) SWIG_fail; | |
23845 | } | |
23846 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
23847 | return resultobj; | |
23848 | fail: | |
23849 | return NULL; | |
23850 | } | |
23851 | ||
23852 | ||
23853 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23854 | PyObject *resultobj = 0; | |
23855 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23856 | void *argp1 = 0 ; | |
23857 | int res1 = 0 ; | |
23858 | PyObject *swig_obj[1] ; | |
23859 | ||
23860 | if (!args) SWIG_fail; | |
23861 | swig_obj[0] = args; | |
23862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
23863 | if (!SWIG_IsOK(res1)) { | |
23864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
23865 | } | |
23866 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23867 | { | |
23868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23869 | delete arg1; | |
23870 | ||
23871 | wxPyEndAllowThreads(__tstate); | |
23872 | if (PyErr_Occurred()) SWIG_fail; | |
23873 | } | |
23874 | resultobj = SWIG_Py_Void(); | |
23875 | return resultobj; | |
23876 | fail: | |
23877 | return NULL; | |
23878 | } | |
23879 | ||
23880 | ||
23881 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23882 | PyObject *resultobj = 0; | |
23883 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23884 | wxString *arg2 = 0 ; | |
23885 | wxColour result; | |
23886 | void *argp1 = 0 ; | |
23887 | int res1 = 0 ; | |
23888 | bool temp2 = false ; | |
23889 | PyObject * obj0 = 0 ; | |
23890 | PyObject * obj1 = 0 ; | |
23891 | char * kwnames[] = { | |
23892 | (char *) "self",(char *) "name", NULL | |
23893 | }; | |
23894 | ||
23895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
23896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23897 | if (!SWIG_IsOK(res1)) { | |
23898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23899 | } | |
23900 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23901 | { | |
23902 | arg2 = wxString_in_helper(obj1); | |
23903 | if (arg2 == NULL) SWIG_fail; | |
23904 | temp2 = true; | |
23905 | } | |
23906 | { | |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23908 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
23909 | wxPyEndAllowThreads(__tstate); | |
23910 | if (PyErr_Occurred()) SWIG_fail; | |
23911 | } | |
23912 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23913 | { | |
23914 | if (temp2) | |
23915 | delete arg2; | |
23916 | } | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | { | |
23920 | if (temp2) | |
23921 | delete arg2; | |
23922 | } | |
23923 | return NULL; | |
23924 | } | |
23925 | ||
23926 | ||
23927 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23928 | PyObject *resultobj = 0; | |
23929 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23930 | wxColour *arg2 = 0 ; | |
23931 | wxString result; | |
23932 | void *argp1 = 0 ; | |
23933 | int res1 = 0 ; | |
23934 | wxColour temp2 ; | |
23935 | PyObject * obj0 = 0 ; | |
23936 | PyObject * obj1 = 0 ; | |
23937 | char * kwnames[] = { | |
23938 | (char *) "self",(char *) "colour", NULL | |
23939 | }; | |
23940 | ||
23941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23943 | if (!SWIG_IsOK(res1)) { | |
23944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23945 | } | |
23946 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23947 | { | |
23948 | arg2 = &temp2; | |
23949 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23950 | } | |
23951 | { | |
23952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23953 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
23954 | wxPyEndAllowThreads(__tstate); | |
23955 | if (PyErr_Occurred()) SWIG_fail; | |
23956 | } | |
23957 | { | |
23958 | #if wxUSE_UNICODE | |
23959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23960 | #else | |
23961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23962 | #endif | |
23963 | } | |
23964 | return resultobj; | |
23965 | fail: | |
23966 | return NULL; | |
23967 | } | |
23968 | ||
23969 | ||
23970 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23971 | PyObject *resultobj = 0; | |
23972 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23973 | wxString *arg2 = 0 ; | |
23974 | wxColour *arg3 = 0 ; | |
23975 | void *argp1 = 0 ; | |
23976 | int res1 = 0 ; | |
23977 | bool temp2 = false ; | |
23978 | wxColour temp3 ; | |
23979 | PyObject * obj0 = 0 ; | |
23980 | PyObject * obj1 = 0 ; | |
23981 | PyObject * obj2 = 0 ; | |
23982 | char * kwnames[] = { | |
23983 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
23984 | }; | |
23985 | ||
23986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23988 | if (!SWIG_IsOK(res1)) { | |
23989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
23990 | } | |
23991 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23992 | { | |
23993 | arg2 = wxString_in_helper(obj1); | |
23994 | if (arg2 == NULL) SWIG_fail; | |
23995 | temp2 = true; | |
23996 | } | |
23997 | { | |
23998 | arg3 = &temp3; | |
23999 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24000 | } | |
24001 | { | |
24002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24003 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
24004 | wxPyEndAllowThreads(__tstate); | |
24005 | if (PyErr_Occurred()) SWIG_fail; | |
24006 | } | |
24007 | resultobj = SWIG_Py_Void(); | |
24008 | { | |
24009 | if (temp2) | |
24010 | delete arg2; | |
24011 | } | |
24012 | return resultobj; | |
24013 | fail: | |
24014 | { | |
24015 | if (temp2) | |
24016 | delete arg2; | |
24017 | } | |
24018 | return NULL; | |
24019 | } | |
24020 | ||
24021 | ||
24022 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24023 | PyObject *resultobj = 0; | |
24024 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
24025 | wxString *arg2 = 0 ; | |
24026 | int arg3 ; | |
24027 | int arg4 ; | |
24028 | int arg5 ; | |
24029 | void *argp1 = 0 ; | |
24030 | int res1 = 0 ; | |
24031 | bool temp2 = false ; | |
24032 | int val3 ; | |
24033 | int ecode3 = 0 ; | |
24034 | int val4 ; | |
24035 | int ecode4 = 0 ; | |
24036 | int val5 ; | |
24037 | int ecode5 = 0 ; | |
24038 | PyObject * obj0 = 0 ; | |
24039 | PyObject * obj1 = 0 ; | |
24040 | PyObject * obj2 = 0 ; | |
24041 | PyObject * obj3 = 0 ; | |
24042 | PyObject * obj4 = 0 ; | |
24043 | char * kwnames[] = { | |
24044 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
24045 | }; | |
24046 | ||
24047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
24049 | if (!SWIG_IsOK(res1)) { | |
24050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
24051 | } | |
24052 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
24053 | { | |
24054 | arg2 = wxString_in_helper(obj1); | |
24055 | if (arg2 == NULL) SWIG_fail; | |
24056 | temp2 = true; | |
24057 | } | |
24058 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24059 | if (!SWIG_IsOK(ecode3)) { | |
24060 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); | |
24061 | } | |
24062 | arg3 = static_cast< int >(val3); | |
24063 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24064 | if (!SWIG_IsOK(ecode4)) { | |
24065 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); | |
24066 | } | |
24067 | arg4 = static_cast< int >(val4); | |
24068 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24069 | if (!SWIG_IsOK(ecode5)) { | |
24070 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); | |
24071 | } | |
24072 | arg5 = static_cast< int >(val5); | |
24073 | { | |
24074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24075 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
24076 | wxPyEndAllowThreads(__tstate); | |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
24078 | } | |
24079 | resultobj = SWIG_Py_Void(); | |
24080 | { | |
24081 | if (temp2) | |
24082 | delete arg2; | |
24083 | } | |
24084 | return resultobj; | |
24085 | fail: | |
24086 | { | |
24087 | if (temp2) | |
24088 | delete arg2; | |
24089 | } | |
24090 | return NULL; | |
24091 | } | |
24092 | ||
24093 | ||
24094 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24095 | PyObject *obj; | |
24096 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24097 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
24098 | return SWIG_Py_Void(); | |
24099 | } | |
24100 | ||
24101 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24102 | return SWIG_Python_InitShadowInstance(args); | |
24103 | } | |
24104 | ||
24105 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24106 | PyObject *resultobj = 0; | |
24107 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24108 | wxFont *arg2 = (wxFont *) 0 ; | |
24109 | void *argp1 = 0 ; | |
24110 | int res1 = 0 ; | |
24111 | void *argp2 = 0 ; | |
24112 | int res2 = 0 ; | |
24113 | PyObject * obj0 = 0 ; | |
24114 | PyObject * obj1 = 0 ; | |
24115 | char * kwnames[] = { | |
24116 | (char *) "self",(char *) "font", NULL | |
24117 | }; | |
24118 | ||
24119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
24120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24121 | if (!SWIG_IsOK(res1)) { | |
24122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24123 | } | |
24124 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24125 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
24126 | if (!SWIG_IsOK(res2)) { | |
24127 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
24128 | } | |
24129 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
24130 | { | |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24132 | (arg1)->AddFont(arg2); | |
24133 | wxPyEndAllowThreads(__tstate); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | } | |
24136 | resultobj = SWIG_Py_Void(); | |
24137 | return resultobj; | |
24138 | fail: | |
24139 | return NULL; | |
24140 | } | |
24141 | ||
24142 | ||
24143 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24144 | PyObject *resultobj = 0; | |
24145 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24146 | int arg2 ; | |
24147 | int arg3 ; | |
24148 | int arg4 ; | |
24149 | int arg5 ; | |
24150 | bool arg6 = (bool) false ; | |
24151 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
24152 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24153 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
24154 | wxFont *result = 0 ; | |
24155 | void *argp1 = 0 ; | |
24156 | int res1 = 0 ; | |
24157 | int val2 ; | |
24158 | int ecode2 = 0 ; | |
24159 | int val3 ; | |
24160 | int ecode3 = 0 ; | |
24161 | int val4 ; | |
24162 | int ecode4 = 0 ; | |
24163 | int val5 ; | |
24164 | int ecode5 = 0 ; | |
24165 | bool val6 ; | |
24166 | int ecode6 = 0 ; | |
24167 | bool temp7 = false ; | |
24168 | int val8 ; | |
24169 | int ecode8 = 0 ; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | PyObject * obj1 = 0 ; | |
24172 | PyObject * obj2 = 0 ; | |
24173 | PyObject * obj3 = 0 ; | |
24174 | PyObject * obj4 = 0 ; | |
24175 | PyObject * obj5 = 0 ; | |
24176 | PyObject * obj6 = 0 ; | |
24177 | PyObject * obj7 = 0 ; | |
24178 | char * kwnames[] = { | |
24179 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
24180 | }; | |
24181 | ||
24182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
24183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24184 | if (!SWIG_IsOK(res1)) { | |
24185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24186 | } | |
24187 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24188 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24189 | if (!SWIG_IsOK(ecode2)) { | |
24190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
24191 | } | |
24192 | arg2 = static_cast< int >(val2); | |
24193 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24194 | if (!SWIG_IsOK(ecode3)) { | |
24195 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
24196 | } | |
24197 | arg3 = static_cast< int >(val3); | |
24198 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24199 | if (!SWIG_IsOK(ecode4)) { | |
24200 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
24201 | } | |
24202 | arg4 = static_cast< int >(val4); | |
24203 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24204 | if (!SWIG_IsOK(ecode5)) { | |
24205 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
24206 | } | |
24207 | arg5 = static_cast< int >(val5); | |
24208 | if (obj5) { | |
24209 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
24210 | if (!SWIG_IsOK(ecode6)) { | |
24211 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
24212 | } | |
24213 | arg6 = static_cast< bool >(val6); | |
24214 | } | |
24215 | if (obj6) { | |
093d3ff1 | 24216 | { |
554f62e9 RD |
24217 | arg7 = wxString_in_helper(obj6); |
24218 | if (arg7 == NULL) SWIG_fail; | |
24219 | temp7 = true; | |
093d3ff1 | 24220 | } |
554f62e9 RD |
24221 | } |
24222 | if (obj7) { | |
24223 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
24224 | if (!SWIG_IsOK(ecode8)) { | |
24225 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
24226 | } | |
24227 | arg8 = static_cast< wxFontEncoding >(val8); | |
24228 | } | |
24229 | { | |
24230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24231 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); | |
24232 | wxPyEndAllowThreads(__tstate); | |
24233 | if (PyErr_Occurred()) SWIG_fail; | |
24234 | } | |
24235 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
24236 | { | |
24237 | if (temp7) | |
24238 | delete arg7; | |
24239 | } | |
24240 | return resultobj; | |
24241 | fail: | |
24242 | { | |
24243 | if (temp7) | |
24244 | delete arg7; | |
24245 | } | |
24246 | return NULL; | |
24247 | } | |
24248 | ||
24249 | ||
24250 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24251 | PyObject *resultobj = 0; | |
24252 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24253 | wxFont *arg2 = (wxFont *) 0 ; | |
24254 | void *argp1 = 0 ; | |
24255 | int res1 = 0 ; | |
24256 | void *argp2 = 0 ; | |
24257 | int res2 = 0 ; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | PyObject * obj1 = 0 ; | |
24260 | char * kwnames[] = { | |
24261 | (char *) "self",(char *) "font", NULL | |
24262 | }; | |
24263 | ||
24264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
24265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24266 | if (!SWIG_IsOK(res1)) { | |
24267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24268 | } | |
24269 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24270 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
24271 | if (!SWIG_IsOK(res2)) { | |
24272 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
24273 | } | |
24274 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | (arg1)->RemoveFont(arg2); | |
24278 | wxPyEndAllowThreads(__tstate); | |
24279 | if (PyErr_Occurred()) SWIG_fail; | |
24280 | } | |
24281 | resultobj = SWIG_Py_Void(); | |
24282 | return resultobj; | |
24283 | fail: | |
24284 | return NULL; | |
24285 | } | |
24286 | ||
24287 | ||
24288 | SWIGINTERN PyObject *_wrap_FontList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24289 | PyObject *resultobj = 0; | |
24290 | wxFontList *arg1 = (wxFontList *) 0 ; | |
24291 | int result; | |
24292 | void *argp1 = 0 ; | |
24293 | int res1 = 0 ; | |
24294 | PyObject *swig_obj[1] ; | |
24295 | ||
24296 | if (!args) SWIG_fail; | |
24297 | swig_obj[0] = args; | |
24298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
24299 | if (!SWIG_IsOK(res1)) { | |
24300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_GetCount" "', expected argument " "1"" of type '" "wxFontList *""'"); | |
24301 | } | |
24302 | arg1 = reinterpret_cast< wxFontList * >(argp1); | |
24303 | { | |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | result = (int)(arg1)->GetCount(); | |
24306 | wxPyEndAllowThreads(__tstate); | |
24307 | if (PyErr_Occurred()) SWIG_fail; | |
24308 | } | |
24309 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24310 | return resultobj; | |
24311 | fail: | |
24312 | return NULL; | |
24313 | } | |
24314 | ||
24315 | ||
24316 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24317 | PyObject *obj; | |
24318 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24319 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); | |
24320 | return SWIG_Py_Void(); | |
24321 | } | |
24322 | ||
24323 | SWIGINTERN int TheFontList_set(PyObject *) { | |
24324 | SWIG_Error(SWIG_AttributeError,"Variable TheFontList is read-only."); | |
24325 | return 1; | |
24326 | } | |
24327 | ||
24328 | ||
24329 | SWIGINTERN PyObject *TheFontList_get(void) { | |
24330 | PyObject *pyobj = 0; | |
24331 | ||
24332 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheFontList), SWIGTYPE_p_wxFontList, 0 ); | |
24333 | return pyobj; | |
24334 | } | |
24335 | ||
24336 | ||
24337 | SWIGINTERN int ThePenList_set(PyObject *) { | |
24338 | SWIG_Error(SWIG_AttributeError,"Variable ThePenList is read-only."); | |
24339 | return 1; | |
24340 | } | |
24341 | ||
24342 | ||
24343 | SWIGINTERN PyObject *ThePenList_get(void) { | |
24344 | PyObject *pyobj = 0; | |
24345 | ||
24346 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxThePenList), SWIGTYPE_p_wxPenList, 0 ); | |
24347 | return pyobj; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | SWIGINTERN int TheBrushList_set(PyObject *) { | |
24352 | SWIG_Error(SWIG_AttributeError,"Variable TheBrushList is read-only."); | |
24353 | return 1; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | SWIGINTERN PyObject *TheBrushList_get(void) { | |
24358 | PyObject *pyobj = 0; | |
24359 | ||
24360 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0 ); | |
24361 | return pyobj; | |
24362 | } | |
24363 | ||
24364 | ||
24365 | SWIGINTERN int TheColourDatabase_set(PyObject *) { | |
24366 | SWIG_Error(SWIG_AttributeError,"Variable TheColourDatabase is read-only."); | |
24367 | return 1; | |
24368 | } | |
24369 | ||
24370 | ||
24371 | SWIGINTERN PyObject *TheColourDatabase_get(void) { | |
24372 | PyObject *pyobj = 0; | |
24373 | ||
24374 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0 ); | |
24375 | return pyobj; | |
24376 | } | |
24377 | ||
24378 | ||
24379 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24380 | PyObject *resultobj = 0; | |
24381 | wxEffects *result = 0 ; | |
24382 | ||
24383 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
24384 | { | |
24385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24386 | result = (wxEffects *)new wxEffects(); | |
24387 | wxPyEndAllowThreads(__tstate); | |
24388 | if (PyErr_Occurred()) SWIG_fail; | |
24389 | } | |
24390 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
24391 | return resultobj; | |
24392 | fail: | |
24393 | return NULL; | |
24394 | } | |
24395 | ||
24396 | ||
24397 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24398 | PyObject *resultobj = 0; | |
24399 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24400 | wxColour result; | |
24401 | void *argp1 = 0 ; | |
24402 | int res1 = 0 ; | |
24403 | PyObject *swig_obj[1] ; | |
24404 | ||
24405 | if (!args) SWIG_fail; | |
24406 | swig_obj[0] = args; | |
24407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24408 | if (!SWIG_IsOK(res1)) { | |
24409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24410 | } | |
24411 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24412 | { | |
24413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24414 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24419 | return resultobj; | |
24420 | fail: | |
24421 | return NULL; | |
24422 | } | |
24423 | ||
24424 | ||
24425 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24426 | PyObject *resultobj = 0; | |
24427 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24428 | wxColour result; | |
24429 | void *argp1 = 0 ; | |
24430 | int res1 = 0 ; | |
24431 | PyObject *swig_obj[1] ; | |
24432 | ||
24433 | if (!args) SWIG_fail; | |
24434 | swig_obj[0] = args; | |
24435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24436 | if (!SWIG_IsOK(res1)) { | |
24437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24438 | } | |
24439 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24440 | { | |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24442 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
24443 | wxPyEndAllowThreads(__tstate); | |
24444 | if (PyErr_Occurred()) SWIG_fail; | |
24445 | } | |
24446 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24447 | return resultobj; | |
24448 | fail: | |
24449 | return NULL; | |
24450 | } | |
24451 | ||
24452 | ||
24453 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24454 | PyObject *resultobj = 0; | |
24455 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24456 | wxColour result; | |
24457 | void *argp1 = 0 ; | |
24458 | int res1 = 0 ; | |
24459 | PyObject *swig_obj[1] ; | |
24460 | ||
24461 | if (!args) SWIG_fail; | |
24462 | swig_obj[0] = args; | |
24463 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24464 | if (!SWIG_IsOK(res1)) { | |
24465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24466 | } | |
24467 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24468 | { | |
24469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24470 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
24471 | wxPyEndAllowThreads(__tstate); | |
24472 | if (PyErr_Occurred()) SWIG_fail; | |
24473 | } | |
24474 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24475 | return resultobj; | |
24476 | fail: | |
24477 | return NULL; | |
24478 | } | |
24479 | ||
24480 | ||
24481 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24482 | PyObject *resultobj = 0; | |
24483 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24484 | wxColour result; | |
24485 | void *argp1 = 0 ; | |
24486 | int res1 = 0 ; | |
24487 | PyObject *swig_obj[1] ; | |
24488 | ||
24489 | if (!args) SWIG_fail; | |
24490 | swig_obj[0] = args; | |
24491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24492 | if (!SWIG_IsOK(res1)) { | |
24493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24494 | } | |
24495 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24496 | { | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
24502 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24503 | return resultobj; | |
24504 | fail: | |
24505 | return NULL; | |
24506 | } | |
24507 | ||
24508 | ||
24509 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24510 | PyObject *resultobj = 0; | |
24511 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24512 | wxColour result; | |
24513 | void *argp1 = 0 ; | |
24514 | int res1 = 0 ; | |
24515 | PyObject *swig_obj[1] ; | |
24516 | ||
24517 | if (!args) SWIG_fail; | |
24518 | swig_obj[0] = args; | |
24519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24520 | if (!SWIG_IsOK(res1)) { | |
24521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
24522 | } | |
24523 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24524 | { | |
24525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24526 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
24527 | wxPyEndAllowThreads(__tstate); | |
24528 | if (PyErr_Occurred()) SWIG_fail; | |
24529 | } | |
24530 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
24531 | return resultobj; | |
24532 | fail: | |
24533 | return NULL; | |
24534 | } | |
24535 | ||
24536 | ||
24537 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24538 | PyObject *resultobj = 0; | |
24539 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24540 | wxColour *arg2 = 0 ; | |
24541 | void *argp1 = 0 ; | |
24542 | int res1 = 0 ; | |
24543 | wxColour temp2 ; | |
24544 | PyObject * obj0 = 0 ; | |
24545 | PyObject * obj1 = 0 ; | |
24546 | char * kwnames[] = { | |
24547 | (char *) "self",(char *) "c", NULL | |
24548 | }; | |
24549 | ||
24550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24552 | if (!SWIG_IsOK(res1)) { | |
24553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24554 | } | |
24555 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24556 | { | |
24557 | arg2 = &temp2; | |
24558 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24559 | } | |
24560 | { | |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
24566 | resultobj = SWIG_Py_Void(); | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
24573 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24574 | PyObject *resultobj = 0; | |
24575 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24576 | wxColour *arg2 = 0 ; | |
24577 | void *argp1 = 0 ; | |
24578 | int res1 = 0 ; | |
24579 | wxColour temp2 ; | |
24580 | PyObject * obj0 = 0 ; | |
24581 | PyObject * obj1 = 0 ; | |
24582 | char * kwnames[] = { | |
24583 | (char *) "self",(char *) "c", NULL | |
24584 | }; | |
24585 | ||
24586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24588 | if (!SWIG_IsOK(res1)) { | |
24589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24590 | } | |
24591 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24592 | { | |
24593 | arg2 = &temp2; | |
24594 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24595 | } | |
24596 | { | |
24597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24598 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
24599 | wxPyEndAllowThreads(__tstate); | |
24600 | if (PyErr_Occurred()) SWIG_fail; | |
24601 | } | |
24602 | resultobj = SWIG_Py_Void(); | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
24609 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24610 | PyObject *resultobj = 0; | |
24611 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24612 | wxColour *arg2 = 0 ; | |
24613 | void *argp1 = 0 ; | |
24614 | int res1 = 0 ; | |
24615 | wxColour temp2 ; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | PyObject * obj1 = 0 ; | |
24618 | char * kwnames[] = { | |
24619 | (char *) "self",(char *) "c", NULL | |
24620 | }; | |
24621 | ||
24622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24624 | if (!SWIG_IsOK(res1)) { | |
24625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24626 | } | |
24627 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24628 | { | |
24629 | arg2 = &temp2; | |
24630 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24631 | } | |
24632 | { | |
24633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24634 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
24635 | wxPyEndAllowThreads(__tstate); | |
24636 | if (PyErr_Occurred()) SWIG_fail; | |
24637 | } | |
24638 | resultobj = SWIG_Py_Void(); | |
24639 | return resultobj; | |
24640 | fail: | |
24641 | return NULL; | |
24642 | } | |
24643 | ||
24644 | ||
24645 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24646 | PyObject *resultobj = 0; | |
24647 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24648 | wxColour *arg2 = 0 ; | |
24649 | void *argp1 = 0 ; | |
24650 | int res1 = 0 ; | |
24651 | wxColour temp2 ; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | PyObject * obj1 = 0 ; | |
24654 | char * kwnames[] = { | |
24655 | (char *) "self",(char *) "c", NULL | |
24656 | }; | |
24657 | ||
24658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24660 | if (!SWIG_IsOK(res1)) { | |
24661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24662 | } | |
24663 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24664 | { | |
24665 | arg2 = &temp2; | |
24666 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
24674 | resultobj = SWIG_Py_Void(); | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
24681 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24682 | PyObject *resultobj = 0; | |
24683 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24684 | wxColour *arg2 = 0 ; | |
24685 | void *argp1 = 0 ; | |
24686 | int res1 = 0 ; | |
24687 | wxColour temp2 ; | |
24688 | PyObject * obj0 = 0 ; | |
24689 | PyObject * obj1 = 0 ; | |
24690 | char * kwnames[] = { | |
24691 | (char *) "self",(char *) "c", NULL | |
24692 | }; | |
24693 | ||
24694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
24695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24696 | if (!SWIG_IsOK(res1)) { | |
24697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24698 | } | |
24699 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24700 | { | |
24701 | arg2 = &temp2; | |
24702 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24703 | } | |
24704 | { | |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
24707 | wxPyEndAllowThreads(__tstate); | |
24708 | if (PyErr_Occurred()) SWIG_fail; | |
24709 | } | |
24710 | resultobj = SWIG_Py_Void(); | |
24711 | return resultobj; | |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24718 | PyObject *resultobj = 0; | |
24719 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24720 | wxColour *arg2 = 0 ; | |
24721 | wxColour *arg3 = 0 ; | |
24722 | wxColour *arg4 = 0 ; | |
24723 | wxColour *arg5 = 0 ; | |
24724 | wxColour *arg6 = 0 ; | |
24725 | void *argp1 = 0 ; | |
24726 | int res1 = 0 ; | |
24727 | wxColour temp2 ; | |
24728 | wxColour temp3 ; | |
24729 | wxColour temp4 ; | |
24730 | wxColour temp5 ; | |
24731 | wxColour temp6 ; | |
24732 | PyObject * obj0 = 0 ; | |
24733 | PyObject * obj1 = 0 ; | |
24734 | PyObject * obj2 = 0 ; | |
24735 | PyObject * obj3 = 0 ; | |
24736 | PyObject * obj4 = 0 ; | |
24737 | PyObject * obj5 = 0 ; | |
24738 | char * kwnames[] = { | |
24739 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
24740 | }; | |
24741 | ||
24742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
24743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24744 | if (!SWIG_IsOK(res1)) { | |
24745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24746 | } | |
24747 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24748 | { | |
24749 | arg2 = &temp2; | |
24750 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24751 | } | |
24752 | { | |
24753 | arg3 = &temp3; | |
24754 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24755 | } | |
24756 | { | |
24757 | arg4 = &temp4; | |
24758 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
24759 | } | |
24760 | { | |
24761 | arg5 = &temp5; | |
24762 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
24763 | } | |
24764 | { | |
24765 | arg6 = &temp6; | |
24766 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
24767 | } | |
24768 | { | |
24769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24770 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
24771 | wxPyEndAllowThreads(__tstate); | |
24772 | if (PyErr_Occurred()) SWIG_fail; | |
24773 | } | |
24774 | resultobj = SWIG_Py_Void(); | |
24775 | return resultobj; | |
24776 | fail: | |
24777 | return NULL; | |
24778 | } | |
24779 | ||
24780 | ||
24781 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24782 | PyObject *resultobj = 0; | |
24783 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24784 | wxDC *arg2 = 0 ; | |
24785 | wxRect *arg3 = 0 ; | |
24786 | int arg4 = (int) 1 ; | |
24787 | void *argp1 = 0 ; | |
24788 | int res1 = 0 ; | |
24789 | void *argp2 = 0 ; | |
24790 | int res2 = 0 ; | |
24791 | wxRect temp3 ; | |
24792 | int val4 ; | |
24793 | int ecode4 = 0 ; | |
24794 | PyObject * obj0 = 0 ; | |
24795 | PyObject * obj1 = 0 ; | |
24796 | PyObject * obj2 = 0 ; | |
24797 | PyObject * obj3 = 0 ; | |
24798 | char * kwnames[] = { | |
24799 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
24800 | }; | |
24801 | ||
24802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24804 | if (!SWIG_IsOK(res1)) { | |
24805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24806 | } | |
24807 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24808 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
24809 | if (!SWIG_IsOK(res2)) { | |
24810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
24811 | } | |
24812 | if (!argp2) { | |
24813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
24814 | } | |
24815 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
24816 | { | |
24817 | arg3 = &temp3; | |
24818 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
24819 | } | |
24820 | if (obj3) { | |
24821 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24822 | if (!SWIG_IsOK(ecode4)) { | |
24823 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
24824 | } | |
24825 | arg4 = static_cast< int >(val4); | |
24826 | } | |
24827 | { | |
24828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24829 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
24830 | wxPyEndAllowThreads(__tstate); | |
24831 | if (PyErr_Occurred()) SWIG_fail; | |
24832 | } | |
24833 | resultobj = SWIG_Py_Void(); | |
24834 | return resultobj; | |
24835 | fail: | |
24836 | return NULL; | |
24837 | } | |
24838 | ||
24839 | ||
24840 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24841 | PyObject *resultobj = 0; | |
24842 | wxEffects *arg1 = (wxEffects *) 0 ; | |
24843 | wxRect *arg2 = 0 ; | |
24844 | wxDC *arg3 = 0 ; | |
24845 | wxBitmap *arg4 = 0 ; | |
24846 | bool result; | |
24847 | void *argp1 = 0 ; | |
24848 | int res1 = 0 ; | |
24849 | wxRect temp2 ; | |
24850 | void *argp3 = 0 ; | |
24851 | int res3 = 0 ; | |
24852 | void *argp4 = 0 ; | |
24853 | int res4 = 0 ; | |
24854 | PyObject * obj0 = 0 ; | |
24855 | PyObject * obj1 = 0 ; | |
24856 | PyObject * obj2 = 0 ; | |
24857 | PyObject * obj3 = 0 ; | |
24858 | char * kwnames[] = { | |
24859 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
24860 | }; | |
24861 | ||
24862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
24864 | if (!SWIG_IsOK(res1)) { | |
24865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
24866 | } | |
24867 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
24868 | { | |
24869 | arg2 = &temp2; | |
24870 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24871 | } | |
24872 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24873 | if (!SWIG_IsOK(res3)) { | |
24874 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24875 | } | |
24876 | if (!argp3) { | |
24877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24878 | } | |
24879 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24880 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
24881 | if (!SWIG_IsOK(res4)) { | |
24882 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
24883 | } | |
24884 | if (!argp4) { | |
24885 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
24886 | } | |
24887 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
24888 | { | |
24889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24890 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
24891 | wxPyEndAllowThreads(__tstate); | |
24892 | if (PyErr_Occurred()) SWIG_fail; | |
24893 | } | |
24894 | { | |
24895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24896 | } | |
24897 | return resultobj; | |
24898 | fail: | |
24899 | return NULL; | |
24900 | } | |
24901 | ||
24902 | ||
24903 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24904 | PyObject *obj; | |
24905 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24906 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
24907 | return SWIG_Py_Void(); | |
24908 | } | |
24909 | ||
24910 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24911 | return SWIG_Python_InitShadowInstance(args); | |
24912 | } | |
24913 | ||
24914 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24915 | PyObject *resultobj = 0; | |
24916 | int arg1 ; | |
24917 | int arg2 ; | |
24918 | bool arg3 ; | |
24919 | wxSplitterRenderParams *result = 0 ; | |
24920 | int val1 ; | |
24921 | int ecode1 = 0 ; | |
24922 | int val2 ; | |
24923 | int ecode2 = 0 ; | |
24924 | bool val3 ; | |
24925 | int ecode3 = 0 ; | |
24926 | PyObject * obj0 = 0 ; | |
24927 | PyObject * obj1 = 0 ; | |
24928 | PyObject * obj2 = 0 ; | |
24929 | char * kwnames[] = { | |
24930 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
24931 | }; | |
24932 | ||
24933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24934 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24935 | if (!SWIG_IsOK(ecode1)) { | |
24936 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
24937 | } | |
24938 | arg1 = static_cast< int >(val1); | |
24939 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24940 | if (!SWIG_IsOK(ecode2)) { | |
24941 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
24942 | } | |
24943 | arg2 = static_cast< int >(val2); | |
24944 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
24945 | if (!SWIG_IsOK(ecode3)) { | |
24946 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
24947 | } | |
24948 | arg3 = static_cast< bool >(val3); | |
24949 | { | |
24950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24951 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
24952 | wxPyEndAllowThreads(__tstate); | |
24953 | if (PyErr_Occurred()) SWIG_fail; | |
24954 | } | |
24955 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
24956 | return resultobj; | |
24957 | fail: | |
24958 | return NULL; | |
24959 | } | |
24960 | ||
24961 | ||
24962 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24963 | PyObject *resultobj = 0; | |
24964 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24965 | void *argp1 = 0 ; | |
24966 | int res1 = 0 ; | |
24967 | PyObject *swig_obj[1] ; | |
24968 | ||
24969 | if (!args) SWIG_fail; | |
24970 | swig_obj[0] = args; | |
24971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
24972 | if (!SWIG_IsOK(res1)) { | |
24973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24974 | } | |
24975 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24976 | { | |
24977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24978 | delete arg1; | |
24979 | ||
24980 | wxPyEndAllowThreads(__tstate); | |
24981 | if (PyErr_Occurred()) SWIG_fail; | |
24982 | } | |
24983 | resultobj = SWIG_Py_Void(); | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
24990 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24991 | PyObject *resultobj = 0; | |
24992 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24993 | int result; | |
24994 | void *argp1 = 0 ; | |
24995 | int res1 = 0 ; | |
24996 | PyObject *swig_obj[1] ; | |
24997 | ||
24998 | if (!args) SWIG_fail; | |
24999 | swig_obj[0] = args; | |
25000 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25001 | if (!SWIG_IsOK(res1)) { | |
25002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25003 | } | |
25004 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25005 | result = (int)(int) ((arg1)->widthSash); | |
25006 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
25013 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25014 | PyObject *resultobj = 0; | |
25015 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
25016 | int result; | |
25017 | void *argp1 = 0 ; | |
25018 | int res1 = 0 ; | |
25019 | PyObject *swig_obj[1] ; | |
25020 | ||
25021 | if (!args) SWIG_fail; | |
25022 | swig_obj[0] = args; | |
25023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25024 | if (!SWIG_IsOK(res1)) { | |
25025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25026 | } | |
25027 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25028 | result = (int)(int) ((arg1)->border); | |
25029 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25030 | return resultobj; | |
25031 | fail: | |
25032 | return NULL; | |
25033 | } | |
25034 | ||
25035 | ||
25036 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25037 | PyObject *resultobj = 0; | |
25038 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
25039 | bool result; | |
25040 | void *argp1 = 0 ; | |
25041 | int res1 = 0 ; | |
25042 | PyObject *swig_obj[1] ; | |
25043 | ||
25044 | if (!args) SWIG_fail; | |
25045 | swig_obj[0] = args; | |
25046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
25047 | if (!SWIG_IsOK(res1)) { | |
25048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
25049 | } | |
25050 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
25051 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
25052 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
25053 | return resultobj; | |
25054 | fail: | |
25055 | return NULL; | |
25056 | } | |
25057 | ||
25058 | ||
25059 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25060 | PyObject *obj; | |
25061 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25062 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
25063 | return SWIG_Py_Void(); | |
25064 | } | |
25065 | ||
25066 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25067 | return SWIG_Python_InitShadowInstance(args); | |
25068 | } | |
25069 | ||
25070 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25071 | PyObject *resultobj = 0; | |
25072 | int arg1 ; | |
25073 | int arg2 ; | |
25074 | wxRendererVersion *result = 0 ; | |
25075 | int val1 ; | |
25076 | int ecode1 = 0 ; | |
25077 | int val2 ; | |
25078 | int ecode2 = 0 ; | |
25079 | PyObject * obj0 = 0 ; | |
25080 | PyObject * obj1 = 0 ; | |
25081 | char * kwnames[] = { | |
25082 | (char *) "version_",(char *) "age_", NULL | |
25083 | }; | |
25084 | ||
25085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
25086 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25087 | if (!SWIG_IsOK(ecode1)) { | |
25088 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
25089 | } | |
25090 | arg1 = static_cast< int >(val1); | |
25091 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25092 | if (!SWIG_IsOK(ecode2)) { | |
25093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
25094 | } | |
25095 | arg2 = static_cast< int >(val2); | |
25096 | { | |
25097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25098 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
25099 | wxPyEndAllowThreads(__tstate); | |
25100 | if (PyErr_Occurred()) SWIG_fail; | |
25101 | } | |
25102 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
25103 | return resultobj; | |
25104 | fail: | |
25105 | return NULL; | |
25106 | } | |
25107 | ||
25108 | ||
25109 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25110 | PyObject *resultobj = 0; | |
25111 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25112 | void *argp1 = 0 ; | |
25113 | int res1 = 0 ; | |
25114 | PyObject *swig_obj[1] ; | |
25115 | ||
25116 | if (!args) SWIG_fail; | |
25117 | swig_obj[0] = args; | |
25118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
25119 | if (!SWIG_IsOK(res1)) { | |
25120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25121 | } | |
25122 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25123 | { | |
25124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25125 | delete arg1; | |
25126 | ||
25127 | wxPyEndAllowThreads(__tstate); | |
25128 | if (PyErr_Occurred()) SWIG_fail; | |
25129 | } | |
25130 | resultobj = SWIG_Py_Void(); | |
25131 | return resultobj; | |
25132 | fail: | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
25137 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25138 | PyObject *resultobj = 0; | |
25139 | wxRendererVersion *arg1 = 0 ; | |
25140 | bool result; | |
25141 | void *argp1 = 0 ; | |
25142 | int res1 = 0 ; | |
25143 | PyObject * obj0 = 0 ; | |
25144 | char * kwnames[] = { | |
25145 | (char *) "ver", NULL | |
25146 | }; | |
25147 | ||
25148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
25149 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
25150 | if (!SWIG_IsOK(res1)) { | |
25151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
25152 | } | |
25153 | if (!argp1) { | |
25154 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
25155 | } | |
25156 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25157 | { | |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | { | |
25164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25165 | } | |
25166 | return resultobj; | |
25167 | fail: | |
25168 | return NULL; | |
25169 | } | |
25170 | ||
25171 | ||
25172 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25173 | PyObject *resultobj = 0; | |
25174 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25175 | int result; | |
25176 | void *argp1 = 0 ; | |
25177 | int res1 = 0 ; | |
25178 | PyObject *swig_obj[1] ; | |
25179 | ||
25180 | if (!args) SWIG_fail; | |
25181 | swig_obj[0] = args; | |
25182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
25183 | if (!SWIG_IsOK(res1)) { | |
25184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25185 | } | |
25186 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25187 | result = (int)(int) ((arg1)->version); | |
25188 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25196 | PyObject *resultobj = 0; | |
25197 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
25198 | int result; | |
25199 | void *argp1 = 0 ; | |
25200 | int res1 = 0 ; | |
25201 | PyObject *swig_obj[1] ; | |
25202 | ||
25203 | if (!args) SWIG_fail; | |
25204 | swig_obj[0] = args; | |
25205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
25206 | if (!SWIG_IsOK(res1)) { | |
25207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
25208 | } | |
25209 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
25210 | result = (int)(int) ((arg1)->age); | |
25211 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25212 | return resultobj; | |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
25218 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25219 | PyObject *obj; | |
25220 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25221 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
25222 | return SWIG_Py_Void(); | |
25223 | } | |
25224 | ||
25225 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25226 | return SWIG_Python_InitShadowInstance(args); | |
25227 | } | |
25228 | ||
25229 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25230 | PyObject *resultobj = 0; | |
25231 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25232 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25233 | wxDC *arg3 = 0 ; | |
25234 | wxRect *arg4 = 0 ; | |
25235 | int arg5 = (int) 0 ; | |
25236 | void *argp1 = 0 ; | |
25237 | int res1 = 0 ; | |
25238 | void *argp2 = 0 ; | |
25239 | int res2 = 0 ; | |
25240 | void *argp3 = 0 ; | |
25241 | int res3 = 0 ; | |
25242 | wxRect temp4 ; | |
25243 | int val5 ; | |
25244 | int ecode5 = 0 ; | |
25245 | PyObject * obj0 = 0 ; | |
25246 | PyObject * obj1 = 0 ; | |
25247 | PyObject * obj2 = 0 ; | |
25248 | PyObject * obj3 = 0 ; | |
25249 | PyObject * obj4 = 0 ; | |
25250 | char * kwnames[] = { | |
25251 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25252 | }; | |
25253 | ||
25254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25256 | if (!SWIG_IsOK(res1)) { | |
25257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25258 | } | |
25259 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25260 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25261 | if (!SWIG_IsOK(res2)) { | |
25262 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25263 | } | |
25264 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25265 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25266 | if (!SWIG_IsOK(res3)) { | |
25267 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25268 | } | |
25269 | if (!argp3) { | |
25270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25271 | } | |
25272 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25273 | { | |
25274 | arg4 = &temp4; | |
25275 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25276 | } | |
25277 | if (obj4) { | |
25278 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25279 | if (!SWIG_IsOK(ecode5)) { | |
25280 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
25281 | } | |
25282 | arg5 = static_cast< int >(val5); | |
25283 | } | |
25284 | { | |
25285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25286 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25287 | wxPyEndAllowThreads(__tstate); | |
25288 | if (PyErr_Occurred()) SWIG_fail; | |
25289 | } | |
25290 | resultobj = SWIG_Py_Void(); | |
25291 | return resultobj; | |
25292 | fail: | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
25297 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25298 | PyObject *resultobj = 0; | |
25299 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25301 | wxDC *arg3 = 0 ; | |
25302 | wxRect *arg4 = 0 ; | |
25303 | int arg5 = (int) 0 ; | |
25304 | void *argp1 = 0 ; | |
25305 | int res1 = 0 ; | |
25306 | void *argp2 = 0 ; | |
25307 | int res2 = 0 ; | |
25308 | void *argp3 = 0 ; | |
25309 | int res3 = 0 ; | |
25310 | wxRect temp4 ; | |
25311 | int val5 ; | |
25312 | int ecode5 = 0 ; | |
25313 | PyObject * obj0 = 0 ; | |
25314 | PyObject * obj1 = 0 ; | |
25315 | PyObject * obj2 = 0 ; | |
25316 | PyObject * obj3 = 0 ; | |
25317 | PyObject * obj4 = 0 ; | |
25318 | char * kwnames[] = { | |
25319 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25320 | }; | |
25321 | ||
25322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25324 | if (!SWIG_IsOK(res1)) { | |
25325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25326 | } | |
25327 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25328 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25329 | if (!SWIG_IsOK(res2)) { | |
25330 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25331 | } | |
25332 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25333 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25334 | if (!SWIG_IsOK(res3)) { | |
25335 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25336 | } | |
25337 | if (!argp3) { | |
25338 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25339 | } | |
25340 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25341 | { | |
25342 | arg4 = &temp4; | |
25343 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25344 | } | |
25345 | if (obj4) { | |
25346 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25347 | if (!SWIG_IsOK(ecode5)) { | |
25348 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
25349 | } | |
25350 | arg5 = static_cast< int >(val5); | |
25351 | } | |
25352 | { | |
25353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25354 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25355 | wxPyEndAllowThreads(__tstate); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
25358 | resultobj = SWIG_Py_Void(); | |
25359 | return resultobj; | |
25360 | fail: | |
25361 | return NULL; | |
25362 | } | |
25363 | ||
25364 | ||
25365 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25366 | PyObject *resultobj = 0; | |
25367 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25368 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25369 | wxDC *arg3 = 0 ; | |
25370 | wxRect *arg4 = 0 ; | |
25371 | int arg5 = (int) 0 ; | |
25372 | void *argp1 = 0 ; | |
25373 | int res1 = 0 ; | |
25374 | void *argp2 = 0 ; | |
25375 | int res2 = 0 ; | |
25376 | void *argp3 = 0 ; | |
25377 | int res3 = 0 ; | |
25378 | wxRect temp4 ; | |
25379 | int val5 ; | |
25380 | int ecode5 = 0 ; | |
25381 | PyObject * obj0 = 0 ; | |
25382 | PyObject * obj1 = 0 ; | |
25383 | PyObject * obj2 = 0 ; | |
25384 | PyObject * obj3 = 0 ; | |
25385 | PyObject * obj4 = 0 ; | |
25386 | char * kwnames[] = { | |
25387 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25388 | }; | |
25389 | ||
25390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25392 | if (!SWIG_IsOK(res1)) { | |
25393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25394 | } | |
25395 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25396 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25397 | if (!SWIG_IsOK(res2)) { | |
25398 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25399 | } | |
25400 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25401 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25402 | if (!SWIG_IsOK(res3)) { | |
25403 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25404 | } | |
25405 | if (!argp3) { | |
25406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25407 | } | |
25408 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25409 | { | |
25410 | arg4 = &temp4; | |
25411 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25412 | } | |
25413 | if (obj4) { | |
25414 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25415 | if (!SWIG_IsOK(ecode5)) { | |
25416 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
25417 | } | |
25418 | arg5 = static_cast< int >(val5); | |
25419 | } | |
25420 | { | |
25421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25422 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | resultobj = SWIG_Py_Void(); | |
25427 | return resultobj; | |
25428 | fail: | |
25429 | return NULL; | |
25430 | } | |
25431 | ||
25432 | ||
25433 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25434 | PyObject *resultobj = 0; | |
25435 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25436 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25437 | wxDC *arg3 = 0 ; | |
25438 | wxSize *arg4 = 0 ; | |
25439 | int arg5 ; | |
25440 | wxOrientation arg6 ; | |
25441 | int arg7 = (int) 0 ; | |
25442 | void *argp1 = 0 ; | |
25443 | int res1 = 0 ; | |
25444 | void *argp2 = 0 ; | |
25445 | int res2 = 0 ; | |
25446 | void *argp3 = 0 ; | |
25447 | int res3 = 0 ; | |
25448 | wxSize temp4 ; | |
25449 | int val5 ; | |
25450 | int ecode5 = 0 ; | |
25451 | int val6 ; | |
25452 | int ecode6 = 0 ; | |
25453 | int val7 ; | |
25454 | int ecode7 = 0 ; | |
25455 | PyObject * obj0 = 0 ; | |
25456 | PyObject * obj1 = 0 ; | |
25457 | PyObject * obj2 = 0 ; | |
25458 | PyObject * obj3 = 0 ; | |
25459 | PyObject * obj4 = 0 ; | |
25460 | PyObject * obj5 = 0 ; | |
25461 | PyObject * obj6 = 0 ; | |
25462 | char * kwnames[] = { | |
25463 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
25464 | }; | |
25465 | ||
25466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25468 | if (!SWIG_IsOK(res1)) { | |
25469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25470 | } | |
25471 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25472 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25473 | if (!SWIG_IsOK(res2)) { | |
25474 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25475 | } | |
25476 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25477 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25478 | if (!SWIG_IsOK(res3)) { | |
25479 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25480 | } | |
25481 | if (!argp3) { | |
25482 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25483 | } | |
25484 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25485 | { | |
25486 | arg4 = &temp4; | |
25487 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25488 | } | |
25489 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25490 | if (!SWIG_IsOK(ecode5)) { | |
25491 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
25492 | } | |
25493 | arg5 = static_cast< int >(val5); | |
25494 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
25495 | if (!SWIG_IsOK(ecode6)) { | |
25496 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
25497 | } | |
25498 | arg6 = static_cast< wxOrientation >(val6); | |
25499 | if (obj6) { | |
25500 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
25501 | if (!SWIG_IsOK(ecode7)) { | |
25502 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
25503 | } | |
25504 | arg7 = static_cast< int >(val7); | |
25505 | } | |
25506 | { | |
25507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25508 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | resultobj = SWIG_Py_Void(); | |
25513 | return resultobj; | |
25514 | fail: | |
25515 | return NULL; | |
25516 | } | |
25517 | ||
25518 | ||
25519 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25520 | PyObject *resultobj = 0; | |
25521 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25523 | wxDC *arg3 = 0 ; | |
25524 | wxRect *arg4 = 0 ; | |
25525 | int arg5 = (int) 0 ; | |
25526 | void *argp1 = 0 ; | |
25527 | int res1 = 0 ; | |
25528 | void *argp2 = 0 ; | |
25529 | int res2 = 0 ; | |
25530 | void *argp3 = 0 ; | |
25531 | int res3 = 0 ; | |
25532 | wxRect temp4 ; | |
25533 | int val5 ; | |
25534 | int ecode5 = 0 ; | |
25535 | PyObject * obj0 = 0 ; | |
25536 | PyObject * obj1 = 0 ; | |
25537 | PyObject * obj2 = 0 ; | |
25538 | PyObject * obj3 = 0 ; | |
25539 | PyObject * obj4 = 0 ; | |
25540 | char * kwnames[] = { | |
25541 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25542 | }; | |
25543 | ||
25544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25546 | if (!SWIG_IsOK(res1)) { | |
25547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25548 | } | |
25549 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25551 | if (!SWIG_IsOK(res2)) { | |
25552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25553 | } | |
25554 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25555 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25556 | if (!SWIG_IsOK(res3)) { | |
25557 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25558 | } | |
25559 | if (!argp3) { | |
25560 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25561 | } | |
25562 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25563 | { | |
25564 | arg4 = &temp4; | |
25565 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25566 | } | |
25567 | if (obj4) { | |
25568 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25569 | if (!SWIG_IsOK(ecode5)) { | |
25570 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
25571 | } | |
25572 | arg5 = static_cast< int >(val5); | |
25573 | } | |
25574 | { | |
25575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25576 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
25580 | resultobj = SWIG_Py_Void(); | |
25581 | return resultobj; | |
25582 | fail: | |
25583 | return NULL; | |
25584 | } | |
25585 | ||
25586 | ||
25587 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25588 | PyObject *resultobj = 0; | |
25589 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25590 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25591 | wxDC *arg3 = 0 ; | |
25592 | wxRect *arg4 = 0 ; | |
25593 | int arg5 = (int) 0 ; | |
25594 | void *argp1 = 0 ; | |
25595 | int res1 = 0 ; | |
25596 | void *argp2 = 0 ; | |
25597 | int res2 = 0 ; | |
25598 | void *argp3 = 0 ; | |
25599 | int res3 = 0 ; | |
25600 | wxRect temp4 ; | |
25601 | int val5 ; | |
25602 | int ecode5 = 0 ; | |
25603 | PyObject * obj0 = 0 ; | |
25604 | PyObject * obj1 = 0 ; | |
25605 | PyObject * obj2 = 0 ; | |
25606 | PyObject * obj3 = 0 ; | |
25607 | PyObject * obj4 = 0 ; | |
25608 | char * kwnames[] = { | |
25609 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
25610 | }; | |
25611 | ||
25612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25614 | if (!SWIG_IsOK(res1)) { | |
25615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25616 | } | |
25617 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25618 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25619 | if (!SWIG_IsOK(res2)) { | |
25620 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
25621 | } | |
25622 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25623 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
25624 | if (!SWIG_IsOK(res3)) { | |
25625 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25626 | } | |
25627 | if (!argp3) { | |
25628 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
25629 | } | |
25630 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
25631 | { | |
25632 | arg4 = &temp4; | |
25633 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25634 | } | |
25635 | if (obj4) { | |
25636 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25637 | if (!SWIG_IsOK(ecode5)) { | |
25638 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
25639 | } | |
25640 | arg5 = static_cast< int >(val5); | |
25641 | } | |
25642 | { | |
25643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25644 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
25645 | wxPyEndAllowThreads(__tstate); | |
25646 | if (PyErr_Occurred()) SWIG_fail; | |
25647 | } | |
25648 | resultobj = SWIG_Py_Void(); | |
25649 | return resultobj; | |
25650 | fail: | |
25651 | return NULL; | |
25652 | } | |
25653 | ||
25654 | ||
25655 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25656 | PyObject *resultobj = 0; | |
25657 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25658 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25659 | SwigValueWrapper<wxSplitterRenderParams > result; | |
25660 | void *argp1 = 0 ; | |
25661 | int res1 = 0 ; | |
25662 | void *argp2 = 0 ; | |
25663 | int res2 = 0 ; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | PyObject * obj1 = 0 ; | |
25666 | char * kwnames[] = { | |
25667 | (char *) "self",(char *) "win", NULL | |
25668 | }; | |
25669 | ||
25670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
25671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25672 | if (!SWIG_IsOK(res1)) { | |
25673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25674 | } | |
25675 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25676 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25677 | if (!SWIG_IsOK(res2)) { | |
25678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
25679 | } | |
25680 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
25681 | { | |
25682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25683 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
25687 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
25688 | return resultobj; | |
25689 | fail: | |
25690 | return NULL; | |
25691 | } | |
25692 | ||
25693 | ||
25694 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25695 | PyObject *resultobj = 0; | |
25696 | wxRendererNative *result = 0 ; | |
25697 | ||
25698 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
25699 | { | |
25700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25701 | { |
554f62e9 RD |
25702 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
25703 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 25704 | } |
554f62e9 RD |
25705 | wxPyEndAllowThreads(__tstate); |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
25708 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25709 | return resultobj; | |
25710 | fail: | |
25711 | return NULL; | |
25712 | } | |
25713 | ||
25714 | ||
25715 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25716 | PyObject *resultobj = 0; | |
25717 | wxRendererNative *result = 0 ; | |
25718 | ||
25719 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
25720 | { | |
25721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
be9b1dca | 25722 | { |
554f62e9 RD |
25723 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
25724 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 25725 | } |
554f62e9 RD |
25726 | wxPyEndAllowThreads(__tstate); |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
25736 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25737 | PyObject *resultobj = 0; | |
25738 | wxRendererNative *result = 0 ; | |
25739 | ||
25740 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
be9b1dca | 25743 | { |
554f62e9 RD |
25744 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
25745 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 25746 | } |
554f62e9 RD |
25747 | wxPyEndAllowThreads(__tstate); |
25748 | if (PyErr_Occurred()) SWIG_fail; | |
25749 | } | |
25750 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25751 | return resultobj; | |
25752 | fail: | |
25753 | return NULL; | |
25754 | } | |
25755 | ||
25756 | ||
25757 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25758 | PyObject *resultobj = 0; | |
25759 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25760 | wxRendererNative *result = 0 ; | |
25761 | void *argp1 = 0 ; | |
25762 | int res1 = 0 ; | |
25763 | PyObject * obj0 = 0 ; | |
25764 | char * kwnames[] = { | |
25765 | (char *) "renderer", NULL | |
25766 | }; | |
25767 | ||
25768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
25769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25770 | if (!SWIG_IsOK(res1)) { | |
25771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25772 | } | |
25773 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25774 | { | |
25775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25776 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
25777 | wxPyEndAllowThreads(__tstate); | |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
25780 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25781 | return resultobj; | |
25782 | fail: | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
25787 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25788 | PyObject *resultobj = 0; | |
25789 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25790 | SwigValueWrapper<wxRendererVersion > result; | |
25791 | void *argp1 = 0 ; | |
25792 | int res1 = 0 ; | |
25793 | PyObject *swig_obj[1] ; | |
25794 | ||
25795 | if (!args) SWIG_fail; | |
25796 | swig_obj[0] = args; | |
25797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25798 | if (!SWIG_IsOK(res1)) { | |
25799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
25800 | } | |
25801 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25802 | { | |
25803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25804 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
25805 | wxPyEndAllowThreads(__tstate); | |
25806 | if (PyErr_Occurred()) SWIG_fail; | |
25807 | } | |
25808 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
25809 | return resultobj; | |
25810 | fail: | |
25811 | return NULL; | |
25812 | } | |
25813 | ||
25814 | ||
25815 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25816 | PyObject *obj; | |
25817 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25818 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
25819 | return SWIG_Py_Void(); | |
25820 | } | |
25821 | ||
25822 | static PyMethodDef SwigMethods[] = { | |
25823 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
25824 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
25825 | { (char *)"GDIObject_GetVisible", (PyCFunction)_wrap_GDIObject_GetVisible, METH_O, NULL}, | |
25826 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25827 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
25828 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
25829 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
25830 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25831 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25832 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25833 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
25834 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
25835 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
25836 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
25837 | { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL}, | |
25838 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25839 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25840 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25841 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
25842 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25843 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25844 | { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL}, | |
25845 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, | |
25846 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
25847 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
25848 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25849 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
25850 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25851 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25852 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
25853 | { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL}, | |
25854 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
25855 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
25856 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25857 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
25858 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
25859 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
25860 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
25861 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
25862 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
25863 | { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL}, | |
25864 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25865 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25866 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25867 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25868 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25869 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25870 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
25871 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25872 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
25873 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
25874 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25875 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25876 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25877 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
25878 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
25879 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25880 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25881 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
25882 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25883 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25884 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25885 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
25886 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
25887 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
25888 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
25889 | { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL}, | |
25890 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
25891 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
25892 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25893 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
25894 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25895 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25896 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25897 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25898 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25899 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
25900 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25901 | { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL}, | |
25902 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, | |
25903 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
25904 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
25905 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
25906 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
25907 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
25908 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25909 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25910 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25911 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25912 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25913 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
25914 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25915 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25916 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25917 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25918 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25919 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25920 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25921 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25922 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25923 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
25924 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
25925 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25926 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
25927 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
25928 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
25929 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25930 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
25931 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
25932 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25933 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25934 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25935 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25936 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
25937 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25938 | { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL}, | |
25939 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, | |
25940 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
25941 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
25942 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25943 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25944 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25945 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25946 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25947 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
25948 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
25949 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25950 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
25951 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
25952 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25953 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
25954 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25955 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
25956 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
25957 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
25958 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
25959 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25960 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25961 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
25962 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25963 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25964 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25965 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
25966 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
25967 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25968 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
25969 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25970 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25971 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
25972 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25973 | { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL}, | |
25974 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, | |
25975 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
25976 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
25977 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25978 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25979 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25980 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25981 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
25982 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
25983 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25984 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25985 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25986 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25987 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
25988 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
25989 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25990 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25991 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25992 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25993 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25994 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
25995 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25996 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25997 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25998 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
25999 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26000 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26001 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26002 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26003 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26004 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26005 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26006 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26007 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26008 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
26009 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26010 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26011 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
26012 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
26013 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26014 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
26015 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
26016 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
26017 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
26018 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
26019 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
26020 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
26021 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
26022 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
26023 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
26024 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
26025 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
26026 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
26027 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
26028 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
26029 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
26030 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
26031 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26032 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
26033 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
26034 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
26035 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
26036 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
26037 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
26038 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
26039 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
26040 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26041 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26042 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26043 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26044 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26045 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26046 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26047 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26048 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26049 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
26050 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
26051 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26052 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
26053 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
26054 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
26055 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
26056 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
26057 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
26058 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
26059 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
26060 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
26061 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26062 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
26063 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
26064 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
26065 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26066 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26067 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
26068 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
26069 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
26070 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26071 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26072 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
26073 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26074 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26075 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26076 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26077 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26078 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
26079 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26080 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26081 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26082 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26083 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
26084 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
26085 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26086 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
26087 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26088 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26089 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26090 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26091 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26092 | { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL}, | |
26093 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26094 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26095 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
26096 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
26097 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
26098 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
26099 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
26100 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
26101 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
26102 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
26103 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
26104 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
26105 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
26106 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
26107 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
26108 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26109 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26110 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26111 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26112 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26113 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26114 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26115 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26116 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26117 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26118 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26119 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
26120 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
26121 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
26122 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26123 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
26124 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
26125 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26126 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
26127 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
26128 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
26129 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
26130 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26131 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26132 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26133 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL}, | |
26134 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL}, | |
26135 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, | |
26136 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
26137 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
26138 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
26139 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
26140 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
26141 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
26142 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
26143 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
26144 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26145 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
26146 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26147 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26148 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
26149 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
26150 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
26151 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
26152 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
26153 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
26154 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
26155 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
26156 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26157 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26158 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26159 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26160 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26161 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26162 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26163 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26164 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
26165 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
26166 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
26167 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, | |
26168 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
26169 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
26170 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
26171 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26172 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26173 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26174 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26175 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26176 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
26177 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
26178 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
26179 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26180 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26181 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26182 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26183 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26184 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26185 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26186 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26187 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26188 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26189 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26190 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26191 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26192 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26193 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26194 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26195 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26196 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26197 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26198 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26199 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26200 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26201 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26202 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26203 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26204 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26205 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26206 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26207 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26208 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26209 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26210 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26211 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26212 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26213 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26214 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26215 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26216 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26217 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26218 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26219 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26220 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26221 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26222 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26223 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26224 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26225 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26226 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26227 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
26228 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26229 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
26230 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
26231 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
26232 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26233 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26234 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26235 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26236 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26237 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26238 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
26239 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
26240 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
26241 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
26242 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
26243 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26244 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26245 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26246 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26247 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
26248 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
26249 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
26250 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
26251 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26252 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26253 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26254 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26255 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26256 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26257 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26258 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26259 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
26260 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
26261 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
26262 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
26263 | { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL}, | |
26264 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, | |
26265 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
26266 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
26267 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
26268 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
26269 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
26270 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
26271 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26272 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26273 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
26274 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26275 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
26276 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26277 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
26278 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26279 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
26280 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
26281 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26282 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26283 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
26284 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
26285 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26286 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26287 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26288 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
26289 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26290 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
26291 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26292 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26293 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
26294 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
26295 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
26296 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
26297 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
26298 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
26299 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, | |
26300 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26301 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26302 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26303 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26304 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26305 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26306 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
26307 | { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL}, | |
26308 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26309 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26310 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
26311 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
26312 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
26313 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
26314 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
26315 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
26316 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
26317 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26318 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
26319 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
26320 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, | |
26321 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26322 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26323 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
26324 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
26325 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
26326 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26327 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
26328 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
26329 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26330 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
26331 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26332 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26333 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
26334 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
26335 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26336 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
26337 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
26338 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26339 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
26340 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26341 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26342 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
26343 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
26344 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
26345 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26346 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
26347 | { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL}, | |
26348 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26349 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
26350 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
26351 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
26352 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
26353 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
26354 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
26355 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26356 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
26357 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
26358 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
26359 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26360 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
26361 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
26362 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26363 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
26364 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26365 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26366 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26367 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26368 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26369 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26370 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26371 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
26372 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26373 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
26374 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26375 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
26376 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
26377 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26378 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26379 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26380 | { (char *)"PenList_GetCount", (PyCFunction)_wrap_PenList_GetCount, METH_O, NULL}, | |
26381 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, | |
26382 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26383 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26384 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26385 | { (char *)"BrushList_GetCount", (PyCFunction)_wrap_BrushList_GetCount, METH_O, NULL}, | |
26386 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, | |
26387 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, | |
26388 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
26389 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26390 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26391 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26392 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26393 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
26394 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
26395 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26396 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26397 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26398 | { (char *)"FontList_GetCount", (PyCFunction)_wrap_FontList_GetCount, METH_O, NULL}, | |
26399 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
26400 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, | |
26401 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
26402 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
26403 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
26404 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
26405 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
26406 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26407 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26408 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26409 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26410 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26411 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26412 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26413 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26414 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
26415 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
26416 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26417 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
26418 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
26419 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
26420 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
26421 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
26422 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
26423 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26424 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
26425 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26426 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
26427 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
26428 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
26429 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
26430 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26431 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26432 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26433 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26434 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26435 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26436 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26437 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
26438 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
26439 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
26440 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
26441 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
26442 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
26443 | { NULL, NULL, 0, NULL } | |
26444 | }; | |
26445 | ||
26446 | ||
26447 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26448 | ||
26449 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
26450 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
26451 | } | |
26452 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
26453 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26454 | } | |
26455 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
26456 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
26457 | } | |
26458 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
26459 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
26460 | } | |
26461 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
26462 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
26463 | } | |
26464 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
26465 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
26466 | } | |
26467 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
26468 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
26469 | } | |
26470 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
26471 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
26472 | } | |
26473 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
26474 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
26475 | } | |
26476 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
26477 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
26478 | } | |
26479 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
26480 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
26481 | } | |
26482 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
26483 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
26484 | } | |
26485 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
26486 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
26487 | } | |
26488 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
26489 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
26490 | } | |
26491 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
26492 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
26493 | } | |
26494 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
26495 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
26496 | } | |
26497 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
26498 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26499 | } | |
26500 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
26501 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
26502 | } | |
26503 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
26504 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
26505 | } | |
26506 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
26507 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
26508 | } | |
26509 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
26510 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
26511 | } | |
26512 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
26513 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26514 | } | |
26515 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26516 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26517 | } | |
26518 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
26519 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
26520 | } | |
26521 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
26522 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
26523 | } | |
26524 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26525 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26526 | } | |
26527 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26528 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26529 | } | |
26530 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
26531 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
26532 | } | |
26533 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26534 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26535 | } | |
26536 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26537 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26538 | } | |
26539 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
26540 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
26541 | } | |
26542 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26543 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26544 | } | |
26545 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
26546 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
26547 | } | |
26548 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
26549 | return (void *)((wxObject *) ((wxSizer *) x)); | |
26550 | } | |
26551 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
26552 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26553 | } | |
26554 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
26555 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26556 | } | |
26557 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
26558 | return (void *)((wxObject *) ((wxPenList *) x)); | |
26559 | } | |
26560 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
26561 | return (void *)((wxObject *) ((wxEvent *) x)); | |
26562 | } | |
26563 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
26564 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26565 | } | |
26566 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
26567 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
26568 | } | |
26569 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
26570 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
26571 | } | |
26572 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
26573 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
26574 | } | |
26575 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
26576 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
26577 | } | |
26578 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
26579 | return (void *)((wxObject *) ((wxDC *) x)); | |
26580 | } | |
26581 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
26582 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26583 | } | |
26584 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
26585 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26586 | } | |
26587 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
26588 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26589 | } | |
26590 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
26591 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26592 | } | |
26593 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
26594 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
26595 | } | |
26596 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
26597 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
26598 | } | |
26599 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
26600 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
26601 | } | |
26602 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
26603 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
26604 | } | |
26605 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26606 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
26607 | } | |
26608 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
26609 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
26610 | } | |
26611 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
26612 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
26613 | } | |
26614 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
26615 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
26616 | } | |
26617 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
26618 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
26619 | } | |
26620 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
26621 | return (void *)((wxObject *) ((wxEffects *) x)); | |
26622 | } | |
26623 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
26624 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
26625 | } | |
26626 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
26627 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26628 | } | |
26629 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
26630 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
26631 | } | |
26632 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
26633 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
26634 | } | |
26635 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
26636 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
26637 | } | |
26638 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
26639 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
26640 | } | |
26641 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
26642 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
26643 | } | |
26644 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
26645 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26646 | } | |
26647 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
26648 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26649 | } | |
26650 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
26651 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
26652 | } | |
26653 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
26654 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
26655 | } | |
26656 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
26657 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
26658 | } | |
26659 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
26660 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
26661 | } | |
26662 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
26663 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
26664 | } | |
26665 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
26666 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
26667 | } | |
26668 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
26669 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
26670 | } | |
26671 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
26672 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
26673 | } | |
26674 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
26675 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
26676 | } | |
26677 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
26678 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
26679 | } | |
26680 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26681 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26682 | } | |
26683 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26684 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26685 | } | |
26686 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26687 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26688 | } | |
26689 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26690 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26691 | } | |
26692 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
26693 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
26694 | } | |
26695 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26696 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26697 | } | |
26698 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
26699 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
26700 | } | |
26701 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26702 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26703 | } | |
26704 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26705 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26706 | } | |
26707 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
26708 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
26709 | } | |
26710 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
26711 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
26712 | } | |
26713 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
26714 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
26715 | } | |
26716 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
26717 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
26718 | } | |
26719 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
26720 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
26721 | } | |
26722 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
26723 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26724 | } | |
26725 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
26726 | return (void *)((wxObject *) ((wxImage *) x)); | |
26727 | } | |
26728 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26729 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26730 | } | |
26731 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
26732 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
26733 | } | |
26734 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26735 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
26736 | } | |
26737 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
26738 | return (void *)((wxObject *) ((wxImageList *) x)); | |
26739 | } | |
26740 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
26741 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
26742 | } | |
26743 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
26744 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
26745 | } | |
26746 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
26747 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
26748 | } | |
26749 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26750 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26751 | } | |
26752 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26753 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26754 | } | |
26755 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26756 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26757 | } | |
26758 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26759 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26760 | } | |
26761 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26762 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26763 | } | |
26764 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26765 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26766 | } | |
26767 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
26768 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
26769 | } | |
26770 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
26771 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
26772 | } | |
26773 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26774 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26775 | } | |
26776 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
26777 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
26778 | } | |
26779 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
26780 | return (void *)((wxObject *) ((wxMask *) x)); | |
26781 | } | |
26782 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26783 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26784 | } | |
26785 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26786 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26787 | } | |
26788 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26789 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26790 | } | |
26791 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26792 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26793 | } | |
26794 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26795 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26796 | } | |
26797 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26798 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26799 | } | |
26800 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26801 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26802 | } | |
26803 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26804 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26805 | } | |
26806 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26807 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26808 | } | |
26809 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26810 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26811 | } | |
26812 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26813 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26814 | } | |
26815 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
26816 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
26817 | } | |
26818 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
26819 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
26820 | } | |
26821 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
26822 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
26823 | } | |
26824 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26825 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26826 | } | |
26827 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
26828 | return (void *)((wxObject *) ((wxColour *) x)); | |
26829 | } | |
26830 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
26831 | return (void *)((wxObject *) ((wxFontList *) x)); | |
26832 | } | |
26833 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26834 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26835 | } | |
26836 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26837 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26838 | } | |
26839 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26840 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26841 | } | |
26842 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26843 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26844 | } | |
26845 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26846 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26847 | } | |
26848 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
26849 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; | |
26850 | 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}; | |
26851 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
26852 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
26853 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
26854 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
26855 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
26856 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
26857 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
26858 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
26859 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
26860 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; | |
26861 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
26862 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
26863 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
26864 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
26865 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; | |
26866 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
26867 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
26868 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
26869 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
26870 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
26871 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
26872 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; | |
26873 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
26874 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
26875 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
26876 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
26877 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
26878 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
26879 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
26880 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
26881 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
26882 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
26883 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
26884 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
26885 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
26886 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
26887 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
26888 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
26889 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
26890 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
26891 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
26892 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
26893 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
26894 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
26895 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
26896 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
26897 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
26898 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
26899 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
26900 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
26901 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
26902 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
26903 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
26904 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
26905 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
26906 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
26907 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
26908 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
26909 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
26910 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
26911 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
26912 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
26913 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
26914 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
26915 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
26916 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
26917 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
26918 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
26919 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
26920 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
26921 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
26922 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
26923 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
26924 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
26925 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
26926 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
26927 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
26928 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
26929 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
26930 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
26931 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
26932 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
26933 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
26934 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
26935 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
26936 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
26937 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
26938 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
26939 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
26940 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
26941 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
26942 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
26943 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
26944 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
26945 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
26946 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
26947 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
26948 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
26949 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
26950 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
26951 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
26952 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
26953 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
26954 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
26955 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
26956 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
26957 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
26958 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
26959 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
26960 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
26961 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
26962 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; | |
26963 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
26964 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
26965 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
26966 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
26967 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
26968 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; | |
26969 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
26970 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
26971 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; | |
26972 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
26973 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
26974 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
26975 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
26976 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
26977 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
26978 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
26979 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
26980 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
26981 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
26982 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
26983 | ||
26984 | static swig_type_info *swig_type_initial[] = { | |
26985 | &_swigt__p_char, | |
26986 | &_swigt__p_double, | |
26987 | &_swigt__p_form_ops_t, | |
26988 | &_swigt__p_int, | |
26989 | &_swigt__p_unsigned_char, | |
26990 | &_swigt__p_unsigned_int, | |
26991 | &_swigt__p_unsigned_long, | |
26992 | &_swigt__p_wxANIHandler, | |
26993 | &_swigt__p_wxAcceleratorTable, | |
26994 | &_swigt__p_wxActivateEvent, | |
26995 | &_swigt__p_wxBMPHandler, | |
26996 | &_swigt__p_wxBitmap, | |
26997 | &_swigt__p_wxBoxSizer, | |
26998 | &_swigt__p_wxBrush, | |
26999 | &_swigt__p_wxBrushList, | |
27000 | &_swigt__p_wxBufferedDC, | |
27001 | &_swigt__p_wxBufferedPaintDC, | |
27002 | &_swigt__p_wxCURHandler, | |
27003 | &_swigt__p_wxChildFocusEvent, | |
27004 | &_swigt__p_wxClientDC, | |
27005 | &_swigt__p_wxCloseEvent, | |
27006 | &_swigt__p_wxColour, | |
27007 | &_swigt__p_wxColourDatabase, | |
27008 | &_swigt__p_wxCommandEvent, | |
27009 | &_swigt__p_wxContextMenuEvent, | |
27010 | &_swigt__p_wxControl, | |
27011 | &_swigt__p_wxControlWithItems, | |
27012 | &_swigt__p_wxCursor, | |
27013 | &_swigt__p_wxDC, | |
27014 | &_swigt__p_wxDash, | |
27015 | &_swigt__p_wxDateEvent, | |
27016 | &_swigt__p_wxDisplayChangedEvent, | |
27017 | &_swigt__p_wxDropFilesEvent, | |
27018 | &_swigt__p_wxDuplexMode, | |
27019 | &_swigt__p_wxEffects, | |
27020 | &_swigt__p_wxEncodingConverter, | |
27021 | &_swigt__p_wxEraseEvent, | |
27022 | &_swigt__p_wxEvent, | |
27023 | &_swigt__p_wxEvtHandler, | |
27024 | &_swigt__p_wxFSFile, | |
27025 | &_swigt__p_wxFileSystem, | |
27026 | &_swigt__p_wxFlexGridSizer, | |
27027 | &_swigt__p_wxFocusEvent, | |
27028 | &_swigt__p_wxFont, | |
27029 | &_swigt__p_wxFontList, | |
27030 | &_swigt__p_wxFontMapper, | |
27031 | &_swigt__p_wxGBSizerItem, | |
27032 | &_swigt__p_wxGDIObject, | |
27033 | &_swigt__p_wxGIFHandler, | |
27034 | &_swigt__p_wxGridBagSizer, | |
27035 | &_swigt__p_wxGridSizer, | |
27036 | &_swigt__p_wxICOHandler, | |
27037 | &_swigt__p_wxIcon, | |
27038 | &_swigt__p_wxIconBundle, | |
27039 | &_swigt__p_wxIconLocation, | |
27040 | &_swigt__p_wxIconizeEvent, | |
27041 | &_swigt__p_wxIdleEvent, | |
27042 | &_swigt__p_wxImage, | |
27043 | &_swigt__p_wxImageHandler, | |
27044 | &_swigt__p_wxImageList, | |
27045 | &_swigt__p_wxIndividualLayoutConstraint, | |
27046 | &_swigt__p_wxInitDialogEvent, | |
27047 | &_swigt__p_wxJPEGHandler, | |
27048 | &_swigt__p_wxKeyEvent, | |
27049 | &_swigt__p_wxLanguageInfo, | |
27050 | &_swigt__p_wxLayoutConstraints, | |
27051 | &_swigt__p_wxLocale, | |
27052 | &_swigt__p_wxMask, | |
27053 | &_swigt__p_wxMaximizeEvent, | |
27054 | &_swigt__p_wxMemoryDC, | |
27055 | &_swigt__p_wxMenu, | |
27056 | &_swigt__p_wxMenuBar, | |
27057 | &_swigt__p_wxMenuEvent, | |
27058 | &_swigt__p_wxMenuItem, | |
27059 | &_swigt__p_wxMetaFile, | |
27060 | &_swigt__p_wxMetaFileDC, | |
27061 | &_swigt__p_wxMirrorDC, | |
27062 | &_swigt__p_wxMouseCaptureChangedEvent, | |
27063 | &_swigt__p_wxMouseEvent, | |
27064 | &_swigt__p_wxMoveEvent, | |
27065 | &_swigt__p_wxNativeEncodingInfo, | |
27066 | &_swigt__p_wxNativeFontInfo, | |
27067 | &_swigt__p_wxNavigationKeyEvent, | |
27068 | &_swigt__p_wxNcPaintEvent, | |
27069 | &_swigt__p_wxNotifyEvent, | |
27070 | &_swigt__p_wxObject, | |
27071 | &_swigt__p_wxPCXHandler, | |
27072 | &_swigt__p_wxPNGHandler, | |
27073 | &_swigt__p_wxPNMHandler, | |
27074 | &_swigt__p_wxPaintDC, | |
27075 | &_swigt__p_wxPaintEvent, | |
27076 | &_swigt__p_wxPalette, | |
27077 | &_swigt__p_wxPaletteChangedEvent, | |
27078 | &_swigt__p_wxPaperSize, | |
27079 | &_swigt__p_wxPen, | |
27080 | &_swigt__p_wxPenList, | |
27081 | &_swigt__p_wxPoint, | |
27082 | &_swigt__p_wxPostScriptDC, | |
27083 | &_swigt__p_wxPrintData, | |
27084 | &_swigt__p_wxPrinterDC, | |
27085 | &_swigt__p_wxPyApp, | |
27086 | &_swigt__p_wxPyCommandEvent, | |
27087 | &_swigt__p_wxPyEvent, | |
27088 | &_swigt__p_wxPyFontEnumerator, | |
27089 | &_swigt__p_wxPyImageHandler, | |
27090 | &_swigt__p_wxPySizer, | |
27091 | &_swigt__p_wxPyValidator, | |
27092 | &_swigt__p_wxQueryNewPaletteEvent, | |
27093 | &_swigt__p_wxRect, | |
27094 | &_swigt__p_wxRegion, | |
27095 | &_swigt__p_wxRegionIterator, | |
27096 | &_swigt__p_wxRendererNative, | |
27097 | &_swigt__p_wxRendererVersion, | |
27098 | &_swigt__p_wxScreenDC, | |
27099 | &_swigt__p_wxScrollEvent, | |
27100 | &_swigt__p_wxScrollWinEvent, | |
27101 | &_swigt__p_wxSetCursorEvent, | |
27102 | &_swigt__p_wxShowEvent, | |
27103 | &_swigt__p_wxSize, | |
27104 | &_swigt__p_wxSizeEvent, | |
27105 | &_swigt__p_wxSizer, | |
27106 | &_swigt__p_wxSizerItem, | |
27107 | &_swigt__p_wxSplitterRenderParams, | |
27108 | &_swigt__p_wxStaticBoxSizer, | |
27109 | &_swigt__p_wxStdDialogButtonSizer, | |
27110 | &_swigt__p_wxString, | |
27111 | &_swigt__p_wxSysColourChangedEvent, | |
27112 | &_swigt__p_wxTIFFHandler, | |
27113 | &_swigt__p_wxUpdateUIEvent, | |
27114 | &_swigt__p_wxValidator, | |
27115 | &_swigt__p_wxWindow, | |
27116 | &_swigt__p_wxWindowCreateEvent, | |
27117 | &_swigt__p_wxWindowDC, | |
27118 | &_swigt__p_wxWindowDestroyEvent, | |
27119 | &_swigt__p_wxXPMHandler, | |
27120 | }; | |
27121 | ||
27122 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
27123 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
27124 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
27125 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
27126 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
27127 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
27128 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
27129 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
27130 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
27131 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
27132 | 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}}; | |
27133 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27134 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27135 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
27136 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
27137 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
27138 | 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}}; | |
27139 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
27140 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
27141 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
27142 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
27143 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
27144 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
27145 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
27146 | 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}}; | |
27147 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
27148 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
27149 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
27150 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
27151 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
27152 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27153 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; | |
27154 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; | |
27155 | 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}}; | |
27156 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
27157 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27158 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27159 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27160 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
27161 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
27162 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27163 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27164 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27165 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
27166 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27167 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27168 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27169 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27170 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27171 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
27172 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27173 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27174 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27175 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27176 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27177 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27178 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27179 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27180 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27181 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27182 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
27183 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27184 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
27185 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27186 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27187 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27188 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27189 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
27190 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27191 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27192 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27193 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27194 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27195 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27196 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27197 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27198 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27199 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27200 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27201 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27202 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27203 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27204 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27205 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27206 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27207 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27208 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27209 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27210 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27211 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27212 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27213 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
27214 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
27215 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27216 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27217 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27218 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27219 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27220 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
27221 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27222 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27223 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
27224 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27225 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27226 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27227 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27228 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27229 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27230 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27231 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27232 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
27233 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27234 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27235 | 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}}; | |
27236 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27237 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
27238 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
27239 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
27240 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
27241 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
27242 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27243 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
27244 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27245 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; | |
27246 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
27247 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
27248 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
27249 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
27250 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
27251 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27252 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
27253 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
27254 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
27255 | 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}}; | |
27256 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27257 | ||
27258 | static swig_cast_info *swig_cast_initial[] = { | |
27259 | _swigc__p_char, | |
27260 | _swigc__p_double, | |
27261 | _swigc__p_form_ops_t, | |
27262 | _swigc__p_int, | |
27263 | _swigc__p_unsigned_char, | |
27264 | _swigc__p_unsigned_int, | |
27265 | _swigc__p_unsigned_long, | |
27266 | _swigc__p_wxANIHandler, | |
27267 | _swigc__p_wxAcceleratorTable, | |
27268 | _swigc__p_wxActivateEvent, | |
27269 | _swigc__p_wxBMPHandler, | |
27270 | _swigc__p_wxBitmap, | |
27271 | _swigc__p_wxBoxSizer, | |
27272 | _swigc__p_wxBrush, | |
27273 | _swigc__p_wxBrushList, | |
27274 | _swigc__p_wxBufferedDC, | |
27275 | _swigc__p_wxBufferedPaintDC, | |
27276 | _swigc__p_wxCURHandler, | |
27277 | _swigc__p_wxChildFocusEvent, | |
27278 | _swigc__p_wxClientDC, | |
27279 | _swigc__p_wxCloseEvent, | |
27280 | _swigc__p_wxColour, | |
27281 | _swigc__p_wxColourDatabase, | |
27282 | _swigc__p_wxCommandEvent, | |
27283 | _swigc__p_wxContextMenuEvent, | |
27284 | _swigc__p_wxControl, | |
27285 | _swigc__p_wxControlWithItems, | |
27286 | _swigc__p_wxCursor, | |
27287 | _swigc__p_wxDC, | |
27288 | _swigc__p_wxDash, | |
27289 | _swigc__p_wxDateEvent, | |
27290 | _swigc__p_wxDisplayChangedEvent, | |
27291 | _swigc__p_wxDropFilesEvent, | |
27292 | _swigc__p_wxDuplexMode, | |
27293 | _swigc__p_wxEffects, | |
27294 | _swigc__p_wxEncodingConverter, | |
27295 | _swigc__p_wxEraseEvent, | |
27296 | _swigc__p_wxEvent, | |
27297 | _swigc__p_wxEvtHandler, | |
27298 | _swigc__p_wxFSFile, | |
27299 | _swigc__p_wxFileSystem, | |
27300 | _swigc__p_wxFlexGridSizer, | |
27301 | _swigc__p_wxFocusEvent, | |
27302 | _swigc__p_wxFont, | |
27303 | _swigc__p_wxFontList, | |
27304 | _swigc__p_wxFontMapper, | |
27305 | _swigc__p_wxGBSizerItem, | |
27306 | _swigc__p_wxGDIObject, | |
27307 | _swigc__p_wxGIFHandler, | |
27308 | _swigc__p_wxGridBagSizer, | |
27309 | _swigc__p_wxGridSizer, | |
27310 | _swigc__p_wxICOHandler, | |
27311 | _swigc__p_wxIcon, | |
27312 | _swigc__p_wxIconBundle, | |
27313 | _swigc__p_wxIconLocation, | |
27314 | _swigc__p_wxIconizeEvent, | |
27315 | _swigc__p_wxIdleEvent, | |
27316 | _swigc__p_wxImage, | |
27317 | _swigc__p_wxImageHandler, | |
27318 | _swigc__p_wxImageList, | |
27319 | _swigc__p_wxIndividualLayoutConstraint, | |
27320 | _swigc__p_wxInitDialogEvent, | |
27321 | _swigc__p_wxJPEGHandler, | |
27322 | _swigc__p_wxKeyEvent, | |
27323 | _swigc__p_wxLanguageInfo, | |
27324 | _swigc__p_wxLayoutConstraints, | |
27325 | _swigc__p_wxLocale, | |
27326 | _swigc__p_wxMask, | |
27327 | _swigc__p_wxMaximizeEvent, | |
27328 | _swigc__p_wxMemoryDC, | |
27329 | _swigc__p_wxMenu, | |
27330 | _swigc__p_wxMenuBar, | |
27331 | _swigc__p_wxMenuEvent, | |
27332 | _swigc__p_wxMenuItem, | |
27333 | _swigc__p_wxMetaFile, | |
27334 | _swigc__p_wxMetaFileDC, | |
27335 | _swigc__p_wxMirrorDC, | |
27336 | _swigc__p_wxMouseCaptureChangedEvent, | |
27337 | _swigc__p_wxMouseEvent, | |
27338 | _swigc__p_wxMoveEvent, | |
27339 | _swigc__p_wxNativeEncodingInfo, | |
27340 | _swigc__p_wxNativeFontInfo, | |
27341 | _swigc__p_wxNavigationKeyEvent, | |
27342 | _swigc__p_wxNcPaintEvent, | |
27343 | _swigc__p_wxNotifyEvent, | |
27344 | _swigc__p_wxObject, | |
27345 | _swigc__p_wxPCXHandler, | |
27346 | _swigc__p_wxPNGHandler, | |
27347 | _swigc__p_wxPNMHandler, | |
27348 | _swigc__p_wxPaintDC, | |
27349 | _swigc__p_wxPaintEvent, | |
27350 | _swigc__p_wxPalette, | |
27351 | _swigc__p_wxPaletteChangedEvent, | |
27352 | _swigc__p_wxPaperSize, | |
27353 | _swigc__p_wxPen, | |
27354 | _swigc__p_wxPenList, | |
27355 | _swigc__p_wxPoint, | |
27356 | _swigc__p_wxPostScriptDC, | |
27357 | _swigc__p_wxPrintData, | |
27358 | _swigc__p_wxPrinterDC, | |
27359 | _swigc__p_wxPyApp, | |
27360 | _swigc__p_wxPyCommandEvent, | |
27361 | _swigc__p_wxPyEvent, | |
27362 | _swigc__p_wxPyFontEnumerator, | |
27363 | _swigc__p_wxPyImageHandler, | |
27364 | _swigc__p_wxPySizer, | |
27365 | _swigc__p_wxPyValidator, | |
27366 | _swigc__p_wxQueryNewPaletteEvent, | |
27367 | _swigc__p_wxRect, | |
27368 | _swigc__p_wxRegion, | |
27369 | _swigc__p_wxRegionIterator, | |
27370 | _swigc__p_wxRendererNative, | |
27371 | _swigc__p_wxRendererVersion, | |
27372 | _swigc__p_wxScreenDC, | |
27373 | _swigc__p_wxScrollEvent, | |
27374 | _swigc__p_wxScrollWinEvent, | |
27375 | _swigc__p_wxSetCursorEvent, | |
27376 | _swigc__p_wxShowEvent, | |
27377 | _swigc__p_wxSize, | |
27378 | _swigc__p_wxSizeEvent, | |
27379 | _swigc__p_wxSizer, | |
27380 | _swigc__p_wxSizerItem, | |
27381 | _swigc__p_wxSplitterRenderParams, | |
27382 | _swigc__p_wxStaticBoxSizer, | |
27383 | _swigc__p_wxStdDialogButtonSizer, | |
27384 | _swigc__p_wxString, | |
27385 | _swigc__p_wxSysColourChangedEvent, | |
27386 | _swigc__p_wxTIFFHandler, | |
27387 | _swigc__p_wxUpdateUIEvent, | |
27388 | _swigc__p_wxValidator, | |
27389 | _swigc__p_wxWindow, | |
27390 | _swigc__p_wxWindowCreateEvent, | |
27391 | _swigc__p_wxWindowDC, | |
27392 | _swigc__p_wxWindowDestroyEvent, | |
27393 | _swigc__p_wxXPMHandler, | |
27394 | }; | |
27395 | ||
27396 | ||
27397 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27398 | ||
27399 | static swig_const_info swig_const_table[] = { | |
27400 | {0, 0, 0, 0.0, 0, 0}}; | |
27401 | ||
27402 | #ifdef __cplusplus | |
27403 | } | |
27404 | #endif | |
27405 | /* ----------------------------------------------------------------------------- | |
27406 | * Type initialization: | |
27407 | * This problem is tough by the requirement that no dynamic | |
27408 | * memory is used. Also, since swig_type_info structures store pointers to | |
27409 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
27410 | * to swig_type_info structures, we need some lookup code at initialization. | |
27411 | * The idea is that swig generates all the structures that are needed. | |
27412 | * The runtime then collects these partially filled structures. | |
27413 | * The SWIG_InitializeModule function takes these initial arrays out of | |
27414 | * swig_module, and does all the lookup, filling in the swig_module.types | |
27415 | * array with the correct data and linking the correct swig_cast_info | |
27416 | * structures together. | |
27417 | * | |
27418 | * The generated swig_type_info structures are assigned staticly to an initial | |
27419 | * array. We just loop though that array, and handle each type individually. | |
27420 | * First we lookup if this type has been already loaded, and if so, use the | |
27421 | * loaded structure instead of the generated one. Then we have to fill in the | |
27422 | * cast linked list. The cast data is initially stored in something like a | |
27423 | * two-dimensional array. Each row corresponds to a type (there are the same | |
27424 | * number of rows as there are in the swig_type_initial array). Each entry in | |
27425 | * a column is one of the swig_cast_info structures for that type. | |
27426 | * The cast_initial array is actually an array of arrays, because each row has | |
27427 | * a variable number of columns. So to actually build the cast linked list, | |
27428 | * we find the array of casts associated with the type, and loop through it | |
27429 | * adding the casts to the list. The one last trick we need to do is making | |
27430 | * sure the type pointer in the swig_cast_info struct is correct. | |
27431 | * | |
27432 | * First off, we lookup the cast->type name to see if it is already loaded. | |
27433 | * There are three cases to handle: | |
27434 | * 1) If the cast->type has already been loaded AND the type we are adding | |
27435 | * casting info to has not been loaded (it is in this module), THEN we | |
27436 | * replace the cast->type pointer with the type pointer that has already | |
27437 | * been loaded. | |
27438 | * 2) If BOTH types (the one we are adding casting info to, and the | |
27439 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
27440 | * the previous module so we just ignore it. | |
27441 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
27442 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
27443 | * be correct. | |
27444 | * ----------------------------------------------------------------------------- */ | |
27445 | ||
27446 | #ifdef __cplusplus | |
27447 | extern "C" { | |
27448 | #if 0 | |
27449 | } /* c-mode */ | |
27450 | #endif | |
27451 | #endif | |
27452 | ||
27453 | #if 0 | |
27454 | #define SWIGRUNTIME_DEBUG | |
27455 | #endif | |
27456 | ||
27457 | SWIGRUNTIME void | |
27458 | SWIG_InitializeModule(void *clientdata) { | |
27459 | size_t i; | |
27460 | swig_module_info *module_head; | |
27461 | static int init_run = 0; | |
27462 | ||
27463 | clientdata = clientdata; | |
27464 | ||
27465 | if (init_run) return; | |
27466 | init_run = 1; | |
27467 | ||
27468 | /* Initialize the swig_module */ | |
27469 | swig_module.type_initial = swig_type_initial; | |
27470 | swig_module.cast_initial = swig_cast_initial; | |
27471 | ||
27472 | /* Try and load any already created modules */ | |
27473 | module_head = SWIG_GetModule(clientdata); | |
27474 | if (module_head) { | |
27475 | swig_module.next = module_head->next; | |
27476 | module_head->next = &swig_module; | |
27477 | } else { | |
27478 | /* This is the first module loaded */ | |
27479 | swig_module.next = &swig_module; | |
27480 | SWIG_SetModule(clientdata, &swig_module); | |
27481 | } | |
27482 | ||
27483 | /* Now work on filling in swig_module.types */ | |
27484 | #ifdef SWIGRUNTIME_DEBUG | |
27485 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
27486 | #endif | |
27487 | for (i = 0; i < swig_module.size; ++i) { | |
27488 | swig_type_info *type = 0; | |
27489 | swig_type_info *ret; | |
27490 | swig_cast_info *cast; | |
27491 | ||
27492 | #ifdef SWIGRUNTIME_DEBUG | |
27493 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
27494 | #endif | |
27495 | ||
27496 | /* if there is another module already loaded */ | |
27497 | if (swig_module.next != &swig_module) { | |
27498 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 27499 | } |
554f62e9 RD |
27500 | if (type) { |
27501 | /* Overwrite clientdata field */ | |
27502 | #ifdef SWIGRUNTIME_DEBUG | |
27503 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
27504 | #endif | |
27505 | if (swig_module.type_initial[i]->clientdata) { | |
27506 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
27507 | #ifdef SWIGRUNTIME_DEBUG | |
27508 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
27509 | #endif | |
27510 | } | |
27511 | } else { | |
27512 | type = swig_module.type_initial[i]; | |
be9b1dca | 27513 | } |
554f62e9 RD |
27514 | |
27515 | /* Insert casting types */ | |
27516 | cast = swig_module.cast_initial[i]; | |
27517 | while (cast->type) { | |
27518 | /* Don't need to add information already in the list */ | |
27519 | ret = 0; | |
27520 | #ifdef SWIGRUNTIME_DEBUG | |
27521 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
27522 | #endif | |
27523 | if (swig_module.next != &swig_module) { | |
27524 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
27525 | #ifdef SWIGRUNTIME_DEBUG | |
27526 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
27527 | #endif | |
27528 | } | |
27529 | if (ret) { | |
27530 | if (type == swig_module.type_initial[i]) { | |
27531 | #ifdef SWIGRUNTIME_DEBUG | |
27532 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
27533 | #endif | |
27534 | cast->type = ret; | |
27535 | ret = 0; | |
27536 | } else { | |
27537 | /* Check for casting already in the list */ | |
27538 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
27539 | #ifdef SWIGRUNTIME_DEBUG | |
27540 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
27541 | #endif | |
27542 | if (!ocast) ret = 0; | |
27543 | } | |
27544 | } | |
27545 | ||
27546 | if (!ret) { | |
27547 | #ifdef SWIGRUNTIME_DEBUG | |
27548 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
27549 | #endif | |
27550 | if (type->cast) { | |
27551 | type->cast->prev = cast; | |
27552 | cast->next = type->cast; | |
27553 | } | |
27554 | type->cast = cast; | |
27555 | } | |
27556 | cast++; | |
be9b1dca | 27557 | } |
554f62e9 RD |
27558 | /* Set entry in modules->types array equal to the type */ |
27559 | swig_module.types[i] = type; | |
27560 | } | |
27561 | swig_module.types[i] = 0; | |
27562 | ||
27563 | #ifdef SWIGRUNTIME_DEBUG | |
27564 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
27565 | for (i = 0; i < swig_module.size; ++i) { | |
27566 | int j = 0; | |
27567 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
27568 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
27569 | while (cast->type) { | |
27570 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
27571 | cast++; | |
27572 | ++j; | |
27573 | } | |
27574 | printf("---- Total casts: %d\n",j); | |
27575 | } | |
27576 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
27577 | #endif | |
27578 | } | |
27579 | ||
27580 | /* This function will propagate the clientdata field of type to | |
27581 | * any new swig_type_info structures that have been added into the list | |
27582 | * of equivalent types. It is like calling | |
27583 | * SWIG_TypeClientData(type, clientdata) a second time. | |
27584 | */ | |
27585 | SWIGRUNTIME void | |
27586 | SWIG_PropagateClientData(void) { | |
27587 | size_t i; | |
27588 | swig_cast_info *equiv; | |
27589 | static int init_run = 0; | |
27590 | ||
27591 | if (init_run) return; | |
27592 | init_run = 1; | |
27593 | ||
27594 | for (i = 0; i < swig_module.size; i++) { | |
27595 | if (swig_module.types[i]->clientdata) { | |
27596 | equiv = swig_module.types[i]->cast; | |
27597 | while (equiv) { | |
27598 | if (!equiv->converter) { | |
27599 | if (equiv->type && !equiv->type->clientdata) | |
27600 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
27601 | } | |
27602 | equiv = equiv->next; | |
27603 | } | |
be9b1dca | 27604 | } |
554f62e9 RD |
27605 | } |
27606 | } | |
27607 | ||
27608 | #ifdef __cplusplus | |
27609 | #if 0 | |
27610 | { | |
27611 | /* c-mode */ | |
27612 | #endif | |
27613 | } | |
27614 | #endif | |
27615 | ||
27616 | ||
27617 | ||
27618 | #ifdef __cplusplus | |
27619 | extern "C" { | |
27620 | #endif | |
27621 | ||
27622 | /* Python-specific SWIG API */ | |
27623 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
27624 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
27625 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
27626 | ||
27627 | /* ----------------------------------------------------------------------------- | |
27628 | * global variable support code. | |
27629 | * ----------------------------------------------------------------------------- */ | |
27630 | ||
27631 | typedef struct swig_globalvar { | |
27632 | char *name; /* Name of global variable */ | |
27633 | PyObject *(*get_attr)(void); /* Return the current value */ | |
27634 | int (*set_attr)(PyObject *); /* Set the value */ | |
27635 | struct swig_globalvar *next; | |
27636 | } swig_globalvar; | |
27637 | ||
27638 | typedef struct swig_varlinkobject { | |
27639 | PyObject_HEAD | |
27640 | swig_globalvar *vars; | |
27641 | } swig_varlinkobject; | |
27642 | ||
27643 | SWIGINTERN PyObject * | |
27644 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
27645 | return PyString_FromString("<Swig global variables>"); | |
27646 | } | |
27647 | ||
27648 | SWIGINTERN PyObject * | |
27649 | swig_varlink_str(swig_varlinkobject *v) { | |
27650 | PyObject *str = PyString_FromString("("); | |
27651 | swig_globalvar *var; | |
27652 | for (var = v->vars; var; var=var->next) { | |
27653 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
27654 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
27655 | } | |
27656 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
27657 | return str; | |
27658 | } | |
27659 | ||
27660 | SWIGINTERN int | |
27661 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
27662 | PyObject *str = swig_varlink_str(v); | |
27663 | fprintf(fp,"Swig global variables "); | |
27664 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
27665 | Py_DECREF(str); | |
27666 | return 0; | |
27667 | } | |
27668 | ||
27669 | SWIGINTERN void | |
27670 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
27671 | swig_globalvar *var = v->vars; | |
27672 | while (var) { | |
27673 | swig_globalvar *n = var->next; | |
27674 | free(var->name); | |
27675 | free(var); | |
27676 | var = n; | |
be9b1dca | 27677 | } |
554f62e9 RD |
27678 | } |
27679 | ||
27680 | SWIGINTERN PyObject * | |
27681 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
27682 | PyObject *res = NULL; | |
27683 | swig_globalvar *var = v->vars; | |
27684 | while (var) { | |
27685 | if (strcmp(var->name,n) == 0) { | |
27686 | res = (*var->get_attr)(); | |
27687 | break; | |
27688 | } | |
27689 | var = var->next; | |
be9b1dca | 27690 | } |
554f62e9 RD |
27691 | if (res == NULL && !PyErr_Occurred()) { |
27692 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 27693 | } |
554f62e9 RD |
27694 | return res; |
27695 | } | |
27696 | ||
27697 | SWIGINTERN int | |
27698 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
27699 | int res = 1; | |
27700 | swig_globalvar *var = v->vars; | |
27701 | while (var) { | |
27702 | if (strcmp(var->name,n) == 0) { | |
27703 | res = (*var->set_attr)(p); | |
27704 | break; | |
27705 | } | |
27706 | var = var->next; | |
be9b1dca | 27707 | } |
554f62e9 RD |
27708 | if (res == 1 && !PyErr_Occurred()) { |
27709 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 27710 | } |
554f62e9 RD |
27711 | return res; |
27712 | } | |
27713 | ||
27714 | SWIGINTERN PyTypeObject* | |
27715 | swig_varlink_type(void) { | |
27716 | static char varlink__doc__[] = "Swig var link object"; | |
27717 | static PyTypeObject varlink_type; | |
27718 | static int type_init = 0; | |
27719 | if (!type_init) { | |
27720 | const PyTypeObject tmp | |
27721 | = { | |
27722 | PyObject_HEAD_INIT(NULL) | |
27723 | 0, /* Number of items in variable part (ob_size) */ | |
27724 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
27725 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
27726 | 0, /* Itemsize (tp_itemsize) */ | |
27727 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
27728 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
27729 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
27730 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
27731 | 0, /* tp_compare */ | |
27732 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
27733 | 0, /* tp_as_number */ | |
27734 | 0, /* tp_as_sequence */ | |
27735 | 0, /* tp_as_mapping */ | |
27736 | 0, /* tp_hash */ | |
27737 | 0, /* tp_call */ | |
27738 | (reprfunc)swig_varlink_str, /* tp_str */ | |
27739 | 0, /* tp_getattro */ | |
27740 | 0, /* tp_setattro */ | |
27741 | 0, /* tp_as_buffer */ | |
27742 | 0, /* tp_flags */ | |
27743 | varlink__doc__, /* tp_doc */ | |
27744 | 0, /* tp_traverse */ | |
27745 | 0, /* tp_clear */ | |
27746 | 0, /* tp_richcompare */ | |
27747 | 0, /* tp_weaklistoffset */ | |
27748 | #if PY_VERSION_HEX >= 0x02020000 | |
27749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
27750 | #endif | |
27751 | #if PY_VERSION_HEX >= 0x02030000 | |
27752 | 0, /* tp_del */ | |
27753 | #endif | |
27754 | #ifdef COUNT_ALLOCS | |
27755 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
27756 | #endif | |
27757 | }; | |
27758 | varlink_type = tmp; | |
27759 | varlink_type.ob_type = &PyType_Type; | |
27760 | type_init = 1; | |
be9b1dca | 27761 | } |
554f62e9 RD |
27762 | return &varlink_type; |
27763 | } | |
27764 | ||
27765 | /* Create a variable linking object for use later */ | |
27766 | SWIGINTERN PyObject * | |
27767 | SWIG_Python_newvarlink(void) { | |
27768 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
27769 | if (result) { | |
27770 | result->vars = 0; | |
27771 | } | |
27772 | return ((PyObject*) result); | |
27773 | } | |
27774 | ||
27775 | SWIGINTERN void | |
27776 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
27777 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
27778 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
27779 | if (gv) { | |
27780 | size_t size = strlen(name)+1; | |
27781 | gv->name = (char *)malloc(size); | |
27782 | if (gv->name) { | |
27783 | strncpy(gv->name,name,size); | |
27784 | gv->get_attr = get_attr; | |
27785 | gv->set_attr = set_attr; | |
27786 | gv->next = v->vars; | |
27787 | } | |
be9b1dca | 27788 | } |
554f62e9 RD |
27789 | v->vars = gv; |
27790 | } | |
27791 | ||
27792 | SWIGINTERN PyObject * | |
27793 | SWIG_globals() { | |
27794 | static PyObject *_SWIG_globals = 0; | |
27795 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
27796 | return _SWIG_globals; | |
27797 | } | |
27798 | ||
27799 | /* ----------------------------------------------------------------------------- | |
27800 | * constants/methods manipulation | |
27801 | * ----------------------------------------------------------------------------- */ | |
27802 | ||
27803 | /* Install Constants */ | |
27804 | SWIGINTERN void | |
27805 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
27806 | PyObject *obj = 0; | |
27807 | size_t i; | |
27808 | for (i = 0; constants[i].type; ++i) { | |
27809 | switch(constants[i].type) { | |
27810 | case SWIG_PY_POINTER: | |
27811 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
27812 | break; | |
27813 | case SWIG_PY_BINARY: | |
27814 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
27815 | break; | |
27816 | default: | |
27817 | obj = 0; | |
27818 | break; | |
27819 | } | |
27820 | if (obj) { | |
27821 | PyDict_SetItemString(d, constants[i].name, obj); | |
27822 | Py_DECREF(obj); | |
27823 | } | |
be9b1dca | 27824 | } |
554f62e9 RD |
27825 | } |
27826 | ||
27827 | /* -----------------------------------------------------------------------------*/ | |
27828 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27829 | /* -----------------------------------------------------------------------------*/ | |
27830 | ||
27831 | SWIGINTERN void | |
27832 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
27833 | swig_const_info *const_table, | |
27834 | swig_type_info **types, | |
27835 | swig_type_info **types_initial) { | |
27836 | size_t i; | |
27837 | for (i = 0; methods[i].ml_name; ++i) { | |
27838 | char *c = methods[i].ml_doc; | |
27839 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
27840 | int j; | |
27841 | swig_const_info *ci = 0; | |
27842 | char *name = c + 10; | |
27843 | for (j = 0; const_table[j].type; ++j) { | |
27844 | if (strncmp(const_table[j].name, name, | |
27845 | strlen(const_table[j].name)) == 0) { | |
27846 | ci = &(const_table[j]); | |
27847 | break; | |
27848 | } | |
27849 | } | |
27850 | if (ci) { | |
27851 | size_t shift = (ci->ptype) - types; | |
27852 | swig_type_info *ty = types_initial[shift]; | |
27853 | size_t ldoc = (c - methods[i].ml_doc); | |
27854 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
27855 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
27856 | if (ndoc) { | |
27857 | char *buff = ndoc; | |
27858 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
27859 | if (ptr) { | |
27860 | strncpy(buff, methods[i].ml_doc, ldoc); | |
27861 | buff += ldoc; | |
27862 | strncpy(buff, "swig_ptr: ", 10); | |
27863 | buff += 10; | |
27864 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
27865 | methods[i].ml_doc = ndoc; | |
27866 | } | |
27867 | } | |
27868 | } | |
27869 | } | |
be9b1dca | 27870 | } |
554f62e9 RD |
27871 | } |
27872 | ||
27873 | #ifdef __cplusplus | |
27874 | } | |
27875 | #endif | |
27876 | ||
27877 | /* -----------------------------------------------------------------------------* | |
27878 | * Partial Init method | |
27879 | * -----------------------------------------------------------------------------*/ | |
27880 | ||
27881 | #ifdef __cplusplus | |
27882 | extern "C" | |
27883 | #endif | |
27884 | SWIGEXPORT void SWIG_init(void) { | |
27885 | PyObject *m, *d; | |
27886 | ||
27887 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27888 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
27889 | ||
27890 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27891 | d = PyModule_GetDict(m); | |
27892 | ||
27893 | SWIG_InitializeModule(0); | |
27894 | SWIG_InstallConstants(d,swig_const_table); | |
27895 | ||
27896 | ||
27897 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); | |
27898 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
27899 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
27900 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
27901 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
27902 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
27903 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
27904 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
27905 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
27906 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
27907 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
27908 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
27909 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
27910 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
27911 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
27912 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
27913 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
27914 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
27915 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
27916 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
27917 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
27918 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
27919 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
27920 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
27921 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
27922 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
27923 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
27924 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
27925 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
27926 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
27927 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
27928 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
27929 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
27930 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
27931 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
27932 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
27933 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
27934 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
27935 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
27936 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
27937 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
27938 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
27939 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
27940 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
27941 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
27942 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
27943 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
27944 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
27945 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
27946 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
27947 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
27948 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
27949 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
27950 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
27951 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
27952 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
27953 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
27954 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
27955 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
27956 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
27957 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
27958 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
27959 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
27960 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
27961 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
27962 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
27963 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
27964 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
27965 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
27966 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
27967 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
27968 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
27969 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
27970 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
27971 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
27972 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
27973 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
27974 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
27975 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
27976 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
27977 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
27978 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
27979 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
27980 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
27981 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
27982 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
27983 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
27984 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
27985 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
27986 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
27987 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
27988 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
27989 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
27990 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
27991 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
27992 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
27993 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
27994 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
27995 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
27996 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
27997 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
27998 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
27999 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
28000 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
28001 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
28002 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
28003 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
28004 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
28005 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
28006 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
28007 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
28008 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
28009 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
28010 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
28011 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
28012 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
28013 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
28014 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
28015 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
28016 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
28017 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
28018 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
28019 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
28020 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
28021 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
28022 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
28023 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
28024 | ||
28025 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
28026 | ||
28027 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
28028 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
28029 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
28030 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
28031 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
28032 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
28033 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
28034 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
28035 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
28036 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
28037 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
28038 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
28039 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
28040 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
28041 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
28042 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
28043 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
28044 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
28045 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
28046 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
28047 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
28048 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
28049 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
28050 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
28051 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
28052 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
28053 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
28054 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
28055 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
28056 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
28057 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
28058 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
28059 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
28060 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
28061 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
28062 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
28063 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
28064 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
28065 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
28066 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
28067 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
28068 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
28069 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
28070 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
28071 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
28072 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
28073 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
28074 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
28075 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
28076 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
28077 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
28078 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
28079 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
28080 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
28081 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
28082 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
28083 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
28084 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
28085 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
28086 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
28087 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
28088 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
28089 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
28090 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
28091 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
28092 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
28093 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
28094 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
28095 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
28096 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
28097 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
28098 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
28099 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
28100 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
28101 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
28102 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
28103 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
28104 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
28105 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
28106 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
28107 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
28108 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
28109 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
28110 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
28111 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
28112 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
28113 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
28114 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
28115 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
28116 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
28117 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
28118 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
28119 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
28120 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
28121 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
28122 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
28123 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
28124 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
28125 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
28126 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
28127 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
28128 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
28129 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
28130 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
28131 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
28132 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
28133 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
28134 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
28135 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
28136 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
28137 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
28138 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
28139 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
28140 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
28141 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
28142 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
28143 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
28144 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
28145 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
28146 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
28147 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
28148 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
28149 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
28150 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
28151 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
28152 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
28153 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
28154 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
28155 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
28156 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
28157 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
28158 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
28159 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
28160 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
28161 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
28162 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
28163 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
28164 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
28165 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
28166 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
28167 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
28168 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
28169 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
28170 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
28171 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
28172 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
28173 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
28174 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
28175 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
28176 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
28177 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
28178 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
28179 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
28180 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
28181 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
28182 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
28183 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
28184 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
28185 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
28186 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
28187 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
28188 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
28189 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
28190 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
28191 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
28192 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
28193 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
28194 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
28195 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
28196 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
28197 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
28198 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
28199 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
28200 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
28201 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
28202 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
28203 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
28204 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
28205 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
28206 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
28207 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
28208 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
28209 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
28210 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
28211 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
28212 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
28213 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
28214 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
28215 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
28216 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
28217 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
28218 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
28219 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
28220 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
28221 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
28222 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
28223 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
28224 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
28225 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
28226 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
28227 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
28228 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
28229 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
28230 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
28231 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
28232 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
28233 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
28234 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
28235 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
28236 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
28237 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
28238 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
28239 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
28240 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
28241 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
28242 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
28243 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
28244 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
28245 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
28246 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
28247 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
28248 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
28249 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
28250 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
28251 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
28252 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
28253 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
28254 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
28255 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
28256 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
28257 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
28258 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
28259 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
28260 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
28261 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
28262 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
28263 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
28264 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
28265 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
28266 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
28267 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
28268 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
28269 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
28270 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
28271 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
28272 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
28273 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
28274 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
28275 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); | |
28276 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
28277 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
28278 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
28279 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
28280 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
28281 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
28282 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
28283 | SWIG_addvarlink(SWIG_globals(),(char*)"NORMAL_FONT",NORMAL_FONT_get, NORMAL_FONT_set); | |
28284 | SWIG_addvarlink(SWIG_globals(),(char*)"SMALL_FONT",SMALL_FONT_get, SMALL_FONT_set); | |
28285 | SWIG_addvarlink(SWIG_globals(),(char*)"ITALIC_FONT",ITALIC_FONT_get, ITALIC_FONT_set); | |
28286 | SWIG_addvarlink(SWIG_globals(),(char*)"SWISS_FONT",SWISS_FONT_get, SWISS_FONT_set); | |
28287 | SWIG_addvarlink(SWIG_globals(),(char*)"RED_PEN",RED_PEN_get, RED_PEN_set); | |
28288 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_PEN",CYAN_PEN_get, CYAN_PEN_set); | |
28289 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_PEN",GREEN_PEN_get, GREEN_PEN_set); | |
28290 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_PEN",BLACK_PEN_get, BLACK_PEN_set); | |
28291 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_PEN",WHITE_PEN_get, WHITE_PEN_set); | |
28292 | SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_PEN",TRANSPARENT_PEN_get, TRANSPARENT_PEN_set); | |
28293 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_DASHED_PEN",BLACK_DASHED_PEN_get, BLACK_DASHED_PEN_set); | |
28294 | SWIG_addvarlink(SWIG_globals(),(char*)"GREY_PEN",GREY_PEN_get, GREY_PEN_set); | |
28295 | SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_PEN",MEDIUM_GREY_PEN_get, MEDIUM_GREY_PEN_set); | |
28296 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_PEN",LIGHT_GREY_PEN_get, LIGHT_GREY_PEN_set); | |
28297 | SWIG_addvarlink(SWIG_globals(),(char*)"BLUE_BRUSH",BLUE_BRUSH_get, BLUE_BRUSH_set); | |
28298 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_BRUSH",GREEN_BRUSH_get, GREEN_BRUSH_set); | |
28299 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_BRUSH",WHITE_BRUSH_get, WHITE_BRUSH_set); | |
28300 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_BRUSH",BLACK_BRUSH_get, BLACK_BRUSH_set); | |
28301 | SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_BRUSH",TRANSPARENT_BRUSH_get, TRANSPARENT_BRUSH_set); | |
28302 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_BRUSH",CYAN_BRUSH_get, CYAN_BRUSH_set); | |
28303 | SWIG_addvarlink(SWIG_globals(),(char*)"RED_BRUSH",RED_BRUSH_get, RED_BRUSH_set); | |
28304 | SWIG_addvarlink(SWIG_globals(),(char*)"GREY_BRUSH",GREY_BRUSH_get, GREY_BRUSH_set); | |
28305 | SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_BRUSH",MEDIUM_GREY_BRUSH_get, MEDIUM_GREY_BRUSH_set); | |
28306 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_BRUSH",LIGHT_GREY_BRUSH_get, LIGHT_GREY_BRUSH_set); | |
28307 | SWIG_addvarlink(SWIG_globals(),(char*)"BLACK",BLACK_get, BLACK_set); | |
28308 | SWIG_addvarlink(SWIG_globals(),(char*)"WHITE",WHITE_get, WHITE_set); | |
28309 | SWIG_addvarlink(SWIG_globals(),(char*)"RED",RED_get, RED_set); | |
28310 | SWIG_addvarlink(SWIG_globals(),(char*)"BLUE",BLUE_get, BLUE_set); | |
28311 | SWIG_addvarlink(SWIG_globals(),(char*)"GREEN",GREEN_get, GREEN_set); | |
28312 | SWIG_addvarlink(SWIG_globals(),(char*)"CYAN",CYAN_get, CYAN_set); | |
28313 | SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY",LIGHT_GREY_get, LIGHT_GREY_set); | |
28314 | SWIG_addvarlink(SWIG_globals(),(char*)"STANDARD_CURSOR",STANDARD_CURSOR_get, STANDARD_CURSOR_set); | |
28315 | SWIG_addvarlink(SWIG_globals(),(char*)"HOURGLASS_CURSOR",HOURGLASS_CURSOR_get, HOURGLASS_CURSOR_set); | |
28316 | SWIG_addvarlink(SWIG_globals(),(char*)"CROSS_CURSOR",CROSS_CURSOR_get, CROSS_CURSOR_set); | |
28317 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); | |
28318 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
28319 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
28320 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
28321 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
28322 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
28323 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
28324 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
28325 | SWIG_addvarlink(SWIG_globals(),(char*)"TheFontList",TheFontList_get, TheFontList_set); | |
28326 | SWIG_addvarlink(SWIG_globals(),(char*)"ThePenList",ThePenList_get, ThePenList_set); | |
28327 | SWIG_addvarlink(SWIG_globals(),(char*)"TheBrushList",TheBrushList_get, TheBrushList_set); | |
28328 | SWIG_addvarlink(SWIG_globals(),(char*)"TheColourDatabase",TheColourDatabase_get, TheColourDatabase_set); | |
28329 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); | |
28330 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
28331 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
28332 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); | |
28333 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
28334 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
28335 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); | |
28336 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
28337 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
28338 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
28339 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
28340 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
28341 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
28342 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); | |
28343 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
28344 | ||
28345 | // Work around a chicken/egg problem in drawlist.cpp | |
28346 | wxPyDrawList_SetAPIPtr(); | |
28347 | ||
d55e5bfc RD |
28348 | } |
28349 |