]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
1bd55598 | 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 | |
1bd55598 | 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); | |
36ed4f51 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
1bd55598 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
1bd55598 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
1bd55598 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 | |
36ed4f51 | 46 | #endif |
d55e5bfc | 47 | |
32fe5131 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 | |
1bd55598 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__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
1bd55598 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 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 | ||
1bd55598 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 | ||
32fe5131 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 | |
1bd55598 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 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 | ||
1bd55598 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 | |
32fe5131 | 126 | |
d55e5bfc | 127 | |
1bd55598 | 128 | /* Python.h has to appear first */ |
36ed4f51 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
1bd55598 | 131 | /* ----------------------------------------------------------------------------- |
36ed4f51 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
1bd55598 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
36ed4f51 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 */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
36ed4f51 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 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 |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
36ed4f51 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 | */ | |
32fe5131 | 159 | |
36ed4f51 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
36ed4f51 | 162 | #endif |
32fe5131 | 163 | |
36ed4f51 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
1bd55598 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 | ||
32fe5131 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 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
32fe5131 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 */ | |
1bd55598 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
32fe5131 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 | ||
36ed4f51 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; | |
1bd55598 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
36ed4f51 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
36ed4f51 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 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
36ed4f51 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 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 | |
36ed4f51 | 388 | */ |
32fe5131 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; | |
36ed4f51 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
36ed4f51 | 400 | } |
32fe5131 | 401 | return equiv; |
36ed4f51 RD |
402 | } |
403 | ||
32fe5131 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 | ||
36ed4f51 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
36ed4f51 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 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); | |
36ed4f51 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
36ed4f51 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. */ | |
1bd55598 | 481 | if (!type) return NULL; |
36ed4f51 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 | ||
36ed4f51 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
36ed4f51 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 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); | |
36ed4f51 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
1bd55598 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 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); | |
36ed4f51 | 556 | } |
32fe5131 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); | |
36ed4f51 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
36ed4f51 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) { | |
32fe5131 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; | |
36ed4f51 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
36ed4f51 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; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
36ed4f51 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
1bd55598 | 622 | register unsigned char uu; |
36ed4f51 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 | ||
36ed4f51 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 | |
36ed4f51 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 | ||
1bd55598 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 | |
1bd55598 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 | |
36ed4f51 | 764 | #endif |
1bd55598 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 | ||
c370783e | 799 | |
36ed4f51 | 800 | /* ----------------------------------------------------------------------------- |
1bd55598 | 801 | * error manipulation |
36ed4f51 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
1bd55598 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 | |
1bd55598 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 | |
36ed4f51 | 935 | #endif |
d55e5bfc | 936 | |
1bd55598 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 940 | |
1bd55598 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
36ed4f51 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
36ed4f51 | 952 | /* Constant Types */ |
36ed4f51 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
1bd55598 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
36ed4f51 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
1bd55598 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
36ed4f51 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
1bd55598 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 | * | |
36ed4f51 RD |
978 | * pyrun.swg |
979 | * | |
1bd55598 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
36ed4f51 | 983 | * |
1bd55598 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
36ed4f51 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
1bd55598 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 | |
1bd55598 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 | |
1bd55598 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 | |
1bd55598 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 | |
1bd55598 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) | |
32fe5131 | 1012 | |
c370783e | 1013 | |
1bd55598 | 1014 | /* Runtime API */ |
d55e5bfc | 1015 | |
1bd55598 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) | |
32fe5131 | 1019 | |
1bd55598 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 | |
32fe5131 | 1025 | |
d55e5bfc | 1026 | |
1bd55598 | 1027 | /* Runtime API implementation */ |
c370783e | 1028 | |
1bd55598 | 1029 | /* Error manipulation */ |
c370783e | 1030 | |
1bd55598 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; | |
c370783e | 1037 | } |
d55e5bfc | 1038 | |
1bd55598 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; | |
c370783e | 1044 | } |
d55e5bfc | 1045 | |
1bd55598 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
1bd55598 | 1048 | /* Set a constant value */ |
d55e5bfc | 1049 | |
1bd55598 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 | ||
1bd55598 | 1056 | /* Append a value to the result obj */ |
d55e5bfc | 1057 | |
1bd55598 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; | |
36ed4f51 | 1084 | } else { |
1bd55598 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); | |
36ed4f51 | 1096 | } |
1bd55598 RD |
1097 | return result; |
1098 | #endif | |
36ed4f51 | 1099 | } |
c370783e | 1100 | |
1bd55598 | 1101 | /* Unpack the argument tuple */ |
d55e5bfc | 1102 | |
1bd55598 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*/ | |
36ed4f51 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*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 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 */ | |
36ed4f51 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
1bd55598 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
36ed4f51 | 1614 | if (!type_init) { |
1bd55598 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 */ | |
36ed4f51 | 1628 | #endif |
1bd55598 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 */ | |
36ed4f51 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
1bd55598 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 */ | |
36ed4f51 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1670 | 0, /* tp_del */ |
36ed4f51 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1674 | #endif |
1bd55598 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
1bd55598 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
36ed4f51 | 1678 | type_init = 1; |
d55e5bfc | 1679 | } |
32fe5131 | 1680 | return &pyswigobject_type; |
d55e5bfc RD |
1681 | } |
1682 | ||
36ed4f51 | 1683 | SWIGRUNTIME PyObject * |
1bd55598 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
36ed4f51 | 1685 | { |
1bd55598 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; | |
32fe5131 | 1692 | } |
1bd55598 | 1693 | return (PyObject *)sobj; |
36ed4f51 | 1694 | } |
c370783e | 1695 | |
36ed4f51 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; | |
1bd55598 | 1703 | swig_type_info *ty; |
36ed4f51 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
1706 | ||
1707 | SWIGRUNTIME int | |
1bd55598 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
c370783e | 1709 | { |
36ed4f51 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 | } |
1bd55598 | 1716 | fputs(v->ty->name,fp); |
36ed4f51 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
c370783e | 1719 | } |
c370783e | 1720 | |
36ed4f51 RD |
1721 | SWIGRUNTIME PyObject * |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
c370783e | 1723 | { |
36ed4f51 RD |
1724 | char result[SWIG_BUFFER_SIZE]; |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1bd55598 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
36ed4f51 | 1727 | } else { |
1bd55598 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
36ed4f51 | 1729 | } |
d55e5bfc RD |
1730 | } |
1731 | ||
36ed4f51 RD |
1732 | SWIGRUNTIME PyObject * |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1bd55598 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
36ed4f51 | 1738 | } else { |
1bd55598 | 1739 | return PyString_FromString(v->ty->name); |
36ed4f51 RD |
1740 | } |
1741 | } | |
d55e5bfc | 1742 | |
36ed4f51 RD |
1743 | SWIGRUNTIME int |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1745 | { |
1bd55598 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 | ||
1bd55598 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1753 | |
36ed4f51 | 1754 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1755 | PySwigPacked_type(void) { |
1bd55598 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 */ | |
36ed4f51 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1833 | 0, /* tp_del */ |
36ed4f51 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1837 | #endif |
1bd55598 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
1bd55598 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
36ed4f51 RD |
1844 | } |
1845 | ||
1846 | SWIGRUNTIME PyObject * | |
1bd55598 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
d55e5bfc | 1848 | { |
1bd55598 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
36ed4f51 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
1bd55598 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
d55e5bfc | 1861 | } |
1bd55598 | 1862 | return (PyObject *) sobj; |
d55e5bfc RD |
1863 | } |
1864 | ||
1bd55598 | 1865 | SWIGRUNTIME swig_type_info * |
36ed4f51 | 1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d55e5bfc | 1867 | { |
1bd55598 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 | } | |
36ed4f51 | 1876 | } |
d55e5bfc | 1877 | |
36ed4f51 | 1878 | /* ----------------------------------------------------------------------------- |
1bd55598 | 1879 | * pointers/data manipulation |
36ed4f51 | 1880 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1881 | |
1bd55598 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
d6c14a4c | 1887 | |
1bd55598 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 | |
1bd55598 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
36ed4f51 | 1896 | |
1bd55598 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
36ed4f51 | 1899 | { |
1bd55598 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); | |
36ed4f51 | 1922 | } else { |
1bd55598 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
36ed4f51 | 1925 | } |
36ed4f51 | 1926 | } |
1bd55598 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; | |
c370783e | 1943 | } |
d55e5bfc RD |
1944 | } |
1945 | ||
1bd55598 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 | } | |
36ed4f51 | 1957 | } |
1bd55598 | 1958 | return 0; |
36ed4f51 | 1959 | } |
d55e5bfc | 1960 | |
1bd55598 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
36ed4f51 | 1963 | SWIGRUNTIME int |
1bd55598 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 | } | |
36ed4f51 | 1988 | } else { |
1bd55598 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
36ed4f51 | 1991 | } |
36ed4f51 | 1992 | } |
1bd55598 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 | } | |
d55e5bfc | 2038 | } |
c370783e RD |
2039 | } |
2040 | ||
1bd55598 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
36ed4f51 | 2043 | SWIGRUNTIME int |
1bd55598 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); | |
36ed4f51 | 2047 | } else { |
1bd55598 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; | |
36ed4f51 | 2065 | } |
d55e5bfc RD |
2066 | } |
2067 | ||
1bd55598 | 2068 | /* Convert a packed value value */ |
d55e5bfc | 2069 | |
36ed4f51 | 2070 | SWIGRUNTIME int |
1bd55598 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 | } | |
36ed4f51 | 2080 | } |
1bd55598 RD |
2081 | return SWIG_OK; |
2082 | } | |
d55e5bfc | 2083 | |
1bd55598 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2087 | |
1bd55598 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
d55e5bfc | 2092 | |
1bd55598 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 | } | |
36ed4f51 | 2111 | } |
1bd55598 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
36ed4f51 | 2116 | } |
1bd55598 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); | |
36ed4f51 | 2122 | } |
1bd55598 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; | |
36ed4f51 | 2136 | } |
1bd55598 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; | |
36ed4f51 | 2143 | } |
1bd55598 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 | |
36ed4f51 | 2154 | } |
d55e5bfc | 2155 | |
1bd55598 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 | } | |
36ed4f51 | 2171 | #endif |
1bd55598 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
d55e5bfc | 2176 | |
1bd55598 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]); | |
36ed4f51 | 2187 | } else { |
1bd55598 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
36ed4f51 | 2189 | } |
1bd55598 | 2190 | return SWIG_Py_Void(); |
d55e5bfc | 2191 | } |
1bd55598 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
36ed4f51 | 2195 | |
36ed4f51 | 2196 | SWIGRUNTIME PyObject * |
1bd55598 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
36ed4f51 | 2198 | if (!ptr) { |
1bd55598 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; | |
36ed4f51 | 2209 | } |
36ed4f51 | 2210 | } |
1bd55598 | 2211 | return robj; |
36ed4f51 | 2212 | } |
c370783e RD |
2213 | } |
2214 | ||
1bd55598 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
36ed4f51 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
1bd55598 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
d55e5bfc RD |
2220 | } |
2221 | ||
36ed4f51 RD |
2222 | /* -----------------------------------------------------------------------------* |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
36ed4f51 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 |
36ed4f51 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 |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
36ed4f51 | 2247 | } |
d55e5bfc | 2248 | |
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1bd55598 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 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"); | |
1bd55598 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
1bd55598 | 2264 | return SWIG_ERROR; |
32fe5131 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)); | |
1bd55598 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
1bd55598 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
1bd55598 | 2277 | return SWIG_OK; |
36ed4f51 | 2278 | } |
32fe5131 | 2279 | #endif |
d55e5bfc | 2280 | |
1bd55598 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 | ||
32fe5131 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); | |
1bd55598 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1bd55598 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
d55e5bfc | 2310 | |
1bd55598 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; | |
36ed4f51 | 2316 | } |
d55e5bfc | 2317 | |
1bd55598 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] | |
32fe5131 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] | |
2131d850 RD |
2482 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20] |
2483 | #define SWIGTYPE_p_wxCloseEvent swig_types[21] | |
2484 | #define SWIGTYPE_p_wxColour swig_types[22] | |
2485 | #define SWIGTYPE_p_wxColourDatabase swig_types[23] | |
2486 | #define SWIGTYPE_p_wxCommandEvent swig_types[24] | |
2487 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[25] | |
2488 | #define SWIGTYPE_p_wxControl swig_types[26] | |
2489 | #define SWIGTYPE_p_wxControlWithItems swig_types[27] | |
2490 | #define SWIGTYPE_p_wxCursor swig_types[28] | |
2491 | #define SWIGTYPE_p_wxDC swig_types[29] | |
2492 | #define SWIGTYPE_p_wxDash swig_types[30] | |
2493 | #define SWIGTYPE_p_wxDateEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32] | |
2495 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[33] | |
2496 | #define SWIGTYPE_p_wxDuplexMode swig_types[34] | |
2497 | #define SWIGTYPE_p_wxEffects swig_types[35] | |
2498 | #define SWIGTYPE_p_wxEncodingConverter swig_types[36] | |
2499 | #define SWIGTYPE_p_wxEraseEvent swig_types[37] | |
2500 | #define SWIGTYPE_p_wxEvent swig_types[38] | |
2501 | #define SWIGTYPE_p_wxEvtHandler swig_types[39] | |
2502 | #define SWIGTYPE_p_wxFSFile swig_types[40] | |
2503 | #define SWIGTYPE_p_wxFileSystem swig_types[41] | |
2504 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2505 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2506 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2507 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
2508 | #define SWIGTYPE_p_wxFontMapper swig_types[46] | |
2509 | #define SWIGTYPE_p_wxGBSizerItem swig_types[47] | |
2510 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[48] | |
2511 | #define SWIGTYPE_p_wxGDIObject swig_types[49] | |
2512 | #define SWIGTYPE_p_wxGIFHandler swig_types[50] | |
2513 | #define SWIGTYPE_p_wxGridBagSizer swig_types[51] | |
2514 | #define SWIGTYPE_p_wxGridSizer swig_types[52] | |
2515 | #define SWIGTYPE_p_wxICOHandler swig_types[53] | |
2516 | #define SWIGTYPE_p_wxIcon swig_types[54] | |
2517 | #define SWIGTYPE_p_wxIconBundle swig_types[55] | |
2518 | #define SWIGTYPE_p_wxIconLocation swig_types[56] | |
2519 | #define SWIGTYPE_p_wxIconizeEvent swig_types[57] | |
2520 | #define SWIGTYPE_p_wxIdleEvent swig_types[58] | |
2521 | #define SWIGTYPE_p_wxImage swig_types[59] | |
2522 | #define SWIGTYPE_p_wxImageHandler swig_types[60] | |
2523 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
2524 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62] | |
2525 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[63] | |
2526 | #define SWIGTYPE_p_wxJPEGHandler swig_types[64] | |
2527 | #define SWIGTYPE_p_wxKeyEvent swig_types[65] | |
2528 | #define SWIGTYPE_p_wxLanguageInfo swig_types[66] | |
2529 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[67] | |
2530 | #define SWIGTYPE_p_wxLocale swig_types[68] | |
2531 | #define SWIGTYPE_p_wxMask swig_types[69] | |
2532 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[70] | |
2533 | #define SWIGTYPE_p_wxMemoryDC swig_types[71] | |
2534 | #define SWIGTYPE_p_wxMenu swig_types[72] | |
2535 | #define SWIGTYPE_p_wxMenuBar swig_types[73] | |
2536 | #define SWIGTYPE_p_wxMenuEvent swig_types[74] | |
2537 | #define SWIGTYPE_p_wxMenuItem swig_types[75] | |
2538 | #define SWIGTYPE_p_wxMetaFile swig_types[76] | |
2539 | #define SWIGTYPE_p_wxMetaFileDC swig_types[77] | |
2540 | #define SWIGTYPE_p_wxMirrorDC swig_types[78] | |
2541 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79] | |
2542 | #define SWIGTYPE_p_wxMouseEvent swig_types[80] | |
2543 | #define SWIGTYPE_p_wxMoveEvent swig_types[81] | |
2544 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82] | |
2545 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[83] | |
2546 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84] | |
2547 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[85] | |
2548 | #define SWIGTYPE_p_wxNotifyEvent swig_types[86] | |
2549 | #define SWIGTYPE_p_wxObject swig_types[87] | |
2550 | #define SWIGTYPE_p_wxPCXHandler swig_types[88] | |
2551 | #define SWIGTYPE_p_wxPNGHandler swig_types[89] | |
2552 | #define SWIGTYPE_p_wxPNMHandler swig_types[90] | |
2553 | #define SWIGTYPE_p_wxPaintDC swig_types[91] | |
2554 | #define SWIGTYPE_p_wxPaintEvent swig_types[92] | |
2555 | #define SWIGTYPE_p_wxPalette swig_types[93] | |
2556 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94] | |
2557 | #define SWIGTYPE_p_wxPaperSize swig_types[95] | |
2558 | #define SWIGTYPE_p_wxPen swig_types[96] | |
2559 | #define SWIGTYPE_p_wxPenList swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPoint swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPostScriptDC swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPrintData swig_types[100] | |
2563 | #define SWIGTYPE_p_wxPrinterDC swig_types[101] | |
2564 | #define SWIGTYPE_p_wxPyApp swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[103] | |
2566 | #define SWIGTYPE_p_wxPyEvent swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyImageHandler swig_types[106] | |
2569 | #define SWIGTYPE_p_wxPySizer swig_types[107] | |
2570 | #define SWIGTYPE_p_wxPyValidator swig_types[108] | |
2571 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109] | |
2572 | #define SWIGTYPE_p_wxRect swig_types[110] | |
2573 | #define SWIGTYPE_p_wxRegion swig_types[111] | |
2574 | #define SWIGTYPE_p_wxRegionIterator swig_types[112] | |
2575 | #define SWIGTYPE_p_wxRendererNative swig_types[113] | |
2576 | #define SWIGTYPE_p_wxRendererVersion swig_types[114] | |
2577 | #define SWIGTYPE_p_wxScreenDC swig_types[115] | |
2578 | #define SWIGTYPE_p_wxScrollEvent swig_types[116] | |
2579 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[117] | |
2580 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[118] | |
2581 | #define SWIGTYPE_p_wxShowEvent swig_types[119] | |
2582 | #define SWIGTYPE_p_wxSize swig_types[120] | |
2583 | #define SWIGTYPE_p_wxSizeEvent swig_types[121] | |
2584 | #define SWIGTYPE_p_wxSizer swig_types[122] | |
2585 | #define SWIGTYPE_p_wxSizerItem swig_types[123] | |
2586 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124] | |
2587 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125] | |
2588 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126] | |
2589 | #define SWIGTYPE_p_wxStockGDI swig_types[127] | |
2590 | #define SWIGTYPE_p_wxString swig_types[128] | |
2591 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129] | |
2592 | #define SWIGTYPE_p_wxTIFFHandler swig_types[130] | |
2593 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131] | |
2594 | #define SWIGTYPE_p_wxValidator swig_types[132] | |
2595 | #define SWIGTYPE_p_wxWindow swig_types[133] | |
2596 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134] | |
2597 | #define SWIGTYPE_p_wxWindowDC swig_types[135] | |
2598 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136] | |
2599 | #define SWIGTYPE_p_wxXPMHandler swig_types[137] | |
2600 | static swig_type_info *swig_types[139]; | |
2601 | static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0}; | |
32fe5131 RD |
2602 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2603 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 2604 | |
36ed4f51 | 2605 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 2606 | |
1bd55598 RD |
2607 | #if (PY_VERSION_HEX <= 0x02000000) |
2608 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2609 | # error "This python version requires to use swig with the '-classic' option" | |
2610 | # endif | |
2611 | #endif | |
2612 | #if (PY_VERSION_HEX <= 0x02020000) | |
2613 | # error "This python version requires to use swig with the '-nomodern' option" | |
2614 | #endif | |
2615 | #if (PY_VERSION_HEX <= 0x02020000) | |
2616 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2617 | #endif | |
2618 | #ifndef METH_O | |
2619 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2620 | #endif | |
d55e5bfc | 2621 | |
36ed4f51 RD |
2622 | /*----------------------------------------------- |
2623 | @(target):= _gdi_.so | |
2624 | ------------------------------------------------*/ | |
2625 | #define SWIG_init init_gdi_ | |
d55e5bfc | 2626 | |
36ed4f51 | 2627 | #define SWIG_name "_gdi_" |
d55e5bfc | 2628 | |
1bd55598 | 2629 | #define SWIGVERSION 0x010329 |
d55e5bfc | 2630 | |
d55e5bfc | 2631 | |
1bd55598 RD |
2632 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2633 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d55e5bfc RD |
2634 | |
2635 | ||
1bd55598 RD |
2636 | #include <stdexcept> |
2637 | ||
2638 | ||
2639 | namespace swig { | |
2640 | class PyObject_ptr { | |
2641 | protected: | |
2642 | PyObject *_obj; | |
2643 | ||
2644 | public: | |
2645 | PyObject_ptr() :_obj(0) | |
2646 | { | |
36ed4f51 | 2647 | } |
1bd55598 RD |
2648 | |
2649 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2650 | { | |
2651 | Py_XINCREF(_obj); | |
36ed4f51 | 2652 | } |
1bd55598 RD |
2653 | |
2654 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2655 | { | |
2656 | if (initial_ref) Py_XINCREF(_obj); | |
2657 | } | |
2658 | ||
2659 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2660 | { | |
2661 | Py_XINCREF(item._obj); | |
2662 | Py_XDECREF(_obj); | |
2663 | _obj = item._obj; | |
2664 | return *this; | |
2665 | } | |
2666 | ||
2667 | ~PyObject_ptr() | |
2668 | { | |
2669 | Py_XDECREF(_obj); | |
2670 | } | |
2671 | ||
2672 | operator PyObject *() const | |
2673 | { | |
2674 | return _obj; | |
2675 | } | |
2676 | ||
2677 | PyObject *operator->() const | |
2678 | { | |
2679 | return _obj; | |
2680 | } | |
2681 | }; | |
36ed4f51 | 2682 | } |
d55e5bfc | 2683 | |
d55e5bfc | 2684 | |
1bd55598 RD |
2685 | namespace swig { |
2686 | struct PyObject_var : PyObject_ptr { | |
2687 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2688 | ||
2689 | PyObject_var & operator = (PyObject* obj) | |
2690 | { | |
2691 | Py_XDECREF(_obj); | |
2692 | _obj = obj; | |
2693 | return *this; | |
d55e5bfc | 2694 | } |
1bd55598 | 2695 | }; |
d55e5bfc RD |
2696 | } |
2697 | ||
2698 | ||
1bd55598 RD |
2699 | #include "wx/wxPython/wxPython.h" |
2700 | #include "wx/wxPython/pyclasses.h" | |
2701 | ||
2702 | ||
2703 | static const wxString wxPyEmptyString(wxEmptyString); | |
2704 | ||
2131d850 RD |
2705 | #define SWIG_From_long PyInt_FromLong |
2706 | ||
2707 | ||
2708 | SWIGINTERNINLINE PyObject * | |
2709 | SWIG_From_int (int value) | |
2710 | { | |
2711 | return SWIG_From_long (value); | |
2712 | } | |
2713 | ||
2714 | ||
1bd55598 RD |
2715 | #include <limits.h> |
2716 | #ifndef LLONG_MIN | |
2717 | # define LLONG_MIN LONG_LONG_MIN | |
2718 | #endif | |
2719 | #ifndef LLONG_MAX | |
2720 | # define LLONG_MAX LONG_LONG_MAX | |
2721 | #endif | |
2722 | #ifndef ULLONG_MAX | |
2723 | # define ULLONG_MAX ULONG_LONG_MAX | |
2724 | #endif | |
d55e5bfc RD |
2725 | |
2726 | ||
da91cb0f RD |
2727 | SWIGINTERN int |
2728 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2729 | { | |
2730 | if (PyNumber_Check(obj)) { | |
2731 | if (val) *val = PyInt_AsLong(obj); | |
2732 | return SWIG_OK; | |
2733 | } | |
2734 | return SWIG_TypeError; | |
2735 | } | |
2736 | ||
2737 | ||
36ed4f51 | 2738 | SWIGINTERN int |
1bd55598 | 2739 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
36ed4f51 RD |
2740 | { |
2741 | long v = 0; | |
2742 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1bd55598 | 2743 | return SWIG_TypeError; |
36ed4f51 RD |
2744 | } |
2745 | else if (val) | |
2746 | *val = (unsigned long)v; | |
1bd55598 | 2747 | return SWIG_OK; |
36ed4f51 | 2748 | } |
d55e5bfc RD |
2749 | |
2750 | ||
36ed4f51 | 2751 | SWIGINTERN int |
1bd55598 RD |
2752 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2753 | { | |
36ed4f51 | 2754 | unsigned long v; |
1bd55598 RD |
2755 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2756 | if (SWIG_IsOK(res)) { | |
2757 | if ((v > UCHAR_MAX)) { | |
2758 | return SWIG_OverflowError; | |
36ed4f51 | 2759 | } else { |
1bd55598 | 2760 | if (val) *val = static_cast< unsigned char >(v); |
36ed4f51 | 2761 | } |
1bd55598 RD |
2762 | } |
2763 | return res; | |
36ed4f51 | 2764 | } |
d55e5bfc | 2765 | |
d55e5bfc | 2766 | |
1bd55598 RD |
2767 | SWIGINTERNINLINE PyObject* |
2768 | SWIG_From_unsigned_SS_long (unsigned long value) | |
36ed4f51 | 2769 | { |
1bd55598 RD |
2770 | return (value > LONG_MAX) ? |
2771 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
d55e5bfc RD |
2772 | } |
2773 | ||
2774 | ||
1bd55598 RD |
2775 | SWIGINTERNINLINE PyObject * |
2776 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2777 | { | |
2778 | return SWIG_From_unsigned_SS_long (value); | |
2779 | } | |
d55e5bfc | 2780 | |
e9d6f3a4 RD |
2781 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2782 | wxColour temp, *obj = &temp; | |
2783 | if ( other == Py_None ) return false; | |
2784 | if ( ! wxColour_helper(other, &obj) ) { | |
2785 | PyErr_Clear(); | |
2786 | return false; | |
2787 | } | |
2788 | return self->operator==(*obj); | |
2789 | } | |
2790 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2791 | wxColour temp, *obj = &temp; | |
2792 | if ( other == Py_None ) return true; | |
2793 | if ( ! wxColour_helper(other, &obj)) { | |
2794 | PyErr_Clear(); | |
2795 | return true; | |
2796 | } | |
2797 | return self->operator!=(*obj); | |
2798 | } | |
1bd55598 | 2799 | SWIGINTERN PyObject *wxColour_Get(wxColour *self){ |
36ed4f51 RD |
2800 | PyObject* rv = PyTuple_New(3); |
2801 | int red = -1; | |
2802 | int green = -1; | |
2803 | int blue = -1; | |
2804 | if (self->Ok()) { | |
2805 | red = self->Red(); | |
2806 | green = self->Green(); | |
2807 | blue = self->Blue(); | |
2808 | } | |
2809 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2810 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2811 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
2812 | return rv; | |
2813 | } | |
1bd55598 | 2814 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
36ed4f51 RD |
2815 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2816 | } | |
d55e5bfc | 2817 | |
1bd55598 RD |
2818 | SWIGINTERN int |
2819 | SWIG_AsVal_int (PyObject * obj, int *val) | |
36ed4f51 | 2820 | { |
1bd55598 RD |
2821 | long v; |
2822 | int res = SWIG_AsVal_long (obj, &v); | |
2823 | if (SWIG_IsOK(res)) { | |
2824 | if ((v < INT_MIN || v > INT_MAX)) { | |
2825 | return SWIG_OverflowError; | |
2826 | } else { | |
2827 | if (val) *val = static_cast< int >(v); | |
2828 | } | |
2829 | } | |
2830 | return res; | |
d55e5bfc RD |
2831 | } |
2832 | ||
1bd55598 | 2833 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
36ed4f51 RD |
2834 | wxDash* dashes; |
2835 | int count = self->GetDashes(&dashes); | |
5a446332 | 2836 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
36ed4f51 RD |
2837 | PyObject* retval = PyList_New(0); |
2838 | for (int x=0; x<count; x++) { | |
2839 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2840 | PyList_Append(retval, pyint); | |
2841 | Py_DECREF(pyint); | |
2842 | } | |
2843 | wxPyEndBlockThreads(blocked); | |
2844 | return retval; | |
2845 | } | |
1bd55598 | 2846 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2847 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
36ed4f51 RD |
2848 | int size = PyList_Size(pyDashes); |
2849 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 2850 | |
36ed4f51 RD |
2851 | // black magic warning! The array of wxDashes needs to exist as |
2852 | // long as the pen does because wxPen does not copy the array. So | |
2853 | // stick a copy in a Python string object and attach it to _self, | |
2854 | // and then call SetDashes with a pointer to that array. Then | |
2855 | // when the Python pen object is destroyed the array will be | |
2856 | // cleaned up too. | |
2857 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2858 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2859 | ||
2860 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2861 | delete [] dashes; | |
2862 | Py_DECREF(strDashes); | |
2863 | wxPyEndBlockThreads(blocked); | |
2864 | } | |
1bd55598 RD |
2865 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2866 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2867 | |
1bd55598 RD |
2868 | SWIGINTERNINLINE PyObject * |
2869 | SWIG_From_short (short value) | |
2870 | { | |
2871 | return SWIG_From_long (value); | |
2872 | } | |
d55e5bfc RD |
2873 | |
2874 | ||
36ed4f51 | 2875 | SWIGINTERN int |
1bd55598 RD |
2876 | SWIG_AsVal_short (PyObject * obj, short *val) |
2877 | { | |
36ed4f51 | 2878 | long v; |
1bd55598 RD |
2879 | int res = SWIG_AsVal_long (obj, &v); |
2880 | if (SWIG_IsOK(res)) { | |
2881 | if ((v < SHRT_MIN || v > SHRT_MAX)) { | |
2882 | return SWIG_OverflowError; | |
36ed4f51 | 2883 | } else { |
1bd55598 RD |
2884 | if (val) *val = static_cast< short >(v); |
2885 | } | |
2886 | } | |
2887 | return res; | |
d55e5bfc RD |
2888 | } |
2889 | ||
2890 | ||
36ed4f51 | 2891 | #include <wx/image.h> |
d55e5bfc | 2892 | |
36ed4f51 RD |
2893 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2894 | char** cArray = NULL; | |
2895 | int count; | |
d55e5bfc | 2896 | |
36ed4f51 RD |
2897 | if (!PyList_Check(listOfStrings)) { |
2898 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2899 | return NULL; | |
2900 | } | |
2901 | count = PyList_Size(listOfStrings); | |
2902 | cArray = new char*[count]; | |
d55e5bfc | 2903 | |
36ed4f51 RD |
2904 | for(int x=0; x<count; x++) { |
2905 | // TODO: Need some validation and error checking here | |
2906 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2907 | } | |
2908 | return cArray; | |
d55e5bfc | 2909 | } |
d55e5bfc RD |
2910 | |
2911 | ||
1bd55598 | 2912 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
36ed4f51 RD |
2913 | char** cArray = NULL; |
2914 | wxBitmap* bmp; | |
d55e5bfc | 2915 | |
36ed4f51 RD |
2916 | cArray = ConvertListOfStrings(listOfStrings); |
2917 | if (! cArray) | |
2918 | return NULL; | |
2919 | bmp = new wxBitmap(cArray); | |
2920 | delete [] cArray; | |
2921 | return bmp; | |
2922 | } | |
1bd55598 | 2923 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
36ed4f51 RD |
2924 | char* buf; |
2925 | int length; | |
2926 | PyString_AsStringAndSize(bits, &buf, &length); | |
2927 | return new wxBitmap(buf, width, height, depth); | |
2928 | } | |
1bd55598 | 2929 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
36ed4f51 RD |
2930 | wxSize size(self->GetWidth(), self->GetHeight()); |
2931 | return size; | |
2932 | } | |
1bd55598 | 2933 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
36ed4f51 RD |
2934 | wxMask *mask = new wxMask(*self, colour); |
2935 | self->SetMask(mask); | |
2936 | } | |
1bd55598 | 2937 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
36ed4f51 RD |
2938 | self->SetWidth(size.x); |
2939 | self->SetHeight(size.y); | |
2940 | } | |
1bd55598 RD |
2941 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2942 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
2943 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ | |
36ed4f51 RD |
2944 | if ( !colour.Ok() ) |
2945 | return new wxMask(bitmap, *wxBLACK); | |
2946 | else | |
2947 | return new wxMask(bitmap, colour); | |
2948 | } | |
d55e5bfc | 2949 | |
36ed4f51 | 2950 | #include <wx/iconbndl.h> |
d55e5bfc | 2951 | |
1bd55598 | 2952 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
36ed4f51 RD |
2953 | wxIcon* icon = new wxIcon(); |
2954 | icon->CopyFromBitmap(bmp); | |
2955 | return icon; | |
2956 | } | |
1bd55598 | 2957 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
36ed4f51 RD |
2958 | char** cArray = NULL; |
2959 | wxIcon* icon; | |
d55e5bfc | 2960 | |
36ed4f51 RD |
2961 | cArray = ConvertListOfStrings(listOfStrings); |
2962 | if (! cArray) | |
2963 | return NULL; | |
2964 | icon = new wxIcon(cArray); | |
2965 | delete [] cArray; | |
2966 | return icon; | |
2967 | } | |
1bd55598 | 2968 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d55e5bfc RD |
2969 | |
2970 | ||
d55e5bfc | 2971 | |
36ed4f51 | 2972 | return new wxIconLocation(*filename); |
d55e5bfc | 2973 | |
36ed4f51 | 2974 | } |
1bd55598 | 2975 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc RD |
2976 | |
2977 | ||
d55e5bfc | 2978 | |
36ed4f51 | 2979 | // do nothing |
d55e5bfc | 2980 | |
36ed4f51 | 2981 | } |
1bd55598 | 2982 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
5cbf236d RD |
2983 | |
2984 | ||
d55e5bfc | 2985 | |
36ed4f51 | 2986 | return -1; |
d55e5bfc | 2987 | |
36ed4f51 | 2988 | } |
1bd55598 | 2989 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
36ed4f51 | 2990 | #ifdef __WXGTK__ |
fef4c27a RD |
2991 | wxImage img(cursorName, type); |
2992 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
2993 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
2994 | return new wxCursor(img); | |
36ed4f51 | 2995 | #else |
fef4c27a | 2996 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
36ed4f51 RD |
2997 | #endif |
2998 | } | |
d55e5bfc | 2999 | |
d55e5bfc | 3000 | |
1bd55598 | 3001 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
36ed4f51 RD |
3002 | (*self) ++; |
3003 | } | |
1bd55598 | 3004 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
36ed4f51 RD |
3005 | return self->operator bool(); |
3006 | } | |
d55e5bfc | 3007 | |
36ed4f51 RD |
3008 | #include <wx/fontutil.h> |
3009 | #include <wx/fontmap.h> | |
3010 | #include <wx/fontenum.h> | |
d55e5bfc | 3011 | |
da91cb0f RD |
3012 | |
3013 | SWIGINTERN int | |
3014 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
3015 | { | |
3016 | if (obj == Py_True) { | |
3017 | if (val) *val = true; | |
3018 | return SWIG_OK; | |
3019 | } else if (obj == Py_False) { | |
3020 | if (val) *val = false; | |
3021 | return SWIG_OK; | |
3022 | } else { | |
3023 | long v = 0; | |
3024 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
3025 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
3026 | return res; | |
3027 | } | |
3028 | } | |
3029 | ||
1bd55598 | 3030 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
36ed4f51 RD |
3031 | return self->ToString(); |
3032 | } | |
d55e5bfc | 3033 | |
36ed4f51 RD |
3034 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { |
3035 | static wxNativeEncodingInfo info; | |
3036 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3037 | return &info; | |
3038 | else | |
3039 | return NULL; | |
d55e5bfc | 3040 | } |
d55e5bfc | 3041 | |
1bd55598 RD |
3042 | |
3043 | SWIGINTERNINLINE PyObject * | |
3044 | SWIG_From_size_t (size_t value) | |
3045 | { | |
3046 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3047 | } | |
3048 | ||
3049 | ||
3050 | SWIGINTERNINLINE int | |
3051 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3052 | { | |
3053 | unsigned long v; | |
3054 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3055 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3056 | return res; | |
3057 | } | |
3058 | ||
3059 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
36ed4f51 RD |
3060 | wxFontEncoding alt_enc; |
3061 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3062 | return PyInt_FromLong(alt_enc); | |
3063 | else { | |
3064 | Py_INCREF(Py_None); | |
3065 | return Py_None; | |
3066 | } | |
3067 | } | |
1bd55598 | 3068 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3069 | wxNativeFontInfo nfi; |
3070 | nfi.FromString(info); | |
3071 | return new wxFont(nfi); | |
3072 | } | |
1bd55598 | 3073 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3074 | return wxFont::New(pointSize, family, flags, face, encoding); |
3075 | } | |
1bd55598 | 3076 | 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 |
3077 | return wxFontBase::New(pixelSize, family, |
3078 | style, weight, underlined, | |
3079 | face, encoding); | |
3080 | } | |
1bd55598 | 3081 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3082 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3083 | } | |
1bd55598 RD |
3084 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3085 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 3086 | |
36ed4f51 RD |
3087 | class wxPyFontEnumerator : public wxFontEnumerator { |
3088 | public: | |
3089 | wxPyFontEnumerator() {} | |
3090 | ~wxPyFontEnumerator() {} | |
d55e5bfc | 3091 | |
36ed4f51 RD |
3092 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); |
3093 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
d55e5bfc | 3094 | |
36ed4f51 RD |
3095 | PYPRIVATE; |
3096 | }; | |
d55e5bfc | 3097 | |
36ed4f51 RD |
3098 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); |
3099 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
d55e5bfc | 3100 | |
36ed4f51 | 3101 | |
704eda0c | 3102 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3103 | PyObject* ret; |
704eda0c | 3104 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3105 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3106 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3107 | wxPyEndBlockThreads(blocked); |
3108 | return ret; | |
36ed4f51 | 3109 | } |
704eda0c | 3110 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3111 | PyObject* ret; |
704eda0c | 3112 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3113 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3114 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3115 | wxPyEndBlockThreads(blocked); |
3116 | return ret; | |
36ed4f51 RD |
3117 | } |
3118 | ||
3119 | #include <locale.h> | |
3120 | ||
1bd55598 | 3121 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
36ed4f51 RD |
3122 | wxLocale* loc; |
3123 | if (language == -1) | |
3124 | loc = new wxLocale(); | |
3125 | else | |
3126 | loc = new wxLocale(language, flags); | |
3127 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3128 | // for the floating point conversions and such to work right. | |
3129 | #if PY_VERSION_HEX < 0x02040000 | |
3130 | setlocale(LC_NUMERIC, "C"); | |
3131 | #endif | |
3132 | return loc; | |
3133 | } | |
1bd55598 | 3134 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
36ed4f51 RD |
3135 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3136 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3137 | // for the floating point conversions and such to work right. | |
3138 | #if PY_VERSION_HEX < 0x02040000 | |
3139 | setlocale(LC_NUMERIC, "C"); | |
3140 | #endif | |
3141 | return rc; | |
3142 | } | |
1bd55598 | 3143 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
36ed4f51 RD |
3144 | bool rc = self->Init(language, flags); |
3145 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3146 | // for the floating point conversions and such to work right. | |
3147 | #if PY_VERSION_HEX < 0x02040000 | |
3148 | setlocale(LC_NUMERIC, "C"); | |
3149 | #endif | |
3150 | return rc; | |
3151 | } | |
3152 | ||
3153 | #include "wx/wxPython/pydrawxxx.h" | |
3154 | ||
1bd55598 | 3155 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
36ed4f51 RD |
3156 | wxColour col; |
3157 | self->GetPixel(x, y, &col); | |
3158 | return col; | |
3159 | } | |
1bd55598 | 3160 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
36ed4f51 RD |
3161 | wxColour col; |
3162 | self->GetPixel(pt, &col); | |
3163 | return col; | |
3164 | } | |
3165 | ||
3166 | SWIGINTERN int | |
1bd55598 | 3167 | SWIG_AsVal_double (PyObject *obj, double* val) |
36ed4f51 RD |
3168 | { |
3169 | if (PyNumber_Check(obj)) { | |
3170 | if (val) *val = PyFloat_AsDouble(obj); | |
1bd55598 | 3171 | return SWIG_OK; |
d55e5bfc | 3172 | } |
1bd55598 | 3173 | return SWIG_TypeError; |
36ed4f51 RD |
3174 | } |
3175 | ||
1bd55598 | 3176 | SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ |
36ed4f51 RD |
3177 | wxRect rv; |
3178 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3179 | return rv; | |
3180 | } | |
1bd55598 | 3181 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
36ed4f51 RD |
3182 | wxRect rect; |
3183 | self->GetClippingBox(rect); | |
3184 | return rect; | |
3185 | } | |
1bd55598 | 3186 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
36ed4f51 RD |
3187 | wxArrayInt widths; |
3188 | self->GetPartialTextExtents(text, widths); | |
3189 | return widths; | |
3190 | } | |
3191 | ||
1bd55598 | 3192 | #define SWIG_From_double PyFloat_FromDouble |
36ed4f51 | 3193 | |
1bd55598 | 3194 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
36ed4f51 RD |
3195 | self->SetLogicalOrigin(point.x, point.y); |
3196 | } | |
1bd55598 | 3197 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
36ed4f51 RD |
3198 | self->SetDeviceOrigin(point.x, point.y); |
3199 | } | |
1bd55598 | 3200 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
36ed4f51 RD |
3201 | self->CalcBoundingBox(point.x, point.y); |
3202 | } | |
1bd55598 | 3203 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
36ed4f51 RD |
3204 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3205 | } | |
1bd55598 | 3206 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
36ed4f51 RD |
3207 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3208 | } | |
1bd55598 | 3209 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
36ed4f51 RD |
3210 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3211 | } | |
1bd55598 | 3212 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
36ed4f51 RD |
3213 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3214 | } | |
1bd55598 | 3215 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
36ed4f51 RD |
3216 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3217 | } | |
1bd55598 | 3218 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
36ed4f51 RD |
3219 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3220 | } | |
3221 | ||
3222 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3223 | *x1 = dc->MinX(); | |
3224 | *y1 = dc->MinY(); | |
3225 | *x2 = dc->MaxX(); | |
3226 | *y2 = dc->MaxY(); | |
3227 | } | |
3228 | ||
3229 | ||
3230 | #include <wx/dcbuffer.h> | |
3231 | ||
3232 | ||
3233 | #include <wx/dcps.h> | |
3234 | ||
3235 | ||
3236 | #include <wx/metafile.h> | |
3237 | ||
3238 | ||
3239 | ||
1bd55598 | 3240 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
36ed4f51 RD |
3241 | self->AddColour(name, wxColour(red, green, blue)); |
3242 | } | |
3243 | ||
da91cb0f RD |
3244 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3245 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3246 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3247 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3248 | ||
3249 | ||
36ed4f51 RD |
3250 | #include <wx/effects.h> |
3251 | ||
be9b1dca RD |
3252 | |
3253 | #include "wx/renderer.h" | |
3254 | ||
3255 | ||
32fe5131 | 3256 | SWIGINTERNINLINE PyObject* |
1bd55598 | 3257 | SWIG_From_bool (bool value) |
be9b1dca | 3258 | { |
1bd55598 | 3259 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3260 | } |
3261 | ||
36ed4f51 RD |
3262 | #ifdef __cplusplus |
3263 | extern "C" { | |
3264 | #endif | |
1bd55598 RD |
3265 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3266 | PyObject *resultobj = 0; | |
3267 | wxGDIObject *result = 0 ; | |
3268 | ||
3269 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3270 | { | |
3271 | if (!wxPyCheckForApp()) SWIG_fail; | |
3272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3273 | result = (wxGDIObject *)new wxGDIObject(); | |
3274 | wxPyEndAllowThreads(__tstate); | |
3275 | if (PyErr_Occurred()) SWIG_fail; | |
3276 | } | |
3277 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3278 | return resultobj; | |
3279 | fail: | |
3280 | return NULL; | |
d55e5bfc RD |
3281 | } |
3282 | ||
3283 | ||
1bd55598 RD |
3284 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3285 | PyObject *resultobj = 0; | |
3286 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3287 | void *argp1 = 0 ; | |
3288 | int res1 = 0 ; | |
3289 | PyObject *swig_obj[1] ; | |
3290 | ||
3291 | if (!args) SWIG_fail; | |
3292 | swig_obj[0] = args; | |
3293 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3294 | if (!SWIG_IsOK(res1)) { | |
3295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3296 | } | |
3297 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3298 | { | |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | delete arg1; | |
d55e5bfc | 3301 | |
1bd55598 RD |
3302 | wxPyEndAllowThreads(__tstate); |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
3305 | resultobj = SWIG_Py_Void(); | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | return NULL; | |
d55e5bfc RD |
3309 | } |
3310 | ||
3311 | ||
1bd55598 RD |
3312 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3313 | PyObject *resultobj = 0; | |
3314 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3315 | bool result; | |
3316 | void *argp1 = 0 ; | |
3317 | int res1 = 0 ; | |
3318 | PyObject *swig_obj[1] ; | |
3319 | ||
3320 | if (!args) SWIG_fail; | |
3321 | swig_obj[0] = args; | |
3322 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3323 | if (!SWIG_IsOK(res1)) { | |
3324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3325 | } | |
3326 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3327 | { | |
3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3329 | result = (bool)(arg1)->IsNull(); | |
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
3332 | } | |
3333 | { | |
3334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3335 | } | |
3336 | return resultobj; | |
3337 | fail: | |
3338 | return NULL; | |
3339 | } | |
3340 | ||
3341 | ||
3342 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3343 | PyObject *obj; | |
3344 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3345 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3346 | return SWIG_Py_Void(); | |
3347 | } | |
3348 | ||
3349 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3350 | return SWIG_Python_InitShadowInstance(args); | |
3351 | } | |
3352 | ||
3353 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3354 | PyObject *resultobj = 0; | |
3355 | byte arg1 = (byte) 0 ; | |
3356 | byte arg2 = (byte) 0 ; | |
3357 | byte arg3 = (byte) 0 ; | |
3358 | wxColour *result = 0 ; | |
3359 | unsigned char val1 ; | |
3360 | int ecode1 = 0 ; | |
3361 | unsigned char val2 ; | |
3362 | int ecode2 = 0 ; | |
3363 | unsigned char val3 ; | |
3364 | int ecode3 = 0 ; | |
3365 | PyObject * obj0 = 0 ; | |
3366 | PyObject * obj1 = 0 ; | |
3367 | PyObject * obj2 = 0 ; | |
3368 | char * kwnames[] = { | |
3369 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
3370 | }; | |
3371 | ||
3372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3373 | if (obj0) { | |
3374 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
3375 | if (!SWIG_IsOK(ecode1)) { | |
3376 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
3377 | } | |
3378 | arg1 = static_cast< byte >(val1); | |
3379 | } | |
3380 | if (obj1) { | |
3381 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3382 | if (!SWIG_IsOK(ecode2)) { | |
3383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
3384 | } | |
3385 | arg2 = static_cast< byte >(val2); | |
3386 | } | |
3387 | if (obj2) { | |
3388 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3389 | if (!SWIG_IsOK(ecode3)) { | |
3390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
3391 | } | |
3392 | arg3 = static_cast< byte >(val3); | |
3393 | } | |
3394 | { | |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
3400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
3401 | return resultobj; | |
3402 | fail: | |
3403 | return NULL; | |
d55e5bfc RD |
3404 | } |
3405 | ||
3406 | ||
1bd55598 RD |
3407 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3408 | PyObject *resultobj = 0; | |
3409 | wxString *arg1 = 0 ; | |
3410 | wxColour *result = 0 ; | |
3411 | bool temp1 = false ; | |
3412 | PyObject * obj0 = 0 ; | |
3413 | char * kwnames[] = { | |
3414 | (char *) "colorName", NULL | |
3415 | }; | |
3416 | ||
3417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
3418 | { | |
3419 | arg1 = wxString_in_helper(obj0); | |
3420 | if (arg1 == NULL) SWIG_fail; | |
3421 | temp1 = true; | |
3422 | } | |
3423 | { | |
3424 | if (!wxPyCheckForApp()) SWIG_fail; | |
3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3426 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
3427 | wxPyEndAllowThreads(__tstate); | |
3428 | if (PyErr_Occurred()) SWIG_fail; | |
3429 | } | |
3430 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3431 | { | |
3432 | if (temp1) | |
3433 | delete arg1; | |
3434 | } | |
3435 | return resultobj; | |
3436 | fail: | |
3437 | { | |
3438 | if (temp1) | |
3439 | delete arg1; | |
3440 | } | |
3441 | return NULL; | |
36ed4f51 RD |
3442 | } |
3443 | ||
3444 | ||
1bd55598 RD |
3445 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3446 | PyObject *resultobj = 0; | |
3447 | unsigned long arg1 ; | |
3448 | wxColour *result = 0 ; | |
3449 | unsigned long val1 ; | |
3450 | int ecode1 = 0 ; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | char * kwnames[] = { | |
3453 | (char *) "colRGB", NULL | |
3454 | }; | |
3455 | ||
3456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
3457 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
3458 | if (!SWIG_IsOK(ecode1)) { | |
3459 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
3460 | } | |
3461 | arg1 = static_cast< unsigned long >(val1); | |
3462 | { | |
3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3464 | result = (wxColour *)new wxColour(arg1); | |
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) SWIG_fail; | |
3467 | } | |
3468 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3469 | return resultobj; | |
3470 | fail: | |
3471 | return NULL; | |
d55e5bfc RD |
3472 | } |
3473 | ||
3474 | ||
1bd55598 RD |
3475 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3476 | PyObject *resultobj = 0; | |
3477 | wxColour *arg1 = (wxColour *) 0 ; | |
3478 | void *argp1 = 0 ; | |
3479 | int res1 = 0 ; | |
3480 | PyObject *swig_obj[1] ; | |
3481 | ||
3482 | if (!args) SWIG_fail; | |
3483 | swig_obj[0] = args; | |
3484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
3485 | if (!SWIG_IsOK(res1)) { | |
3486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3487 | } | |
3488 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3489 | { | |
3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3491 | delete arg1; | |
d55e5bfc | 3492 | |
1bd55598 RD |
3493 | wxPyEndAllowThreads(__tstate); |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | resultobj = SWIG_Py_Void(); | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | return NULL; | |
d55e5bfc RD |
3500 | } |
3501 | ||
3502 | ||
1bd55598 RD |
3503 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3504 | PyObject *resultobj = 0; | |
3505 | wxColour *arg1 = (wxColour *) 0 ; | |
3506 | byte result; | |
3507 | void *argp1 = 0 ; | |
3508 | int res1 = 0 ; | |
3509 | PyObject *swig_obj[1] ; | |
3510 | ||
3511 | if (!args) SWIG_fail; | |
3512 | swig_obj[0] = args; | |
3513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3514 | if (!SWIG_IsOK(res1)) { | |
3515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3516 | } | |
3517 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3518 | { | |
3519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3520 | result = (byte)(arg1)->Red(); | |
3521 | wxPyEndAllowThreads(__tstate); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3525 | return resultobj; | |
3526 | fail: | |
3527 | return NULL; | |
d55e5bfc RD |
3528 | } |
3529 | ||
3530 | ||
1bd55598 RD |
3531 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3532 | PyObject *resultobj = 0; | |
3533 | wxColour *arg1 = (wxColour *) 0 ; | |
3534 | byte result; | |
3535 | void *argp1 = 0 ; | |
3536 | int res1 = 0 ; | |
3537 | PyObject *swig_obj[1] ; | |
3538 | ||
3539 | if (!args) SWIG_fail; | |
3540 | swig_obj[0] = args; | |
3541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3542 | if (!SWIG_IsOK(res1)) { | |
3543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3544 | } | |
3545 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3546 | { | |
3547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3548 | result = (byte)(arg1)->Green(); | |
3549 | wxPyEndAllowThreads(__tstate); | |
3550 | if (PyErr_Occurred()) SWIG_fail; | |
3551 | } | |
3552 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3553 | return resultobj; | |
3554 | fail: | |
3555 | return NULL; | |
d55e5bfc RD |
3556 | } |
3557 | ||
3558 | ||
1bd55598 RD |
3559 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3560 | PyObject *resultobj = 0; | |
3561 | wxColour *arg1 = (wxColour *) 0 ; | |
3562 | byte result; | |
3563 | void *argp1 = 0 ; | |
3564 | int res1 = 0 ; | |
3565 | PyObject *swig_obj[1] ; | |
3566 | ||
3567 | if (!args) SWIG_fail; | |
3568 | swig_obj[0] = args; | |
3569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3570 | if (!SWIG_IsOK(res1)) { | |
3571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3572 | } | |
3573 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3574 | { | |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3576 | result = (byte)(arg1)->Blue(); | |
3577 | wxPyEndAllowThreads(__tstate); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
3580 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | return NULL; | |
d55e5bfc RD |
3584 | } |
3585 | ||
3586 | ||
1bd55598 RD |
3587 | SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3588 | PyObject *resultobj = 0; | |
3589 | wxColour *arg1 = (wxColour *) 0 ; | |
3590 | bool result; | |
3591 | void *argp1 = 0 ; | |
3592 | int res1 = 0 ; | |
3593 | PyObject *swig_obj[1] ; | |
3594 | ||
3595 | if (!args) SWIG_fail; | |
3596 | swig_obj[0] = args; | |
3597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3598 | if (!SWIG_IsOK(res1)) { | |
3599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3600 | } | |
3601 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3602 | { | |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | result = (bool)(arg1)->Ok(); | |
3605 | wxPyEndAllowThreads(__tstate); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
3608 | { | |
3609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3610 | } | |
3611 | return resultobj; | |
3612 | fail: | |
3613 | return NULL; | |
3614 | } | |
3615 | ||
3616 | ||
3617 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3618 | PyObject *resultobj = 0; | |
3619 | wxColour *arg1 = (wxColour *) 0 ; | |
3620 | byte arg2 ; | |
3621 | byte arg3 ; | |
3622 | byte arg4 ; | |
3623 | void *argp1 = 0 ; | |
3624 | int res1 = 0 ; | |
3625 | unsigned char val2 ; | |
3626 | int ecode2 = 0 ; | |
3627 | unsigned char val3 ; | |
3628 | int ecode3 = 0 ; | |
3629 | unsigned char val4 ; | |
3630 | int ecode4 = 0 ; | |
3631 | PyObject * obj0 = 0 ; | |
3632 | PyObject * obj1 = 0 ; | |
3633 | PyObject * obj2 = 0 ; | |
3634 | PyObject * obj3 = 0 ; | |
3635 | char * kwnames[] = { | |
3636 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3637 | }; | |
3638 | ||
3639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3641 | if (!SWIG_IsOK(res1)) { | |
3642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3643 | } | |
3644 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3645 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3646 | if (!SWIG_IsOK(ecode2)) { | |
3647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
3648 | } | |
3649 | arg2 = static_cast< byte >(val2); | |
3650 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3651 | if (!SWIG_IsOK(ecode3)) { | |
3652 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
3653 | } | |
3654 | arg3 = static_cast< byte >(val3); | |
3655 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
3656 | if (!SWIG_IsOK(ecode4)) { | |
3657 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
3658 | } | |
3659 | arg4 = static_cast< byte >(val4); | |
3660 | { | |
3661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3662 | (arg1)->Set(arg2,arg3,arg4); | |
3663 | wxPyEndAllowThreads(__tstate); | |
3664 | if (PyErr_Occurred()) SWIG_fail; | |
3665 | } | |
3666 | resultobj = SWIG_Py_Void(); | |
3667 | return resultobj; | |
3668 | fail: | |
3669 | return NULL; | |
3670 | } | |
3671 | ||
3672 | ||
3673 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3674 | PyObject *resultobj = 0; | |
3675 | wxColour *arg1 = (wxColour *) 0 ; | |
3676 | unsigned long arg2 ; | |
3677 | void *argp1 = 0 ; | |
3678 | int res1 = 0 ; | |
3679 | unsigned long val2 ; | |
3680 | int ecode2 = 0 ; | |
3681 | PyObject * obj0 = 0 ; | |
3682 | PyObject * obj1 = 0 ; | |
3683 | char * kwnames[] = { | |
3684 | (char *) "self",(char *) "colRGB", NULL | |
3685 | }; | |
3686 | ||
3687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
3688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3689 | if (!SWIG_IsOK(res1)) { | |
3690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3691 | } | |
3692 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3693 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
3694 | if (!SWIG_IsOK(ecode2)) { | |
3695 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
3696 | } | |
3697 | arg2 = static_cast< unsigned long >(val2); | |
3698 | { | |
3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3700 | (arg1)->Set(arg2); | |
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | resultobj = SWIG_Py_Void(); | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj = 0; | |
3713 | wxColour *arg1 = (wxColour *) 0 ; | |
3714 | wxString *arg2 = 0 ; | |
3715 | void *argp1 = 0 ; | |
3716 | int res1 = 0 ; | |
3717 | bool temp2 = false ; | |
3718 | PyObject * obj0 = 0 ; | |
3719 | PyObject * obj1 = 0 ; | |
3720 | char * kwnames[] = { | |
3721 | (char *) "self",(char *) "colourName", NULL | |
3722 | }; | |
3723 | ||
3724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
3725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3726 | if (!SWIG_IsOK(res1)) { | |
3727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3728 | } | |
3729 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3730 | { | |
3731 | arg2 = wxString_in_helper(obj1); | |
3732 | if (arg2 == NULL) SWIG_fail; | |
3733 | temp2 = true; | |
3734 | } | |
3735 | { | |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | (arg1)->InitFromName((wxString const &)*arg2); | |
3738 | wxPyEndAllowThreads(__tstate); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | resultobj = SWIG_Py_Void(); | |
3742 | { | |
3743 | if (temp2) | |
3744 | delete arg2; | |
3745 | } | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | { | |
3749 | if (temp2) | |
3750 | delete arg2; | |
3751 | } | |
3752 | return NULL; | |
d55e5bfc RD |
3753 | } |
3754 | ||
3755 | ||
2131d850 RD |
3756 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3757 | PyObject *resultobj = 0; | |
3758 | wxColour *arg1 = (wxColour *) 0 ; | |
3759 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
3760 | wxString result; | |
3761 | void *argp1 = 0 ; | |
3762 | int res1 = 0 ; | |
3763 | long val2 ; | |
3764 | int ecode2 = 0 ; | |
3765 | PyObject * obj0 = 0 ; | |
3766 | PyObject * obj1 = 0 ; | |
3767 | char * kwnames[] = { | |
3768 | (char *) "self",(char *) "flags", NULL | |
3769 | }; | |
3770 | ||
3771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
3772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3773 | if (!SWIG_IsOK(res1)) { | |
3774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3775 | } | |
3776 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3777 | if (obj1) { | |
3778 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3779 | if (!SWIG_IsOK(ecode2)) { | |
3780 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
3781 | } | |
3782 | arg2 = static_cast< long >(val2); | |
3783 | } | |
3784 | { | |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
3790 | { | |
3791 | #if wxUSE_UNICODE | |
3792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3793 | #else | |
3794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3795 | #endif | |
3796 | } | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
1bd55598 RD |
3803 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3804 | PyObject *resultobj = 0; | |
3805 | wxColour *arg1 = (wxColour *) 0 ; | |
3806 | long result; | |
3807 | void *argp1 = 0 ; | |
3808 | int res1 = 0 ; | |
3809 | PyObject *swig_obj[1] ; | |
3810 | ||
3811 | if (!args) SWIG_fail; | |
3812 | swig_obj[0] = args; | |
3813 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3814 | if (!SWIG_IsOK(res1)) { | |
3815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
3816 | } | |
3817 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
3824 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj = 0; | |
3833 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 3834 | PyObject *arg2 = (PyObject *) 0 ; |
1bd55598 RD |
3835 | bool result; |
3836 | void *argp1 = 0 ; | |
3837 | int res1 = 0 ; | |
1bd55598 RD |
3838 | PyObject * obj0 = 0 ; |
3839 | PyObject * obj1 = 0 ; | |
3840 | char * kwnames[] = { | |
e9d6f3a4 | 3841 | (char *) "self",(char *) "other", NULL |
1bd55598 RD |
3842 | }; |
3843 | ||
3844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3846 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 3847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
1bd55598 RD |
3848 | } |
3849 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 3850 | arg2 = obj1; |
1bd55598 | 3851 | { |
e9d6f3a4 | 3852 | result = (bool)wxColour___eq__(arg1,arg2); |
1bd55598 RD |
3853 | if (PyErr_Occurred()) SWIG_fail; |
3854 | } | |
3855 | { | |
3856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3857 | } | |
3858 | return resultobj; | |
3859 | fail: | |
3860 | return NULL; | |
3861 | } | |
3862 | ||
3863 | ||
3864 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3865 | PyObject *resultobj = 0; | |
3866 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 3867 | PyObject *arg2 = (PyObject *) 0 ; |
1bd55598 RD |
3868 | bool result; |
3869 | void *argp1 = 0 ; | |
3870 | int res1 = 0 ; | |
1bd55598 RD |
3871 | PyObject * obj0 = 0 ; |
3872 | PyObject * obj1 = 0 ; | |
3873 | char * kwnames[] = { | |
e9d6f3a4 | 3874 | (char *) "self",(char *) "other", NULL |
1bd55598 RD |
3875 | }; |
3876 | ||
3877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3879 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 3880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
1bd55598 RD |
3881 | } |
3882 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 3883 | arg2 = obj1; |
1bd55598 | 3884 | { |
e9d6f3a4 | 3885 | result = (bool)wxColour___ne__(arg1,arg2); |
1bd55598 RD |
3886 | if (PyErr_Occurred()) SWIG_fail; |
3887 | } | |
3888 | { | |
3889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3890 | } | |
3891 | return resultobj; | |
3892 | fail: | |
3893 | return NULL; | |
d55e5bfc RD |
3894 | } |
3895 | ||
3896 | ||
1bd55598 RD |
3897 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3898 | PyObject *resultobj = 0; | |
3899 | wxColour *arg1 = (wxColour *) 0 ; | |
3900 | PyObject *result = 0 ; | |
3901 | void *argp1 = 0 ; | |
3902 | int res1 = 0 ; | |
3903 | PyObject *swig_obj[1] ; | |
3904 | ||
3905 | if (!args) SWIG_fail; | |
3906 | swig_obj[0] = args; | |
3907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3908 | if (!SWIG_IsOK(res1)) { | |
3909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3910 | } | |
3911 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3912 | { | |
3913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3914 | result = (PyObject *)wxColour_Get(arg1); | |
3915 | wxPyEndAllowThreads(__tstate); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
3917 | } | |
3918 | resultobj = result; | |
3919 | return resultobj; | |
3920 | fail: | |
3921 | return NULL; | |
d55e5bfc RD |
3922 | } |
3923 | ||
3924 | ||
1bd55598 RD |
3925 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3926 | PyObject *resultobj = 0; | |
3927 | wxColour *arg1 = (wxColour *) 0 ; | |
3928 | unsigned long result; | |
3929 | void *argp1 = 0 ; | |
3930 | int res1 = 0 ; | |
3931 | PyObject *swig_obj[1] ; | |
3932 | ||
3933 | if (!args) SWIG_fail; | |
3934 | swig_obj[0] = args; | |
3935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3936 | if (!SWIG_IsOK(res1)) { | |
3937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3938 | } | |
3939 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | result = (unsigned long)wxColour_GetRGB(arg1); | |
3943 | wxPyEndAllowThreads(__tstate); | |
3944 | if (PyErr_Occurred()) SWIG_fail; | |
3945 | } | |
3946 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
3947 | return resultobj; | |
3948 | fail: | |
3949 | return NULL; | |
3950 | } | |
3951 | ||
3952 | ||
3953 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3954 | PyObject *obj; | |
3955 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3956 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
3957 | return SWIG_Py_Void(); | |
3958 | } | |
3959 | ||
3960 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3961 | return SWIG_Python_InitShadowInstance(args); | |
3962 | } | |
3963 | ||
3964 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3965 | PyObject *resultobj = 0; | |
3966 | int arg1 ; | |
3967 | unsigned char *arg2 = (unsigned char *) 0 ; | |
3968 | unsigned char *arg3 = (unsigned char *) 0 ; | |
3969 | unsigned char *arg4 = (unsigned char *) 0 ; | |
3970 | wxPalette *result = 0 ; | |
3971 | int val1 ; | |
3972 | int ecode1 = 0 ; | |
3973 | void *argp2 = 0 ; | |
3974 | int res2 = 0 ; | |
3975 | void *argp3 = 0 ; | |
3976 | int res3 = 0 ; | |
3977 | void *argp4 = 0 ; | |
3978 | int res4 = 0 ; | |
3979 | PyObject * obj0 = 0 ; | |
3980 | PyObject * obj1 = 0 ; | |
3981 | PyObject * obj2 = 0 ; | |
3982 | PyObject * obj3 = 0 ; | |
3983 | char * kwnames[] = { | |
3984 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
3985 | }; | |
3986 | ||
3987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
3988 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3989 | if (!SWIG_IsOK(ecode1)) { | |
3990 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
3991 | } | |
3992 | arg1 = static_cast< int >(val1); | |
3993 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3994 | if (!SWIG_IsOK(res2)) { | |
3995 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
3996 | } | |
3997 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
3998 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
3999 | if (!SWIG_IsOK(res3)) { | |
4000 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4001 | } | |
4002 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4003 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4004 | if (!SWIG_IsOK(res4)) { | |
4005 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4006 | } | |
4007 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4008 | { | |
4009 | if (!wxPyCheckForApp()) SWIG_fail; | |
4010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4011 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4012 | wxPyEndAllowThreads(__tstate); | |
4013 | if (PyErr_Occurred()) SWIG_fail; | |
4014 | } | |
4015 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4016 | return resultobj; | |
4017 | fail: | |
4018 | return NULL; | |
d55e5bfc RD |
4019 | } |
4020 | ||
4021 | ||
1bd55598 RD |
4022 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4023 | PyObject *resultobj = 0; | |
4024 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4025 | void *argp1 = 0 ; | |
4026 | int res1 = 0 ; | |
4027 | PyObject *swig_obj[1] ; | |
4028 | ||
4029 | if (!args) SWIG_fail; | |
4030 | swig_obj[0] = args; | |
4031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4032 | if (!SWIG_IsOK(res1)) { | |
4033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4034 | } | |
4035 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4036 | { | |
4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4038 | delete arg1; | |
d55e5bfc | 4039 | |
1bd55598 RD |
4040 | wxPyEndAllowThreads(__tstate); |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | resultobj = SWIG_Py_Void(); | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
4050 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4051 | PyObject *resultobj = 0; | |
4052 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4053 | byte arg2 ; | |
4054 | byte arg3 ; | |
4055 | byte arg4 ; | |
4056 | int result; | |
4057 | void *argp1 = 0 ; | |
4058 | int res1 = 0 ; | |
4059 | unsigned char val2 ; | |
4060 | int ecode2 = 0 ; | |
4061 | unsigned char val3 ; | |
4062 | int ecode3 = 0 ; | |
4063 | unsigned char val4 ; | |
4064 | int ecode4 = 0 ; | |
4065 | PyObject * obj0 = 0 ; | |
4066 | PyObject * obj1 = 0 ; | |
4067 | PyObject * obj2 = 0 ; | |
4068 | PyObject * obj3 = 0 ; | |
4069 | char * kwnames[] = { | |
4070 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4071 | }; | |
4072 | ||
4073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4075 | if (!SWIG_IsOK(res1)) { | |
4076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4077 | } | |
4078 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4079 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4080 | if (!SWIG_IsOK(ecode2)) { | |
4081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4082 | } | |
4083 | arg2 = static_cast< byte >(val2); | |
4084 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4085 | if (!SWIG_IsOK(ecode3)) { | |
4086 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4087 | } | |
4088 | arg3 = static_cast< byte >(val3); | |
4089 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4090 | if (!SWIG_IsOK(ecode4)) { | |
4091 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4092 | } | |
4093 | arg4 = static_cast< byte >(val4); | |
4094 | { | |
4095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4096 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4097 | wxPyEndAllowThreads(__tstate); | |
4098 | if (PyErr_Occurred()) SWIG_fail; | |
4099 | } | |
4100 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
4107 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4108 | PyObject *resultobj = 0; | |
4109 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4110 | int arg2 ; | |
4111 | byte *arg3 = (byte *) 0 ; | |
4112 | byte *arg4 = (byte *) 0 ; | |
4113 | byte *arg5 = (byte *) 0 ; | |
4114 | bool result; | |
4115 | void *argp1 = 0 ; | |
4116 | int res1 = 0 ; | |
4117 | int val2 ; | |
4118 | int ecode2 = 0 ; | |
4119 | byte temp3 ; | |
4120 | int res3 = SWIG_TMPOBJ ; | |
4121 | byte temp4 ; | |
4122 | int res4 = SWIG_TMPOBJ ; | |
4123 | byte temp5 ; | |
4124 | int res5 = SWIG_TMPOBJ ; | |
4125 | PyObject * obj0 = 0 ; | |
4126 | PyObject * obj1 = 0 ; | |
4127 | char * kwnames[] = { | |
4128 | (char *) "self",(char *) "pixel", NULL | |
4129 | }; | |
4130 | ||
4131 | arg3 = &temp3; | |
4132 | arg4 = &temp4; | |
4133 | arg5 = &temp5; | |
4134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4136 | if (!SWIG_IsOK(res1)) { | |
4137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4138 | } | |
4139 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4140 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4141 | if (!SWIG_IsOK(ecode2)) { | |
4142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4143 | } | |
4144 | arg2 = static_cast< int >(val2); | |
4145 | { | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4151 | { | |
4152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4153 | } | |
4154 | if (SWIG_IsTmpObj(res3)) { | |
4155 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4156 | } else { | |
4157 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4158 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4159 | } | |
4160 | if (SWIG_IsTmpObj(res4)) { | |
4161 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4162 | } else { | |
4163 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4164 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4165 | } | |
4166 | if (SWIG_IsTmpObj(res5)) { | |
4167 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4168 | } else { | |
4169 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4170 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4171 | } | |
4172 | return resultobj; | |
4173 | fail: | |
4174 | return NULL; | |
d55e5bfc RD |
4175 | } |
4176 | ||
4177 | ||
1bd55598 RD |
4178 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4179 | PyObject *resultobj = 0; | |
4180 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4181 | int result; | |
4182 | void *argp1 = 0 ; | |
4183 | int res1 = 0 ; | |
4184 | PyObject *swig_obj[1] ; | |
4185 | ||
4186 | if (!args) SWIG_fail; | |
4187 | swig_obj[0] = args; | |
4188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4189 | if (!SWIG_IsOK(res1)) { | |
4190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4191 | } | |
4192 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4193 | { | |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4196 | wxPyEndAllowThreads(__tstate); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4200 | return resultobj; | |
4201 | fail: | |
4202 | return NULL; | |
d55e5bfc RD |
4203 | } |
4204 | ||
4205 | ||
1bd55598 RD |
4206 | SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4207 | PyObject *resultobj = 0; | |
4208 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4209 | bool result; | |
4210 | void *argp1 = 0 ; | |
4211 | int res1 = 0 ; | |
4212 | PyObject *swig_obj[1] ; | |
4213 | ||
4214 | if (!args) SWIG_fail; | |
4215 | swig_obj[0] = args; | |
4216 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4217 | if (!SWIG_IsOK(res1)) { | |
4218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4219 | } | |
4220 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4221 | { | |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4223 | result = (bool)(arg1)->Ok(); | |
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | } | |
4227 | { | |
4228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4229 | } | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4237 | PyObject *obj; | |
4238 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4239 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4240 | return SWIG_Py_Void(); | |
4241 | } | |
4242 | ||
4243 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4244 | return SWIG_Python_InitShadowInstance(args); | |
4245 | } | |
4246 | ||
4247 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4248 | PyObject *resultobj = 0; | |
4249 | wxColour *arg1 = 0 ; | |
4250 | int arg2 = (int) 1 ; | |
4251 | int arg3 = (int) wxSOLID ; | |
4252 | wxPen *result = 0 ; | |
4253 | wxColour temp1 ; | |
4254 | int val2 ; | |
4255 | int ecode2 = 0 ; | |
4256 | int val3 ; | |
4257 | int ecode3 = 0 ; | |
4258 | PyObject * obj0 = 0 ; | |
4259 | PyObject * obj1 = 0 ; | |
4260 | PyObject * obj2 = 0 ; | |
4261 | char * kwnames[] = { | |
4262 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4263 | }; | |
4264 | ||
4265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4266 | { | |
4267 | arg1 = &temp1; | |
4268 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4269 | } | |
4270 | if (obj1) { | |
4271 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4272 | if (!SWIG_IsOK(ecode2)) { | |
4273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4274 | } | |
4275 | arg2 = static_cast< int >(val2); | |
4276 | } | |
4277 | if (obj2) { | |
4278 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4279 | if (!SWIG_IsOK(ecode3)) { | |
4280 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4281 | } | |
4282 | arg3 = static_cast< int >(val3); | |
4283 | } | |
4284 | { | |
4285 | if (!wxPyCheckForApp()) SWIG_fail; | |
4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4287 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4288 | wxPyEndAllowThreads(__tstate); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | } | |
4291 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
4292 | return resultobj; | |
4293 | fail: | |
4294 | return NULL; | |
d55e5bfc RD |
4295 | } |
4296 | ||
4297 | ||
1bd55598 RD |
4298 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4299 | PyObject *resultobj = 0; | |
4300 | wxPen *arg1 = (wxPen *) 0 ; | |
4301 | void *argp1 = 0 ; | |
4302 | int res1 = 0 ; | |
4303 | PyObject *swig_obj[1] ; | |
4304 | ||
4305 | if (!args) SWIG_fail; | |
4306 | swig_obj[0] = args; | |
4307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
4308 | if (!SWIG_IsOK(res1)) { | |
4309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4310 | } | |
4311 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | delete arg1; | |
f78cc896 | 4315 | |
1bd55598 RD |
4316 | wxPyEndAllowThreads(__tstate); |
4317 | if (PyErr_Occurred()) SWIG_fail; | |
4318 | } | |
4319 | resultobj = SWIG_Py_Void(); | |
4320 | return resultobj; | |
4321 | fail: | |
4322 | return NULL; | |
f78cc896 RD |
4323 | } |
4324 | ||
4325 | ||
1bd55598 RD |
4326 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4327 | PyObject *resultobj = 0; | |
4328 | wxPen *arg1 = (wxPen *) 0 ; | |
4329 | int result; | |
4330 | void *argp1 = 0 ; | |
4331 | int res1 = 0 ; | |
4332 | PyObject *swig_obj[1] ; | |
4333 | ||
4334 | if (!args) SWIG_fail; | |
4335 | swig_obj[0] = args; | |
4336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4337 | if (!SWIG_IsOK(res1)) { | |
4338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4339 | } | |
4340 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4341 | { | |
4342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4343 | result = (int)(arg1)->GetCap(); | |
4344 | wxPyEndAllowThreads(__tstate); | |
4345 | if (PyErr_Occurred()) SWIG_fail; | |
4346 | } | |
4347 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4348 | return resultobj; | |
4349 | fail: | |
4350 | return NULL; | |
d55e5bfc RD |
4351 | } |
4352 | ||
4353 | ||
1bd55598 RD |
4354 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4355 | PyObject *resultobj = 0; | |
4356 | wxPen *arg1 = (wxPen *) 0 ; | |
4357 | wxColour result; | |
4358 | void *argp1 = 0 ; | |
4359 | int res1 = 0 ; | |
4360 | PyObject *swig_obj[1] ; | |
4361 | ||
4362 | if (!args) SWIG_fail; | |
4363 | swig_obj[0] = args; | |
4364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4365 | if (!SWIG_IsOK(res1)) { | |
4366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4367 | } | |
4368 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | result = (arg1)->GetColour(); | |
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4376 | return resultobj; | |
4377 | fail: | |
4378 | return NULL; | |
d55e5bfc RD |
4379 | } |
4380 | ||
4381 | ||
1bd55598 RD |
4382 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4383 | PyObject *resultobj = 0; | |
4384 | wxPen *arg1 = (wxPen *) 0 ; | |
4385 | int result; | |
4386 | void *argp1 = 0 ; | |
4387 | int res1 = 0 ; | |
4388 | PyObject *swig_obj[1] ; | |
4389 | ||
4390 | if (!args) SWIG_fail; | |
4391 | swig_obj[0] = args; | |
4392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4393 | if (!SWIG_IsOK(res1)) { | |
4394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4395 | } | |
4396 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4397 | { | |
4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4399 | result = (int)(arg1)->GetJoin(); | |
4400 | wxPyEndAllowThreads(__tstate); | |
4401 | if (PyErr_Occurred()) SWIG_fail; | |
4402 | } | |
4403 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4404 | return resultobj; | |
4405 | fail: | |
4406 | return NULL; | |
d55e5bfc RD |
4407 | } |
4408 | ||
4409 | ||
1bd55598 RD |
4410 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4411 | PyObject *resultobj = 0; | |
4412 | wxPen *arg1 = (wxPen *) 0 ; | |
4413 | int result; | |
4414 | void *argp1 = 0 ; | |
4415 | int res1 = 0 ; | |
4416 | PyObject *swig_obj[1] ; | |
4417 | ||
4418 | if (!args) SWIG_fail; | |
4419 | swig_obj[0] = args; | |
4420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4421 | if (!SWIG_IsOK(res1)) { | |
4422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4423 | } | |
4424 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4425 | { | |
4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4427 | result = (int)(arg1)->GetStyle(); | |
4428 | wxPyEndAllowThreads(__tstate); | |
4429 | if (PyErr_Occurred()) SWIG_fail; | |
4430 | } | |
4431 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4432 | return resultobj; | |
4433 | fail: | |
4434 | return NULL; | |
d55e5bfc RD |
4435 | } |
4436 | ||
4437 | ||
1bd55598 RD |
4438 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4439 | PyObject *resultobj = 0; | |
4440 | wxPen *arg1 = (wxPen *) 0 ; | |
4441 | int result; | |
4442 | void *argp1 = 0 ; | |
4443 | int res1 = 0 ; | |
4444 | PyObject *swig_obj[1] ; | |
4445 | ||
4446 | if (!args) SWIG_fail; | |
4447 | swig_obj[0] = args; | |
4448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4449 | if (!SWIG_IsOK(res1)) { | |
4450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4451 | } | |
4452 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4453 | { | |
4454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4455 | result = (int)(arg1)->GetWidth(); | |
4456 | wxPyEndAllowThreads(__tstate); | |
4457 | if (PyErr_Occurred()) SWIG_fail; | |
4458 | } | |
4459 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4460 | return resultobj; | |
4461 | fail: | |
4462 | return NULL; | |
d55e5bfc RD |
4463 | } |
4464 | ||
4465 | ||
1bd55598 RD |
4466 | SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4467 | PyObject *resultobj = 0; | |
4468 | wxPen *arg1 = (wxPen *) 0 ; | |
4469 | bool result; | |
4470 | void *argp1 = 0 ; | |
4471 | int res1 = 0 ; | |
4472 | PyObject *swig_obj[1] ; | |
4473 | ||
4474 | if (!args) SWIG_fail; | |
4475 | swig_obj[0] = args; | |
4476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4477 | if (!SWIG_IsOK(res1)) { | |
4478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4479 | } | |
4480 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | result = (bool)(arg1)->Ok(); | |
4484 | wxPyEndAllowThreads(__tstate); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | } | |
4487 | { | |
4488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4489 | } | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | return NULL; | |
4493 | } | |
4494 | ||
4495 | ||
4496 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4497 | PyObject *resultobj = 0; | |
4498 | wxPen *arg1 = (wxPen *) 0 ; | |
4499 | int arg2 ; | |
4500 | void *argp1 = 0 ; | |
4501 | int res1 = 0 ; | |
4502 | int val2 ; | |
4503 | int ecode2 = 0 ; | |
4504 | PyObject * obj0 = 0 ; | |
4505 | PyObject * obj1 = 0 ; | |
4506 | char * kwnames[] = { | |
4507 | (char *) "self",(char *) "cap_style", NULL | |
4508 | }; | |
4509 | ||
4510 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4511 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4512 | if (!SWIG_IsOK(res1)) { | |
4513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4514 | } | |
4515 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4516 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4517 | if (!SWIG_IsOK(ecode2)) { | |
4518 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
4519 | } | |
4520 | arg2 = static_cast< int >(val2); | |
4521 | { | |
4522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4523 | (arg1)->SetCap(arg2); | |
4524 | wxPyEndAllowThreads(__tstate); | |
4525 | if (PyErr_Occurred()) SWIG_fail; | |
4526 | } | |
4527 | resultobj = SWIG_Py_Void(); | |
4528 | return resultobj; | |
4529 | fail: | |
4530 | return NULL; | |
4531 | } | |
4532 | ||
4533 | ||
4534 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4535 | PyObject *resultobj = 0; | |
4536 | wxPen *arg1 = (wxPen *) 0 ; | |
4537 | wxColour *arg2 = 0 ; | |
4538 | void *argp1 = 0 ; | |
4539 | int res1 = 0 ; | |
4540 | wxColour temp2 ; | |
4541 | PyObject * obj0 = 0 ; | |
4542 | PyObject * obj1 = 0 ; | |
4543 | char * kwnames[] = { | |
4544 | (char *) "self",(char *) "colour", NULL | |
4545 | }; | |
4546 | ||
4547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
4548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4549 | if (!SWIG_IsOK(res1)) { | |
4550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4551 | } | |
4552 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4553 | { | |
4554 | arg2 = &temp2; | |
4555 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4556 | } | |
4557 | { | |
4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4559 | (arg1)->SetColour(*arg2); | |
4560 | wxPyEndAllowThreads(__tstate); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
4563 | resultobj = SWIG_Py_Void(); | |
4564 | return resultobj; | |
4565 | fail: | |
4566 | return NULL; | |
4567 | } | |
4568 | ||
4569 | ||
4570 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4571 | PyObject *resultobj = 0; | |
4572 | wxPen *arg1 = (wxPen *) 0 ; | |
4573 | int arg2 ; | |
4574 | void *argp1 = 0 ; | |
4575 | int res1 = 0 ; | |
4576 | int val2 ; | |
4577 | int ecode2 = 0 ; | |
4578 | PyObject * obj0 = 0 ; | |
4579 | PyObject * obj1 = 0 ; | |
4580 | char * kwnames[] = { | |
4581 | (char *) "self",(char *) "join_style", NULL | |
4582 | }; | |
4583 | ||
4584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
4585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4586 | if (!SWIG_IsOK(res1)) { | |
4587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4588 | } | |
4589 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4591 | if (!SWIG_IsOK(ecode2)) { | |
4592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
4593 | } | |
4594 | arg2 = static_cast< int >(val2); | |
4595 | { | |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | (arg1)->SetJoin(arg2); | |
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | resultobj = SWIG_Py_Void(); | |
4602 | return resultobj; | |
4603 | fail: | |
4604 | return NULL; | |
4605 | } | |
4606 | ||
4607 | ||
4608 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4609 | PyObject *resultobj = 0; | |
4610 | wxPen *arg1 = (wxPen *) 0 ; | |
4611 | int arg2 ; | |
4612 | void *argp1 = 0 ; | |
4613 | int res1 = 0 ; | |
4614 | int val2 ; | |
4615 | int ecode2 = 0 ; | |
4616 | PyObject * obj0 = 0 ; | |
4617 | PyObject * obj1 = 0 ; | |
4618 | char * kwnames[] = { | |
4619 | (char *) "self",(char *) "style", NULL | |
4620 | }; | |
4621 | ||
4622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4624 | if (!SWIG_IsOK(res1)) { | |
4625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4626 | } | |
4627 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4628 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4629 | if (!SWIG_IsOK(ecode2)) { | |
4630 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
4631 | } | |
4632 | arg2 = static_cast< int >(val2); | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | (arg1)->SetStyle(arg2); | |
4636 | wxPyEndAllowThreads(__tstate); | |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
4638 | } | |
4639 | resultobj = SWIG_Py_Void(); | |
4640 | return resultobj; | |
4641 | fail: | |
4642 | return NULL; | |
4643 | } | |
4644 | ||
4645 | ||
4646 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4647 | PyObject *resultobj = 0; | |
4648 | wxPen *arg1 = (wxPen *) 0 ; | |
4649 | int arg2 ; | |
4650 | void *argp1 = 0 ; | |
4651 | int res1 = 0 ; | |
4652 | int val2 ; | |
4653 | int ecode2 = 0 ; | |
4654 | PyObject * obj0 = 0 ; | |
4655 | PyObject * obj1 = 0 ; | |
4656 | char * kwnames[] = { | |
4657 | (char *) "self",(char *) "width", NULL | |
4658 | }; | |
4659 | ||
4660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
4661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4662 | if (!SWIG_IsOK(res1)) { | |
4663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4664 | } | |
4665 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4666 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4667 | if (!SWIG_IsOK(ecode2)) { | |
4668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
4669 | } | |
4670 | arg2 = static_cast< int >(val2); | |
4671 | { | |
4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4673 | (arg1)->SetWidth(arg2); | |
4674 | wxPyEndAllowThreads(__tstate); | |
4675 | if (PyErr_Occurred()) SWIG_fail; | |
4676 | } | |
4677 | resultobj = SWIG_Py_Void(); | |
4678 | return resultobj; | |
4679 | fail: | |
4680 | return NULL; | |
4681 | } | |
4682 | ||
4683 | ||
4684 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4685 | PyObject *resultobj = 0; | |
4686 | wxPen *arg1 = (wxPen *) 0 ; | |
4687 | int arg2 ; | |
4688 | wxDash *arg3 = (wxDash *) 0 ; | |
4689 | void *argp1 = 0 ; | |
4690 | int res1 = 0 ; | |
4691 | PyObject * obj0 = 0 ; | |
4692 | PyObject * obj1 = 0 ; | |
4693 | char * kwnames[] = { | |
4694 | (char *) "self",(char *) "dashes", NULL | |
4695 | }; | |
4696 | ||
4697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
4698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4699 | if (!SWIG_IsOK(res1)) { | |
4700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4701 | } | |
4702 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4703 | { | |
4704 | arg2 = PyList_Size(obj1); | |
4705 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
4706 | if (arg3 == NULL) SWIG_fail; | |
4707 | } | |
4708 | { | |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | (arg1)->SetDashes(arg2,arg3); | |
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | resultobj = SWIG_Py_Void(); | |
4715 | { | |
4716 | if (arg3) delete [] arg3; | |
4717 | } | |
4718 | return resultobj; | |
4719 | fail: | |
4720 | { | |
4721 | if (arg3) delete [] arg3; | |
4722 | } | |
4723 | return NULL; | |
d6c14a4c RD |
4724 | } |
4725 | ||
4726 | ||
1bd55598 RD |
4727 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4728 | PyObject *resultobj = 0; | |
4729 | wxPen *arg1 = (wxPen *) 0 ; | |
4730 | PyObject *result = 0 ; | |
4731 | void *argp1 = 0 ; | |
4732 | int res1 = 0 ; | |
4733 | PyObject *swig_obj[1] ; | |
4734 | ||
4735 | if (!args) SWIG_fail; | |
4736 | swig_obj[0] = args; | |
4737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4738 | if (!SWIG_IsOK(res1)) { | |
4739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4740 | } | |
4741 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | result = (PyObject *)wxPen_GetDashes(arg1); | |
4745 | wxPyEndAllowThreads(__tstate); | |
4746 | if (PyErr_Occurred()) SWIG_fail; | |
4747 | } | |
4748 | resultobj = result; | |
4749 | return resultobj; | |
4750 | fail: | |
4751 | return NULL; | |
4752 | } | |
4753 | ||
4754 | ||
4755 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4756 | PyObject *resultobj = 0; | |
4757 | wxPen *arg1 = (wxPen *) 0 ; | |
4758 | PyObject *arg2 = (PyObject *) 0 ; | |
4759 | PyObject *arg3 = (PyObject *) 0 ; | |
4760 | void *argp1 = 0 ; | |
4761 | int res1 = 0 ; | |
4762 | PyObject * obj0 = 0 ; | |
4763 | PyObject * obj1 = 0 ; | |
4764 | PyObject * obj2 = 0 ; | |
4765 | char * kwnames[] = { | |
4766 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
4767 | }; | |
4768 | ||
4769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4771 | if (!SWIG_IsOK(res1)) { | |
4772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4773 | } | |
4774 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4775 | arg2 = obj1; | |
4776 | arg3 = obj2; | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | wxPen__SetDashes(arg1,arg2,arg3); | |
4780 | wxPyEndAllowThreads(__tstate); | |
4781 | if (PyErr_Occurred()) SWIG_fail; | |
4782 | } | |
4783 | resultobj = SWIG_Py_Void(); | |
4784 | return resultobj; | |
4785 | fail: | |
4786 | return NULL; | |
4787 | } | |
4788 | ||
4789 | ||
4790 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4791 | PyObject *resultobj = 0; | |
4792 | wxPen *arg1 = (wxPen *) 0 ; | |
4793 | wxPen *arg2 = (wxPen *) 0 ; | |
4794 | bool result; | |
4795 | void *argp1 = 0 ; | |
4796 | int res1 = 0 ; | |
4797 | void *argp2 = 0 ; | |
4798 | int res2 = 0 ; | |
4799 | PyObject * obj0 = 0 ; | |
4800 | PyObject * obj1 = 0 ; | |
4801 | char * kwnames[] = { | |
4802 | (char *) "self",(char *) "other", NULL | |
4803 | }; | |
4804 | ||
4805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4807 | if (!SWIG_IsOK(res1)) { | |
4808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4809 | } | |
4810 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4811 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4812 | if (!SWIG_IsOK(res2)) { | |
4813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4814 | } | |
4815 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
4819 | wxPyEndAllowThreads(__tstate); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4824 | } | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
4831 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4832 | PyObject *resultobj = 0; | |
4833 | wxPen *arg1 = (wxPen *) 0 ; | |
4834 | wxPen *arg2 = (wxPen *) 0 ; | |
4835 | bool result; | |
4836 | void *argp1 = 0 ; | |
4837 | int res1 = 0 ; | |
4838 | void *argp2 = 0 ; | |
4839 | int res2 = 0 ; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | PyObject * obj1 = 0 ; | |
4842 | char * kwnames[] = { | |
4843 | (char *) "self",(char *) "other", NULL | |
4844 | }; | |
4845 | ||
4846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4848 | if (!SWIG_IsOK(res1)) { | |
4849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4850 | } | |
4851 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4852 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4853 | if (!SWIG_IsOK(res2)) { | |
4854 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
4855 | } | |
4856 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
4857 | { | |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
4860 | wxPyEndAllowThreads(__tstate); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | } | |
4863 | { | |
4864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4865 | } | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
d55e5bfc RD |
4870 | |
4871 | ||
1bd55598 RD |
4872 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4873 | PyObject *obj; | |
4874 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4875 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
4876 | return SWIG_Py_Void(); | |
d55e5bfc RD |
4877 | } |
4878 | ||
1bd55598 RD |
4879 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4880 | return SWIG_Python_InitShadowInstance(args); | |
4881 | } | |
d55e5bfc | 4882 | |
1bd55598 RD |
4883 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4884 | PyObject *resultobj = 0; | |
4885 | wxColour *arg1 = 0 ; | |
4886 | int arg2 = (int) wxSOLID ; | |
4887 | wxBrush *result = 0 ; | |
4888 | wxColour temp1 ; | |
4889 | int val2 ; | |
4890 | int ecode2 = 0 ; | |
4891 | PyObject * obj0 = 0 ; | |
4892 | PyObject * obj1 = 0 ; | |
4893 | char * kwnames[] = { | |
4894 | (char *) "colour",(char *) "style", NULL | |
4895 | }; | |
4896 | ||
4897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
4898 | { | |
4899 | arg1 = &temp1; | |
4900 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4901 | } | |
4902 | if (obj1) { | |
4903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4904 | if (!SWIG_IsOK(ecode2)) { | |
4905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
4906 | } | |
4907 | arg2 = static_cast< int >(val2); | |
4908 | } | |
4909 | { | |
4910 | if (!wxPyCheckForApp()) SWIG_fail; | |
4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4912 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
4913 | wxPyEndAllowThreads(__tstate); | |
4914 | if (PyErr_Occurred()) SWIG_fail; | |
4915 | } | |
4916 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
4917 | return resultobj; | |
4918 | fail: | |
4919 | return NULL; | |
4920 | } | |
4921 | ||
4922 | ||
4923 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4924 | PyObject *resultobj = 0; | |
4925 | wxBitmap *arg1 = 0 ; | |
4926 | wxBrush *result = 0 ; | |
4927 | void *argp1 = 0 ; | |
4928 | int res1 = 0 ; | |
4929 | PyObject * obj0 = 0 ; | |
4930 | char * kwnames[] = { | |
4931 | (char *) "stippleBitmap", NULL | |
4932 | }; | |
4933 | ||
4934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
4935 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
4936 | if (!SWIG_IsOK(res1)) { | |
4937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
4938 | } | |
4939 | if (!argp1) { | |
4940 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
4941 | } | |
4942 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
4943 | { | |
4944 | if (!wxPyCheckForApp()) SWIG_fail; | |
4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4946 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
4947 | wxPyEndAllowThreads(__tstate); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
4951 | return resultobj; | |
4952 | fail: | |
4953 | return NULL; | |
d55e5bfc RD |
4954 | } |
4955 | ||
4956 | ||
1bd55598 RD |
4957 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4958 | PyObject *resultobj = 0; | |
4959 | wxBrush *arg1 = (wxBrush *) 0 ; | |
4960 | void *argp1 = 0 ; | |
4961 | int res1 = 0 ; | |
4962 | PyObject *swig_obj[1] ; | |
4963 | ||
4964 | if (!args) SWIG_fail; | |
4965 | swig_obj[0] = args; | |
4966 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
4967 | if (!SWIG_IsOK(res1)) { | |
4968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
4969 | } | |
4970 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
4971 | { | |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4973 | delete arg1; | |
d55e5bfc | 4974 | |
1bd55598 RD |
4975 | wxPyEndAllowThreads(__tstate); |
4976 | if (PyErr_Occurred()) SWIG_fail; | |
4977 | } | |
4978 | resultobj = SWIG_Py_Void(); | |
4979 | return resultobj; | |
4980 | fail: | |
4981 | return NULL; | |
4982 | } | |
4983 | ||
4984 | ||
4985 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4986 | PyObject *resultobj = 0; | |
4987 | wxBrush *arg1 = (wxBrush *) 0 ; | |
4988 | wxColour *arg2 = 0 ; | |
4989 | void *argp1 = 0 ; | |
4990 | int res1 = 0 ; | |
4991 | wxColour temp2 ; | |
4992 | PyObject * obj0 = 0 ; | |
4993 | PyObject * obj1 = 0 ; | |
4994 | char * kwnames[] = { | |
4995 | (char *) "self",(char *) "col", NULL | |
4996 | }; | |
4997 | ||
4998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
4999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5000 | if (!SWIG_IsOK(res1)) { | |
5001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5002 | } | |
5003 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5004 | { | |
5005 | arg2 = &temp2; | |
5006 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5007 | } | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | (arg1)->SetColour((wxColour const &)*arg2); | |
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
5014 | resultobj = SWIG_Py_Void(); | |
5015 | return resultobj; | |
5016 | fail: | |
5017 | return NULL; | |
5018 | } | |
5019 | ||
5020 | ||
5021 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5022 | PyObject *resultobj = 0; | |
5023 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5024 | int arg2 ; | |
5025 | void *argp1 = 0 ; | |
5026 | int res1 = 0 ; | |
5027 | int val2 ; | |
5028 | int ecode2 = 0 ; | |
5029 | PyObject * obj0 = 0 ; | |
5030 | PyObject * obj1 = 0 ; | |
5031 | char * kwnames[] = { | |
5032 | (char *) "self",(char *) "style", NULL | |
5033 | }; | |
5034 | ||
5035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5037 | if (!SWIG_IsOK(res1)) { | |
5038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5039 | } | |
5040 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5041 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5042 | if (!SWIG_IsOK(ecode2)) { | |
5043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5044 | } | |
5045 | arg2 = static_cast< int >(val2); | |
5046 | { | |
5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5048 | (arg1)->SetStyle(arg2); | |
5049 | wxPyEndAllowThreads(__tstate); | |
5050 | if (PyErr_Occurred()) SWIG_fail; | |
5051 | } | |
5052 | resultobj = SWIG_Py_Void(); | |
5053 | return resultobj; | |
5054 | fail: | |
5055 | return NULL; | |
5056 | } | |
5057 | ||
5058 | ||
5059 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5060 | PyObject *resultobj = 0; | |
5061 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5062 | wxBitmap *arg2 = 0 ; | |
5063 | void *argp1 = 0 ; | |
5064 | int res1 = 0 ; | |
5065 | void *argp2 = 0 ; | |
5066 | int res2 = 0 ; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | PyObject * obj1 = 0 ; | |
5069 | char * kwnames[] = { | |
5070 | (char *) "self",(char *) "stipple", NULL | |
5071 | }; | |
5072 | ||
5073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5075 | if (!SWIG_IsOK(res1)) { | |
5076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5077 | } | |
5078 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5079 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5080 | if (!SWIG_IsOK(res2)) { | |
5081 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5082 | } | |
5083 | if (!argp2) { | |
5084 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5085 | } | |
5086 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->SetStipple((wxBitmap 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; | |
d55e5bfc RD |
5097 | } |
5098 | ||
5099 | ||
1bd55598 RD |
5100 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5101 | PyObject *resultobj = 0; | |
5102 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5103 | wxColour result; | |
5104 | void *argp1 = 0 ; | |
5105 | int res1 = 0 ; | |
5106 | PyObject *swig_obj[1] ; | |
5107 | ||
5108 | if (!args) SWIG_fail; | |
5109 | swig_obj[0] = args; | |
5110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5111 | if (!SWIG_IsOK(res1)) { | |
5112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5113 | } | |
5114 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5115 | { | |
5116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5117 | result = ((wxBrush const *)arg1)->GetColour(); | |
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5122 | return resultobj; | |
5123 | fail: | |
5124 | return NULL; | |
d55e5bfc RD |
5125 | } |
5126 | ||
5127 | ||
1bd55598 RD |
5128 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5129 | PyObject *resultobj = 0; | |
5130 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5131 | int result; | |
5132 | void *argp1 = 0 ; | |
5133 | int res1 = 0 ; | |
5134 | PyObject *swig_obj[1] ; | |
5135 | ||
5136 | if (!args) SWIG_fail; | |
5137 | swig_obj[0] = args; | |
5138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5139 | if (!SWIG_IsOK(res1)) { | |
5140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5141 | } | |
5142 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5143 | { | |
5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5145 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
d55e5bfc RD |
5153 | } |
5154 | ||
5155 | ||
1bd55598 RD |
5156 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5157 | PyObject *resultobj = 0; | |
5158 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5159 | wxBitmap *result = 0 ; | |
5160 | void *argp1 = 0 ; | |
5161 | int res1 = 0 ; | |
5162 | PyObject *swig_obj[1] ; | |
5163 | ||
5164 | if (!args) SWIG_fail; | |
5165 | swig_obj[0] = args; | |
5166 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5167 | if (!SWIG_IsOK(res1)) { | |
5168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5169 | } | |
5170 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5171 | { | |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5174 | wxPyEndAllowThreads(__tstate); | |
5175 | if (PyErr_Occurred()) SWIG_fail; | |
5176 | } | |
5177 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5178 | return resultobj; | |
5179 | fail: | |
5180 | return NULL; | |
d55e5bfc RD |
5181 | } |
5182 | ||
5183 | ||
1bd55598 RD |
5184 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5185 | PyObject *resultobj = 0; | |
5186 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5187 | bool result; | |
5188 | void *argp1 = 0 ; | |
5189 | int res1 = 0 ; | |
5190 | PyObject *swig_obj[1] ; | |
5191 | ||
5192 | if (!args) SWIG_fail; | |
5193 | swig_obj[0] = args; | |
5194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5195 | if (!SWIG_IsOK(res1)) { | |
5196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5197 | } | |
5198 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | { | |
5206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5207 | } | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
d55e5bfc RD |
5211 | } |
5212 | ||
5213 | ||
1bd55598 RD |
5214 | SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5215 | PyObject *resultobj = 0; | |
5216 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5217 | bool result; | |
5218 | void *argp1 = 0 ; | |
5219 | int res1 = 0 ; | |
5220 | PyObject *swig_obj[1] ; | |
5221 | ||
5222 | if (!args) SWIG_fail; | |
5223 | swig_obj[0] = args; | |
5224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5225 | if (!SWIG_IsOK(res1)) { | |
5226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5227 | } | |
5228 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5229 | { | |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | result = (bool)(arg1)->Ok(); | |
5232 | wxPyEndAllowThreads(__tstate); | |
5233 | if (PyErr_Occurred()) SWIG_fail; | |
5234 | } | |
5235 | { | |
5236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5237 | } | |
5238 | return resultobj; | |
5239 | fail: | |
5240 | return NULL; | |
d55e5bfc RD |
5241 | } |
5242 | ||
5243 | ||
1bd55598 RD |
5244 | SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5245 | PyObject *resultobj = 0; | |
5246 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5247 | short result; | |
5248 | void *argp1 = 0 ; | |
5249 | int res1 = 0 ; | |
5250 | PyObject *swig_obj[1] ; | |
5251 | ||
5252 | if (!args) SWIG_fail; | |
5253 | swig_obj[0] = args; | |
5254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5255 | if (!SWIG_IsOK(res1)) { | |
5256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5257 | } | |
5258 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | result = (short)(arg1)->MacGetTheme(); | |
5262 | wxPyEndAllowThreads(__tstate); | |
5263 | if (PyErr_Occurred()) SWIG_fail; | |
5264 | } | |
5265 | resultobj = SWIG_From_short(static_cast< short >(result)); | |
5266 | return resultobj; | |
5267 | fail: | |
5268 | return NULL; | |
5269 | } | |
5270 | ||
5271 | ||
5272 | SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5273 | PyObject *resultobj = 0; | |
5274 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5275 | short arg2 ; | |
5276 | void *argp1 = 0 ; | |
5277 | int res1 = 0 ; | |
5278 | short val2 ; | |
5279 | int ecode2 = 0 ; | |
5280 | PyObject * obj0 = 0 ; | |
5281 | PyObject * obj1 = 0 ; | |
5282 | char * kwnames[] = { | |
5283 | (char *) "self",(char *) "macThemeBrush", NULL | |
5284 | }; | |
5285 | ||
5286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail; | |
5287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5288 | if (!SWIG_IsOK(res1)) { | |
5289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5290 | } | |
5291 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5292 | ecode2 = SWIG_AsVal_short(obj1, &val2); | |
5293 | if (!SWIG_IsOK(ecode2)) { | |
5294 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'"); | |
5295 | } | |
5296 | arg2 = static_cast< short >(val2); | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | (arg1)->MacSetTheme(arg2); | |
5300 | wxPyEndAllowThreads(__tstate); | |
5301 | if (PyErr_Occurred()) SWIG_fail; | |
5302 | } | |
5303 | resultobj = SWIG_Py_Void(); | |
5304 | return resultobj; | |
5305 | fail: | |
5306 | return NULL; | |
d55e5bfc RD |
5307 | } |
5308 | ||
5309 | ||
1bd55598 RD |
5310 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5311 | PyObject *obj; | |
5312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5314 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5315 | } |
5316 | ||
1bd55598 RD |
5317 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5318 | return SWIG_Python_InitShadowInstance(args); | |
5319 | } | |
d55e5bfc | 5320 | |
1bd55598 RD |
5321 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5322 | PyObject *resultobj = 0; | |
5323 | wxString *arg1 = 0 ; | |
5324 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5325 | wxBitmap *result = 0 ; | |
5326 | bool temp1 = false ; | |
5327 | int val2 ; | |
5328 | int ecode2 = 0 ; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | PyObject * obj1 = 0 ; | |
5331 | char * kwnames[] = { | |
5332 | (char *) "name",(char *) "type", NULL | |
5333 | }; | |
5334 | ||
5335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5336 | { | |
5337 | arg1 = wxString_in_helper(obj0); | |
5338 | if (arg1 == NULL) SWIG_fail; | |
5339 | temp1 = true; | |
5340 | } | |
5341 | if (obj1) { | |
5342 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5343 | if (!SWIG_IsOK(ecode2)) { | |
5344 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
5345 | } | |
5346 | arg2 = static_cast< wxBitmapType >(val2); | |
5347 | } | |
5348 | { | |
5349 | if (!wxPyCheckForApp()) SWIG_fail; | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
5356 | { | |
5357 | if (temp1) | |
5358 | delete arg1; | |
5359 | } | |
5360 | return resultobj; | |
5361 | fail: | |
5362 | { | |
5363 | if (temp1) | |
5364 | delete arg1; | |
5365 | } | |
5366 | return NULL; | |
d55e5bfc RD |
5367 | } |
5368 | ||
5369 | ||
1bd55598 RD |
5370 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5371 | PyObject *resultobj = 0; | |
5372 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5373 | void *argp1 = 0 ; | |
5374 | int res1 = 0 ; | |
5375 | PyObject *swig_obj[1] ; | |
5376 | ||
5377 | if (!args) SWIG_fail; | |
5378 | swig_obj[0] = args; | |
5379 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
5380 | if (!SWIG_IsOK(res1)) { | |
5381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5382 | } | |
5383 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | delete arg1; | |
d55e5bfc | 5387 | |
1bd55598 RD |
5388 | wxPyEndAllowThreads(__tstate); |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
5391 | resultobj = SWIG_Py_Void(); | |
5392 | return resultobj; | |
5393 | fail: | |
5394 | return NULL; | |
5395 | } | |
5396 | ||
5397 | ||
5398 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5399 | PyObject *resultobj = 0; | |
5400 | int arg1 ; | |
5401 | int arg2 ; | |
5402 | int arg3 = (int) -1 ; | |
5403 | wxBitmap *result = 0 ; | |
5404 | int val1 ; | |
5405 | int ecode1 = 0 ; | |
5406 | int val2 ; | |
5407 | int ecode2 = 0 ; | |
5408 | int val3 ; | |
5409 | int ecode3 = 0 ; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | PyObject * obj1 = 0 ; | |
5412 | PyObject * obj2 = 0 ; | |
5413 | char * kwnames[] = { | |
5414 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
5415 | }; | |
5416 | ||
5417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5418 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5419 | if (!SWIG_IsOK(ecode1)) { | |
5420 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
5421 | } | |
5422 | arg1 = static_cast< int >(val1); | |
5423 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5424 | if (!SWIG_IsOK(ecode2)) { | |
5425 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
5426 | } | |
5427 | arg2 = static_cast< int >(val2); | |
5428 | if (obj2) { | |
5429 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5430 | if (!SWIG_IsOK(ecode3)) { | |
5431 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
5432 | } | |
5433 | arg3 = static_cast< int >(val3); | |
5434 | } | |
5435 | { | |
5436 | if (!wxPyCheckForApp()) SWIG_fail; | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
5439 | wxPyEndAllowThreads(__tstate); | |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
5441 | } | |
5442 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5450 | PyObject *resultobj = 0; | |
5451 | wxIcon *arg1 = 0 ; | |
5452 | wxBitmap *result = 0 ; | |
5453 | void *argp1 = 0 ; | |
5454 | int res1 = 0 ; | |
5455 | PyObject * obj0 = 0 ; | |
5456 | char * kwnames[] = { | |
5457 | (char *) "icon", NULL | |
5458 | }; | |
5459 | ||
5460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
5461 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
5462 | if (!SWIG_IsOK(res1)) { | |
5463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5464 | } | |
5465 | if (!argp1) { | |
5466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5467 | } | |
5468 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
5469 | { | |
5470 | if (!wxPyCheckForApp()) SWIG_fail; | |
5471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5472 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) SWIG_fail; | |
5475 | } | |
5476 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5477 | return resultobj; | |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj = 0; | |
5485 | wxImage *arg1 = 0 ; | |
5486 | int arg2 = (int) -1 ; | |
5487 | wxBitmap *result = 0 ; | |
5488 | void *argp1 = 0 ; | |
5489 | int res1 = 0 ; | |
5490 | int val2 ; | |
5491 | int ecode2 = 0 ; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | PyObject * obj1 = 0 ; | |
5494 | char * kwnames[] = { | |
5495 | (char *) "image",(char *) "depth", NULL | |
5496 | }; | |
5497 | ||
5498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
5499 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
5500 | if (!SWIG_IsOK(res1)) { | |
5501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5502 | } | |
5503 | if (!argp1) { | |
5504 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5505 | } | |
5506 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
5507 | if (obj1) { | |
5508 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5509 | if (!SWIG_IsOK(ecode2)) { | |
5510 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
5511 | } | |
5512 | arg2 = static_cast< int >(val2); | |
5513 | } | |
5514 | { | |
5515 | if (!wxPyCheckForApp()) SWIG_fail; | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
5521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
d55e5bfc RD |
5525 | } |
5526 | ||
5527 | ||
1bd55598 RD |
5528 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5529 | PyObject *resultobj = 0; | |
5530 | PyObject *arg1 = (PyObject *) 0 ; | |
5531 | wxBitmap *result = 0 ; | |
5532 | PyObject * obj0 = 0 ; | |
5533 | char * kwnames[] = { | |
5534 | (char *) "listOfStrings", NULL | |
5535 | }; | |
5536 | ||
5537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
5538 | arg1 = obj0; | |
5539 | { | |
5540 | if (!wxPyCheckForApp()) SWIG_fail; | |
5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5542 | result = (wxBitmap *)new_wxBitmap(arg1); | |
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
5546 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5547 | return resultobj; | |
5548 | fail: | |
5549 | return NULL; | |
5550 | } | |
5551 | ||
5552 | ||
5553 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5554 | PyObject *resultobj = 0; | |
5555 | PyObject *arg1 = (PyObject *) 0 ; | |
5556 | int arg2 ; | |
5557 | int arg3 ; | |
5558 | int arg4 = (int) 1 ; | |
5559 | wxBitmap *result = 0 ; | |
5560 | int val2 ; | |
5561 | int ecode2 = 0 ; | |
5562 | int val3 ; | |
5563 | int ecode3 = 0 ; | |
5564 | int val4 ; | |
5565 | int ecode4 = 0 ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | PyObject * obj2 = 0 ; | |
5569 | PyObject * obj3 = 0 ; | |
5570 | char * kwnames[] = { | |
5571 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
5572 | }; | |
5573 | ||
5574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
5575 | arg1 = obj0; | |
5576 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5577 | if (!SWIG_IsOK(ecode2)) { | |
5578 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
5579 | } | |
5580 | arg2 = static_cast< int >(val2); | |
5581 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5582 | if (!SWIG_IsOK(ecode3)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
5584 | } | |
5585 | arg3 = static_cast< int >(val3); | |
5586 | if (obj3) { | |
5587 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
5588 | if (!SWIG_IsOK(ecode4)) { | |
5589 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
5590 | } | |
5591 | arg4 = static_cast< int >(val4); | |
5592 | } | |
5593 | { | |
5594 | if (!wxPyCheckForApp()) SWIG_fail; | |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
d55e5bfc RD |
5604 | } |
5605 | ||
5606 | ||
1bd55598 RD |
5607 | SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5608 | PyObject *resultobj = 0; | |
5609 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5610 | bool result; | |
5611 | void *argp1 = 0 ; | |
5612 | int res1 = 0 ; | |
5613 | PyObject *swig_obj[1] ; | |
5614 | ||
5615 | if (!args) SWIG_fail; | |
5616 | swig_obj[0] = args; | |
5617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5618 | if (!SWIG_IsOK(res1)) { | |
5619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5620 | } | |
5621 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5622 | { | |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | result = (bool)(arg1)->Ok(); | |
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
5628 | { | |
5629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5630 | } | |
5631 | return resultobj; | |
5632 | fail: | |
5633 | return NULL; | |
d55e5bfc RD |
5634 | } |
5635 | ||
5636 | ||
1bd55598 RD |
5637 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5638 | PyObject *resultobj = 0; | |
5639 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5640 | int result; | |
5641 | void *argp1 = 0 ; | |
5642 | int res1 = 0 ; | |
5643 | PyObject *swig_obj[1] ; | |
5644 | ||
5645 | if (!args) SWIG_fail; | |
5646 | swig_obj[0] = args; | |
5647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5648 | if (!SWIG_IsOK(res1)) { | |
5649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5650 | } | |
5651 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | result = (int)(arg1)->GetWidth(); | |
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
5658 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5659 | return resultobj; | |
5660 | fail: | |
5661 | return NULL; | |
070c48b4 RD |
5662 | } |
5663 | ||
5664 | ||
1bd55598 RD |
5665 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5666 | PyObject *resultobj = 0; | |
5667 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5668 | int result; | |
5669 | void *argp1 = 0 ; | |
5670 | int res1 = 0 ; | |
5671 | PyObject *swig_obj[1] ; | |
5672 | ||
5673 | if (!args) SWIG_fail; | |
5674 | swig_obj[0] = args; | |
5675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5676 | if (!SWIG_IsOK(res1)) { | |
5677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5678 | } | |
5679 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5680 | { | |
5681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5682 | result = (int)(arg1)->GetHeight(); | |
5683 | wxPyEndAllowThreads(__tstate); | |
5684 | if (PyErr_Occurred()) SWIG_fail; | |
5685 | } | |
5686 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5687 | return resultobj; | |
5688 | fail: | |
5689 | return NULL; | |
d55e5bfc RD |
5690 | } |
5691 | ||
5692 | ||
1bd55598 RD |
5693 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5694 | PyObject *resultobj = 0; | |
5695 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5696 | int result; | |
5697 | void *argp1 = 0 ; | |
5698 | int res1 = 0 ; | |
5699 | PyObject *swig_obj[1] ; | |
5700 | ||
5701 | if (!args) SWIG_fail; | |
5702 | swig_obj[0] = args; | |
5703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5704 | if (!SWIG_IsOK(res1)) { | |
5705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5706 | } | |
5707 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | result = (int)(arg1)->GetDepth(); | |
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
d55e5bfc RD |
5718 | } |
5719 | ||
5720 | ||
1bd55598 RD |
5721 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5722 | PyObject *resultobj = 0; | |
5723 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5724 | wxSize result; | |
5725 | void *argp1 = 0 ; | |
5726 | int res1 = 0 ; | |
5727 | PyObject *swig_obj[1] ; | |
5728 | ||
5729 | if (!args) SWIG_fail; | |
5730 | swig_obj[0] = args; | |
5731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5732 | if (!SWIG_IsOK(res1)) { | |
5733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5734 | } | |
5735 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5736 | { | |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | result = wxBitmap_GetSize(arg1); | |
5739 | wxPyEndAllowThreads(__tstate); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
5742 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
5743 | return resultobj; | |
5744 | fail: | |
5745 | return NULL; | |
d55e5bfc RD |
5746 | } |
5747 | ||
5748 | ||
1bd55598 RD |
5749 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5750 | PyObject *resultobj = 0; | |
5751 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5752 | SwigValueWrapper<wxImage > result; | |
5753 | void *argp1 = 0 ; | |
5754 | int res1 = 0 ; | |
5755 | PyObject *swig_obj[1] ; | |
5756 | ||
5757 | if (!args) SWIG_fail; | |
5758 | swig_obj[0] = args; | |
5759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5760 | if (!SWIG_IsOK(res1)) { | |
5761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5762 | } | |
5763 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5764 | { | |
5765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5766 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
5767 | wxPyEndAllowThreads(__tstate); | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | } | |
5770 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
5771 | return resultobj; | |
5772 | fail: | |
5773 | return NULL; | |
d55e5bfc RD |
5774 | } |
5775 | ||
5776 | ||
1bd55598 RD |
5777 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5778 | PyObject *resultobj = 0; | |
5779 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5780 | wxMask *result = 0 ; | |
5781 | void *argp1 = 0 ; | |
5782 | int res1 = 0 ; | |
5783 | PyObject *swig_obj[1] ; | |
5784 | ||
5785 | if (!args) SWIG_fail; | |
5786 | swig_obj[0] = args; | |
5787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5788 | if (!SWIG_IsOK(res1)) { | |
5789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5790 | } | |
5791 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5792 | { | |
5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5794 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
5795 | wxPyEndAllowThreads(__tstate); | |
5796 | if (PyErr_Occurred()) SWIG_fail; | |
5797 | } | |
5798 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
5799 | return resultobj; | |
5800 | fail: | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
5805 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj = 0; | |
5807 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5808 | wxMask *arg2 = (wxMask *) 0 ; | |
5809 | void *argp1 = 0 ; | |
5810 | int res1 = 0 ; | |
5811 | int res2 = 0 ; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | PyObject * obj1 = 0 ; | |
5814 | char * kwnames[] = { | |
5815 | (char *) "self",(char *) "mask", NULL | |
5816 | }; | |
5817 | ||
5818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
5819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5820 | if (!SWIG_IsOK(res1)) { | |
5821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5822 | } | |
5823 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5824 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
5825 | if (!SWIG_IsOK(res2)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
5827 | } | |
5828 | { | |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | (arg1)->SetMask(arg2); | |
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
5834 | resultobj = SWIG_Py_Void(); | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
5841 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5842 | PyObject *resultobj = 0; | |
5843 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5844 | wxColour *arg2 = 0 ; | |
5845 | void *argp1 = 0 ; | |
5846 | int res1 = 0 ; | |
5847 | wxColour temp2 ; | |
5848 | PyObject * obj0 = 0 ; | |
5849 | PyObject * obj1 = 0 ; | |
5850 | char * kwnames[] = { | |
5851 | (char *) "self",(char *) "colour", NULL | |
5852 | }; | |
5853 | ||
5854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5856 | if (!SWIG_IsOK(res1)) { | |
5857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5858 | } | |
5859 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5860 | { | |
5861 | arg2 = &temp2; | |
5862 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5863 | } | |
5864 | { | |
5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5866 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
5870 | resultobj = SWIG_Py_Void(); | |
5871 | return resultobj; | |
5872 | fail: | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
5877 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5878 | PyObject *resultobj = 0; | |
5879 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5880 | wxRect *arg2 = 0 ; | |
5881 | SwigValueWrapper<wxBitmap > result; | |
5882 | void *argp1 = 0 ; | |
5883 | int res1 = 0 ; | |
5884 | wxRect temp2 ; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | PyObject * obj1 = 0 ; | |
5887 | char * kwnames[] = { | |
5888 | (char *) "self",(char *) "rect", NULL | |
5889 | }; | |
5890 | ||
5891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5893 | if (!SWIG_IsOK(res1)) { | |
5894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
5895 | } | |
5896 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5897 | { | |
5898 | arg2 = &temp2; | |
5899 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5900 | } | |
5901 | { | |
5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5903 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
5904 | wxPyEndAllowThreads(__tstate); | |
5905 | if (PyErr_Occurred()) SWIG_fail; | |
5906 | } | |
5907 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5908 | return resultobj; | |
5909 | fail: | |
5910 | return NULL; | |
5911 | } | |
5912 | ||
5913 | ||
5914 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5915 | PyObject *resultobj = 0; | |
5916 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5917 | wxString *arg2 = 0 ; | |
5918 | wxBitmapType arg3 ; | |
5919 | wxPalette *arg4 = (wxPalette *) NULL ; | |
5920 | bool result; | |
5921 | void *argp1 = 0 ; | |
5922 | int res1 = 0 ; | |
5923 | bool temp2 = false ; | |
5924 | int val3 ; | |
5925 | int ecode3 = 0 ; | |
5926 | void *argp4 = 0 ; | |
5927 | int res4 = 0 ; | |
5928 | PyObject * obj0 = 0 ; | |
5929 | PyObject * obj1 = 0 ; | |
5930 | PyObject * obj2 = 0 ; | |
5931 | PyObject * obj3 = 0 ; | |
5932 | char * kwnames[] = { | |
5933 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
5934 | }; | |
5935 | ||
5936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
5937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5938 | if (!SWIG_IsOK(res1)) { | |
5939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5940 | } | |
5941 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5942 | { | |
5943 | arg2 = wxString_in_helper(obj1); | |
5944 | if (arg2 == NULL) SWIG_fail; | |
5945 | temp2 = true; | |
5946 | } | |
5947 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5948 | if (!SWIG_IsOK(ecode3)) { | |
5949 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
5950 | } | |
5951 | arg3 = static_cast< wxBitmapType >(val3); | |
5952 | if (obj3) { | |
5953 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5954 | if (!SWIG_IsOK(res4)) { | |
5955 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 5956 | } |
1bd55598 RD |
5957 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
5958 | } | |
5959 | { | |
5960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5961 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); | |
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | { | |
5966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5967 | } | |
5968 | { | |
5969 | if (temp2) | |
5970 | delete arg2; | |
5971 | } | |
5972 | return resultobj; | |
5973 | fail: | |
5974 | { | |
5975 | if (temp2) | |
5976 | delete arg2; | |
5977 | } | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
5982 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5983 | PyObject *resultobj = 0; | |
5984 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5985 | wxString *arg2 = 0 ; | |
5986 | wxBitmapType arg3 ; | |
5987 | bool result; | |
5988 | void *argp1 = 0 ; | |
5989 | int res1 = 0 ; | |
5990 | bool temp2 = false ; | |
5991 | int val3 ; | |
5992 | int ecode3 = 0 ; | |
5993 | PyObject * obj0 = 0 ; | |
5994 | PyObject * obj1 = 0 ; | |
5995 | PyObject * obj2 = 0 ; | |
5996 | char * kwnames[] = { | |
5997 | (char *) "self",(char *) "name",(char *) "type", NULL | |
5998 | }; | |
5999 | ||
6000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6002 | if (!SWIG_IsOK(res1)) { | |
6003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6004 | } | |
6005 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6006 | { | |
6007 | arg2 = wxString_in_helper(obj1); | |
6008 | if (arg2 == NULL) SWIG_fail; | |
6009 | temp2 = true; | |
6010 | } | |
6011 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6012 | if (!SWIG_IsOK(ecode3)) { | |
6013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6014 | } | |
6015 | arg3 = static_cast< wxBitmapType >(val3); | |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
6022 | { | |
6023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6024 | } | |
6025 | { | |
6026 | if (temp2) | |
6027 | delete arg2; | |
6028 | } | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | { | |
6032 | if (temp2) | |
6033 | delete arg2; | |
6034 | } | |
6035 | return NULL; | |
d04418a7 RD |
6036 | } |
6037 | ||
6038 | ||
1bd55598 RD |
6039 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6040 | PyObject *resultobj = 0; | |
6041 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6042 | wxPalette *result = 0 ; | |
6043 | void *argp1 = 0 ; | |
6044 | int res1 = 0 ; | |
6045 | PyObject *swig_obj[1] ; | |
6046 | ||
6047 | if (!args) SWIG_fail; | |
6048 | swig_obj[0] = args; | |
6049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6050 | if (!SWIG_IsOK(res1)) { | |
6051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6052 | } | |
6053 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6061 | return resultobj; | |
6062 | fail: | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
6067 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6068 | PyObject *resultobj = 0; | |
6069 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6070 | wxIcon *arg2 = 0 ; | |
6071 | bool result; | |
6072 | void *argp1 = 0 ; | |
6073 | int res1 = 0 ; | |
6074 | void *argp2 = 0 ; | |
6075 | int res2 = 0 ; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | PyObject * obj1 = 0 ; | |
6078 | char * kwnames[] = { | |
6079 | (char *) "self",(char *) "icon", NULL | |
6080 | }; | |
6081 | ||
6082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6084 | if (!SWIG_IsOK(res1)) { | |
6085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6086 | } | |
6087 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6088 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6089 | if (!SWIG_IsOK(res2)) { | |
6090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6091 | } | |
6092 | if (!argp2) { | |
6093 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6094 | } | |
6095 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6096 | { | |
6097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6098 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
6099 | wxPyEndAllowThreads(__tstate); | |
6100 | if (PyErr_Occurred()) SWIG_fail; | |
6101 | } | |
6102 | { | |
6103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6104 | } | |
6105 | return resultobj; | |
6106 | fail: | |
6107 | return NULL; | |
6108 | } | |
6109 | ||
6110 | ||
6111 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj = 0; | |
6113 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6114 | int arg2 ; | |
6115 | void *argp1 = 0 ; | |
6116 | int res1 = 0 ; | |
6117 | int val2 ; | |
6118 | int ecode2 = 0 ; | |
6119 | PyObject * obj0 = 0 ; | |
6120 | PyObject * obj1 = 0 ; | |
6121 | char * kwnames[] = { | |
6122 | (char *) "self",(char *) "height", NULL | |
6123 | }; | |
6124 | ||
6125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6127 | if (!SWIG_IsOK(res1)) { | |
6128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6129 | } | |
6130 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6131 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6132 | if (!SWIG_IsOK(ecode2)) { | |
6133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6134 | } | |
6135 | arg2 = static_cast< int >(val2); | |
6136 | { | |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6138 | (arg1)->SetHeight(arg2); | |
6139 | wxPyEndAllowThreads(__tstate); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | } | |
6142 | resultobj = SWIG_Py_Void(); | |
6143 | return resultobj; | |
6144 | fail: | |
6145 | return NULL; | |
6146 | } | |
6147 | ||
6148 | ||
6149 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6150 | PyObject *resultobj = 0; | |
6151 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6152 | int arg2 ; | |
6153 | void *argp1 = 0 ; | |
6154 | int res1 = 0 ; | |
6155 | int val2 ; | |
6156 | int ecode2 = 0 ; | |
6157 | PyObject * obj0 = 0 ; | |
6158 | PyObject * obj1 = 0 ; | |
6159 | char * kwnames[] = { | |
6160 | (char *) "self",(char *) "width", NULL | |
6161 | }; | |
6162 | ||
6163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6165 | if (!SWIG_IsOK(res1)) { | |
6166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6167 | } | |
6168 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6169 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6170 | if (!SWIG_IsOK(ecode2)) { | |
6171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6172 | } | |
6173 | arg2 = static_cast< int >(val2); | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | (arg1)->SetWidth(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_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6188 | PyObject *resultobj = 0; | |
6189 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6190 | int arg2 ; | |
6191 | void *argp1 = 0 ; | |
6192 | int res1 = 0 ; | |
6193 | int val2 ; | |
6194 | int ecode2 = 0 ; | |
6195 | PyObject * obj0 = 0 ; | |
6196 | PyObject * obj1 = 0 ; | |
6197 | char * kwnames[] = { | |
6198 | (char *) "self",(char *) "depth", NULL | |
6199 | }; | |
6200 | ||
6201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6203 | if (!SWIG_IsOK(res1)) { | |
6204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6205 | } | |
6206 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6208 | if (!SWIG_IsOK(ecode2)) { | |
6209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6210 | } | |
6211 | arg2 = static_cast< int >(val2); | |
6212 | { | |
6213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6214 | (arg1)->SetDepth(arg2); | |
6215 | wxPyEndAllowThreads(__tstate); | |
6216 | if (PyErr_Occurred()) SWIG_fail; | |
6217 | } | |
6218 | resultobj = SWIG_Py_Void(); | |
6219 | return resultobj; | |
6220 | fail: | |
6221 | return NULL; | |
6222 | } | |
6223 | ||
6224 | ||
6225 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6226 | PyObject *resultobj = 0; | |
6227 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6228 | wxSize *arg2 = 0 ; | |
6229 | void *argp1 = 0 ; | |
6230 | int res1 = 0 ; | |
6231 | wxSize temp2 ; | |
6232 | PyObject * obj0 = 0 ; | |
6233 | PyObject * obj1 = 0 ; | |
6234 | char * kwnames[] = { | |
6235 | (char *) "self",(char *) "size", NULL | |
6236 | }; | |
6237 | ||
6238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6240 | if (!SWIG_IsOK(res1)) { | |
6241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6242 | } | |
6243 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6244 | { | |
6245 | arg2 = &temp2; | |
6246 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6247 | } | |
6248 | { | |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
6254 | resultobj = SWIG_Py_Void(); | |
6255 | return resultobj; | |
6256 | fail: | |
6257 | return NULL; | |
6258 | } | |
6259 | ||
6260 | ||
6261 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6262 | PyObject *resultobj = 0; | |
6263 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6264 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6265 | bool result; | |
6266 | void *argp1 = 0 ; | |
6267 | int res1 = 0 ; | |
6268 | void *argp2 = 0 ; | |
6269 | int res2 = 0 ; | |
6270 | PyObject * obj0 = 0 ; | |
6271 | PyObject * obj1 = 0 ; | |
6272 | char * kwnames[] = { | |
6273 | (char *) "self",(char *) "other", NULL | |
6274 | }; | |
6275 | ||
6276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6278 | if (!SWIG_IsOK(res1)) { | |
6279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6280 | } | |
6281 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6282 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6283 | if (!SWIG_IsOK(res2)) { | |
6284 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6285 | } | |
6286 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6287 | { | |
6288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6289 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
6290 | wxPyEndAllowThreads(__tstate); | |
6291 | if (PyErr_Occurred()) SWIG_fail; | |
6292 | } | |
6293 | { | |
6294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6295 | } | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | return NULL; | |
6299 | } | |
6300 | ||
6301 | ||
6302 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6303 | PyObject *resultobj = 0; | |
6304 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6305 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6306 | bool result; | |
6307 | void *argp1 = 0 ; | |
6308 | int res1 = 0 ; | |
6309 | void *argp2 = 0 ; | |
6310 | int res2 = 0 ; | |
6311 | PyObject * obj0 = 0 ; | |
6312 | PyObject * obj1 = 0 ; | |
6313 | char * kwnames[] = { | |
6314 | (char *) "self",(char *) "other", NULL | |
6315 | }; | |
6316 | ||
6317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6319 | if (!SWIG_IsOK(res1)) { | |
6320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6321 | } | |
6322 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6323 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6324 | if (!SWIG_IsOK(res2)) { | |
6325 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6326 | } | |
6327 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6328 | { | |
6329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6330 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6331 | wxPyEndAllowThreads(__tstate); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | { | |
6335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6336 | } | |
6337 | return resultobj; | |
6338 | fail: | |
6339 | return NULL; | |
d55e5bfc RD |
6340 | } |
6341 | ||
6342 | ||
1bd55598 RD |
6343 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6344 | PyObject *obj; | |
6345 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6346 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
6347 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6348 | } |
6349 | ||
1bd55598 RD |
6350 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6351 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
6352 | } |
6353 | ||
1bd55598 RD |
6354 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6355 | PyObject *resultobj = 0; | |
6356 | wxBitmap *arg1 = 0 ; | |
6357 | wxColour const &arg2_defvalue = wxNullColour ; | |
6358 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6359 | wxMask *result = 0 ; | |
6360 | void *argp1 = 0 ; | |
6361 | int res1 = 0 ; | |
6362 | wxColour temp2 ; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | PyObject * obj1 = 0 ; | |
6365 | char * kwnames[] = { | |
6366 | (char *) "bitmap",(char *) "colour", NULL | |
6367 | }; | |
6368 | ||
6369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6370 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6371 | if (!SWIG_IsOK(res1)) { | |
6372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6373 | } | |
6374 | if (!argp1) { | |
6375 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6376 | } | |
6377 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6378 | if (obj1) { | |
d55e5bfc | 6379 | { |
1bd55598 RD |
6380 | arg2 = &temp2; |
6381 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 6382 | } |
1bd55598 RD |
6383 | } |
6384 | { | |
6385 | if (!wxPyCheckForApp()) SWIG_fail; | |
6386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6387 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | return NULL; | |
d55e5bfc RD |
6395 | } |
6396 | ||
6397 | ||
1bd55598 RD |
6398 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6399 | PyObject *resultobj = 0; | |
6400 | wxMask *arg1 = (wxMask *) 0 ; | |
6401 | void *argp1 = 0 ; | |
6402 | int res1 = 0 ; | |
6403 | PyObject *swig_obj[1] ; | |
6404 | ||
6405 | if (!args) SWIG_fail; | |
6406 | swig_obj[0] = args; | |
6407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6408 | if (!SWIG_IsOK(res1)) { | |
6409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
6410 | } | |
6411 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | delete arg1; | |
d55e5bfc | 6415 | |
1bd55598 RD |
6416 | wxPyEndAllowThreads(__tstate); |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
6419 | resultobj = SWIG_Py_Void(); | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
6423 | } | |
6424 | ||
6425 | ||
6426 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6427 | PyObject *obj; | |
6428 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6429 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
6430 | return SWIG_Py_Void(); | |
6431 | } | |
6432 | ||
6433 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6434 | return SWIG_Python_InitShadowInstance(args); | |
6435 | } | |
6436 | ||
6437 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj = 0; | |
6439 | wxString *arg1 = 0 ; | |
6440 | wxBitmapType arg2 ; | |
6441 | int arg3 = (int) -1 ; | |
6442 | int arg4 = (int) -1 ; | |
6443 | wxIcon *result = 0 ; | |
6444 | bool temp1 = false ; | |
6445 | int val2 ; | |
6446 | int ecode2 = 0 ; | |
6447 | int val3 ; | |
6448 | int ecode3 = 0 ; | |
6449 | int val4 ; | |
6450 | int ecode4 = 0 ; | |
6451 | PyObject * obj0 = 0 ; | |
6452 | PyObject * obj1 = 0 ; | |
6453 | PyObject * obj2 = 0 ; | |
6454 | PyObject * obj3 = 0 ; | |
6455 | char * kwnames[] = { | |
6456 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
6457 | }; | |
6458 | ||
6459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6460 | { | |
6461 | arg1 = wxString_in_helper(obj0); | |
6462 | if (arg1 == NULL) SWIG_fail; | |
6463 | temp1 = true; | |
6464 | } | |
6465 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6466 | if (!SWIG_IsOK(ecode2)) { | |
6467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6468 | } | |
6469 | arg2 = static_cast< wxBitmapType >(val2); | |
6470 | if (obj2) { | |
6471 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6472 | if (!SWIG_IsOK(ecode3)) { | |
6473 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
6474 | } | |
6475 | arg3 = static_cast< int >(val3); | |
6476 | } | |
6477 | if (obj3) { | |
6478 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6479 | if (!SWIG_IsOK(ecode4)) { | |
6480 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
6481 | } | |
6482 | arg4 = static_cast< int >(val4); | |
6483 | } | |
6484 | { | |
6485 | if (!wxPyCheckForApp()) SWIG_fail; | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
6491 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
6492 | { | |
6493 | if (temp1) | |
6494 | delete arg1; | |
6495 | } | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | { | |
6499 | if (temp1) | |
6500 | delete arg1; | |
6501 | } | |
6502 | return NULL; | |
d55e5bfc RD |
6503 | } |
6504 | ||
6505 | ||
1bd55598 RD |
6506 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6507 | PyObject *resultobj = 0; | |
6508 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6509 | void *argp1 = 0 ; | |
6510 | int res1 = 0 ; | |
6511 | PyObject *swig_obj[1] ; | |
6512 | ||
6513 | if (!args) SWIG_fail; | |
6514 | swig_obj[0] = args; | |
6515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
6516 | if (!SWIG_IsOK(res1)) { | |
6517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6518 | } | |
6519 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6520 | { | |
6521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6522 | delete arg1; | |
d55e5bfc | 6523 | |
1bd55598 RD |
6524 | wxPyEndAllowThreads(__tstate); |
6525 | if (PyErr_Occurred()) SWIG_fail; | |
6526 | } | |
6527 | resultobj = SWIG_Py_Void(); | |
6528 | return resultobj; | |
6529 | fail: | |
6530 | return NULL; | |
d55e5bfc RD |
6531 | } |
6532 | ||
6533 | ||
1bd55598 RD |
6534 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6535 | PyObject *resultobj = 0; | |
6536 | wxIcon *result = 0 ; | |
6537 | ||
6538 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
6539 | { | |
6540 | if (!wxPyCheckForApp()) SWIG_fail; | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | result = (wxIcon *)new wxIcon(); | |
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
6546 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6554 | PyObject *resultobj = 0; | |
6555 | wxIconLocation *arg1 = 0 ; | |
6556 | wxIcon *result = 0 ; | |
6557 | void *argp1 = 0 ; | |
6558 | int res1 = 0 ; | |
6559 | PyObject * obj0 = 0 ; | |
6560 | char * kwnames[] = { | |
6561 | (char *) "loc", NULL | |
6562 | }; | |
6563 | ||
6564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
6565 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
6566 | if (!SWIG_IsOK(res1)) { | |
6567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6568 | } | |
6569 | if (!argp1) { | |
6570 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
6571 | } | |
6572 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
6573 | { | |
6574 | if (!wxPyCheckForApp()) SWIG_fail; | |
6575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6576 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
6577 | wxPyEndAllowThreads(__tstate); | |
6578 | if (PyErr_Occurred()) SWIG_fail; | |
6579 | } | |
6580 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | return NULL; | |
6584 | } | |
6585 | ||
6586 | ||
6587 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6588 | PyObject *resultobj = 0; | |
6589 | wxBitmap *arg1 = 0 ; | |
6590 | wxIcon *result = 0 ; | |
6591 | void *argp1 = 0 ; | |
6592 | int res1 = 0 ; | |
6593 | PyObject * obj0 = 0 ; | |
6594 | char * kwnames[] = { | |
6595 | (char *) "bmp", NULL | |
6596 | }; | |
6597 | ||
6598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
6599 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6600 | if (!SWIG_IsOK(res1)) { | |
6601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6602 | } | |
6603 | if (!argp1) { | |
6604 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
6605 | } | |
6606 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6607 | { | |
6608 | if (!wxPyCheckForApp()) SWIG_fail; | |
6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6610 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
6614 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6615 | return resultobj; | |
6616 | fail: | |
6617 | return NULL; | |
d55e5bfc RD |
6618 | } |
6619 | ||
6620 | ||
1bd55598 RD |
6621 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6622 | PyObject *resultobj = 0; | |
6623 | PyObject *arg1 = (PyObject *) 0 ; | |
6624 | wxIcon *result = 0 ; | |
6625 | PyObject * obj0 = 0 ; | |
6626 | char * kwnames[] = { | |
6627 | (char *) "listOfStrings", NULL | |
6628 | }; | |
6629 | ||
6630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6631 | arg1 = obj0; | |
6632 | { | |
6633 | if (!wxPyCheckForApp()) SWIG_fail; | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | result = (wxIcon *)new_wxIcon(arg1); | |
6636 | wxPyEndAllowThreads(__tstate); | |
6637 | if (PyErr_Occurred()) SWIG_fail; | |
6638 | } | |
6639 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
6640 | return resultobj; | |
6641 | fail: | |
6642 | return NULL; | |
d55e5bfc RD |
6643 | } |
6644 | ||
6645 | ||
1bd55598 RD |
6646 | SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6647 | PyObject *resultobj = 0; | |
6648 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6649 | bool result; | |
6650 | void *argp1 = 0 ; | |
6651 | int res1 = 0 ; | |
6652 | PyObject *swig_obj[1] ; | |
6653 | ||
6654 | if (!args) SWIG_fail; | |
6655 | swig_obj[0] = args; | |
6656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6657 | if (!SWIG_IsOK(res1)) { | |
6658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6659 | } | |
6660 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6661 | { | |
6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6663 | result = (bool)(arg1)->Ok(); | |
6664 | wxPyEndAllowThreads(__tstate); | |
6665 | if (PyErr_Occurred()) SWIG_fail; | |
6666 | } | |
6667 | { | |
6668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6669 | } | |
6670 | return resultobj; | |
6671 | fail: | |
6672 | return NULL; | |
d55e5bfc RD |
6673 | } |
6674 | ||
6675 | ||
1bd55598 RD |
6676 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6677 | PyObject *resultobj = 0; | |
6678 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6679 | int result; | |
6680 | void *argp1 = 0 ; | |
6681 | int res1 = 0 ; | |
6682 | PyObject *swig_obj[1] ; | |
6683 | ||
6684 | if (!args) SWIG_fail; | |
6685 | swig_obj[0] = args; | |
6686 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6687 | if (!SWIG_IsOK(res1)) { | |
6688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6689 | } | |
6690 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | result = (int)(arg1)->GetWidth(); | |
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6698 | return resultobj; | |
6699 | fail: | |
6700 | return NULL; | |
d55e5bfc RD |
6701 | } |
6702 | ||
6703 | ||
1bd55598 RD |
6704 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6705 | PyObject *resultobj = 0; | |
6706 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6707 | int result; | |
6708 | void *argp1 = 0 ; | |
6709 | int res1 = 0 ; | |
6710 | PyObject *swig_obj[1] ; | |
6711 | ||
6712 | if (!args) SWIG_fail; | |
6713 | swig_obj[0] = args; | |
6714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6715 | if (!SWIG_IsOK(res1)) { | |
6716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6717 | } | |
6718 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6719 | { | |
6720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6721 | result = (int)(arg1)->GetHeight(); | |
6722 | wxPyEndAllowThreads(__tstate); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | } | |
6725 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6726 | return resultobj; | |
6727 | fail: | |
6728 | return NULL; | |
d55e5bfc RD |
6729 | } |
6730 | ||
6731 | ||
1bd55598 RD |
6732 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6733 | PyObject *resultobj = 0; | |
6734 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6735 | int result; | |
6736 | void *argp1 = 0 ; | |
6737 | int res1 = 0 ; | |
6738 | PyObject *swig_obj[1] ; | |
6739 | ||
6740 | if (!args) SWIG_fail; | |
6741 | swig_obj[0] = args; | |
6742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6743 | if (!SWIG_IsOK(res1)) { | |
6744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6745 | } | |
6746 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | result = (int)(arg1)->GetDepth(); | |
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
6753 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
6760 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6761 | PyObject *resultobj = 0; | |
6762 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6763 | int arg2 ; | |
6764 | void *argp1 = 0 ; | |
6765 | int res1 = 0 ; | |
6766 | int val2 ; | |
6767 | int ecode2 = 0 ; | |
6768 | PyObject * obj0 = 0 ; | |
6769 | PyObject * obj1 = 0 ; | |
6770 | char * kwnames[] = { | |
6771 | (char *) "self",(char *) "w", NULL | |
6772 | }; | |
6773 | ||
6774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6776 | if (!SWIG_IsOK(res1)) { | |
6777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6778 | } | |
6779 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6780 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6781 | if (!SWIG_IsOK(ecode2)) { | |
6782 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6783 | } | |
6784 | arg2 = static_cast< int >(val2); | |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | (arg1)->SetWidth(arg2); | |
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | resultobj = SWIG_Py_Void(); | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj = 0; | |
6800 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6801 | int arg2 ; | |
6802 | void *argp1 = 0 ; | |
6803 | int res1 = 0 ; | |
6804 | int val2 ; | |
6805 | int ecode2 = 0 ; | |
6806 | PyObject * obj0 = 0 ; | |
6807 | PyObject * obj1 = 0 ; | |
6808 | char * kwnames[] = { | |
6809 | (char *) "self",(char *) "h", NULL | |
6810 | }; | |
6811 | ||
6812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6814 | if (!SWIG_IsOK(res1)) { | |
6815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6816 | } | |
6817 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6818 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6819 | if (!SWIG_IsOK(ecode2)) { | |
6820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6821 | } | |
6822 | arg2 = static_cast< int >(val2); | |
6823 | { | |
6824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6825 | (arg1)->SetHeight(arg2); | |
6826 | wxPyEndAllowThreads(__tstate); | |
6827 | if (PyErr_Occurred()) SWIG_fail; | |
6828 | } | |
6829 | resultobj = SWIG_Py_Void(); | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | return NULL; | |
6833 | } | |
6834 | ||
6835 | ||
6836 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6837 | PyObject *resultobj = 0; | |
6838 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6839 | int arg2 ; | |
6840 | void *argp1 = 0 ; | |
6841 | int res1 = 0 ; | |
6842 | int val2 ; | |
6843 | int ecode2 = 0 ; | |
6844 | PyObject * obj0 = 0 ; | |
6845 | PyObject * obj1 = 0 ; | |
6846 | char * kwnames[] = { | |
6847 | (char *) "self",(char *) "d", NULL | |
6848 | }; | |
6849 | ||
6850 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6851 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6852 | if (!SWIG_IsOK(res1)) { | |
6853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6854 | } | |
6855 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6856 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6857 | if (!SWIG_IsOK(ecode2)) { | |
6858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6859 | } | |
6860 | arg2 = static_cast< int >(val2); | |
6861 | { | |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | (arg1)->SetDepth(arg2); | |
6864 | wxPyEndAllowThreads(__tstate); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
6867 | resultobj = SWIG_Py_Void(); | |
6868 | return resultobj; | |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6875 | PyObject *resultobj = 0; | |
6876 | wxIcon *arg1 = (wxIcon *) 0 ; | |
6877 | wxBitmap *arg2 = 0 ; | |
6878 | void *argp1 = 0 ; | |
6879 | int res1 = 0 ; | |
6880 | void *argp2 = 0 ; | |
6881 | int res2 = 0 ; | |
6882 | PyObject * obj0 = 0 ; | |
6883 | PyObject * obj1 = 0 ; | |
6884 | char * kwnames[] = { | |
6885 | (char *) "self",(char *) "bmp", NULL | |
6886 | }; | |
6887 | ||
6888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
6890 | if (!SWIG_IsOK(res1)) { | |
6891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
6892 | } | |
6893 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6894 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
6895 | if (!SWIG_IsOK(res2)) { | |
6896 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
6897 | } | |
6898 | if (!argp2) { | |
6899 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
6900 | } | |
6901 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
6905 | wxPyEndAllowThreads(__tstate); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
6908 | resultobj = SWIG_Py_Void(); | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | return NULL; | |
d55e5bfc RD |
6912 | } |
6913 | ||
6914 | ||
1bd55598 RD |
6915 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6916 | PyObject *obj; | |
6917 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6918 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
6919 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6920 | } |
6921 | ||
1bd55598 RD |
6922 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6923 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
6924 | } |
6925 | ||
1bd55598 RD |
6926 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6927 | PyObject *resultobj = 0; | |
6928 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
6929 | int arg2 = (int) 0 ; | |
6930 | wxIconLocation *result = 0 ; | |
6931 | bool temp1 = false ; | |
6932 | int val2 ; | |
6933 | int ecode2 = 0 ; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | PyObject * obj1 = 0 ; | |
6936 | char * kwnames[] = { | |
6937 | (char *) "filename",(char *) "num", NULL | |
6938 | }; | |
6939 | ||
6940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
6941 | if (obj0) { | |
d55e5bfc | 6942 | { |
1bd55598 RD |
6943 | arg1 = wxString_in_helper(obj0); |
6944 | if (arg1 == NULL) SWIG_fail; | |
6945 | temp1 = true; | |
d55e5bfc | 6946 | } |
1bd55598 RD |
6947 | } |
6948 | if (obj1) { | |
6949 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6950 | if (!SWIG_IsOK(ecode2)) { | |
6951 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
6952 | } | |
6953 | arg2 = static_cast< int >(val2); | |
6954 | } | |
6955 | { | |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6957 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
6958 | wxPyEndAllowThreads(__tstate); | |
6959 | if (PyErr_Occurred()) SWIG_fail; | |
6960 | } | |
6961 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
6962 | { | |
6963 | if (temp1) | |
6964 | delete arg1; | |
6965 | } | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | { | |
6969 | if (temp1) | |
6970 | delete arg1; | |
6971 | } | |
6972 | return NULL; | |
d55e5bfc RD |
6973 | } |
6974 | ||
6975 | ||
1bd55598 RD |
6976 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6977 | PyObject *resultobj = 0; | |
6978 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
6979 | void *argp1 = 0 ; | |
6980 | int res1 = 0 ; | |
6981 | PyObject *swig_obj[1] ; | |
6982 | ||
6983 | if (!args) SWIG_fail; | |
6984 | swig_obj[0] = args; | |
6985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
6986 | if (!SWIG_IsOK(res1)) { | |
6987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
6988 | } | |
6989 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
6990 | { | |
6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6992 | delete arg1; | |
d55e5bfc | 6993 | |
1bd55598 RD |
6994 | wxPyEndAllowThreads(__tstate); |
6995 | if (PyErr_Occurred()) SWIG_fail; | |
6996 | } | |
6997 | resultobj = SWIG_Py_Void(); | |
6998 | return resultobj; | |
6999 | fail: | |
7000 | return NULL; | |
d55e5bfc RD |
7001 | } |
7002 | ||
7003 | ||
1bd55598 RD |
7004 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7005 | PyObject *resultobj = 0; | |
7006 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7007 | bool result; | |
7008 | void *argp1 = 0 ; | |
7009 | int res1 = 0 ; | |
7010 | PyObject *swig_obj[1] ; | |
7011 | ||
7012 | if (!args) SWIG_fail; | |
7013 | swig_obj[0] = args; | |
7014 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7015 | if (!SWIG_IsOK(res1)) { | |
7016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7017 | } | |
7018 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7019 | { | |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7021 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | { | |
7026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7027 | } | |
7028 | return resultobj; | |
7029 | fail: | |
7030 | return NULL; | |
7031 | } | |
7032 | ||
7033 | ||
7034 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7035 | PyObject *resultobj = 0; | |
7036 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7037 | wxString *arg2 = 0 ; | |
7038 | void *argp1 = 0 ; | |
7039 | int res1 = 0 ; | |
7040 | bool temp2 = false ; | |
7041 | PyObject * obj0 = 0 ; | |
7042 | PyObject * obj1 = 0 ; | |
7043 | char * kwnames[] = { | |
7044 | (char *) "self",(char *) "filename", NULL | |
7045 | }; | |
7046 | ||
7047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
7048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7049 | if (!SWIG_IsOK(res1)) { | |
7050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7051 | } | |
7052 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7053 | { | |
7054 | arg2 = wxString_in_helper(obj1); | |
7055 | if (arg2 == NULL) SWIG_fail; | |
7056 | temp2 = true; | |
7057 | } | |
7058 | { | |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7060 | (arg1)->SetFileName((wxString const &)*arg2); | |
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | resultobj = SWIG_Py_Void(); | |
7065 | { | |
7066 | if (temp2) | |
7067 | delete arg2; | |
7068 | } | |
7069 | return resultobj; | |
7070 | fail: | |
7071 | { | |
7072 | if (temp2) | |
7073 | delete arg2; | |
7074 | } | |
7075 | return NULL; | |
d55e5bfc RD |
7076 | } |
7077 | ||
7078 | ||
1bd55598 RD |
7079 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7080 | PyObject *resultobj = 0; | |
7081 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7082 | wxString *result = 0 ; | |
7083 | void *argp1 = 0 ; | |
7084 | int res1 = 0 ; | |
7085 | PyObject *swig_obj[1] ; | |
7086 | ||
7087 | if (!args) SWIG_fail; | |
7088 | swig_obj[0] = args; | |
7089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7090 | if (!SWIG_IsOK(res1)) { | |
7091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
7092 | } | |
7093 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7094 | { | |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 7096 | { |
1bd55598 RD |
7097 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
7098 | result = (wxString *) &_result_ref; | |
d55e5bfc | 7099 | } |
1bd55598 RD |
7100 | wxPyEndAllowThreads(__tstate); |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
7103 | { | |
7104 | #if wxUSE_UNICODE | |
7105 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7106 | #else | |
7107 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7108 | #endif | |
7109 | } | |
7110 | return resultobj; | |
7111 | fail: | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj = 0; | |
7118 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7119 | int arg2 ; | |
7120 | void *argp1 = 0 ; | |
7121 | int res1 = 0 ; | |
7122 | int val2 ; | |
7123 | int ecode2 = 0 ; | |
7124 | PyObject * obj0 = 0 ; | |
7125 | PyObject * obj1 = 0 ; | |
7126 | char * kwnames[] = { | |
7127 | (char *) "self",(char *) "num", NULL | |
7128 | }; | |
7129 | ||
7130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
7131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7132 | if (!SWIG_IsOK(res1)) { | |
7133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7134 | } | |
7135 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7136 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7137 | if (!SWIG_IsOK(ecode2)) { | |
7138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
7139 | } | |
7140 | arg2 = static_cast< int >(val2); | |
7141 | { | |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | wxIconLocation_SetIndex(arg1,arg2); | |
7144 | wxPyEndAllowThreads(__tstate); | |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
7146 | } | |
7147 | resultobj = SWIG_Py_Void(); | |
7148 | return resultobj; | |
7149 | fail: | |
7150 | return NULL; | |
d55e5bfc RD |
7151 | } |
7152 | ||
7153 | ||
1bd55598 RD |
7154 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7155 | PyObject *resultobj = 0; | |
7156 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
7157 | int result; | |
7158 | void *argp1 = 0 ; | |
7159 | int res1 = 0 ; | |
7160 | PyObject *swig_obj[1] ; | |
7161 | ||
7162 | if (!args) SWIG_fail; | |
7163 | swig_obj[0] = args; | |
7164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
7165 | if (!SWIG_IsOK(res1)) { | |
7166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
7167 | } | |
7168 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
7169 | { | |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7171 | result = (int)wxIconLocation_GetIndex(arg1); | |
7172 | wxPyEndAllowThreads(__tstate); | |
7173 | if (PyErr_Occurred()) SWIG_fail; | |
7174 | } | |
7175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7176 | return resultobj; | |
7177 | fail: | |
7178 | return NULL; | |
d55e5bfc RD |
7179 | } |
7180 | ||
7181 | ||
1bd55598 RD |
7182 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7183 | PyObject *obj; | |
7184 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7185 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
7186 | return SWIG_Py_Void(); | |
d55e5bfc RD |
7187 | } |
7188 | ||
1bd55598 RD |
7189 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7190 | return SWIG_Python_InitShadowInstance(args); | |
7191 | } | |
d55e5bfc | 7192 | |
1bd55598 RD |
7193 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7194 | PyObject *resultobj = 0; | |
7195 | wxIconBundle *result = 0 ; | |
7196 | ||
7197 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
7198 | { | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | result = (wxIconBundle *)new wxIconBundle(); | |
7201 | wxPyEndAllowThreads(__tstate); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
7204 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
7205 | return resultobj; | |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
7211 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7212 | PyObject *resultobj = 0; | |
7213 | wxString *arg1 = 0 ; | |
7214 | long arg2 ; | |
7215 | wxIconBundle *result = 0 ; | |
7216 | bool temp1 = false ; | |
7217 | long val2 ; | |
7218 | int ecode2 = 0 ; | |
7219 | PyObject * obj0 = 0 ; | |
7220 | PyObject * obj1 = 0 ; | |
7221 | char * kwnames[] = { | |
7222 | (char *) "file",(char *) "type", NULL | |
7223 | }; | |
7224 | ||
7225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
7226 | { | |
7227 | arg1 = wxString_in_helper(obj0); | |
7228 | if (arg1 == NULL) SWIG_fail; | |
7229 | temp1 = true; | |
7230 | } | |
7231 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7232 | if (!SWIG_IsOK(ecode2)) { | |
7233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
7234 | } | |
7235 | arg2 = static_cast< long >(val2); | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
7239 | wxPyEndAllowThreads(__tstate); | |
7240 | if (PyErr_Occurred()) SWIG_fail; | |
7241 | } | |
7242 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7243 | { | |
7244 | if (temp1) | |
7245 | delete arg1; | |
7246 | } | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | { | |
7250 | if (temp1) | |
7251 | delete arg1; | |
7252 | } | |
7253 | return NULL; | |
d55e5bfc RD |
7254 | } |
7255 | ||
7256 | ||
1bd55598 RD |
7257 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7258 | PyObject *resultobj = 0; | |
7259 | wxIcon *arg1 = 0 ; | |
7260 | wxIconBundle *result = 0 ; | |
7261 | void *argp1 = 0 ; | |
7262 | int res1 = 0 ; | |
7263 | PyObject * obj0 = 0 ; | |
7264 | char * kwnames[] = { | |
7265 | (char *) "icon", NULL | |
7266 | }; | |
7267 | ||
7268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
7269 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
7270 | if (!SWIG_IsOK(res1)) { | |
7271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7272 | } | |
7273 | if (!argp1) { | |
7274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
7275 | } | |
7276 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
7277 | { | |
7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7279 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | return NULL; | |
d55e5bfc RD |
7287 | } |
7288 | ||
7289 | ||
1bd55598 RD |
7290 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7291 | PyObject *resultobj = 0; | |
7292 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7293 | void *argp1 = 0 ; | |
7294 | int res1 = 0 ; | |
7295 | PyObject *swig_obj[1] ; | |
7296 | ||
7297 | if (!args) SWIG_fail; | |
7298 | swig_obj[0] = args; | |
7299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
7300 | if (!SWIG_IsOK(res1)) { | |
7301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7302 | } | |
7303 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7304 | { | |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | delete arg1; | |
d55e5bfc | 7307 | |
1bd55598 RD |
7308 | wxPyEndAllowThreads(__tstate); |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | resultobj = SWIG_Py_Void(); | |
7312 | return resultobj; | |
7313 | fail: | |
7314 | return NULL; | |
7315 | } | |
7316 | ||
7317 | ||
7318 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7319 | PyObject *resultobj = 0; | |
7320 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7321 | wxIcon *arg2 = 0 ; | |
7322 | void *argp1 = 0 ; | |
7323 | int res1 = 0 ; | |
7324 | void *argp2 = 0 ; | |
7325 | int res2 = 0 ; | |
7326 | PyObject * obj0 = 0 ; | |
7327 | PyObject * obj1 = 0 ; | |
7328 | char * kwnames[] = { | |
7329 | (char *) "self",(char *) "icon", NULL | |
7330 | }; | |
7331 | ||
7332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7334 | if (!SWIG_IsOK(res1)) { | |
7335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7336 | } | |
7337 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7338 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
7339 | if (!SWIG_IsOK(res2)) { | |
7340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7341 | } | |
7342 | if (!argp2) { | |
7343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
7344 | } | |
7345 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
7346 | { | |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
7349 | wxPyEndAllowThreads(__tstate); | |
7350 | if (PyErr_Occurred()) SWIG_fail; | |
7351 | } | |
7352 | resultobj = SWIG_Py_Void(); | |
7353 | return resultobj; | |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
7359 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7360 | PyObject *resultobj = 0; | |
7361 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7362 | wxString *arg2 = 0 ; | |
7363 | long arg3 ; | |
7364 | void *argp1 = 0 ; | |
7365 | int res1 = 0 ; | |
7366 | bool temp2 = false ; | |
7367 | long val3 ; | |
7368 | int ecode3 = 0 ; | |
7369 | PyObject * obj0 = 0 ; | |
7370 | PyObject * obj1 = 0 ; | |
7371 | PyObject * obj2 = 0 ; | |
7372 | char * kwnames[] = { | |
7373 | (char *) "self",(char *) "file",(char *) "type", NULL | |
7374 | }; | |
7375 | ||
7376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7378 | if (!SWIG_IsOK(res1)) { | |
7379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
7380 | } | |
7381 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7382 | { | |
7383 | arg2 = wxString_in_helper(obj1); | |
7384 | if (arg2 == NULL) SWIG_fail; | |
7385 | temp2 = true; | |
7386 | } | |
7387 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7388 | if (!SWIG_IsOK(ecode3)) { | |
7389 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
7390 | } | |
7391 | arg3 = static_cast< long >(val3); | |
7392 | { | |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
7395 | wxPyEndAllowThreads(__tstate); | |
7396 | if (PyErr_Occurred()) SWIG_fail; | |
7397 | } | |
7398 | resultobj = SWIG_Py_Void(); | |
7399 | { | |
7400 | if (temp2) | |
7401 | delete arg2; | |
7402 | } | |
7403 | return resultobj; | |
7404 | fail: | |
7405 | { | |
7406 | if (temp2) | |
7407 | delete arg2; | |
7408 | } | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
7413 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7414 | PyObject *resultobj = 0; | |
7415 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
7416 | wxSize *arg2 = 0 ; | |
7417 | wxIcon *result = 0 ; | |
7418 | void *argp1 = 0 ; | |
7419 | int res1 = 0 ; | |
7420 | wxSize temp2 ; | |
7421 | PyObject * obj0 = 0 ; | |
7422 | PyObject * obj1 = 0 ; | |
7423 | char * kwnames[] = { | |
7424 | (char *) "self",(char *) "size", NULL | |
7425 | }; | |
7426 | ||
7427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
7428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
7429 | if (!SWIG_IsOK(res1)) { | |
7430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
7431 | } | |
7432 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
7433 | { | |
7434 | arg2 = &temp2; | |
7435 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7436 | } | |
7437 | { | |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 7439 | { |
1bd55598 RD |
7440 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
7441 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 7442 | } |
1bd55598 RD |
7443 | wxPyEndAllowThreads(__tstate); |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | { | |
7447 | wxIcon* resultptr = new wxIcon(*result); | |
7448 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
7449 | } | |
7450 | return resultobj; | |
7451 | fail: | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7457 | PyObject *obj; | |
7458 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7459 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
7460 | return SWIG_Py_Void(); | |
7461 | } | |
7462 | ||
7463 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7464 | return SWIG_Python_InitShadowInstance(args); | |
7465 | } | |
7466 | ||
7467 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7468 | PyObject *resultobj = 0; | |
7469 | wxString *arg1 = 0 ; | |
7470 | long arg2 ; | |
7471 | int arg3 = (int) 0 ; | |
7472 | int arg4 = (int) 0 ; | |
7473 | wxCursor *result = 0 ; | |
7474 | bool temp1 = false ; | |
7475 | long val2 ; | |
7476 | int ecode2 = 0 ; | |
7477 | int val3 ; | |
7478 | int ecode3 = 0 ; | |
7479 | int val4 ; | |
7480 | int ecode4 = 0 ; | |
7481 | PyObject * obj0 = 0 ; | |
7482 | PyObject * obj1 = 0 ; | |
7483 | PyObject * obj2 = 0 ; | |
7484 | PyObject * obj3 = 0 ; | |
7485 | char * kwnames[] = { | |
7486 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
7487 | }; | |
7488 | ||
7489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7490 | { | |
7491 | arg1 = wxString_in_helper(obj0); | |
7492 | if (arg1 == NULL) SWIG_fail; | |
7493 | temp1 = true; | |
7494 | } | |
7495 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7496 | if (!SWIG_IsOK(ecode2)) { | |
7497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
7498 | } | |
7499 | arg2 = static_cast< long >(val2); | |
7500 | if (obj2) { | |
7501 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7502 | if (!SWIG_IsOK(ecode3)) { | |
7503 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
7504 | } | |
7505 | arg3 = static_cast< int >(val3); | |
7506 | } | |
7507 | if (obj3) { | |
7508 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7509 | if (!SWIG_IsOK(ecode4)) { | |
7510 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
7511 | } | |
7512 | arg4 = static_cast< int >(val4); | |
7513 | } | |
7514 | { | |
7515 | if (!wxPyCheckForApp()) SWIG_fail; | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
7522 | { | |
7523 | if (temp1) | |
7524 | delete arg1; | |
7525 | } | |
7526 | return resultobj; | |
7527 | fail: | |
7528 | { | |
7529 | if (temp1) | |
7530 | delete arg1; | |
7531 | } | |
7532 | return NULL; | |
d55e5bfc RD |
7533 | } |
7534 | ||
7535 | ||
1bd55598 RD |
7536 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7537 | PyObject *resultobj = 0; | |
7538 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7539 | void *argp1 = 0 ; | |
7540 | int res1 = 0 ; | |
7541 | PyObject *swig_obj[1] ; | |
7542 | ||
7543 | if (!args) SWIG_fail; | |
7544 | swig_obj[0] = args; | |
7545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
7546 | if (!SWIG_IsOK(res1)) { | |
7547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7548 | } | |
7549 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7550 | { | |
7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7552 | delete arg1; | |
d55e5bfc | 7553 | |
1bd55598 RD |
7554 | wxPyEndAllowThreads(__tstate); |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
7556 | } | |
7557 | resultobj = SWIG_Py_Void(); | |
7558 | return resultobj; | |
7559 | fail: | |
7560 | return NULL; | |
7561 | } | |
7562 | ||
7563 | ||
7564 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7565 | PyObject *resultobj = 0; | |
7566 | int arg1 ; | |
7567 | wxCursor *result = 0 ; | |
7568 | int val1 ; | |
7569 | int ecode1 = 0 ; | |
7570 | PyObject * obj0 = 0 ; | |
7571 | char * kwnames[] = { | |
7572 | (char *) "id", NULL | |
7573 | }; | |
7574 | ||
7575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
7576 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7577 | if (!SWIG_IsOK(ecode1)) { | |
7578 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
7579 | } | |
7580 | arg1 = static_cast< int >(val1); | |
7581 | { | |
7582 | if (!wxPyCheckForApp()) SWIG_fail; | |
7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7584 | result = (wxCursor *)new wxCursor(arg1); | |
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7589 | return resultobj; | |
7590 | fail: | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
7595 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7596 | PyObject *resultobj = 0; | |
7597 | wxImage *arg1 = 0 ; | |
7598 | wxCursor *result = 0 ; | |
7599 | void *argp1 = 0 ; | |
7600 | int res1 = 0 ; | |
7601 | PyObject * obj0 = 0 ; | |
7602 | char * kwnames[] = { | |
7603 | (char *) "image", NULL | |
7604 | }; | |
7605 | ||
7606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
7607 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
7608 | if (!SWIG_IsOK(res1)) { | |
7609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7610 | } | |
7611 | if (!argp1) { | |
7612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
7613 | } | |
7614 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
7615 | { | |
7616 | if (!wxPyCheckForApp()) SWIG_fail; | |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) SWIG_fail; | |
7621 | } | |
7622 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
d55e5bfc RD |
7626 | } |
7627 | ||
7628 | ||
1bd55598 RD |
7629 | SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7630 | PyObject *resultobj = 0; | |
7631 | wxCursor *arg1 = (wxCursor *) 0 ; | |
7632 | bool result; | |
7633 | void *argp1 = 0 ; | |
7634 | int res1 = 0 ; | |
7635 | PyObject *swig_obj[1] ; | |
7636 | ||
7637 | if (!args) SWIG_fail; | |
7638 | swig_obj[0] = args; | |
7639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
7640 | if (!SWIG_IsOK(res1)) { | |
7641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
7642 | } | |
7643 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | result = (bool)(arg1)->Ok(); | |
7647 | wxPyEndAllowThreads(__tstate); | |
7648 | if (PyErr_Occurred()) SWIG_fail; | |
7649 | } | |
7650 | { | |
7651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7652 | } | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7660 | PyObject *obj; | |
7661 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7662 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
7663 | return SWIG_Py_Void(); | |
7664 | } | |
7665 | ||
7666 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7667 | return SWIG_Python_InitShadowInstance(args); | |
7668 | } | |
7669 | ||
7670 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7671 | PyObject *resultobj = 0; | |
7672 | int arg1 = (int) 0 ; | |
7673 | int arg2 = (int) 0 ; | |
7674 | int arg3 = (int) 0 ; | |
7675 | int arg4 = (int) 0 ; | |
7676 | wxRegion *result = 0 ; | |
7677 | int val1 ; | |
7678 | int ecode1 = 0 ; | |
7679 | int val2 ; | |
7680 | int ecode2 = 0 ; | |
7681 | int val3 ; | |
7682 | int ecode3 = 0 ; | |
7683 | int val4 ; | |
7684 | int ecode4 = 0 ; | |
7685 | PyObject * obj0 = 0 ; | |
7686 | PyObject * obj1 = 0 ; | |
7687 | PyObject * obj2 = 0 ; | |
7688 | PyObject * obj3 = 0 ; | |
7689 | char * kwnames[] = { | |
7690 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
7691 | }; | |
7692 | ||
7693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7694 | if (obj0) { | |
7695 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7696 | if (!SWIG_IsOK(ecode1)) { | |
7697 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
7698 | } | |
7699 | arg1 = static_cast< int >(val1); | |
7700 | } | |
7701 | if (obj1) { | |
7702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7703 | if (!SWIG_IsOK(ecode2)) { | |
7704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
7705 | } | |
7706 | arg2 = static_cast< int >(val2); | |
7707 | } | |
7708 | if (obj2) { | |
7709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7710 | if (!SWIG_IsOK(ecode3)) { | |
7711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
7712 | } | |
7713 | arg3 = static_cast< int >(val3); | |
7714 | } | |
7715 | if (obj3) { | |
7716 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7717 | if (!SWIG_IsOK(ecode4)) { | |
7718 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
7719 | } | |
7720 | arg4 = static_cast< int >(val4); | |
7721 | } | |
7722 | { | |
7723 | if (!wxPyCheckForApp()) SWIG_fail; | |
7724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7725 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
7726 | wxPyEndAllowThreads(__tstate); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
7729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj = 0; | |
7738 | wxBitmap *arg1 = 0 ; | |
7739 | wxRegion *result = 0 ; | |
7740 | void *argp1 = 0 ; | |
7741 | int res1 = 0 ; | |
7742 | PyObject * obj0 = 0 ; | |
7743 | char * kwnames[] = { | |
7744 | (char *) "bmp", NULL | |
7745 | }; | |
7746 | ||
7747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
7748 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
7749 | if (!SWIG_IsOK(res1)) { | |
7750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
7751 | } | |
7752 | if (!argp1) { | |
7753 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
7754 | } | |
7755 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7756 | { | |
7757 | if (!wxPyCheckForApp()) SWIG_fail; | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
7760 | wxPyEndAllowThreads(__tstate); | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | } | |
7763 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
7764 | return resultobj; | |
7765 | fail: | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
7770 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7771 | PyObject *resultobj = 0; | |
7772 | wxBitmap *arg1 = 0 ; | |
7773 | wxColour *arg2 = 0 ; | |
7774 | int arg3 = (int) 0 ; | |
7775 | wxRegion *result = 0 ; | |
7776 | void *argp1 = 0 ; | |
7777 | int res1 = 0 ; | |
7778 | wxColour temp2 ; | |
7779 | int val3 ; | |
7780 | int ecode3 = 0 ; | |
7781 | PyObject * obj0 = 0 ; | |
7782 | PyObject * obj1 = 0 ; | |
7783 | PyObject * obj2 = 0 ; | |
7784 | char * kwnames[] = { | |
7785 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
7786 | }; | |
7787 | ||
7788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7789 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
7790 | if (!SWIG_IsOK(res1)) { | |
7791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
7792 | } | |
7793 | if (!argp1) { | |
7794 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
7795 | } | |
7796 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7797 | { | |
7798 | arg2 = &temp2; | |
7799 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7800 | } | |
7801 | if (obj2) { | |
7802 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7803 | if (!SWIG_IsOK(ecode3)) { | |
7804 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
7805 | } | |
7806 | arg3 = static_cast< int >(val3); | |
7807 | } | |
7808 | { | |
7809 | if (!wxPyCheckForApp()) SWIG_fail; | |
7810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7811 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
7812 | wxPyEndAllowThreads(__tstate); | |
7813 | if (PyErr_Occurred()) SWIG_fail; | |
7814 | } | |
7815 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
7816 | return resultobj; | |
7817 | fail: | |
7818 | return NULL; | |
7819 | } | |
7820 | ||
7821 | ||
7822 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7823 | PyObject *resultobj = 0; | |
7824 | int arg1 ; | |
7825 | wxPoint *arg2 = (wxPoint *) 0 ; | |
7826 | int arg3 = (int) wxWINDING_RULE ; | |
7827 | wxRegion *result = 0 ; | |
7828 | int val3 ; | |
7829 | int ecode3 = 0 ; | |
7830 | PyObject * obj0 = 0 ; | |
7831 | PyObject * obj1 = 0 ; | |
7832 | char * kwnames[] = { | |
7833 | (char *) "points",(char *) "fillStyle", NULL | |
7834 | }; | |
7835 | ||
7836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
7837 | { | |
7838 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
7839 | if (arg2 == NULL) SWIG_fail; | |
7840 | } | |
7841 | if (obj1) { | |
7842 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
7843 | if (!SWIG_IsOK(ecode3)) { | |
7844 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
7845 | } | |
7846 | arg3 = static_cast< int >(val3); | |
7847 | } | |
7848 | { | |
7849 | if (!wxPyCheckForApp()) SWIG_fail; | |
7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7851 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
7856 | { | |
7857 | if (arg2) delete [] arg2; | |
7858 | } | |
7859 | return resultobj; | |
7860 | fail: | |
7861 | { | |
7862 | if (arg2) delete [] arg2; | |
7863 | } | |
7864 | return NULL; | |
d55e5bfc RD |
7865 | } |
7866 | ||
7867 | ||
1bd55598 RD |
7868 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7869 | PyObject *resultobj = 0; | |
7870 | wxRegion *arg1 = (wxRegion *) 0 ; | |
7871 | void *argp1 = 0 ; | |
7872 | int res1 = 0 ; | |
7873 | PyObject *swig_obj[1] ; | |
7874 | ||
7875 | if (!args) SWIG_fail; | |
7876 | swig_obj[0] = args; | |
7877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
7878 | if (!SWIG_IsOK(res1)) { | |
7879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
7880 | } | |
7881 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
7882 | { | |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | delete arg1; | |
d55e5bfc | 7885 | |
1bd55598 RD |
7886 | wxPyEndAllowThreads(__tstate); |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
7889 | resultobj = SWIG_Py_Void(); | |
7890 | return resultobj; | |
7891 | fail: | |
7892 | return NULL; | |
d55e5bfc RD |
7893 | } |
7894 | ||
7895 | ||
1bd55598 RD |
7896 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7897 | PyObject *resultobj = 0; | |
7898 | wxRegion *arg1 = (wxRegion *) 0 ; | |
7899 | void *argp1 = 0 ; | |
7900 | int res1 = 0 ; | |
7901 | PyObject *swig_obj[1] ; | |
7902 | ||
7903 | if (!args) SWIG_fail; | |
7904 | swig_obj[0] = args; | |
7905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
7906 | if (!SWIG_IsOK(res1)) { | |
7907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
7908 | } | |
7909 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
7910 | { | |
7911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7912 | (arg1)->Clear(); | |
7913 | wxPyEndAllowThreads(__tstate); | |
7914 | if (PyErr_Occurred()) SWIG_fail; | |
7915 | } | |
7916 | resultobj = SWIG_Py_Void(); | |
7917 | return resultobj; | |
7918 | fail: | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
7923 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj = 0; | |
7925 | wxRegion *arg1 = (wxRegion *) 0 ; | |
7926 | int arg2 ; | |
7927 | int arg3 ; | |
7928 | bool result; | |
7929 | void *argp1 = 0 ; | |
7930 | int res1 = 0 ; | |
7931 | int val2 ; | |
7932 | int ecode2 = 0 ; | |
7933 | int val3 ; | |
7934 | int ecode3 = 0 ; | |
7935 | PyObject * obj0 = 0 ; | |
7936 | PyObject * obj1 = 0 ; | |
7937 | PyObject * obj2 = 0 ; | |
7938 | char * kwnames[] = { | |
7939 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7940 | }; | |
7941 | ||
7942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
7944 | if (!SWIG_IsOK(res1)) { | |
7945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
7946 | } | |
7947 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
7948 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7949 | if (!SWIG_IsOK(ecode2)) { | |
7950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
7951 | } | |
7952 | arg2 = static_cast< int >(val2); | |
7953 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7954 | if (!SWIG_IsOK(ecode3)) { | |
7955 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7956 | } | |
7957 | arg3 = static_cast< int >(val3); | |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (bool)(arg1)->Offset(arg2,arg3); | |
7961 | wxPyEndAllowThreads(__tstate); | |
7962 | if (PyErr_Occurred()) SWIG_fail; | |
7963 | } | |
7964 | { | |
7965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7966 | } | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7974 | PyObject *resultobj = 0; | |
7975 | wxRegion *arg1 = (wxRegion *) 0 ; | |
7976 | int arg2 ; | |
7977 | int arg3 ; | |
7978 | wxRegionContain result; | |
7979 | void *argp1 = 0 ; | |
7980 | int res1 = 0 ; | |
7981 | int val2 ; | |
7982 | int ecode2 = 0 ; | |
7983 | int val3 ; | |
7984 | int ecode3 = 0 ; | |
7985 | PyObject * obj0 = 0 ; | |
7986 | PyObject * obj1 = 0 ; | |
7987 | PyObject * obj2 = 0 ; | |
7988 | char * kwnames[] = { | |
7989 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7990 | }; | |
7991 | ||
7992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
7994 | if (!SWIG_IsOK(res1)) { | |
7995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
7996 | } | |
7997 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
7998 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7999 | if (!SWIG_IsOK(ecode2)) { | |
8000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
8001 | } | |
8002 | arg2 = static_cast< int >(val2); | |
8003 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8004 | if (!SWIG_IsOK(ecode3)) { | |
8005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
8006 | } | |
8007 | arg3 = static_cast< int >(val3); | |
8008 | { | |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
8011 | wxPyEndAllowThreads(__tstate); | |
8012 | if (PyErr_Occurred()) SWIG_fail; | |
8013 | } | |
8014 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8015 | return resultobj; | |
8016 | fail: | |
8017 | return NULL; | |
8018 | } | |
8019 | ||
8020 | ||
8021 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8022 | PyObject *resultobj = 0; | |
8023 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8024 | wxPoint *arg2 = 0 ; | |
8025 | wxRegionContain result; | |
8026 | void *argp1 = 0 ; | |
8027 | int res1 = 0 ; | |
8028 | wxPoint temp2 ; | |
8029 | PyObject * obj0 = 0 ; | |
8030 | PyObject * obj1 = 0 ; | |
8031 | char * kwnames[] = { | |
8032 | (char *) "self",(char *) "pt", NULL | |
8033 | }; | |
8034 | ||
8035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8037 | if (!SWIG_IsOK(res1)) { | |
8038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8039 | } | |
8040 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8041 | { | |
8042 | arg2 = &temp2; | |
8043 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8044 | } | |
8045 | { | |
8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8047 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj = 0; | |
8060 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8061 | wxRect *arg2 = 0 ; | |
8062 | wxRegionContain result; | |
8063 | void *argp1 = 0 ; | |
8064 | int res1 = 0 ; | |
8065 | wxRect temp2 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | PyObject * obj1 = 0 ; | |
8068 | char * kwnames[] = { | |
8069 | (char *) "self",(char *) "rect", NULL | |
8070 | }; | |
8071 | ||
8072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8074 | if (!SWIG_IsOK(res1)) { | |
8075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8076 | } | |
8077 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8078 | { | |
8079 | arg2 = &temp2; | |
8080 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8081 | } | |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
8085 | wxPyEndAllowThreads(__tstate); | |
8086 | if (PyErr_Occurred()) SWIG_fail; | |
8087 | } | |
8088 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8089 | return resultobj; | |
8090 | fail: | |
8091 | return NULL; | |
8092 | } | |
8093 | ||
8094 | ||
8095 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8096 | PyObject *resultobj = 0; | |
8097 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8098 | int arg2 ; | |
8099 | int arg3 ; | |
8100 | int arg4 ; | |
8101 | int arg5 ; | |
8102 | wxRegionContain result; | |
8103 | void *argp1 = 0 ; | |
8104 | int res1 = 0 ; | |
8105 | int val2 ; | |
8106 | int ecode2 = 0 ; | |
8107 | int val3 ; | |
8108 | int ecode3 = 0 ; | |
8109 | int val4 ; | |
8110 | int ecode4 = 0 ; | |
8111 | int val5 ; | |
8112 | int ecode5 = 0 ; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | PyObject * obj1 = 0 ; | |
8115 | PyObject * obj2 = 0 ; | |
8116 | PyObject * obj3 = 0 ; | |
8117 | PyObject * obj4 = 0 ; | |
8118 | char * kwnames[] = { | |
8119 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
8120 | }; | |
8121 | ||
8122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8124 | if (!SWIG_IsOK(res1)) { | |
8125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8126 | } | |
8127 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8128 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8129 | if (!SWIG_IsOK(ecode2)) { | |
8130 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
8131 | } | |
8132 | arg2 = static_cast< int >(val2); | |
8133 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8134 | if (!SWIG_IsOK(ecode3)) { | |
8135 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
8136 | } | |
8137 | arg3 = static_cast< int >(val3); | |
8138 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8139 | if (!SWIG_IsOK(ecode4)) { | |
8140 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
8141 | } | |
8142 | arg4 = static_cast< int >(val4); | |
8143 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8144 | if (!SWIG_IsOK(ecode5)) { | |
8145 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
8146 | } | |
8147 | arg5 = static_cast< int >(val5); | |
8148 | { | |
8149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8150 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
8151 | wxPyEndAllowThreads(__tstate); | |
8152 | if (PyErr_Occurred()) SWIG_fail; | |
8153 | } | |
8154 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8155 | return resultobj; | |
8156 | fail: | |
8157 | return NULL; | |
d55e5bfc RD |
8158 | } |
8159 | ||
8160 | ||
1bd55598 RD |
8161 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8162 | PyObject *resultobj = 0; | |
8163 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8164 | wxRect result; | |
8165 | void *argp1 = 0 ; | |
8166 | int res1 = 0 ; | |
8167 | PyObject *swig_obj[1] ; | |
8168 | ||
8169 | if (!args) SWIG_fail; | |
8170 | swig_obj[0] = args; | |
8171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8172 | if (!SWIG_IsOK(res1)) { | |
8173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8174 | } | |
8175 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8176 | { | |
8177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8178 | result = (arg1)->GetBox(); | |
8179 | wxPyEndAllowThreads(__tstate); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
8183 | return resultobj; | |
8184 | fail: | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
8189 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8190 | PyObject *resultobj = 0; | |
8191 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8192 | int arg2 ; | |
8193 | int arg3 ; | |
8194 | int arg4 ; | |
8195 | int arg5 ; | |
8196 | bool result; | |
8197 | void *argp1 = 0 ; | |
8198 | int res1 = 0 ; | |
8199 | int val2 ; | |
8200 | int ecode2 = 0 ; | |
8201 | int val3 ; | |
8202 | int ecode3 = 0 ; | |
8203 | int val4 ; | |
8204 | int ecode4 = 0 ; | |
8205 | int val5 ; | |
8206 | int ecode5 = 0 ; | |
8207 | PyObject * obj0 = 0 ; | |
8208 | PyObject * obj1 = 0 ; | |
8209 | PyObject * obj2 = 0 ; | |
8210 | PyObject * obj3 = 0 ; | |
8211 | PyObject * obj4 = 0 ; | |
8212 | char * kwnames[] = { | |
8213 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8214 | }; | |
8215 | ||
8216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8218 | if (!SWIG_IsOK(res1)) { | |
8219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8220 | } | |
8221 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8223 | if (!SWIG_IsOK(ecode2)) { | |
8224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
8225 | } | |
8226 | arg2 = static_cast< int >(val2); | |
8227 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8228 | if (!SWIG_IsOK(ecode3)) { | |
8229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
8230 | } | |
8231 | arg3 = static_cast< int >(val3); | |
8232 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8233 | if (!SWIG_IsOK(ecode4)) { | |
8234 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
8235 | } | |
8236 | arg4 = static_cast< int >(val4); | |
8237 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8238 | if (!SWIG_IsOK(ecode5)) { | |
8239 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
8240 | } | |
8241 | arg5 = static_cast< int >(val5); | |
8242 | { | |
8243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8244 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | { | |
8249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8250 | } | |
8251 | return resultobj; | |
8252 | fail: | |
8253 | return NULL; | |
8254 | } | |
8255 | ||
8256 | ||
8257 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8258 | PyObject *resultobj = 0; | |
8259 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8260 | wxRect *arg2 = 0 ; | |
8261 | bool result; | |
8262 | void *argp1 = 0 ; | |
8263 | int res1 = 0 ; | |
8264 | wxRect temp2 ; | |
8265 | PyObject * obj0 = 0 ; | |
8266 | PyObject * obj1 = 0 ; | |
8267 | char * kwnames[] = { | |
8268 | (char *) "self",(char *) "rect", NULL | |
8269 | }; | |
8270 | ||
8271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8273 | if (!SWIG_IsOK(res1)) { | |
8274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8275 | } | |
8276 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8277 | { | |
8278 | arg2 = &temp2; | |
8279 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8280 | } | |
8281 | { | |
8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8283 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
8284 | wxPyEndAllowThreads(__tstate); | |
8285 | if (PyErr_Occurred()) SWIG_fail; | |
8286 | } | |
8287 | { | |
8288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8289 | } | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8297 | PyObject *resultobj = 0; | |
8298 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8299 | wxRegion *arg2 = 0 ; | |
8300 | bool result; | |
8301 | void *argp1 = 0 ; | |
8302 | int res1 = 0 ; | |
8303 | void *argp2 = 0 ; | |
8304 | int res2 = 0 ; | |
8305 | PyObject * obj0 = 0 ; | |
8306 | PyObject * obj1 = 0 ; | |
8307 | char * kwnames[] = { | |
8308 | (char *) "self",(char *) "region", NULL | |
8309 | }; | |
8310 | ||
8311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8313 | if (!SWIG_IsOK(res1)) { | |
8314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8315 | } | |
8316 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8317 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8318 | if (!SWIG_IsOK(res2)) { | |
8319 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8320 | } | |
8321 | if (!argp2) { | |
8322 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8323 | } | |
8324 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8325 | { | |
8326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8327 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
8328 | wxPyEndAllowThreads(__tstate); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
8330 | } | |
8331 | { | |
8332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8333 | } | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | return NULL; | |
d55e5bfc RD |
8337 | } |
8338 | ||
8339 | ||
1bd55598 RD |
8340 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8341 | PyObject *resultobj = 0; | |
8342 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8343 | bool result; | |
8344 | void *argp1 = 0 ; | |
8345 | int res1 = 0 ; | |
8346 | PyObject *swig_obj[1] ; | |
8347 | ||
8348 | if (!args) SWIG_fail; | |
8349 | swig_obj[0] = args; | |
8350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8351 | if (!SWIG_IsOK(res1)) { | |
8352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8353 | } | |
8354 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8355 | { | |
8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8357 | result = (bool)(arg1)->IsEmpty(); | |
8358 | wxPyEndAllowThreads(__tstate); | |
8359 | if (PyErr_Occurred()) SWIG_fail; | |
8360 | } | |
8361 | { | |
8362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8363 | } | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
8370 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8371 | PyObject *resultobj = 0; | |
8372 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8373 | int arg2 ; | |
8374 | int arg3 ; | |
8375 | int arg4 ; | |
8376 | int arg5 ; | |
8377 | bool result; | |
8378 | void *argp1 = 0 ; | |
8379 | int res1 = 0 ; | |
8380 | int val2 ; | |
8381 | int ecode2 = 0 ; | |
8382 | int val3 ; | |
8383 | int ecode3 = 0 ; | |
8384 | int val4 ; | |
8385 | int ecode4 = 0 ; | |
8386 | int val5 ; | |
8387 | int ecode5 = 0 ; | |
8388 | PyObject * obj0 = 0 ; | |
8389 | PyObject * obj1 = 0 ; | |
8390 | PyObject * obj2 = 0 ; | |
8391 | PyObject * obj3 = 0 ; | |
8392 | PyObject * obj4 = 0 ; | |
8393 | char * kwnames[] = { | |
8394 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8395 | }; | |
8396 | ||
8397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8399 | if (!SWIG_IsOK(res1)) { | |
8400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8401 | } | |
8402 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8404 | if (!SWIG_IsOK(ecode2)) { | |
8405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
8406 | } | |
8407 | arg2 = static_cast< int >(val2); | |
8408 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8409 | if (!SWIG_IsOK(ecode3)) { | |
8410 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
8411 | } | |
8412 | arg3 = static_cast< int >(val3); | |
8413 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8414 | if (!SWIG_IsOK(ecode4)) { | |
8415 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
8416 | } | |
8417 | arg4 = static_cast< int >(val4); | |
8418 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8419 | if (!SWIG_IsOK(ecode5)) { | |
8420 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
8421 | } | |
8422 | arg5 = static_cast< int >(val5); | |
8423 | { | |
8424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8425 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
8426 | wxPyEndAllowThreads(__tstate); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
8429 | { | |
8430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8431 | } | |
8432 | return resultobj; | |
8433 | fail: | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
8438 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8439 | PyObject *resultobj = 0; | |
8440 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8441 | wxRect *arg2 = 0 ; | |
8442 | bool result; | |
8443 | void *argp1 = 0 ; | |
8444 | int res1 = 0 ; | |
8445 | wxRect temp2 ; | |
8446 | PyObject * obj0 = 0 ; | |
8447 | PyObject * obj1 = 0 ; | |
8448 | char * kwnames[] = { | |
8449 | (char *) "self",(char *) "rect", NULL | |
8450 | }; | |
8451 | ||
8452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8454 | if (!SWIG_IsOK(res1)) { | |
8455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8456 | } | |
8457 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8458 | { | |
8459 | arg2 = &temp2; | |
8460 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8461 | } | |
8462 | { | |
8463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8464 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
8465 | wxPyEndAllowThreads(__tstate); | |
8466 | if (PyErr_Occurred()) SWIG_fail; | |
8467 | } | |
8468 | { | |
8469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8470 | } | |
8471 | return resultobj; | |
8472 | fail: | |
8473 | return NULL; | |
8474 | } | |
8475 | ||
8476 | ||
8477 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8478 | PyObject *resultobj = 0; | |
8479 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8480 | wxRegion *arg2 = 0 ; | |
8481 | bool result; | |
8482 | void *argp1 = 0 ; | |
8483 | int res1 = 0 ; | |
8484 | void *argp2 = 0 ; | |
8485 | int res2 = 0 ; | |
8486 | PyObject * obj0 = 0 ; | |
8487 | PyObject * obj1 = 0 ; | |
8488 | char * kwnames[] = { | |
8489 | (char *) "self",(char *) "region", NULL | |
8490 | }; | |
8491 | ||
8492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8494 | if (!SWIG_IsOK(res1)) { | |
8495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8496 | } | |
8497 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8498 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8499 | if (!SWIG_IsOK(res2)) { | |
8500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8501 | } | |
8502 | if (!argp2) { | |
8503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8504 | } | |
8505 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8506 | { | |
8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8508 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
8509 | wxPyEndAllowThreads(__tstate); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
8512 | { | |
8513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8514 | } | |
8515 | return resultobj; | |
8516 | fail: | |
8517 | return NULL; | |
8518 | } | |
8519 | ||
8520 | ||
8521 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8522 | PyObject *resultobj = 0; | |
8523 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8524 | int arg2 ; | |
8525 | int arg3 ; | |
8526 | int arg4 ; | |
8527 | int arg5 ; | |
8528 | bool result; | |
8529 | void *argp1 = 0 ; | |
8530 | int res1 = 0 ; | |
8531 | int val2 ; | |
8532 | int ecode2 = 0 ; | |
8533 | int val3 ; | |
8534 | int ecode3 = 0 ; | |
8535 | int val4 ; | |
8536 | int ecode4 = 0 ; | |
8537 | int val5 ; | |
8538 | int ecode5 = 0 ; | |
8539 | PyObject * obj0 = 0 ; | |
8540 | PyObject * obj1 = 0 ; | |
8541 | PyObject * obj2 = 0 ; | |
8542 | PyObject * obj3 = 0 ; | |
8543 | PyObject * obj4 = 0 ; | |
8544 | char * kwnames[] = { | |
8545 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8546 | }; | |
8547 | ||
8548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8550 | if (!SWIG_IsOK(res1)) { | |
8551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8552 | } | |
8553 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8554 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8555 | if (!SWIG_IsOK(ecode2)) { | |
8556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
8557 | } | |
8558 | arg2 = static_cast< int >(val2); | |
8559 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8560 | if (!SWIG_IsOK(ecode3)) { | |
8561 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
8562 | } | |
8563 | arg3 = static_cast< int >(val3); | |
8564 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8565 | if (!SWIG_IsOK(ecode4)) { | |
8566 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
8567 | } | |
8568 | arg4 = static_cast< int >(val4); | |
8569 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8570 | if (!SWIG_IsOK(ecode5)) { | |
8571 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
8572 | } | |
8573 | arg5 = static_cast< int >(val5); | |
8574 | { | |
8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8576 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
8577 | wxPyEndAllowThreads(__tstate); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | { | |
8581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8582 | } | |
8583 | return resultobj; | |
8584 | fail: | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj = 0; | |
8591 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8592 | wxRect *arg2 = 0 ; | |
8593 | bool result; | |
8594 | void *argp1 = 0 ; | |
8595 | int res1 = 0 ; | |
8596 | wxRect temp2 ; | |
8597 | PyObject * obj0 = 0 ; | |
8598 | PyObject * obj1 = 0 ; | |
8599 | char * kwnames[] = { | |
8600 | (char *) "self",(char *) "rect", NULL | |
8601 | }; | |
8602 | ||
8603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8605 | if (!SWIG_IsOK(res1)) { | |
8606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8607 | } | |
8608 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8609 | { | |
8610 | arg2 = &temp2; | |
8611 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8612 | } | |
8613 | { | |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
8616 | wxPyEndAllowThreads(__tstate); | |
8617 | if (PyErr_Occurred()) SWIG_fail; | |
8618 | } | |
8619 | { | |
8620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8621 | } | |
8622 | return resultobj; | |
8623 | fail: | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
8628 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8629 | PyObject *resultobj = 0; | |
8630 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8631 | wxRegion *arg2 = 0 ; | |
8632 | bool result; | |
8633 | void *argp1 = 0 ; | |
8634 | int res1 = 0 ; | |
8635 | void *argp2 = 0 ; | |
8636 | int res2 = 0 ; | |
8637 | PyObject * obj0 = 0 ; | |
8638 | PyObject * obj1 = 0 ; | |
8639 | char * kwnames[] = { | |
8640 | (char *) "self",(char *) "region", NULL | |
8641 | }; | |
8642 | ||
8643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8645 | if (!SWIG_IsOK(res1)) { | |
8646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8647 | } | |
8648 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8649 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8650 | if (!SWIG_IsOK(res2)) { | |
8651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8652 | } | |
8653 | if (!argp2) { | |
8654 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8655 | } | |
8656 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | { | |
8664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8673 | PyObject *resultobj = 0; | |
8674 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8675 | int arg2 ; | |
8676 | int arg3 ; | |
8677 | int arg4 ; | |
8678 | int arg5 ; | |
8679 | bool result; | |
8680 | void *argp1 = 0 ; | |
8681 | int res1 = 0 ; | |
8682 | int val2 ; | |
8683 | int ecode2 = 0 ; | |
8684 | int val3 ; | |
8685 | int ecode3 = 0 ; | |
8686 | int val4 ; | |
8687 | int ecode4 = 0 ; | |
8688 | int val5 ; | |
8689 | int ecode5 = 0 ; | |
8690 | PyObject * obj0 = 0 ; | |
8691 | PyObject * obj1 = 0 ; | |
8692 | PyObject * obj2 = 0 ; | |
8693 | PyObject * obj3 = 0 ; | |
8694 | PyObject * obj4 = 0 ; | |
8695 | char * kwnames[] = { | |
8696 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
8697 | }; | |
8698 | ||
8699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8701 | if (!SWIG_IsOK(res1)) { | |
8702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8703 | } | |
8704 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8705 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8706 | if (!SWIG_IsOK(ecode2)) { | |
8707 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
8708 | } | |
8709 | arg2 = static_cast< int >(val2); | |
8710 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8711 | if (!SWIG_IsOK(ecode3)) { | |
8712 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
8713 | } | |
8714 | arg3 = static_cast< int >(val3); | |
8715 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8716 | if (!SWIG_IsOK(ecode4)) { | |
8717 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
8718 | } | |
8719 | arg4 = static_cast< int >(val4); | |
8720 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8721 | if (!SWIG_IsOK(ecode5)) { | |
8722 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
8723 | } | |
8724 | arg5 = static_cast< int >(val5); | |
8725 | { | |
8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8727 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
8731 | { | |
8732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8733 | } | |
8734 | return resultobj; | |
8735 | fail: | |
8736 | return NULL; | |
8737 | } | |
8738 | ||
8739 | ||
8740 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8741 | PyObject *resultobj = 0; | |
8742 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8743 | wxRect *arg2 = 0 ; | |
8744 | bool result; | |
8745 | void *argp1 = 0 ; | |
8746 | int res1 = 0 ; | |
8747 | wxRect temp2 ; | |
8748 | PyObject * obj0 = 0 ; | |
8749 | PyObject * obj1 = 0 ; | |
8750 | char * kwnames[] = { | |
8751 | (char *) "self",(char *) "rect", NULL | |
8752 | }; | |
8753 | ||
8754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8756 | if (!SWIG_IsOK(res1)) { | |
8757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8758 | } | |
8759 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8760 | { | |
8761 | arg2 = &temp2; | |
8762 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8763 | } | |
8764 | { | |
8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8766 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | { | |
8771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8772 | } | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj = 0; | |
8781 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8782 | wxRegion *arg2 = 0 ; | |
8783 | bool result; | |
8784 | void *argp1 = 0 ; | |
8785 | int res1 = 0 ; | |
8786 | void *argp2 = 0 ; | |
8787 | int res2 = 0 ; | |
8788 | PyObject * obj0 = 0 ; | |
8789 | PyObject * obj1 = 0 ; | |
8790 | char * kwnames[] = { | |
8791 | (char *) "self",(char *) "region", NULL | |
8792 | }; | |
8793 | ||
8794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
8795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8796 | if (!SWIG_IsOK(res1)) { | |
8797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8798 | } | |
8799 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8800 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
8801 | if (!SWIG_IsOK(res2)) { | |
8802 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8803 | } | |
8804 | if (!argp2) { | |
8805 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
8806 | } | |
8807 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
8814 | { | |
8815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8816 | } | |
8817 | return resultobj; | |
8818 | fail: | |
8819 | return NULL; | |
d55e5bfc RD |
8820 | } |
8821 | ||
8822 | ||
1bd55598 RD |
8823 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8824 | PyObject *resultobj = 0; | |
8825 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8826 | SwigValueWrapper<wxBitmap > result; | |
8827 | void *argp1 = 0 ; | |
8828 | int res1 = 0 ; | |
8829 | PyObject *swig_obj[1] ; | |
8830 | ||
8831 | if (!args) SWIG_fail; | |
8832 | swig_obj[0] = args; | |
8833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8834 | if (!SWIG_IsOK(res1)) { | |
8835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8836 | } | |
8837 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | result = (arg1)->ConvertToBitmap(); | |
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | return NULL; | |
8848 | } | |
8849 | ||
8850 | ||
8851 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8852 | PyObject *resultobj = 0; | |
8853 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8854 | wxBitmap *arg2 = 0 ; | |
8855 | bool result; | |
8856 | void *argp1 = 0 ; | |
8857 | int res1 = 0 ; | |
8858 | void *argp2 = 0 ; | |
8859 | int res2 = 0 ; | |
8860 | PyObject * obj0 = 0 ; | |
8861 | PyObject * obj1 = 0 ; | |
8862 | char * kwnames[] = { | |
8863 | (char *) "self",(char *) "bmp", NULL | |
8864 | }; | |
8865 | ||
8866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8868 | if (!SWIG_IsOK(res1)) { | |
8869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8870 | } | |
8871 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8872 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8873 | if (!SWIG_IsOK(res2)) { | |
8874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8875 | } | |
8876 | if (!argp2) { | |
8877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8878 | } | |
8879 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | { | |
8887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8888 | } | |
8889 | return resultobj; | |
8890 | fail: | |
8891 | return NULL; | |
8892 | } | |
8893 | ||
8894 | ||
8895 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8896 | PyObject *resultobj = 0; | |
8897 | wxRegion *arg1 = (wxRegion *) 0 ; | |
8898 | wxBitmap *arg2 = 0 ; | |
8899 | wxColour *arg3 = 0 ; | |
8900 | int arg4 = (int) 0 ; | |
8901 | bool result; | |
8902 | void *argp1 = 0 ; | |
8903 | int res1 = 0 ; | |
8904 | void *argp2 = 0 ; | |
8905 | int res2 = 0 ; | |
8906 | wxColour temp3 ; | |
8907 | int val4 ; | |
8908 | int ecode4 = 0 ; | |
8909 | PyObject * obj0 = 0 ; | |
8910 | PyObject * obj1 = 0 ; | |
8911 | PyObject * obj2 = 0 ; | |
8912 | PyObject * obj3 = 0 ; | |
8913 | char * kwnames[] = { | |
8914 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
8915 | }; | |
8916 | ||
8917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
8919 | if (!SWIG_IsOK(res1)) { | |
8920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
8921 | } | |
8922 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8923 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8924 | if (!SWIG_IsOK(res2)) { | |
8925 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8926 | } | |
8927 | if (!argp2) { | |
8928 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8929 | } | |
8930 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8931 | { | |
8932 | arg3 = &temp3; | |
8933 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8934 | } | |
8935 | if (obj3) { | |
8936 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8937 | if (!SWIG_IsOK(ecode4)) { | |
8938 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
8939 | } | |
8940 | arg4 = static_cast< int >(val4); | |
8941 | } | |
8942 | { | |
8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8944 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | { | |
8949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8950 | } | |
8951 | return resultobj; | |
8952 | fail: | |
8953 | return NULL; | |
d55e5bfc RD |
8954 | } |
8955 | ||
8956 | ||
1bd55598 RD |
8957 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8958 | PyObject *obj; | |
8959 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8960 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
8961 | return SWIG_Py_Void(); | |
d55e5bfc RD |
8962 | } |
8963 | ||
1bd55598 RD |
8964 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8965 | return SWIG_Python_InitShadowInstance(args); | |
8966 | } | |
d55e5bfc | 8967 | |
1bd55598 RD |
8968 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8969 | PyObject *resultobj = 0; | |
8970 | wxRegion *arg1 = 0 ; | |
8971 | wxRegionIterator *result = 0 ; | |
8972 | void *argp1 = 0 ; | |
8973 | int res1 = 0 ; | |
8974 | PyObject * obj0 = 0 ; | |
8975 | char * kwnames[] = { | |
8976 | (char *) "region", NULL | |
8977 | }; | |
8978 | ||
8979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
8980 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
8981 | if (!SWIG_IsOK(res1)) { | |
8982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
8983 | } | |
8984 | if (!argp1) { | |
8985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
8986 | } | |
8987 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
8988 | { | |
8989 | if (!wxPyCheckForApp()) SWIG_fail; | |
8990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8991 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
d55e5bfc RD |
8999 | } |
9000 | ||
9001 | ||
1bd55598 RD |
9002 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9003 | PyObject *resultobj = 0; | |
9004 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9005 | void *argp1 = 0 ; | |
9006 | int res1 = 0 ; | |
9007 | PyObject *swig_obj[1] ; | |
9008 | ||
9009 | if (!args) SWIG_fail; | |
9010 | swig_obj[0] = args; | |
9011 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
9012 | if (!SWIG_IsOK(res1)) { | |
9013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9014 | } | |
9015 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9016 | { | |
9017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9018 | delete arg1; | |
d55e5bfc | 9019 | |
1bd55598 RD |
9020 | wxPyEndAllowThreads(__tstate); |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | resultobj = SWIG_Py_Void(); | |
9024 | return resultobj; | |
9025 | fail: | |
9026 | return NULL; | |
d55e5bfc RD |
9027 | } |
9028 | ||
9029 | ||
1bd55598 RD |
9030 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9031 | PyObject *resultobj = 0; | |
9032 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9033 | int result; | |
9034 | void *argp1 = 0 ; | |
9035 | int res1 = 0 ; | |
9036 | PyObject *swig_obj[1] ; | |
9037 | ||
9038 | if (!args) SWIG_fail; | |
9039 | swig_obj[0] = args; | |
9040 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9041 | if (!SWIG_IsOK(res1)) { | |
9042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9043 | } | |
9044 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9045 | { | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (int)(arg1)->GetX(); | |
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
d55e5bfc RD |
9055 | } |
9056 | ||
9057 | ||
1bd55598 RD |
9058 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9059 | PyObject *resultobj = 0; | |
9060 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9061 | int result; | |
9062 | void *argp1 = 0 ; | |
9063 | int res1 = 0 ; | |
9064 | PyObject *swig_obj[1] ; | |
9065 | ||
9066 | if (!args) SWIG_fail; | |
9067 | swig_obj[0] = args; | |
9068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9069 | if (!SWIG_IsOK(res1)) { | |
9070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9071 | } | |
9072 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = (int)(arg1)->GetY(); | |
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
d55e5bfc RD |
9083 | } |
9084 | ||
9085 | ||
1bd55598 RD |
9086 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9087 | PyObject *resultobj = 0; | |
9088 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9089 | int result; | |
9090 | void *argp1 = 0 ; | |
9091 | int res1 = 0 ; | |
9092 | PyObject *swig_obj[1] ; | |
9093 | ||
9094 | if (!args) SWIG_fail; | |
9095 | swig_obj[0] = args; | |
9096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9097 | if (!SWIG_IsOK(res1)) { | |
9098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9099 | } | |
9100 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9101 | { | |
9102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9103 | result = (int)(arg1)->GetW(); | |
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
d55e5bfc RD |
9111 | } |
9112 | ||
9113 | ||
1bd55598 RD |
9114 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9115 | PyObject *resultobj = 0; | |
9116 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9117 | int result; | |
9118 | void *argp1 = 0 ; | |
9119 | int res1 = 0 ; | |
9120 | PyObject *swig_obj[1] ; | |
9121 | ||
9122 | if (!args) SWIG_fail; | |
9123 | swig_obj[0] = args; | |
9124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9125 | if (!SWIG_IsOK(res1)) { | |
9126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9127 | } | |
9128 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = (int)(arg1)->GetWidth(); | |
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | return NULL; | |
d55e5bfc RD |
9139 | } |
9140 | ||
9141 | ||
1bd55598 RD |
9142 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9143 | PyObject *resultobj = 0; | |
9144 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9145 | int result; | |
9146 | void *argp1 = 0 ; | |
9147 | int res1 = 0 ; | |
9148 | PyObject *swig_obj[1] ; | |
9149 | ||
9150 | if (!args) SWIG_fail; | |
9151 | swig_obj[0] = args; | |
9152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9153 | if (!SWIG_IsOK(res1)) { | |
9154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9155 | } | |
9156 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9157 | { | |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | result = (int)(arg1)->GetH(); | |
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
9163 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
d07096ad RD |
9167 | } |
9168 | ||
9169 | ||
1bd55598 RD |
9170 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9171 | PyObject *resultobj = 0; | |
9172 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9173 | int result; | |
9174 | void *argp1 = 0 ; | |
9175 | int res1 = 0 ; | |
9176 | PyObject *swig_obj[1] ; | |
9177 | ||
9178 | if (!args) SWIG_fail; | |
9179 | swig_obj[0] = args; | |
9180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9181 | if (!SWIG_IsOK(res1)) { | |
9182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9183 | } | |
9184 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9185 | { | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (int)(arg1)->GetHeight(); | |
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
d55e5bfc RD |
9195 | } |
9196 | ||
9197 | ||
1bd55598 RD |
9198 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9199 | PyObject *resultobj = 0; | |
9200 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9201 | wxRect result; | |
9202 | void *argp1 = 0 ; | |
9203 | int res1 = 0 ; | |
9204 | PyObject *swig_obj[1] ; | |
9205 | ||
9206 | if (!args) SWIG_fail; | |
9207 | swig_obj[0] = args; | |
9208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9209 | if (!SWIG_IsOK(res1)) { | |
9210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9211 | } | |
9212 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9213 | { | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = (arg1)->GetRect(); | |
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
9219 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9220 | return resultobj; | |
9221 | fail: | |
9222 | return NULL; | |
d55e5bfc RD |
9223 | } |
9224 | ||
9225 | ||
1bd55598 RD |
9226 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9227 | PyObject *resultobj = 0; | |
9228 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9229 | bool result; | |
9230 | void *argp1 = 0 ; | |
9231 | int res1 = 0 ; | |
9232 | PyObject *swig_obj[1] ; | |
9233 | ||
9234 | if (!args) SWIG_fail; | |
9235 | swig_obj[0] = args; | |
9236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9237 | if (!SWIG_IsOK(res1)) { | |
9238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9239 | } | |
9240 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | result = (bool)(arg1)->HaveRects(); | |
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | { | |
9248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9249 | } | |
9250 | return resultobj; | |
9251 | fail: | |
9252 | return NULL; | |
d55e5bfc RD |
9253 | } |
9254 | ||
9255 | ||
1bd55598 RD |
9256 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9257 | PyObject *resultobj = 0; | |
9258 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9259 | void *argp1 = 0 ; | |
9260 | int res1 = 0 ; | |
9261 | PyObject *swig_obj[1] ; | |
9262 | ||
9263 | if (!args) SWIG_fail; | |
9264 | swig_obj[0] = args; | |
9265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9266 | if (!SWIG_IsOK(res1)) { | |
9267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9268 | } | |
9269 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | (arg1)->Reset(); | |
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | resultobj = SWIG_Py_Void(); | |
9277 | return resultobj; | |
9278 | fail: | |
9279 | return NULL; | |
d55e5bfc RD |
9280 | } |
9281 | ||
9282 | ||
1bd55598 RD |
9283 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9284 | PyObject *resultobj = 0; | |
9285 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9286 | void *argp1 = 0 ; | |
9287 | int res1 = 0 ; | |
9288 | PyObject *swig_obj[1] ; | |
9289 | ||
9290 | if (!args) SWIG_fail; | |
9291 | swig_obj[0] = args; | |
9292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9293 | if (!SWIG_IsOK(res1)) { | |
9294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9295 | } | |
9296 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | wxRegionIterator_Next(arg1); | |
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | resultobj = SWIG_Py_Void(); | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
070c48b4 RD |
9307 | } |
9308 | ||
9309 | ||
1bd55598 RD |
9310 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9311 | PyObject *resultobj = 0; | |
9312 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
9313 | bool result; | |
9314 | void *argp1 = 0 ; | |
9315 | int res1 = 0 ; | |
9316 | PyObject *swig_obj[1] ; | |
9317 | ||
9318 | if (!args) SWIG_fail; | |
9319 | swig_obj[0] = args; | |
9320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
9321 | if (!SWIG_IsOK(res1)) { | |
9322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
9323 | } | |
9324 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
9325 | { | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
9328 | wxPyEndAllowThreads(__tstate); | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | { | |
9332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9333 | } | |
9334 | return resultobj; | |
9335 | fail: | |
9336 | return NULL; | |
d55e5bfc RD |
9337 | } |
9338 | ||
9339 | ||
1bd55598 RD |
9340 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9341 | PyObject *obj; | |
9342 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9343 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
9344 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9345 | } |
9346 | ||
1bd55598 RD |
9347 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9348 | return SWIG_Python_InitShadowInstance(args); | |
9349 | } | |
d55e5bfc | 9350 | |
1bd55598 RD |
9351 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9352 | PyObject *resultobj = 0; | |
9353 | wxNativeFontInfo *result = 0 ; | |
9354 | ||
9355 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
9363 | return resultobj; | |
9364 | fail: | |
9365 | return NULL; | |
d55e5bfc RD |
9366 | } |
9367 | ||
9368 | ||
1bd55598 RD |
9369 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9370 | PyObject *resultobj = 0; | |
9371 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9372 | void *argp1 = 0 ; | |
9373 | int res1 = 0 ; | |
9374 | PyObject *swig_obj[1] ; | |
9375 | ||
9376 | if (!args) SWIG_fail; | |
9377 | swig_obj[0] = args; | |
9378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
9379 | if (!SWIG_IsOK(res1)) { | |
9380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9381 | } | |
9382 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9383 | { | |
9384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9385 | delete arg1; | |
d55e5bfc | 9386 | |
1bd55598 RD |
9387 | wxPyEndAllowThreads(__tstate); |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
9389 | } | |
9390 | resultobj = SWIG_Py_Void(); | |
9391 | return resultobj; | |
9392 | fail: | |
9393 | return NULL; | |
d55e5bfc RD |
9394 | } |
9395 | ||
9396 | ||
1bd55598 RD |
9397 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9398 | PyObject *resultobj = 0; | |
9399 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9400 | void *argp1 = 0 ; | |
9401 | int res1 = 0 ; | |
9402 | PyObject *swig_obj[1] ; | |
9403 | ||
9404 | if (!args) SWIG_fail; | |
9405 | swig_obj[0] = args; | |
9406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9407 | if (!SWIG_IsOK(res1)) { | |
9408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9409 | } | |
9410 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | (arg1)->Init(); | |
9414 | wxPyEndAllowThreads(__tstate); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | } | |
9417 | resultobj = SWIG_Py_Void(); | |
9418 | return resultobj; | |
9419 | fail: | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
9424 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9425 | PyObject *resultobj = 0; | |
9426 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9427 | wxFont *arg2 = 0 ; | |
9428 | void *argp1 = 0 ; | |
9429 | int res1 = 0 ; | |
9430 | void *argp2 = 0 ; | |
9431 | int res2 = 0 ; | |
9432 | PyObject * obj0 = 0 ; | |
9433 | PyObject * obj1 = 0 ; | |
9434 | char * kwnames[] = { | |
9435 | (char *) "self",(char *) "font", NULL | |
9436 | }; | |
9437 | ||
9438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
9439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9440 | if (!SWIG_IsOK(res1)) { | |
9441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9442 | } | |
9443 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9444 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
9445 | if (!SWIG_IsOK(res2)) { | |
9446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
9447 | } | |
9448 | if (!argp2) { | |
9449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
9450 | } | |
9451 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
9452 | { | |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | resultobj = SWIG_Py_Void(); | |
9459 | return resultobj; | |
9460 | fail: | |
9461 | return NULL; | |
d55e5bfc RD |
9462 | } |
9463 | ||
9464 | ||
1bd55598 RD |
9465 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9466 | PyObject *resultobj = 0; | |
9467 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9468 | int result; | |
9469 | void *argp1 = 0 ; | |
9470 | int res1 = 0 ; | |
9471 | PyObject *swig_obj[1] ; | |
9472 | ||
9473 | if (!args) SWIG_fail; | |
9474 | swig_obj[0] = args; | |
9475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9476 | if (!SWIG_IsOK(res1)) { | |
9477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9478 | } | |
9479 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
9483 | wxPyEndAllowThreads(__tstate); | |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | } | |
9486 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
d55e5bfc RD |
9490 | } |
9491 | ||
9492 | ||
1bd55598 RD |
9493 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9494 | PyObject *resultobj = 0; | |
9495 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9496 | wxFontStyle result; | |
9497 | void *argp1 = 0 ; | |
9498 | int res1 = 0 ; | |
9499 | PyObject *swig_obj[1] ; | |
9500 | ||
9501 | if (!args) SWIG_fail; | |
9502 | swig_obj[0] = args; | |
9503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9504 | if (!SWIG_IsOK(res1)) { | |
9505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9506 | } | |
9507 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9508 | { | |
9509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9510 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
d55e5bfc RD |
9518 | } |
9519 | ||
9520 | ||
1bd55598 RD |
9521 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9522 | PyObject *resultobj = 0; | |
9523 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9524 | wxFontWeight result; | |
9525 | void *argp1 = 0 ; | |
9526 | int res1 = 0 ; | |
9527 | PyObject *swig_obj[1] ; | |
9528 | ||
9529 | if (!args) SWIG_fail; | |
9530 | swig_obj[0] = args; | |
9531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9532 | if (!SWIG_IsOK(res1)) { | |
9533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9534 | } | |
9535 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9543 | return resultobj; | |
9544 | fail: | |
9545 | return NULL; | |
d55e5bfc RD |
9546 | } |
9547 | ||
9548 | ||
1bd55598 RD |
9549 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9550 | PyObject *resultobj = 0; | |
9551 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9552 | bool result; | |
9553 | void *argp1 = 0 ; | |
9554 | int res1 = 0 ; | |
9555 | PyObject *swig_obj[1] ; | |
9556 | ||
9557 | if (!args) SWIG_fail; | |
9558 | swig_obj[0] = args; | |
9559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9560 | if (!SWIG_IsOK(res1)) { | |
9561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9562 | } | |
9563 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | } | |
9570 | { | |
9571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9572 | } | |
9573 | return resultobj; | |
9574 | fail: | |
9575 | return NULL; | |
d55e5bfc RD |
9576 | } |
9577 | ||
9578 | ||
1bd55598 RD |
9579 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9580 | PyObject *resultobj = 0; | |
9581 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9582 | wxString result; | |
9583 | void *argp1 = 0 ; | |
9584 | int res1 = 0 ; | |
9585 | PyObject *swig_obj[1] ; | |
9586 | ||
9587 | if (!args) SWIG_fail; | |
9588 | swig_obj[0] = args; | |
9589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9590 | if (!SWIG_IsOK(res1)) { | |
9591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9592 | } | |
9593 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9594 | { | |
9595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9596 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
9597 | wxPyEndAllowThreads(__tstate); | |
9598 | if (PyErr_Occurred()) SWIG_fail; | |
9599 | } | |
9600 | { | |
9601 | #if wxUSE_UNICODE | |
9602 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9603 | #else | |
9604 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9605 | #endif | |
9606 | } | |
9607 | return resultobj; | |
9608 | fail: | |
9609 | return NULL; | |
d55e5bfc RD |
9610 | } |
9611 | ||
9612 | ||
1bd55598 RD |
9613 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9614 | PyObject *resultobj = 0; | |
9615 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9616 | wxFontFamily result; | |
9617 | void *argp1 = 0 ; | |
9618 | int res1 = 0 ; | |
9619 | PyObject *swig_obj[1] ; | |
9620 | ||
9621 | if (!args) SWIG_fail; | |
9622 | swig_obj[0] = args; | |
9623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9624 | if (!SWIG_IsOK(res1)) { | |
9625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9626 | } | |
9627 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9630 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | return NULL; | |
d55e5bfc RD |
9638 | } |
9639 | ||
9640 | ||
1bd55598 RD |
9641 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9642 | PyObject *resultobj = 0; | |
9643 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9644 | wxFontEncoding result; | |
9645 | void *argp1 = 0 ; | |
9646 | int res1 = 0 ; | |
9647 | PyObject *swig_obj[1] ; | |
9648 | ||
9649 | if (!args) SWIG_fail; | |
9650 | swig_obj[0] = args; | |
9651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9652 | if (!SWIG_IsOK(res1)) { | |
9653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9654 | } | |
9655 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj = 0; | |
9671 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9672 | int arg2 ; | |
9673 | void *argp1 = 0 ; | |
9674 | int res1 = 0 ; | |
9675 | int val2 ; | |
9676 | int ecode2 = 0 ; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | PyObject * obj1 = 0 ; | |
9679 | char * kwnames[] = { | |
9680 | (char *) "self",(char *) "pointsize", NULL | |
9681 | }; | |
9682 | ||
9683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9685 | if (!SWIG_IsOK(res1)) { | |
9686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9687 | } | |
9688 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9689 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9690 | if (!SWIG_IsOK(ecode2)) { | |
9691 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
9692 | } | |
9693 | arg2 = static_cast< int >(val2); | |
9694 | { | |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | (arg1)->SetPointSize(arg2); | |
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | resultobj = SWIG_Py_Void(); | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj = 0; | |
9709 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9710 | wxFontStyle arg2 ; | |
9711 | void *argp1 = 0 ; | |
9712 | int res1 = 0 ; | |
9713 | int val2 ; | |
9714 | int ecode2 = 0 ; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | PyObject * obj1 = 0 ; | |
9717 | char * kwnames[] = { | |
9718 | (char *) "self",(char *) "style", NULL | |
9719 | }; | |
9720 | ||
9721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9723 | if (!SWIG_IsOK(res1)) { | |
9724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9725 | } | |
9726 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9727 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9728 | if (!SWIG_IsOK(ecode2)) { | |
9729 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
9730 | } | |
9731 | arg2 = static_cast< wxFontStyle >(val2); | |
9732 | { | |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9734 | (arg1)->SetStyle(arg2); | |
9735 | wxPyEndAllowThreads(__tstate); | |
9736 | if (PyErr_Occurred()) SWIG_fail; | |
9737 | } | |
9738 | resultobj = SWIG_Py_Void(); | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9746 | PyObject *resultobj = 0; | |
9747 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9748 | wxFontWeight arg2 ; | |
9749 | void *argp1 = 0 ; | |
9750 | int res1 = 0 ; | |
9751 | int val2 ; | |
9752 | int ecode2 = 0 ; | |
9753 | PyObject * obj0 = 0 ; | |
9754 | PyObject * obj1 = 0 ; | |
9755 | char * kwnames[] = { | |
9756 | (char *) "self",(char *) "weight", NULL | |
9757 | }; | |
9758 | ||
9759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9761 | if (!SWIG_IsOK(res1)) { | |
9762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9763 | } | |
9764 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9765 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9766 | if (!SWIG_IsOK(ecode2)) { | |
9767 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
9768 | } | |
9769 | arg2 = static_cast< wxFontWeight >(val2); | |
9770 | { | |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | (arg1)->SetWeight(arg2); | |
9773 | wxPyEndAllowThreads(__tstate); | |
9774 | if (PyErr_Occurred()) SWIG_fail; | |
9775 | } | |
9776 | resultobj = SWIG_Py_Void(); | |
9777 | return resultobj; | |
9778 | fail: | |
9779 | return NULL; | |
9780 | } | |
9781 | ||
9782 | ||
9783 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9784 | PyObject *resultobj = 0; | |
9785 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9786 | bool arg2 ; | |
9787 | void *argp1 = 0 ; | |
9788 | int res1 = 0 ; | |
9789 | bool val2 ; | |
9790 | int ecode2 = 0 ; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | PyObject * obj1 = 0 ; | |
9793 | char * kwnames[] = { | |
9794 | (char *) "self",(char *) "underlined", NULL | |
9795 | }; | |
9796 | ||
9797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
9798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9799 | if (!SWIG_IsOK(res1)) { | |
9800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9801 | } | |
9802 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9803 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
9804 | if (!SWIG_IsOK(ecode2)) { | |
9805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
9806 | } | |
9807 | arg2 = static_cast< bool >(val2); | |
9808 | { | |
9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9810 | (arg1)->SetUnderlined(arg2); | |
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
9814 | resultobj = SWIG_Py_Void(); | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | return NULL; | |
9818 | } | |
9819 | ||
9820 | ||
9821 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9822 | PyObject *resultobj = 0; | |
9823 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9824 | wxString arg2 ; | |
704eda0c | 9825 | bool result; |
1bd55598 RD |
9826 | void *argp1 = 0 ; |
9827 | int res1 = 0 ; | |
9828 | PyObject * obj0 = 0 ; | |
9829 | PyObject * obj1 = 0 ; | |
9830 | char * kwnames[] = { | |
9831 | (char *) "self",(char *) "facename", NULL | |
9832 | }; | |
9833 | ||
9834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9836 | if (!SWIG_IsOK(res1)) { | |
9837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9838 | } | |
9839 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9840 | { | |
9841 | wxString* sptr = wxString_in_helper(obj1); | |
9842 | if (sptr == NULL) SWIG_fail; | |
9843 | arg2 = *sptr; | |
9844 | delete sptr; | |
9845 | } | |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 9848 | result = (bool)(arg1)->SetFaceName(arg2); |
1bd55598 RD |
9849 | wxPyEndAllowThreads(__tstate); |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
9851 | } | |
704eda0c RD |
9852 | { |
9853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9854 | } | |
1bd55598 RD |
9855 | return resultobj; |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
9861 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9862 | PyObject *resultobj = 0; | |
9863 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9864 | wxFontFamily arg2 ; | |
9865 | void *argp1 = 0 ; | |
9866 | int res1 = 0 ; | |
9867 | int val2 ; | |
9868 | int ecode2 = 0 ; | |
9869 | PyObject * obj0 = 0 ; | |
9870 | PyObject * obj1 = 0 ; | |
9871 | char * kwnames[] = { | |
9872 | (char *) "self",(char *) "family", NULL | |
9873 | }; | |
9874 | ||
9875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
9876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9877 | if (!SWIG_IsOK(res1)) { | |
9878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9879 | } | |
9880 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9881 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9882 | if (!SWIG_IsOK(ecode2)) { | |
9883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
9884 | } | |
9885 | arg2 = static_cast< wxFontFamily >(val2); | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | (arg1)->SetFamily(arg2); | |
9889 | wxPyEndAllowThreads(__tstate); | |
9890 | if (PyErr_Occurred()) SWIG_fail; | |
9891 | } | |
9892 | resultobj = SWIG_Py_Void(); | |
9893 | return resultobj; | |
9894 | fail: | |
9895 | return NULL; | |
9896 | } | |
9897 | ||
9898 | ||
9899 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9900 | PyObject *resultobj = 0; | |
9901 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9902 | wxFontEncoding arg2 ; | |
9903 | void *argp1 = 0 ; | |
9904 | int res1 = 0 ; | |
9905 | int val2 ; | |
9906 | int ecode2 = 0 ; | |
9907 | PyObject * obj0 = 0 ; | |
9908 | PyObject * obj1 = 0 ; | |
9909 | char * kwnames[] = { | |
9910 | (char *) "self",(char *) "encoding", NULL | |
9911 | }; | |
9912 | ||
9913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
9914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9915 | if (!SWIG_IsOK(res1)) { | |
9916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9917 | } | |
9918 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9919 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9920 | if (!SWIG_IsOK(ecode2)) { | |
9921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
9922 | } | |
9923 | arg2 = static_cast< wxFontEncoding >(val2); | |
9924 | { | |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | (arg1)->SetEncoding(arg2); | |
9927 | wxPyEndAllowThreads(__tstate); | |
9928 | if (PyErr_Occurred()) SWIG_fail; | |
9929 | } | |
9930 | resultobj = SWIG_Py_Void(); | |
9931 | return resultobj; | |
9932 | fail: | |
9933 | return NULL; | |
9934 | } | |
9935 | ||
9936 | ||
9937 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9938 | PyObject *resultobj = 0; | |
9939 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9940 | wxString *arg2 = 0 ; | |
9941 | bool result; | |
9942 | void *argp1 = 0 ; | |
9943 | int res1 = 0 ; | |
9944 | bool temp2 = false ; | |
9945 | PyObject * obj0 = 0 ; | |
9946 | PyObject * obj1 = 0 ; | |
9947 | char * kwnames[] = { | |
9948 | (char *) "self",(char *) "s", NULL | |
9949 | }; | |
9950 | ||
9951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
9952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9953 | if (!SWIG_IsOK(res1)) { | |
9954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
9955 | } | |
9956 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
9957 | { | |
9958 | arg2 = wxString_in_helper(obj1); | |
9959 | if (arg2 == NULL) SWIG_fail; | |
9960 | temp2 = true; | |
9961 | } | |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
9965 | wxPyEndAllowThreads(__tstate); | |
9966 | if (PyErr_Occurred()) SWIG_fail; | |
9967 | } | |
9968 | { | |
9969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9970 | } | |
9971 | { | |
9972 | if (temp2) | |
9973 | delete arg2; | |
9974 | } | |
9975 | return resultobj; | |
9976 | fail: | |
9977 | { | |
9978 | if (temp2) | |
9979 | delete arg2; | |
9980 | } | |
9981 | return NULL; | |
d55e5bfc RD |
9982 | } |
9983 | ||
9984 | ||
1bd55598 RD |
9985 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9986 | PyObject *resultobj = 0; | |
9987 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
9988 | wxString result; | |
9989 | void *argp1 = 0 ; | |
9990 | int res1 = 0 ; | |
9991 | PyObject *swig_obj[1] ; | |
9992 | ||
9993 | if (!args) SWIG_fail; | |
9994 | swig_obj[0] = args; | |
9995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
9996 | if (!SWIG_IsOK(res1)) { | |
9997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
9998 | } | |
9999 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10000 | { | |
10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10002 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | { | |
10007 | #if wxUSE_UNICODE | |
10008 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10009 | #else | |
10010 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10011 | #endif | |
10012 | } | |
10013 | return resultobj; | |
10014 | fail: | |
10015 | return NULL; | |
d55e5bfc RD |
10016 | } |
10017 | ||
10018 | ||
1bd55598 RD |
10019 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10020 | PyObject *resultobj = 0; | |
10021 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10022 | wxString result; | |
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___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10032 | } | |
10033 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | result = wxNativeFontInfo___str__(arg1); | |
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | { | |
10041 | #if wxUSE_UNICODE | |
10042 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10043 | #else | |
10044 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10045 | #endif | |
10046 | } | |
10047 | return resultobj; | |
10048 | fail: | |
10049 | return NULL; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj = 0; | |
10055 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10056 | wxString *arg2 = 0 ; | |
10057 | bool result; | |
10058 | void *argp1 = 0 ; | |
10059 | int res1 = 0 ; | |
10060 | bool temp2 = false ; | |
10061 | PyObject * obj0 = 0 ; | |
10062 | PyObject * obj1 = 0 ; | |
10063 | char * kwnames[] = { | |
10064 | (char *) "self",(char *) "s", NULL | |
10065 | }; | |
10066 | ||
10067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10069 | if (!SWIG_IsOK(res1)) { | |
10070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
10071 | } | |
10072 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10073 | { | |
10074 | arg2 = wxString_in_helper(obj1); | |
10075 | if (arg2 == NULL) SWIG_fail; | |
10076 | temp2 = true; | |
10077 | } | |
10078 | { | |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | } | |
10084 | { | |
10085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10086 | } | |
10087 | { | |
10088 | if (temp2) | |
10089 | delete arg2; | |
10090 | } | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | { | |
10094 | if (temp2) | |
10095 | delete arg2; | |
10096 | } | |
10097 | return NULL; | |
d55e5bfc RD |
10098 | } |
10099 | ||
10100 | ||
1bd55598 RD |
10101 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10102 | PyObject *resultobj = 0; | |
10103 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
10104 | wxString result; | |
10105 | void *argp1 = 0 ; | |
10106 | int res1 = 0 ; | |
10107 | PyObject *swig_obj[1] ; | |
10108 | ||
10109 | if (!args) SWIG_fail; | |
10110 | swig_obj[0] = args; | |
10111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
10112 | if (!SWIG_IsOK(res1)) { | |
10113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
10114 | } | |
10115 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | { | |
36ed4f51 | 10123 | #if wxUSE_UNICODE |
1bd55598 | 10124 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 10125 | #else |
1bd55598 | 10126 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 10127 | #endif |
1bd55598 RD |
10128 | } |
10129 | return resultobj; | |
10130 | fail: | |
10131 | return NULL; | |
d55e5bfc RD |
10132 | } |
10133 | ||
10134 | ||
1bd55598 RD |
10135 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10136 | PyObject *obj; | |
10137 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10138 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
10139 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10140 | } |
10141 | ||
1bd55598 RD |
10142 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10143 | return SWIG_Python_InitShadowInstance(args); | |
10144 | } | |
d55e5bfc | 10145 | |
1bd55598 RD |
10146 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10147 | PyObject *resultobj = 0; | |
10148 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10149 | wxString *arg2 = (wxString *) 0 ; | |
10150 | void *argp1 = 0 ; | |
10151 | int res1 = 0 ; | |
10152 | bool temp2 = false ; | |
10153 | PyObject *swig_obj[2] ; | |
10154 | ||
10155 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
10156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10157 | if (!SWIG_IsOK(res1)) { | |
10158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10159 | } | |
10160 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10161 | { | |
10162 | arg2 = wxString_in_helper(swig_obj[1]); | |
10163 | if (arg2 == NULL) SWIG_fail; | |
10164 | temp2 = true; | |
10165 | } | |
10166 | if (arg1) (arg1)->facename = *arg2; | |
10167 | ||
10168 | resultobj = SWIG_Py_Void(); | |
10169 | { | |
10170 | if (temp2) | |
10171 | delete arg2; | |
10172 | } | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | { | |
10176 | if (temp2) | |
10177 | delete arg2; | |
10178 | } | |
10179 | return NULL; | |
d55e5bfc RD |
10180 | } |
10181 | ||
10182 | ||
1bd55598 RD |
10183 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10184 | PyObject *resultobj = 0; | |
10185 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10186 | wxString *result = 0 ; | |
10187 | void *argp1 = 0 ; | |
10188 | int res1 = 0 ; | |
10189 | PyObject *swig_obj[1] ; | |
10190 | ||
10191 | if (!args) SWIG_fail; | |
10192 | swig_obj[0] = args; | |
10193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10194 | if (!SWIG_IsOK(res1)) { | |
10195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10196 | } | |
10197 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10198 | result = (wxString *)& ((arg1)->facename); | |
10199 | { | |
10200 | #if wxUSE_UNICODE | |
10201 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10202 | #else | |
10203 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10204 | #endif | |
10205 | } | |
10206 | return resultobj; | |
10207 | fail: | |
10208 | return NULL; | |
d55e5bfc RD |
10209 | } |
10210 | ||
10211 | ||
1bd55598 RD |
10212 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10213 | PyObject *resultobj = 0; | |
10214 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10215 | wxFontEncoding arg2 ; | |
10216 | void *argp1 = 0 ; | |
10217 | int res1 = 0 ; | |
10218 | int val2 ; | |
10219 | int ecode2 = 0 ; | |
10220 | PyObject *swig_obj[2] ; | |
10221 | ||
10222 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
10223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10224 | if (!SWIG_IsOK(res1)) { | |
10225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10226 | } | |
10227 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10228 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
10229 | if (!SWIG_IsOK(ecode2)) { | |
10230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10231 | } | |
10232 | arg2 = static_cast< wxFontEncoding >(val2); | |
10233 | if (arg1) (arg1)->encoding = arg2; | |
10234 | ||
10235 | resultobj = SWIG_Py_Void(); | |
10236 | return resultobj; | |
10237 | fail: | |
10238 | return NULL; | |
d55e5bfc RD |
10239 | } |
10240 | ||
10241 | ||
1bd55598 RD |
10242 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10243 | PyObject *resultobj = 0; | |
10244 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10245 | wxFontEncoding result; | |
10246 | void *argp1 = 0 ; | |
10247 | int res1 = 0 ; | |
10248 | PyObject *swig_obj[1] ; | |
10249 | ||
10250 | if (!args) SWIG_fail; | |
10251 | swig_obj[0] = args; | |
10252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10253 | if (!SWIG_IsOK(res1)) { | |
10254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10255 | } | |
10256 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10257 | result = (wxFontEncoding) ((arg1)->encoding); | |
10258 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
d07096ad RD |
10262 | } |
10263 | ||
10264 | ||
1bd55598 RD |
10265 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10266 | PyObject *resultobj = 0; | |
10267 | wxNativeEncodingInfo *result = 0 ; | |
10268 | ||
10269 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
10270 | { | |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
10273 | wxPyEndAllowThreads(__tstate); | |
10274 | if (PyErr_Occurred()) SWIG_fail; | |
10275 | } | |
10276 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
10277 | return resultobj; | |
10278 | fail: | |
10279 | return NULL; | |
d55e5bfc RD |
10280 | } |
10281 | ||
10282 | ||
1bd55598 RD |
10283 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10284 | PyObject *resultobj = 0; | |
10285 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10286 | void *argp1 = 0 ; | |
10287 | int res1 = 0 ; | |
10288 | PyObject *swig_obj[1] ; | |
10289 | ||
10290 | if (!args) SWIG_fail; | |
10291 | swig_obj[0] = args; | |
10292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
10293 | if (!SWIG_IsOK(res1)) { | |
10294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10295 | } | |
10296 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | delete arg1; | |
d55e5bfc | 10300 | |
1bd55598 RD |
10301 | wxPyEndAllowThreads(__tstate); |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | resultobj = SWIG_Py_Void(); | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10312 | PyObject *resultobj = 0; | |
10313 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10314 | wxString *arg2 = 0 ; | |
10315 | bool result; | |
10316 | void *argp1 = 0 ; | |
10317 | int res1 = 0 ; | |
10318 | bool temp2 = false ; | |
10319 | PyObject * obj0 = 0 ; | |
10320 | PyObject * obj1 = 0 ; | |
10321 | char * kwnames[] = { | |
10322 | (char *) "self",(char *) "s", NULL | |
10323 | }; | |
10324 | ||
10325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
10326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10327 | if (!SWIG_IsOK(res1)) { | |
10328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
10329 | } | |
10330 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10331 | { | |
10332 | arg2 = wxString_in_helper(obj1); | |
10333 | if (arg2 == NULL) SWIG_fail; | |
10334 | temp2 = true; | |
10335 | } | |
10336 | { | |
10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10338 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
10339 | wxPyEndAllowThreads(__tstate); | |
10340 | if (PyErr_Occurred()) SWIG_fail; | |
10341 | } | |
10342 | { | |
10343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10344 | } | |
10345 | { | |
10346 | if (temp2) | |
10347 | delete arg2; | |
10348 | } | |
10349 | return resultobj; | |
10350 | fail: | |
10351 | { | |
10352 | if (temp2) | |
10353 | delete arg2; | |
10354 | } | |
10355 | return NULL; | |
d55e5bfc RD |
10356 | } |
10357 | ||
10358 | ||
1bd55598 RD |
10359 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10360 | PyObject *resultobj = 0; | |
10361 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
10362 | wxString result; | |
10363 | void *argp1 = 0 ; | |
10364 | int res1 = 0 ; | |
10365 | PyObject *swig_obj[1] ; | |
10366 | ||
10367 | if (!args) SWIG_fail; | |
10368 | swig_obj[0] = args; | |
10369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10370 | if (!SWIG_IsOK(res1)) { | |
10371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
10372 | } | |
10373 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10374 | { | |
10375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10376 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
10377 | wxPyEndAllowThreads(__tstate); | |
10378 | if (PyErr_Occurred()) SWIG_fail; | |
10379 | } | |
10380 | { | |
10381 | #if wxUSE_UNICODE | |
10382 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10383 | #else | |
10384 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10385 | #endif | |
10386 | } | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
d55e5bfc RD |
10390 | } |
10391 | ||
10392 | ||
1bd55598 RD |
10393 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10394 | PyObject *obj; | |
10395 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10396 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
10397 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10398 | } |
10399 | ||
1bd55598 RD |
10400 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10401 | return SWIG_Python_InitShadowInstance(args); | |
10402 | } | |
d55e5bfc | 10403 | |
1bd55598 RD |
10404 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10405 | PyObject *resultobj = 0; | |
10406 | wxFontEncoding arg1 ; | |
10407 | wxNativeEncodingInfo *result = 0 ; | |
10408 | int val1 ; | |
10409 | int ecode1 = 0 ; | |
10410 | PyObject * obj0 = 0 ; | |
10411 | char * kwnames[] = { | |
10412 | (char *) "encoding", NULL | |
10413 | }; | |
10414 | ||
10415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
10416 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10417 | if (!SWIG_IsOK(ecode1)) { | |
10418 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
10419 | } | |
10420 | arg1 = static_cast< wxFontEncoding >(val1); | |
10421 | { | |
10422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10423 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
10424 | wxPyEndAllowThreads(__tstate); | |
10425 | if (PyErr_Occurred()) SWIG_fail; | |
10426 | } | |
10427 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
10434 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10435 | PyObject *resultobj = 0; | |
10436 | wxNativeEncodingInfo *arg1 = 0 ; | |
10437 | bool result; | |
10438 | void *argp1 = 0 ; | |
10439 | int res1 = 0 ; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | char * kwnames[] = { | |
10442 | (char *) "info", NULL | |
10443 | }; | |
10444 | ||
10445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
10446 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
10447 | if (!SWIG_IsOK(res1)) { | |
10448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
10449 | } | |
10450 | if (!argp1) { | |
10451 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
10452 | } | |
10453 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10462 | } | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | return NULL; | |
d55e5bfc RD |
10466 | } |
10467 | ||
10468 | ||
1bd55598 RD |
10469 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10470 | PyObject *resultobj = 0; | |
10471 | wxFontMapper *result = 0 ; | |
10472 | ||
10473 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
10474 | { | |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | result = (wxFontMapper *)new wxFontMapper(); | |
10477 | wxPyEndAllowThreads(__tstate); | |
10478 | if (PyErr_Occurred()) SWIG_fail; | |
10479 | } | |
10480 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
10481 | return resultobj; | |
10482 | fail: | |
10483 | return NULL; | |
d55e5bfc RD |
10484 | } |
10485 | ||
10486 | ||
1bd55598 RD |
10487 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10488 | PyObject *resultobj = 0; | |
10489 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10490 | void *argp1 = 0 ; | |
10491 | int res1 = 0 ; | |
10492 | PyObject *swig_obj[1] ; | |
10493 | ||
10494 | if (!args) SWIG_fail; | |
10495 | swig_obj[0] = args; | |
10496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
10497 | if (!SWIG_IsOK(res1)) { | |
10498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10499 | } | |
10500 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10501 | { | |
10502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10503 | delete arg1; | |
d55e5bfc | 10504 | |
1bd55598 RD |
10505 | wxPyEndAllowThreads(__tstate); |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
10508 | resultobj = SWIG_Py_Void(); | |
10509 | return resultobj; | |
10510 | fail: | |
10511 | return NULL; | |
d55e5bfc RD |
10512 | } |
10513 | ||
10514 | ||
1bd55598 RD |
10515 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10516 | PyObject *resultobj = 0; | |
10517 | wxFontMapper *result = 0 ; | |
10518 | ||
10519 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | result = (wxFontMapper *)wxFontMapper::Get(); | |
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) SWIG_fail; | |
10525 | } | |
10526 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
10533 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10534 | PyObject *resultobj = 0; | |
10535 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10536 | wxFontMapper *result = 0 ; | |
10537 | void *argp1 = 0 ; | |
10538 | int res1 = 0 ; | |
10539 | PyObject * obj0 = 0 ; | |
10540 | char * kwnames[] = { | |
10541 | (char *) "mapper", NULL | |
10542 | }; | |
10543 | ||
10544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
10545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10546 | if (!SWIG_IsOK(res1)) { | |
10547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10548 | } | |
10549 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10550 | { | |
10551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10552 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj = 0; | |
10565 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10566 | wxString *arg2 = 0 ; | |
10567 | bool arg3 = (bool) true ; | |
10568 | wxFontEncoding result; | |
10569 | void *argp1 = 0 ; | |
10570 | int res1 = 0 ; | |
10571 | bool temp2 = false ; | |
10572 | bool val3 ; | |
10573 | int ecode3 = 0 ; | |
10574 | PyObject * obj0 = 0 ; | |
10575 | PyObject * obj1 = 0 ; | |
10576 | PyObject * obj2 = 0 ; | |
10577 | char * kwnames[] = { | |
10578 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
10579 | }; | |
10580 | ||
10581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10583 | if (!SWIG_IsOK(res1)) { | |
10584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10585 | } | |
10586 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10587 | { | |
10588 | arg2 = wxString_in_helper(obj1); | |
10589 | if (arg2 == NULL) SWIG_fail; | |
10590 | temp2 = true; | |
10591 | } | |
10592 | if (obj2) { | |
10593 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10594 | if (!SWIG_IsOK(ecode3)) { | |
10595 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
10596 | } | |
10597 | arg3 = static_cast< bool >(val3); | |
10598 | } | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
10602 | wxPyEndAllowThreads(__tstate); | |
10603 | if (PyErr_Occurred()) SWIG_fail; | |
10604 | } | |
10605 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10606 | { | |
10607 | if (temp2) | |
10608 | delete arg2; | |
10609 | } | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | { | |
10613 | if (temp2) | |
10614 | delete arg2; | |
10615 | } | |
10616 | return NULL; | |
d55e5bfc RD |
10617 | } |
10618 | ||
10619 | ||
1bd55598 RD |
10620 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10621 | PyObject *resultobj = 0; | |
10622 | size_t result; | |
10623 | ||
10624 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
10625 | { | |
10626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10627 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
10638 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10639 | PyObject *resultobj = 0; | |
10640 | size_t arg1 ; | |
10641 | wxFontEncoding result; | |
10642 | size_t val1 ; | |
10643 | int ecode1 = 0 ; | |
10644 | PyObject * obj0 = 0 ; | |
10645 | char * kwnames[] = { | |
10646 | (char *) "n", NULL | |
10647 | }; | |
10648 | ||
10649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
10650 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
10651 | if (!SWIG_IsOK(ecode1)) { | |
10652 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
10653 | } | |
10654 | arg1 = static_cast< size_t >(val1); | |
10655 | { | |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10657 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10662 | return resultobj; | |
10663 | fail: | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10669 | PyObject *resultobj = 0; | |
10670 | wxFontEncoding arg1 ; | |
10671 | wxString result; | |
10672 | int val1 ; | |
10673 | int ecode1 = 0 ; | |
10674 | PyObject * obj0 = 0 ; | |
10675 | char * kwnames[] = { | |
10676 | (char *) "encoding", NULL | |
10677 | }; | |
10678 | ||
10679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
10680 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10681 | if (!SWIG_IsOK(ecode1)) { | |
10682 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
10683 | } | |
10684 | arg1 = static_cast< wxFontEncoding >(val1); | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = wxFontMapper::GetEncodingName(arg1); | |
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
10690 | } | |
10691 | { | |
10692 | #if wxUSE_UNICODE | |
10693 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10694 | #else | |
10695 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10696 | #endif | |
10697 | } | |
10698 | return resultobj; | |
10699 | fail: | |
10700 | return NULL; | |
d55e5bfc RD |
10701 | } |
10702 | ||
10703 | ||
1bd55598 RD |
10704 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10705 | PyObject *resultobj = 0; | |
10706 | wxFontEncoding arg1 ; | |
10707 | wxString result; | |
10708 | int val1 ; | |
10709 | int ecode1 = 0 ; | |
10710 | PyObject * obj0 = 0 ; | |
10711 | char * kwnames[] = { | |
10712 | (char *) "encoding", NULL | |
10713 | }; | |
10714 | ||
10715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
10716 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10717 | if (!SWIG_IsOK(ecode1)) { | |
10718 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
10719 | } | |
10720 | arg1 = static_cast< wxFontEncoding >(val1); | |
10721 | { | |
10722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10723 | result = wxFontMapper::GetEncodingDescription(arg1); | |
10724 | wxPyEndAllowThreads(__tstate); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | } | |
10727 | { | |
10728 | #if wxUSE_UNICODE | |
10729 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10730 | #else | |
10731 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10732 | #endif | |
10733 | } | |
10734 | return resultobj; | |
10735 | fail: | |
10736 | return NULL; | |
d55e5bfc RD |
10737 | } |
10738 | ||
10739 | ||
1bd55598 RD |
10740 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10741 | PyObject *resultobj = 0; | |
10742 | wxString *arg1 = 0 ; | |
10743 | wxFontEncoding result; | |
10744 | bool temp1 = false ; | |
10745 | PyObject * obj0 = 0 ; | |
10746 | char * kwnames[] = { | |
10747 | (char *) "name", NULL | |
10748 | }; | |
10749 | ||
10750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
10751 | { | |
10752 | arg1 = wxString_in_helper(obj0); | |
10753 | if (arg1 == NULL) SWIG_fail; | |
10754 | temp1 = true; | |
10755 | } | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10763 | { | |
10764 | if (temp1) | |
10765 | delete arg1; | |
10766 | } | |
10767 | return resultobj; | |
10768 | fail: | |
10769 | { | |
10770 | if (temp1) | |
10771 | delete arg1; | |
10772 | } | |
10773 | return NULL; | |
d55e5bfc RD |
10774 | } |
10775 | ||
10776 | ||
1bd55598 RD |
10777 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10778 | PyObject *resultobj = 0; | |
10779 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10780 | wxString *arg2 = 0 ; | |
10781 | void *argp1 = 0 ; | |
10782 | int res1 = 0 ; | |
10783 | bool temp2 = false ; | |
10784 | PyObject * obj0 = 0 ; | |
10785 | PyObject * obj1 = 0 ; | |
10786 | char * kwnames[] = { | |
10787 | (char *) "self",(char *) "prefix", NULL | |
10788 | }; | |
10789 | ||
10790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
10791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10792 | if (!SWIG_IsOK(res1)) { | |
10793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10794 | } | |
10795 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10796 | { | |
10797 | arg2 = wxString_in_helper(obj1); | |
10798 | if (arg2 == NULL) SWIG_fail; | |
10799 | temp2 = true; | |
10800 | } | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | resultobj = SWIG_Py_Void(); | |
10808 | { | |
10809 | if (temp2) | |
10810 | delete arg2; | |
10811 | } | |
10812 | return resultobj; | |
10813 | fail: | |
10814 | { | |
10815 | if (temp2) | |
10816 | delete arg2; | |
10817 | } | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
10822 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10823 | PyObject *resultobj = 0; | |
10824 | wxString result; | |
10825 | ||
10826 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
10827 | { | |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | result = wxFontMapper::GetDefaultConfigPath(); | |
10830 | wxPyEndAllowThreads(__tstate); | |
10831 | if (PyErr_Occurred()) SWIG_fail; | |
10832 | } | |
10833 | { | |
10834 | #if wxUSE_UNICODE | |
10835 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10836 | #else | |
10837 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10838 | #endif | |
10839 | } | |
10840 | return resultobj; | |
10841 | fail: | |
10842 | return NULL; | |
10843 | } | |
10844 | ||
10845 | ||
10846 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10847 | PyObject *resultobj = 0; | |
10848 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10849 | wxFontEncoding arg2 ; | |
10850 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10851 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10852 | bool arg4 = (bool) true ; | |
10853 | PyObject *result = 0 ; | |
10854 | void *argp1 = 0 ; | |
10855 | int res1 = 0 ; | |
10856 | int val2 ; | |
10857 | int ecode2 = 0 ; | |
10858 | bool temp3 = false ; | |
10859 | bool val4 ; | |
10860 | int ecode4 = 0 ; | |
10861 | PyObject * obj0 = 0 ; | |
10862 | PyObject * obj1 = 0 ; | |
10863 | PyObject * obj2 = 0 ; | |
10864 | PyObject * obj3 = 0 ; | |
10865 | char * kwnames[] = { | |
10866 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
10867 | }; | |
10868 | ||
10869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10871 | if (!SWIG_IsOK(res1)) { | |
10872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10873 | } | |
10874 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10875 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10876 | if (!SWIG_IsOK(ecode2)) { | |
10877 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10878 | } | |
10879 | arg2 = static_cast< wxFontEncoding >(val2); | |
10880 | if (obj2) { | |
36ed4f51 | 10881 | { |
1bd55598 RD |
10882 | arg3 = wxString_in_helper(obj2); |
10883 | if (arg3 == NULL) SWIG_fail; | |
10884 | temp3 = true; | |
36ed4f51 | 10885 | } |
1bd55598 RD |
10886 | } |
10887 | if (obj3) { | |
10888 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
10889 | if (!SWIG_IsOK(ecode4)) { | |
10890 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
10891 | } | |
10892 | arg4 = static_cast< bool >(val4); | |
10893 | } | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | } | |
10900 | resultobj = result; | |
10901 | { | |
10902 | if (temp3) | |
10903 | delete arg3; | |
10904 | } | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | { | |
10908 | if (temp3) | |
10909 | delete arg3; | |
10910 | } | |
10911 | return NULL; | |
10912 | } | |
10913 | ||
10914 | ||
10915 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10916 | PyObject *resultobj = 0; | |
10917 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10918 | wxFontEncoding arg2 ; | |
10919 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10920 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10921 | bool result; | |
10922 | void *argp1 = 0 ; | |
10923 | int res1 = 0 ; | |
10924 | int val2 ; | |
10925 | int ecode2 = 0 ; | |
10926 | bool temp3 = false ; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | PyObject * obj1 = 0 ; | |
10929 | PyObject * obj2 = 0 ; | |
10930 | char * kwnames[] = { | |
10931 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
10932 | }; | |
10933 | ||
10934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10936 | if (!SWIG_IsOK(res1)) { | |
10937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10938 | } | |
10939 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10940 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10941 | if (!SWIG_IsOK(ecode2)) { | |
10942 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
10943 | } | |
10944 | arg2 = static_cast< wxFontEncoding >(val2); | |
10945 | if (obj2) { | |
36ed4f51 | 10946 | { |
1bd55598 RD |
10947 | arg3 = wxString_in_helper(obj2); |
10948 | if (arg3 == NULL) SWIG_fail; | |
10949 | temp3 = true; | |
36ed4f51 | 10950 | } |
1bd55598 RD |
10951 | } |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
10958 | { | |
10959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10960 | } | |
10961 | { | |
10962 | if (temp3) | |
10963 | delete arg3; | |
10964 | } | |
10965 | return resultobj; | |
10966 | fail: | |
10967 | { | |
10968 | if (temp3) | |
10969 | delete arg3; | |
10970 | } | |
10971 | return NULL; | |
10972 | } | |
10973 | ||
10974 | ||
10975 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10976 | PyObject *resultobj = 0; | |
10977 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
10978 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10979 | void *argp1 = 0 ; | |
10980 | int res1 = 0 ; | |
10981 | void *argp2 = 0 ; | |
10982 | int res2 = 0 ; | |
10983 | PyObject * obj0 = 0 ; | |
10984 | PyObject * obj1 = 0 ; | |
10985 | char * kwnames[] = { | |
10986 | (char *) "self",(char *) "parent", NULL | |
10987 | }; | |
10988 | ||
10989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
10991 | if (!SWIG_IsOK(res1)) { | |
10992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
10993 | } | |
10994 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
10995 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10996 | if (!SWIG_IsOK(res2)) { | |
10997 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10998 | } | |
10999 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11000 | { | |
11001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11002 | (arg1)->SetDialogParent(arg2); | |
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | resultobj = SWIG_Py_Void(); | |
11007 | return resultobj; | |
11008 | fail: | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
11013 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11014 | PyObject *resultobj = 0; | |
11015 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
11016 | wxString *arg2 = 0 ; | |
11017 | void *argp1 = 0 ; | |
11018 | int res1 = 0 ; | |
11019 | bool temp2 = false ; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | char * kwnames[] = { | |
11023 | (char *) "self",(char *) "title", NULL | |
11024 | }; | |
11025 | ||
11026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
11027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
11028 | if (!SWIG_IsOK(res1)) { | |
11029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
11030 | } | |
11031 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
11032 | { | |
11033 | arg2 = wxString_in_helper(obj1); | |
11034 | if (arg2 == NULL) SWIG_fail; | |
11035 | temp2 = true; | |
11036 | } | |
11037 | { | |
11038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11039 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
11040 | wxPyEndAllowThreads(__tstate); | |
11041 | if (PyErr_Occurred()) SWIG_fail; | |
11042 | } | |
11043 | resultobj = SWIG_Py_Void(); | |
11044 | { | |
11045 | if (temp2) | |
11046 | delete arg2; | |
11047 | } | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | { | |
11051 | if (temp2) | |
11052 | delete arg2; | |
11053 | } | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
11058 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11059 | PyObject *obj; | |
11060 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11061 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
11062 | return SWIG_Py_Void(); | |
11063 | } | |
11064 | ||
11065 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11066 | return SWIG_Python_InitShadowInstance(args); | |
11067 | } | |
11068 | ||
11069 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11070 | PyObject *resultobj = 0; | |
11071 | int arg1 ; | |
11072 | int arg2 ; | |
11073 | int arg3 ; | |
11074 | int arg4 ; | |
11075 | bool arg5 = (bool) false ; | |
11076 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
11077 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11078 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11079 | wxFont *result = 0 ; | |
11080 | int val1 ; | |
11081 | int ecode1 = 0 ; | |
11082 | int val2 ; | |
11083 | int ecode2 = 0 ; | |
11084 | int val3 ; | |
11085 | int ecode3 = 0 ; | |
11086 | int val4 ; | |
11087 | int ecode4 = 0 ; | |
11088 | bool val5 ; | |
11089 | int ecode5 = 0 ; | |
11090 | bool temp6 = false ; | |
11091 | int val7 ; | |
11092 | int ecode7 = 0 ; | |
11093 | PyObject * obj0 = 0 ; | |
11094 | PyObject * obj1 = 0 ; | |
11095 | PyObject * obj2 = 0 ; | |
11096 | PyObject * obj3 = 0 ; | |
11097 | PyObject * obj4 = 0 ; | |
11098 | PyObject * obj5 = 0 ; | |
11099 | PyObject * obj6 = 0 ; | |
11100 | char * kwnames[] = { | |
11101 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
11102 | }; | |
11103 | ||
11104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
11105 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11106 | if (!SWIG_IsOK(ecode1)) { | |
11107 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
11108 | } | |
11109 | arg1 = static_cast< int >(val1); | |
11110 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11111 | if (!SWIG_IsOK(ecode2)) { | |
11112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
11113 | } | |
11114 | arg2 = static_cast< int >(val2); | |
11115 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11116 | if (!SWIG_IsOK(ecode3)) { | |
11117 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
11118 | } | |
11119 | arg3 = static_cast< int >(val3); | |
11120 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11121 | if (!SWIG_IsOK(ecode4)) { | |
11122 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
11123 | } | |
11124 | arg4 = static_cast< int >(val4); | |
11125 | if (obj4) { | |
11126 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
11127 | if (!SWIG_IsOK(ecode5)) { | |
11128 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
11129 | } | |
11130 | arg5 = static_cast< bool >(val5); | |
11131 | } | |
11132 | if (obj5) { | |
d55e5bfc | 11133 | { |
1bd55598 RD |
11134 | arg6 = wxString_in_helper(obj5); |
11135 | if (arg6 == NULL) SWIG_fail; | |
11136 | temp6 = true; | |
d55e5bfc | 11137 | } |
1bd55598 RD |
11138 | } |
11139 | if (obj6) { | |
11140 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
11141 | if (!SWIG_IsOK(ecode7)) { | |
11142 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
11143 | } | |
11144 | arg7 = static_cast< wxFontEncoding >(val7); | |
11145 | } | |
11146 | { | |
11147 | if (!wxPyCheckForApp()) SWIG_fail; | |
11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11149 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
11150 | wxPyEndAllowThreads(__tstate); | |
11151 | if (PyErr_Occurred()) SWIG_fail; | |
11152 | } | |
11153 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
11154 | { | |
11155 | if (temp6) | |
11156 | delete arg6; | |
11157 | } | |
11158 | return resultobj; | |
11159 | fail: | |
11160 | { | |
11161 | if (temp6) | |
11162 | delete arg6; | |
11163 | } | |
11164 | return NULL; | |
d55e5bfc RD |
11165 | } |
11166 | ||
11167 | ||
1bd55598 RD |
11168 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11169 | PyObject *resultobj = 0; | |
11170 | wxFont *arg1 = (wxFont *) 0 ; | |
11171 | void *argp1 = 0 ; | |
11172 | int res1 = 0 ; | |
11173 | PyObject *swig_obj[1] ; | |
11174 | ||
11175 | if (!args) SWIG_fail; | |
11176 | swig_obj[0] = args; | |
11177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
11178 | if (!SWIG_IsOK(res1)) { | |
11179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
11180 | } | |
11181 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11182 | { | |
11183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11184 | delete arg1; | |
d55e5bfc | 11185 | |
1bd55598 RD |
11186 | wxPyEndAllowThreads(__tstate); |
11187 | if (PyErr_Occurred()) SWIG_fail; | |
11188 | } | |
11189 | resultobj = SWIG_Py_Void(); | |
11190 | return resultobj; | |
11191 | fail: | |
11192 | return NULL; | |
11193 | } | |
11194 | ||
11195 | ||
11196 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11197 | PyObject *resultobj = 0; | |
11198 | wxNativeFontInfo *arg1 = 0 ; | |
11199 | wxFont *result = 0 ; | |
11200 | void *argp1 = 0 ; | |
11201 | int res1 = 0 ; | |
11202 | PyObject * obj0 = 0 ; | |
11203 | char * kwnames[] = { | |
11204 | (char *) "info", NULL | |
11205 | }; | |
11206 | ||
11207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
11208 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
11209 | if (!SWIG_IsOK(res1)) { | |
11210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11211 | } | |
11212 | if (!argp1) { | |
11213 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
11214 | } | |
11215 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11216 | { | |
11217 | if (!wxPyCheckForApp()) SWIG_fail; | |
11218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11219 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
11220 | wxPyEndAllowThreads(__tstate); | |
11221 | if (PyErr_Occurred()) SWIG_fail; | |
11222 | } | |
11223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11224 | return resultobj; | |
11225 | fail: | |
11226 | return NULL; | |
d55e5bfc RD |
11227 | } |
11228 | ||
11229 | ||
1bd55598 RD |
11230 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11231 | PyObject *resultobj = 0; | |
11232 | wxString *arg1 = 0 ; | |
11233 | wxFont *result = 0 ; | |
11234 | bool temp1 = false ; | |
11235 | PyObject * obj0 = 0 ; | |
11236 | char * kwnames[] = { | |
11237 | (char *) "info", NULL | |
11238 | }; | |
11239 | ||
11240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
11241 | { | |
11242 | arg1 = wxString_in_helper(obj0); | |
11243 | if (arg1 == NULL) SWIG_fail; | |
11244 | temp1 = true; | |
11245 | } | |
11246 | { | |
11247 | if (!wxPyCheckForApp()) SWIG_fail; | |
11248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11249 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
11253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11254 | { | |
11255 | if (temp1) | |
11256 | delete arg1; | |
11257 | } | |
11258 | return resultobj; | |
11259 | fail: | |
11260 | { | |
11261 | if (temp1) | |
11262 | delete arg1; | |
11263 | } | |
11264 | return NULL; | |
11265 | } | |
11266 | ||
11267 | ||
11268 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11269 | PyObject *resultobj = 0; | |
11270 | int arg1 ; | |
11271 | wxFontFamily arg2 ; | |
11272 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
11273 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11274 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11275 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11276 | wxFont *result = 0 ; | |
11277 | int val1 ; | |
11278 | int ecode1 = 0 ; | |
11279 | int val2 ; | |
11280 | int ecode2 = 0 ; | |
11281 | int val3 ; | |
11282 | int ecode3 = 0 ; | |
11283 | bool temp4 = false ; | |
11284 | int val5 ; | |
11285 | int ecode5 = 0 ; | |
11286 | PyObject * obj0 = 0 ; | |
11287 | PyObject * obj1 = 0 ; | |
11288 | PyObject * obj2 = 0 ; | |
11289 | PyObject * obj3 = 0 ; | |
11290 | PyObject * obj4 = 0 ; | |
11291 | char * kwnames[] = { | |
11292 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
11293 | }; | |
11294 | ||
11295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11296 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11297 | if (!SWIG_IsOK(ecode1)) { | |
11298 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
11299 | } | |
11300 | arg1 = static_cast< int >(val1); | |
11301 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11302 | if (!SWIG_IsOK(ecode2)) { | |
11303 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
11304 | } | |
11305 | arg2 = static_cast< wxFontFamily >(val2); | |
11306 | if (obj2) { | |
11307 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11308 | if (!SWIG_IsOK(ecode3)) { | |
11309 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
11310 | } | |
11311 | arg3 = static_cast< int >(val3); | |
11312 | } | |
11313 | if (obj3) { | |
36ed4f51 | 11314 | { |
1bd55598 RD |
11315 | arg4 = wxString_in_helper(obj3); |
11316 | if (arg4 == NULL) SWIG_fail; | |
11317 | temp4 = true; | |
36ed4f51 | 11318 | } |
1bd55598 RD |
11319 | } |
11320 | if (obj4) { | |
11321 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11322 | if (!SWIG_IsOK(ecode5)) { | |
11323 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
11324 | } | |
11325 | arg5 = static_cast< wxFontEncoding >(val5); | |
11326 | } | |
11327 | { | |
11328 | if (!wxPyCheckForApp()) SWIG_fail; | |
11329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11330 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11335 | { | |
11336 | if (temp4) | |
11337 | delete arg4; | |
11338 | } | |
11339 | return resultobj; | |
11340 | fail: | |
11341 | { | |
11342 | if (temp4) | |
11343 | delete arg4; | |
11344 | } | |
11345 | return NULL; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11350 | PyObject *resultobj = 0; | |
11351 | wxSize *arg1 = 0 ; | |
11352 | int arg2 ; | |
11353 | int arg3 ; | |
11354 | int arg4 ; | |
11355 | bool arg5 = (bool) false ; | |
11356 | wxString const &arg6_defvalue = wxEmptyString ; | |
11357 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11358 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11359 | wxFont *result = 0 ; | |
11360 | wxSize temp1 ; | |
11361 | int val2 ; | |
11362 | int ecode2 = 0 ; | |
11363 | int val3 ; | |
11364 | int ecode3 = 0 ; | |
11365 | int val4 ; | |
11366 | int ecode4 = 0 ; | |
11367 | bool val5 ; | |
11368 | int ecode5 = 0 ; | |
11369 | bool temp6 = false ; | |
11370 | int val7 ; | |
11371 | int ecode7 = 0 ; | |
11372 | PyObject * obj0 = 0 ; | |
11373 | PyObject * obj1 = 0 ; | |
11374 | PyObject * obj2 = 0 ; | |
11375 | PyObject * obj3 = 0 ; | |
11376 | PyObject * obj4 = 0 ; | |
11377 | PyObject * obj5 = 0 ; | |
11378 | PyObject * obj6 = 0 ; | |
11379 | char * kwnames[] = { | |
11380 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
11381 | }; | |
11382 | ||
11383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
11384 | { | |
11385 | arg1 = &temp1; | |
11386 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
11387 | } | |
11388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11389 | if (!SWIG_IsOK(ecode2)) { | |
11390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
11391 | } | |
11392 | arg2 = static_cast< int >(val2); | |
11393 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11394 | if (!SWIG_IsOK(ecode3)) { | |
11395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
11396 | } | |
11397 | arg3 = static_cast< int >(val3); | |
11398 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11399 | if (!SWIG_IsOK(ecode4)) { | |
11400 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
11401 | } | |
11402 | arg4 = static_cast< int >(val4); | |
11403 | if (obj4) { | |
11404 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
11405 | if (!SWIG_IsOK(ecode5)) { | |
11406 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
11407 | } | |
11408 | arg5 = static_cast< bool >(val5); | |
11409 | } | |
11410 | if (obj5) { | |
d55e5bfc | 11411 | { |
1bd55598 RD |
11412 | arg6 = wxString_in_helper(obj5); |
11413 | if (arg6 == NULL) SWIG_fail; | |
11414 | temp6 = true; | |
d55e5bfc | 11415 | } |
1bd55598 RD |
11416 | } |
11417 | if (obj6) { | |
11418 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
11419 | if (!SWIG_IsOK(ecode7)) { | |
11420 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
11421 | } | |
11422 | arg7 = static_cast< wxFontEncoding >(val7); | |
11423 | } | |
11424 | { | |
11425 | if (!wxPyCheckForApp()) SWIG_fail; | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
11428 | wxPyEndAllowThreads(__tstate); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11432 | { | |
11433 | if (temp6) | |
11434 | delete arg6; | |
11435 | } | |
11436 | return resultobj; | |
11437 | fail: | |
11438 | { | |
11439 | if (temp6) | |
11440 | delete arg6; | |
11441 | } | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj = 0; | |
11448 | wxSize *arg1 = 0 ; | |
11449 | wxFontFamily arg2 ; | |
11450 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
11451 | wxString const &arg4_defvalue = wxEmptyString ; | |
11452 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11453 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
11454 | wxFont *result = 0 ; | |
11455 | wxSize temp1 ; | |
11456 | int val2 ; | |
11457 | int ecode2 = 0 ; | |
11458 | int val3 ; | |
11459 | int ecode3 = 0 ; | |
11460 | bool temp4 = false ; | |
11461 | int val5 ; | |
11462 | int ecode5 = 0 ; | |
11463 | PyObject * obj0 = 0 ; | |
11464 | PyObject * obj1 = 0 ; | |
11465 | PyObject * obj2 = 0 ; | |
11466 | PyObject * obj3 = 0 ; | |
11467 | PyObject * obj4 = 0 ; | |
11468 | char * kwnames[] = { | |
11469 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
11470 | }; | |
11471 | ||
11472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11473 | { | |
11474 | arg1 = &temp1; | |
11475 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
11476 | } | |
11477 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11478 | if (!SWIG_IsOK(ecode2)) { | |
11479 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
11480 | } | |
11481 | arg2 = static_cast< wxFontFamily >(val2); | |
11482 | if (obj2) { | |
11483 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11484 | if (!SWIG_IsOK(ecode3)) { | |
11485 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
11486 | } | |
11487 | arg3 = static_cast< int >(val3); | |
11488 | } | |
11489 | if (obj3) { | |
36ed4f51 | 11490 | { |
1bd55598 RD |
11491 | arg4 = wxString_in_helper(obj3); |
11492 | if (arg4 == NULL) SWIG_fail; | |
11493 | temp4 = true; | |
36ed4f51 | 11494 | } |
1bd55598 RD |
11495 | } |
11496 | if (obj4) { | |
11497 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11498 | if (!SWIG_IsOK(ecode5)) { | |
11499 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
11500 | } | |
11501 | arg5 = static_cast< wxFontEncoding >(val5); | |
11502 | } | |
11503 | { | |
11504 | if (!wxPyCheckForApp()) SWIG_fail; | |
11505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11506 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
11507 | wxPyEndAllowThreads(__tstate); | |
11508 | if (PyErr_Occurred()) SWIG_fail; | |
11509 | } | |
11510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
11511 | { | |
11512 | if (temp4) | |
11513 | delete arg4; | |
11514 | } | |
11515 | return resultobj; | |
11516 | fail: | |
11517 | { | |
11518 | if (temp4) | |
11519 | delete arg4; | |
11520 | } | |
11521 | return NULL; | |
d55e5bfc RD |
11522 | } |
11523 | ||
11524 | ||
1bd55598 RD |
11525 | SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11526 | PyObject *resultobj = 0; | |
11527 | wxFont *arg1 = (wxFont *) 0 ; | |
11528 | bool result; | |
11529 | void *argp1 = 0 ; | |
11530 | int res1 = 0 ; | |
11531 | PyObject *swig_obj[1] ; | |
11532 | ||
11533 | if (!args) SWIG_fail; | |
11534 | swig_obj[0] = args; | |
11535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11536 | if (!SWIG_IsOK(res1)) { | |
11537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11538 | } | |
11539 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11540 | { | |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | result = (bool)((wxFont const *)arg1)->Ok(); | |
11543 | wxPyEndAllowThreads(__tstate); | |
11544 | if (PyErr_Occurred()) SWIG_fail; | |
11545 | } | |
11546 | { | |
11547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11548 | } | |
11549 | return resultobj; | |
11550 | fail: | |
11551 | return NULL; | |
11552 | } | |
11553 | ||
11554 | ||
11555 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11556 | PyObject *resultobj = 0; | |
11557 | wxFont *arg1 = (wxFont *) 0 ; | |
11558 | wxFont *arg2 = (wxFont *) 0 ; | |
11559 | bool result; | |
11560 | void *argp1 = 0 ; | |
11561 | int res1 = 0 ; | |
11562 | void *argp2 = 0 ; | |
11563 | int res2 = 0 ; | |
11564 | PyObject * obj0 = 0 ; | |
11565 | PyObject * obj1 = 0 ; | |
11566 | char * kwnames[] = { | |
11567 | (char *) "self",(char *) "other", NULL | |
11568 | }; | |
11569 | ||
11570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
11571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11572 | if (!SWIG_IsOK(res1)) { | |
11573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
11574 | } | |
11575 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11576 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11577 | if (!SWIG_IsOK(res2)) { | |
11578 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
11579 | } | |
11580 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
11581 | { | |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
11584 | wxPyEndAllowThreads(__tstate); | |
11585 | if (PyErr_Occurred()) SWIG_fail; | |
11586 | } | |
11587 | { | |
11588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11589 | } | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | return NULL; | |
11593 | } | |
11594 | ||
11595 | ||
11596 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11597 | PyObject *resultobj = 0; | |
11598 | wxFont *arg1 = (wxFont *) 0 ; | |
11599 | wxFont *arg2 = (wxFont *) 0 ; | |
11600 | bool result; | |
11601 | void *argp1 = 0 ; | |
11602 | int res1 = 0 ; | |
11603 | void *argp2 = 0 ; | |
11604 | int res2 = 0 ; | |
11605 | PyObject * obj0 = 0 ; | |
11606 | PyObject * obj1 = 0 ; | |
11607 | char * kwnames[] = { | |
11608 | (char *) "self",(char *) "other", NULL | |
11609 | }; | |
11610 | ||
11611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
11612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11613 | if (!SWIG_IsOK(res1)) { | |
11614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
11615 | } | |
11616 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11617 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11618 | if (!SWIG_IsOK(res2)) { | |
11619 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
11620 | } | |
11621 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
11622 | { | |
11623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11624 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
11625 | wxPyEndAllowThreads(__tstate); | |
11626 | if (PyErr_Occurred()) SWIG_fail; | |
11627 | } | |
11628 | { | |
11629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11630 | } | |
11631 | return resultobj; | |
11632 | fail: | |
11633 | return NULL; | |
d55e5bfc RD |
11634 | } |
11635 | ||
11636 | ||
1bd55598 RD |
11637 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11638 | PyObject *resultobj = 0; | |
11639 | wxFont *arg1 = (wxFont *) 0 ; | |
11640 | int result; | |
11641 | void *argp1 = 0 ; | |
11642 | int res1 = 0 ; | |
11643 | PyObject *swig_obj[1] ; | |
11644 | ||
11645 | if (!args) SWIG_fail; | |
11646 | swig_obj[0] = args; | |
11647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11648 | if (!SWIG_IsOK(res1)) { | |
11649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11650 | } | |
11651 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11652 | { | |
11653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11654 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
11658 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11659 | return resultobj; | |
11660 | fail: | |
11661 | return NULL; | |
d55e5bfc RD |
11662 | } |
11663 | ||
11664 | ||
1bd55598 RD |
11665 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11666 | PyObject *resultobj = 0; | |
11667 | wxFont *arg1 = (wxFont *) 0 ; | |
11668 | wxSize result; | |
11669 | void *argp1 = 0 ; | |
11670 | int res1 = 0 ; | |
11671 | PyObject *swig_obj[1] ; | |
11672 | ||
11673 | if (!args) SWIG_fail; | |
11674 | swig_obj[0] = args; | |
11675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11676 | if (!SWIG_IsOK(res1)) { | |
11677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11678 | } | |
11679 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11680 | { | |
11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11682 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
11683 | wxPyEndAllowThreads(__tstate); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
11686 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
11687 | return resultobj; | |
11688 | fail: | |
11689 | return NULL; | |
d55e5bfc RD |
11690 | } |
11691 | ||
11692 | ||
1bd55598 RD |
11693 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11694 | PyObject *resultobj = 0; | |
11695 | wxFont *arg1 = (wxFont *) 0 ; | |
11696 | bool result; | |
11697 | void *argp1 = 0 ; | |
11698 | int res1 = 0 ; | |
11699 | PyObject *swig_obj[1] ; | |
11700 | ||
11701 | if (!args) SWIG_fail; | |
11702 | swig_obj[0] = args; | |
11703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11704 | if (!SWIG_IsOK(res1)) { | |
11705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11706 | } | |
11707 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11708 | { | |
11709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11710 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | { | |
11715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11716 | } | |
11717 | return resultobj; | |
11718 | fail: | |
11719 | return NULL; | |
d55e5bfc RD |
11720 | } |
11721 | ||
11722 | ||
1bd55598 RD |
11723 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11724 | PyObject *resultobj = 0; | |
11725 | wxFont *arg1 = (wxFont *) 0 ; | |
11726 | int result; | |
11727 | void *argp1 = 0 ; | |
11728 | int res1 = 0 ; | |
11729 | PyObject *swig_obj[1] ; | |
11730 | ||
11731 | if (!args) SWIG_fail; | |
11732 | swig_obj[0] = args; | |
11733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11734 | if (!SWIG_IsOK(res1)) { | |
11735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11736 | } | |
11737 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11738 | { | |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
11741 | wxPyEndAllowThreads(__tstate); | |
11742 | if (PyErr_Occurred()) SWIG_fail; | |
11743 | } | |
11744 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11745 | return resultobj; | |
11746 | fail: | |
11747 | return NULL; | |
d55e5bfc RD |
11748 | } |
11749 | ||
11750 | ||
1bd55598 RD |
11751 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11752 | PyObject *resultobj = 0; | |
11753 | wxFont *arg1 = (wxFont *) 0 ; | |
11754 | int result; | |
11755 | void *argp1 = 0 ; | |
11756 | int res1 = 0 ; | |
11757 | PyObject *swig_obj[1] ; | |
11758 | ||
11759 | if (!args) SWIG_fail; | |
11760 | swig_obj[0] = args; | |
11761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11762 | if (!SWIG_IsOK(res1)) { | |
11763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11764 | } | |
11765 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
d55e5bfc RD |
11776 | } |
11777 | ||
11778 | ||
1bd55598 RD |
11779 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11780 | PyObject *resultobj = 0; | |
11781 | wxFont *arg1 = (wxFont *) 0 ; | |
11782 | int result; | |
11783 | void *argp1 = 0 ; | |
11784 | int res1 = 0 ; | |
11785 | PyObject *swig_obj[1] ; | |
11786 | ||
11787 | if (!args) SWIG_fail; | |
11788 | swig_obj[0] = args; | |
11789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11790 | if (!SWIG_IsOK(res1)) { | |
11791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11792 | } | |
11793 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11794 | { | |
11795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11796 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
d55e5bfc RD |
11804 | } |
11805 | ||
11806 | ||
1bd55598 RD |
11807 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11808 | PyObject *resultobj = 0; | |
11809 | wxFont *arg1 = (wxFont *) 0 ; | |
11810 | bool result; | |
11811 | void *argp1 = 0 ; | |
11812 | int res1 = 0 ; | |
11813 | PyObject *swig_obj[1] ; | |
11814 | ||
11815 | if (!args) SWIG_fail; | |
11816 | swig_obj[0] = args; | |
11817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11818 | if (!SWIG_IsOK(res1)) { | |
11819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11820 | } | |
11821 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11822 | { | |
11823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11824 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
11825 | wxPyEndAllowThreads(__tstate); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | } | |
11828 | { | |
11829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11830 | } | |
11831 | return resultobj; | |
11832 | fail: | |
11833 | return NULL; | |
d55e5bfc RD |
11834 | } |
11835 | ||
11836 | ||
1bd55598 RD |
11837 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11838 | PyObject *resultobj = 0; | |
11839 | wxFont *arg1 = (wxFont *) 0 ; | |
11840 | wxString result; | |
11841 | void *argp1 = 0 ; | |
11842 | int res1 = 0 ; | |
11843 | PyObject *swig_obj[1] ; | |
11844 | ||
11845 | if (!args) SWIG_fail; | |
11846 | swig_obj[0] = args; | |
11847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11848 | if (!SWIG_IsOK(res1)) { | |
11849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11850 | } | |
11851 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | result = ((wxFont const *)arg1)->GetFaceName(); | |
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | { | |
11859 | #if wxUSE_UNICODE | |
11860 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11861 | #else | |
11862 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11863 | #endif | |
11864 | } | |
11865 | return resultobj; | |
11866 | fail: | |
11867 | return NULL; | |
d55e5bfc RD |
11868 | } |
11869 | ||
11870 | ||
1bd55598 RD |
11871 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11872 | PyObject *resultobj = 0; | |
11873 | wxFont *arg1 = (wxFont *) 0 ; | |
11874 | wxFontEncoding result; | |
11875 | void *argp1 = 0 ; | |
11876 | int res1 = 0 ; | |
11877 | PyObject *swig_obj[1] ; | |
11878 | ||
11879 | if (!args) SWIG_fail; | |
11880 | swig_obj[0] = args; | |
11881 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11882 | if (!SWIG_IsOK(res1)) { | |
11883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11884 | } | |
11885 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11886 | { | |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11888 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11893 | return resultobj; | |
11894 | fail: | |
11895 | return NULL; | |
d55e5bfc RD |
11896 | } |
11897 | ||
11898 | ||
1bd55598 RD |
11899 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11900 | PyObject *resultobj = 0; | |
11901 | wxFont *arg1 = (wxFont *) 0 ; | |
11902 | wxNativeFontInfo *result = 0 ; | |
11903 | void *argp1 = 0 ; | |
11904 | int res1 = 0 ; | |
11905 | PyObject *swig_obj[1] ; | |
11906 | ||
11907 | if (!args) SWIG_fail; | |
11908 | swig_obj[0] = args; | |
11909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11910 | if (!SWIG_IsOK(res1)) { | |
11911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11912 | } | |
11913 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11914 | { | |
11915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11916 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
11917 | wxPyEndAllowThreads(__tstate); | |
11918 | if (PyErr_Occurred()) SWIG_fail; | |
11919 | } | |
11920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11921 | return resultobj; | |
11922 | fail: | |
11923 | return NULL; | |
d55e5bfc RD |
11924 | } |
11925 | ||
11926 | ||
1bd55598 RD |
11927 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11928 | PyObject *resultobj = 0; | |
11929 | wxFont *arg1 = (wxFont *) 0 ; | |
11930 | bool result; | |
11931 | void *argp1 = 0 ; | |
11932 | int res1 = 0 ; | |
11933 | PyObject *swig_obj[1] ; | |
11934 | ||
11935 | if (!args) SWIG_fail; | |
11936 | swig_obj[0] = args; | |
11937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11938 | if (!SWIG_IsOK(res1)) { | |
11939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11940 | } | |
11941 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11942 | { | |
11943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11944 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | { | |
11949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11950 | } | |
11951 | return resultobj; | |
11952 | fail: | |
11953 | return NULL; | |
d55e5bfc RD |
11954 | } |
11955 | ||
11956 | ||
1bd55598 RD |
11957 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11958 | PyObject *resultobj = 0; | |
11959 | wxFont *arg1 = (wxFont *) 0 ; | |
11960 | wxString result; | |
11961 | void *argp1 = 0 ; | |
11962 | int res1 = 0 ; | |
11963 | PyObject *swig_obj[1] ; | |
11964 | ||
11965 | if (!args) SWIG_fail; | |
11966 | swig_obj[0] = args; | |
11967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
11968 | if (!SWIG_IsOK(res1)) { | |
11969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
11970 | } | |
11971 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
11972 | { | |
11973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11974 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | { | |
11979 | #if wxUSE_UNICODE | |
11980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11981 | #else | |
11982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11983 | #endif | |
11984 | } | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | return NULL; | |
d55e5bfc RD |
11988 | } |
11989 | ||
11990 | ||
1bd55598 RD |
11991 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11992 | PyObject *resultobj = 0; | |
11993 | wxFont *arg1 = (wxFont *) 0 ; | |
11994 | wxString result; | |
11995 | void *argp1 = 0 ; | |
11996 | int res1 = 0 ; | |
11997 | PyObject *swig_obj[1] ; | |
11998 | ||
11999 | if (!args) SWIG_fail; | |
12000 | swig_obj[0] = args; | |
12001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12002 | if (!SWIG_IsOK(res1)) { | |
12003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12004 | } | |
12005 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | { | |
12013 | #if wxUSE_UNICODE | |
12014 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12015 | #else | |
12016 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12017 | #endif | |
12018 | } | |
12019 | return resultobj; | |
12020 | fail: | |
12021 | return NULL; | |
12022 | } | |
12023 | ||
12024 | ||
12025 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12026 | PyObject *resultobj = 0; | |
12027 | wxFont *arg1 = (wxFont *) 0 ; | |
12028 | int arg2 ; | |
12029 | void *argp1 = 0 ; | |
12030 | int res1 = 0 ; | |
12031 | int val2 ; | |
12032 | int ecode2 = 0 ; | |
12033 | PyObject * obj0 = 0 ; | |
12034 | PyObject * obj1 = 0 ; | |
12035 | char * kwnames[] = { | |
12036 | (char *) "self",(char *) "pointSize", NULL | |
12037 | }; | |
12038 | ||
12039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12041 | if (!SWIG_IsOK(res1)) { | |
12042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12043 | } | |
12044 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12046 | if (!SWIG_IsOK(ecode2)) { | |
12047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12048 | } | |
12049 | arg2 = static_cast< int >(val2); | |
12050 | { | |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12052 | (arg1)->SetPointSize(arg2); | |
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | resultobj = SWIG_Py_Void(); | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
12063 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12064 | PyObject *resultobj = 0; | |
12065 | wxFont *arg1 = (wxFont *) 0 ; | |
12066 | wxSize *arg2 = 0 ; | |
12067 | void *argp1 = 0 ; | |
12068 | int res1 = 0 ; | |
12069 | wxSize temp2 ; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | PyObject * obj1 = 0 ; | |
12072 | char * kwnames[] = { | |
12073 | (char *) "self",(char *) "pixelSize", NULL | |
12074 | }; | |
12075 | ||
12076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12078 | if (!SWIG_IsOK(res1)) { | |
12079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12080 | } | |
12081 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12082 | { | |
12083 | arg2 = &temp2; | |
12084 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12085 | } | |
12086 | { | |
12087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12088 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
12089 | wxPyEndAllowThreads(__tstate); | |
12090 | if (PyErr_Occurred()) SWIG_fail; | |
12091 | } | |
12092 | resultobj = SWIG_Py_Void(); | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj = 0; | |
12101 | wxFont *arg1 = (wxFont *) 0 ; | |
12102 | int arg2 ; | |
12103 | void *argp1 = 0 ; | |
12104 | int res1 = 0 ; | |
12105 | int val2 ; | |
12106 | int ecode2 = 0 ; | |
12107 | PyObject * obj0 = 0 ; | |
12108 | PyObject * obj1 = 0 ; | |
12109 | char * kwnames[] = { | |
12110 | (char *) "self",(char *) "family", NULL | |
12111 | }; | |
12112 | ||
12113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12115 | if (!SWIG_IsOK(res1)) { | |
12116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12117 | } | |
12118 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12119 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12120 | if (!SWIG_IsOK(ecode2)) { | |
12121 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
12122 | } | |
12123 | arg2 = static_cast< int >(val2); | |
12124 | { | |
12125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12126 | (arg1)->SetFamily(arg2); | |
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | resultobj = SWIG_Py_Void(); | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj = 0; | |
12139 | wxFont *arg1 = (wxFont *) 0 ; | |
12140 | int arg2 ; | |
12141 | void *argp1 = 0 ; | |
12142 | int res1 = 0 ; | |
12143 | int val2 ; | |
12144 | int ecode2 = 0 ; | |
12145 | PyObject * obj0 = 0 ; | |
12146 | PyObject * obj1 = 0 ; | |
12147 | char * kwnames[] = { | |
12148 | (char *) "self",(char *) "style", NULL | |
12149 | }; | |
12150 | ||
12151 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12152 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12153 | if (!SWIG_IsOK(res1)) { | |
12154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12155 | } | |
12156 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12157 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12158 | if (!SWIG_IsOK(ecode2)) { | |
12159 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
12160 | } | |
12161 | arg2 = static_cast< int >(val2); | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | (arg1)->SetStyle(arg2); | |
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
12168 | resultobj = SWIG_Py_Void(); | |
12169 | return resultobj; | |
12170 | fail: | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj = 0; | |
12177 | wxFont *arg1 = (wxFont *) 0 ; | |
12178 | int arg2 ; | |
12179 | void *argp1 = 0 ; | |
12180 | int res1 = 0 ; | |
12181 | int val2 ; | |
12182 | int ecode2 = 0 ; | |
12183 | PyObject * obj0 = 0 ; | |
12184 | PyObject * obj1 = 0 ; | |
12185 | char * kwnames[] = { | |
12186 | (char *) "self",(char *) "weight", NULL | |
12187 | }; | |
12188 | ||
12189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12191 | if (!SWIG_IsOK(res1)) { | |
12192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12193 | } | |
12194 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12195 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12196 | if (!SWIG_IsOK(ecode2)) { | |
12197 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
12198 | } | |
12199 | arg2 = static_cast< int >(val2); | |
12200 | { | |
12201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12202 | (arg1)->SetWeight(arg2); | |
12203 | wxPyEndAllowThreads(__tstate); | |
12204 | if (PyErr_Occurred()) SWIG_fail; | |
12205 | } | |
12206 | resultobj = SWIG_Py_Void(); | |
12207 | return resultobj; | |
12208 | fail: | |
12209 | return NULL; | |
12210 | } | |
12211 | ||
12212 | ||
12213 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12214 | PyObject *resultobj = 0; | |
12215 | wxFont *arg1 = (wxFont *) 0 ; | |
12216 | wxString *arg2 = 0 ; | |
704eda0c | 12217 | bool result; |
1bd55598 RD |
12218 | void *argp1 = 0 ; |
12219 | int res1 = 0 ; | |
12220 | bool temp2 = false ; | |
12221 | PyObject * obj0 = 0 ; | |
12222 | PyObject * obj1 = 0 ; | |
12223 | char * kwnames[] = { | |
12224 | (char *) "self",(char *) "faceName", NULL | |
12225 | }; | |
12226 | ||
12227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12229 | if (!SWIG_IsOK(res1)) { | |
12230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12231 | } | |
12232 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12233 | { | |
12234 | arg2 = wxString_in_helper(obj1); | |
12235 | if (arg2 == NULL) SWIG_fail; | |
12236 | temp2 = true; | |
12237 | } | |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12240 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
1bd55598 RD |
12241 | wxPyEndAllowThreads(__tstate); |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
704eda0c RD |
12244 | { |
12245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12246 | } | |
1bd55598 RD |
12247 | { |
12248 | if (temp2) | |
12249 | delete arg2; | |
12250 | } | |
12251 | return resultobj; | |
12252 | fail: | |
12253 | { | |
12254 | if (temp2) | |
12255 | delete arg2; | |
12256 | } | |
12257 | return NULL; | |
12258 | } | |
12259 | ||
12260 | ||
12261 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12262 | PyObject *resultobj = 0; | |
12263 | wxFont *arg1 = (wxFont *) 0 ; | |
12264 | bool arg2 ; | |
12265 | void *argp1 = 0 ; | |
12266 | int res1 = 0 ; | |
12267 | bool val2 ; | |
12268 | int ecode2 = 0 ; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | PyObject * obj1 = 0 ; | |
12271 | char * kwnames[] = { | |
12272 | (char *) "self",(char *) "underlined", NULL | |
12273 | }; | |
12274 | ||
12275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12277 | if (!SWIG_IsOK(res1)) { | |
12278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12279 | } | |
12280 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12281 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12282 | if (!SWIG_IsOK(ecode2)) { | |
12283 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12284 | } | |
12285 | arg2 = static_cast< bool >(val2); | |
12286 | { | |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | (arg1)->SetUnderlined(arg2); | |
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
12292 | resultobj = SWIG_Py_Void(); | |
12293 | return resultobj; | |
12294 | fail: | |
12295 | return NULL; | |
12296 | } | |
12297 | ||
12298 | ||
12299 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12300 | PyObject *resultobj = 0; | |
12301 | wxFont *arg1 = (wxFont *) 0 ; | |
12302 | wxFontEncoding arg2 ; | |
12303 | void *argp1 = 0 ; | |
12304 | int res1 = 0 ; | |
12305 | int val2 ; | |
12306 | int ecode2 = 0 ; | |
12307 | PyObject * obj0 = 0 ; | |
12308 | PyObject * obj1 = 0 ; | |
12309 | char * kwnames[] = { | |
12310 | (char *) "self",(char *) "encoding", NULL | |
12311 | }; | |
12312 | ||
12313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12315 | if (!SWIG_IsOK(res1)) { | |
12316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12317 | } | |
12318 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12319 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12320 | if (!SWIG_IsOK(ecode2)) { | |
12321 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12322 | } | |
12323 | arg2 = static_cast< wxFontEncoding >(val2); | |
12324 | { | |
12325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12326 | (arg1)->SetEncoding(arg2); | |
12327 | wxPyEndAllowThreads(__tstate); | |
12328 | if (PyErr_Occurred()) SWIG_fail; | |
12329 | } | |
12330 | resultobj = SWIG_Py_Void(); | |
12331 | return resultobj; | |
12332 | fail: | |
12333 | return NULL; | |
12334 | } | |
12335 | ||
12336 | ||
12337 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12338 | PyObject *resultobj = 0; | |
12339 | wxFont *arg1 = (wxFont *) 0 ; | |
12340 | wxNativeFontInfo *arg2 = 0 ; | |
12341 | void *argp1 = 0 ; | |
12342 | int res1 = 0 ; | |
12343 | void *argp2 = 0 ; | |
12344 | int res2 = 0 ; | |
12345 | PyObject * obj0 = 0 ; | |
12346 | PyObject * obj1 = 0 ; | |
12347 | char * kwnames[] = { | |
12348 | (char *) "self",(char *) "info", NULL | |
12349 | }; | |
12350 | ||
12351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
12352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12353 | if (!SWIG_IsOK(res1)) { | |
12354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12355 | } | |
12356 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12357 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
12358 | if (!SWIG_IsOK(res2)) { | |
12359 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
12360 | } | |
12361 | if (!argp2) { | |
12362 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
12363 | } | |
12364 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
12365 | { | |
12366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12367 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | resultobj = SWIG_Py_Void(); | |
12372 | return resultobj; | |
12373 | fail: | |
12374 | return NULL; | |
12375 | } | |
12376 | ||
12377 | ||
12378 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12379 | PyObject *resultobj = 0; | |
12380 | wxFont *arg1 = (wxFont *) 0 ; | |
12381 | wxString *arg2 = 0 ; | |
704eda0c | 12382 | bool result; |
1bd55598 RD |
12383 | void *argp1 = 0 ; |
12384 | int res1 = 0 ; | |
12385 | bool temp2 = false ; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | PyObject * obj1 = 0 ; | |
12388 | char * kwnames[] = { | |
12389 | (char *) "self",(char *) "info", NULL | |
12390 | }; | |
12391 | ||
12392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12394 | if (!SWIG_IsOK(res1)) { | |
12395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12396 | } | |
12397 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12398 | { | |
12399 | arg2 = wxString_in_helper(obj1); | |
12400 | if (arg2 == NULL) SWIG_fail; | |
12401 | temp2 = true; | |
12402 | } | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12405 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
1bd55598 RD |
12406 | wxPyEndAllowThreads(__tstate); |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
704eda0c RD |
12409 | { |
12410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12411 | } | |
1bd55598 RD |
12412 | { |
12413 | if (temp2) | |
12414 | delete arg2; | |
12415 | } | |
12416 | return resultobj; | |
12417 | fail: | |
12418 | { | |
12419 | if (temp2) | |
12420 | delete arg2; | |
12421 | } | |
12422 | return NULL; | |
d55e5bfc RD |
12423 | } |
12424 | ||
12425 | ||
1bd55598 RD |
12426 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12427 | PyObject *resultobj = 0; | |
12428 | wxFont *arg1 = (wxFont *) 0 ; | |
12429 | wxString *arg2 = 0 ; | |
704eda0c | 12430 | bool result; |
1bd55598 RD |
12431 | void *argp1 = 0 ; |
12432 | int res1 = 0 ; | |
12433 | bool temp2 = false ; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | PyObject * obj1 = 0 ; | |
12436 | char * kwnames[] = { | |
12437 | (char *) "self",(char *) "info", NULL | |
12438 | }; | |
12439 | ||
12440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
12441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12442 | if (!SWIG_IsOK(res1)) { | |
12443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12444 | } | |
12445 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12446 | { | |
12447 | arg2 = wxString_in_helper(obj1); | |
12448 | if (arg2 == NULL) SWIG_fail; | |
12449 | temp2 = true; | |
12450 | } | |
12451 | { | |
12452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12453 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
1bd55598 RD |
12454 | wxPyEndAllowThreads(__tstate); |
12455 | if (PyErr_Occurred()) SWIG_fail; | |
12456 | } | |
704eda0c RD |
12457 | { |
12458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12459 | } | |
1bd55598 RD |
12460 | { |
12461 | if (temp2) | |
12462 | delete arg2; | |
12463 | } | |
12464 | return resultobj; | |
12465 | fail: | |
12466 | { | |
12467 | if (temp2) | |
12468 | delete arg2; | |
12469 | } | |
12470 | return NULL; | |
d55e5bfc RD |
12471 | } |
12472 | ||
12473 | ||
1bd55598 RD |
12474 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12475 | PyObject *resultobj = 0; | |
12476 | wxFont *arg1 = (wxFont *) 0 ; | |
12477 | wxString result; | |
12478 | void *argp1 = 0 ; | |
12479 | int res1 = 0 ; | |
12480 | PyObject *swig_obj[1] ; | |
12481 | ||
12482 | if (!args) SWIG_fail; | |
12483 | swig_obj[0] = args; | |
12484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12485 | if (!SWIG_IsOK(res1)) { | |
12486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12487 | } | |
12488 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12489 | { | |
12490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12491 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
12495 | { | |
12496 | #if wxUSE_UNICODE | |
12497 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12498 | #else | |
12499 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12500 | #endif | |
12501 | } | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | return NULL; | |
d55e5bfc RD |
12505 | } |
12506 | ||
12507 | ||
1bd55598 RD |
12508 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12509 | PyObject *resultobj = 0; | |
12510 | wxFont *arg1 = (wxFont *) 0 ; | |
12511 | wxString result; | |
12512 | void *argp1 = 0 ; | |
12513 | int res1 = 0 ; | |
12514 | PyObject *swig_obj[1] ; | |
12515 | ||
12516 | if (!args) SWIG_fail; | |
12517 | swig_obj[0] = args; | |
12518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12519 | if (!SWIG_IsOK(res1)) { | |
12520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12521 | } | |
12522 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12523 | { | |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12525 | result = ((wxFont const *)arg1)->GetStyleString(); | |
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | { | |
12530 | #if wxUSE_UNICODE | |
12531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12532 | #else | |
12533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12534 | #endif | |
12535 | } | |
12536 | return resultobj; | |
12537 | fail: | |
12538 | return NULL; | |
d55e5bfc RD |
12539 | } |
12540 | ||
12541 | ||
1bd55598 RD |
12542 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12543 | PyObject *resultobj = 0; | |
12544 | wxFont *arg1 = (wxFont *) 0 ; | |
12545 | wxString result; | |
12546 | void *argp1 = 0 ; | |
12547 | int res1 = 0 ; | |
12548 | PyObject *swig_obj[1] ; | |
12549 | ||
12550 | if (!args) SWIG_fail; | |
12551 | swig_obj[0] = args; | |
12552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12553 | if (!SWIG_IsOK(res1)) { | |
12554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12555 | } | |
12556 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12557 | { | |
12558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12559 | result = ((wxFont const *)arg1)->GetWeightString(); | |
12560 | wxPyEndAllowThreads(__tstate); | |
12561 | if (PyErr_Occurred()) SWIG_fail; | |
12562 | } | |
12563 | { | |
12564 | #if wxUSE_UNICODE | |
12565 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12566 | #else | |
12567 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12568 | #endif | |
12569 | } | |
12570 | return resultobj; | |
12571 | fail: | |
12572 | return NULL; | |
12573 | } | |
12574 | ||
12575 | ||
12576 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12577 | PyObject *resultobj = 0; | |
12578 | wxFont *arg1 = (wxFont *) 0 ; | |
12579 | bool arg2 = (bool) true ; | |
12580 | void *argp1 = 0 ; | |
12581 | int res1 = 0 ; | |
12582 | bool val2 ; | |
12583 | int ecode2 = 0 ; | |
12584 | PyObject * obj0 = 0 ; | |
12585 | PyObject * obj1 = 0 ; | |
12586 | char * kwnames[] = { | |
12587 | (char *) "self",(char *) "no", NULL | |
12588 | }; | |
12589 | ||
12590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
12591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12592 | if (!SWIG_IsOK(res1)) { | |
12593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
12594 | } | |
12595 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12596 | if (obj1) { | |
12597 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12598 | if (!SWIG_IsOK(ecode2)) { | |
12599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
12600 | } | |
12601 | arg2 = static_cast< bool >(val2); | |
12602 | } | |
12603 | { | |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | (arg1)->SetNoAntiAliasing(arg2); | |
12606 | wxPyEndAllowThreads(__tstate); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
12608 | } | |
12609 | resultobj = SWIG_Py_Void(); | |
12610 | return resultobj; | |
12611 | fail: | |
12612 | return NULL; | |
d55e5bfc RD |
12613 | } |
12614 | ||
12615 | ||
1bd55598 RD |
12616 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12617 | PyObject *resultobj = 0; | |
12618 | wxFont *arg1 = (wxFont *) 0 ; | |
12619 | bool result; | |
12620 | void *argp1 = 0 ; | |
12621 | int res1 = 0 ; | |
12622 | PyObject *swig_obj[1] ; | |
12623 | ||
12624 | if (!args) SWIG_fail; | |
12625 | swig_obj[0] = args; | |
12626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
12627 | if (!SWIG_IsOK(res1)) { | |
12628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
12629 | } | |
12630 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
12631 | { | |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12633 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | { | |
12638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12639 | } | |
12640 | return resultobj; | |
12641 | fail: | |
12642 | return NULL; | |
d55e5bfc RD |
12643 | } |
12644 | ||
12645 | ||
1bd55598 RD |
12646 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12647 | PyObject *resultobj = 0; | |
12648 | wxFontEncoding result; | |
12649 | ||
12650 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
12651 | { | |
12652 | if (!wxPyCheckForApp()) SWIG_fail; | |
12653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12654 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
12655 | wxPyEndAllowThreads(__tstate); | |
12656 | if (PyErr_Occurred()) SWIG_fail; | |
12657 | } | |
12658 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12659 | return resultobj; | |
12660 | fail: | |
12661 | return NULL; | |
d55e5bfc RD |
12662 | } |
12663 | ||
12664 | ||
1bd55598 RD |
12665 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12666 | PyObject *resultobj = 0; | |
12667 | wxFontEncoding arg1 ; | |
12668 | int val1 ; | |
12669 | int ecode1 = 0 ; | |
12670 | PyObject * obj0 = 0 ; | |
12671 | char * kwnames[] = { | |
12672 | (char *) "encoding", NULL | |
12673 | }; | |
12674 | ||
12675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
12676 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12677 | if (!SWIG_IsOK(ecode1)) { | |
12678 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
12679 | } | |
12680 | arg1 = static_cast< wxFontEncoding >(val1); | |
12681 | { | |
12682 | if (!wxPyCheckForApp()) SWIG_fail; | |
12683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12684 | wxFont::SetDefaultEncoding(arg1); | |
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | resultobj = SWIG_Py_Void(); | |
12689 | return resultobj; | |
12690 | fail: | |
12691 | return NULL; | |
d55e5bfc RD |
12692 | } |
12693 | ||
12694 | ||
1bd55598 RD |
12695 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12696 | PyObject *obj; | |
12697 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12698 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
12699 | return SWIG_Py_Void(); | |
d55e5bfc | 12700 | } |
d55e5bfc | 12701 | |
1bd55598 RD |
12702 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12703 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12704 | } |
12705 | ||
1bd55598 RD |
12706 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12707 | PyObject *resultobj = 0; | |
12708 | wxPyFontEnumerator *result = 0 ; | |
12709 | ||
12710 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
12711 | { | |
12712 | if (!wxPyCheckForApp()) SWIG_fail; | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
12718 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
d55e5bfc RD |
12722 | } |
12723 | ||
12724 | ||
1bd55598 RD |
12725 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12726 | PyObject *resultobj = 0; | |
12727 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
12728 | void *argp1 = 0 ; | |
12729 | int res1 = 0 ; | |
12730 | PyObject *swig_obj[1] ; | |
12731 | ||
12732 | if (!args) SWIG_fail; | |
12733 | swig_obj[0] = args; | |
12734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
12735 | if (!SWIG_IsOK(res1)) { | |
12736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
12737 | } | |
12738 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
12739 | { | |
12740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12741 | delete arg1; | |
d55e5bfc | 12742 | |
1bd55598 RD |
12743 | wxPyEndAllowThreads(__tstate); |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | resultobj = SWIG_Py_Void(); | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
12753 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12754 | PyObject *resultobj = 0; | |
12755 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
12756 | PyObject *arg2 = (PyObject *) 0 ; | |
12757 | PyObject *arg3 = (PyObject *) 0 ; | |
12758 | bool arg4 ; | |
12759 | void *argp1 = 0 ; | |
12760 | int res1 = 0 ; | |
12761 | bool val4 ; | |
12762 | int ecode4 = 0 ; | |
12763 | PyObject * obj0 = 0 ; | |
12764 | PyObject * obj1 = 0 ; | |
12765 | PyObject * obj2 = 0 ; | |
12766 | PyObject * obj3 = 0 ; | |
12767 | char * kwnames[] = { | |
12768 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
12769 | }; | |
12770 | ||
12771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
12773 | if (!SWIG_IsOK(res1)) { | |
12774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
12775 | } | |
12776 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
12777 | arg2 = obj1; | |
12778 | arg3 = obj2; | |
12779 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
12780 | if (!SWIG_IsOK(ecode4)) { | |
12781 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
12782 | } | |
12783 | arg4 = static_cast< bool >(val4); | |
12784 | { | |
12785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12786 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | resultobj = SWIG_Py_Void(); | |
12791 | return resultobj; | |
12792 | fail: | |
12793 | return NULL; | |
12794 | } | |
12795 | ||
12796 | ||
12797 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12798 | PyObject *resultobj = 0; | |
12799 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
12800 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
12801 | bool arg3 = (bool) false ; | |
12802 | bool result; | |
12803 | void *argp1 = 0 ; | |
12804 | int res1 = 0 ; | |
12805 | int val2 ; | |
12806 | int ecode2 = 0 ; | |
12807 | bool val3 ; | |
12808 | int ecode3 = 0 ; | |
12809 | PyObject * obj0 = 0 ; | |
12810 | PyObject * obj1 = 0 ; | |
12811 | PyObject * obj2 = 0 ; | |
12812 | char * kwnames[] = { | |
12813 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
12814 | }; | |
12815 | ||
12816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
12818 | if (!SWIG_IsOK(res1)) { | |
12819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
12820 | } | |
12821 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
12822 | if (obj1) { | |
12823 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12824 | if (!SWIG_IsOK(ecode2)) { | |
12825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12826 | } | |
12827 | arg2 = static_cast< wxFontEncoding >(val2); | |
12828 | } | |
12829 | if (obj2) { | |
12830 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
12831 | if (!SWIG_IsOK(ecode3)) { | |
12832 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
12833 | } | |
12834 | arg3 = static_cast< bool >(val3); | |
12835 | } | |
12836 | { | |
12837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12838 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | { | |
12843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12844 | } | |
12845 | return resultobj; | |
12846 | fail: | |
12847 | return NULL; | |
12848 | } | |
12849 | ||
12850 | ||
12851 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12852 | PyObject *resultobj = 0; | |
12853 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
12854 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12855 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12856 | bool result; | |
12857 | void *argp1 = 0 ; | |
12858 | int res1 = 0 ; | |
12859 | bool temp2 = false ; | |
12860 | PyObject * obj0 = 0 ; | |
12861 | PyObject * obj1 = 0 ; | |
12862 | char * kwnames[] = { | |
12863 | (char *) "self",(char *) "facename", NULL | |
12864 | }; | |
12865 | ||
12866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
12867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
12868 | if (!SWIG_IsOK(res1)) { | |
12869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
12870 | } | |
12871 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
12872 | if (obj1) { | |
36ed4f51 | 12873 | { |
1bd55598 RD |
12874 | arg2 = wxString_in_helper(obj1); |
12875 | if (arg2 == NULL) SWIG_fail; | |
12876 | temp2 = true; | |
36ed4f51 | 12877 | } |
1bd55598 RD |
12878 | } |
12879 | { | |
12880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12881 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
12882 | wxPyEndAllowThreads(__tstate); | |
12883 | if (PyErr_Occurred()) SWIG_fail; | |
12884 | } | |
12885 | { | |
12886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12887 | } | |
12888 | { | |
12889 | if (temp2) | |
12890 | delete arg2; | |
12891 | } | |
12892 | return resultobj; | |
12893 | fail: | |
12894 | { | |
12895 | if (temp2) | |
12896 | delete arg2; | |
12897 | } | |
12898 | return NULL; | |
d55e5bfc RD |
12899 | } |
12900 | ||
12901 | ||
1bd55598 RD |
12902 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12903 | PyObject *resultobj = 0; | |
1bd55598 | 12904 | PyObject *result = 0 ; |
1bd55598 | 12905 | |
704eda0c | 12906 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
1bd55598 RD |
12907 | { |
12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12909 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
1bd55598 RD |
12910 | wxPyEndAllowThreads(__tstate); |
12911 | if (PyErr_Occurred()) SWIG_fail; | |
12912 | } | |
12913 | resultobj = result; | |
12914 | return resultobj; | |
12915 | fail: | |
12916 | return NULL; | |
d55e5bfc RD |
12917 | } |
12918 | ||
12919 | ||
1bd55598 RD |
12920 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12921 | PyObject *resultobj = 0; | |
1bd55598 | 12922 | PyObject *result = 0 ; |
1bd55598 | 12923 | |
704eda0c | 12924 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
1bd55598 RD |
12925 | { |
12926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12927 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
1bd55598 RD |
12928 | wxPyEndAllowThreads(__tstate); |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
12931 | resultobj = result; | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | return NULL; | |
d55e5bfc RD |
12935 | } |
12936 | ||
12937 | ||
704eda0c RD |
12938 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12939 | PyObject *resultobj = 0; | |
12940 | wxString *arg1 = 0 ; | |
12941 | bool result; | |
12942 | bool temp1 = false ; | |
12943 | PyObject * obj0 = 0 ; | |
12944 | char * kwnames[] = { | |
12945 | (char *) "str", NULL | |
12946 | }; | |
12947 | ||
12948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
12949 | { | |
12950 | arg1 = wxString_in_helper(obj0); | |
12951 | if (arg1 == NULL) SWIG_fail; | |
12952 | temp1 = true; | |
12953 | } | |
12954 | { | |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
12957 | wxPyEndAllowThreads(__tstate); | |
12958 | if (PyErr_Occurred()) SWIG_fail; | |
12959 | } | |
12960 | { | |
12961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12962 | } | |
12963 | { | |
12964 | if (temp1) | |
12965 | delete arg1; | |
12966 | } | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | { | |
12970 | if (temp1) | |
12971 | delete arg1; | |
12972 | } | |
12973 | return NULL; | |
12974 | } | |
12975 | ||
12976 | ||
1bd55598 RD |
12977 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12978 | PyObject *obj; | |
12979 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12980 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
12981 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12982 | } |
12983 | ||
1bd55598 RD |
12984 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12985 | return SWIG_Python_InitShadowInstance(args); | |
12986 | } | |
d55e5bfc | 12987 | |
1bd55598 RD |
12988 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12989 | PyObject *resultobj = 0; | |
12990 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
12991 | int arg2 ; | |
12992 | void *argp1 = 0 ; | |
12993 | int res1 = 0 ; | |
12994 | int val2 ; | |
12995 | int ecode2 = 0 ; | |
12996 | PyObject *swig_obj[2] ; | |
12997 | ||
12998 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
12999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13000 | if (!SWIG_IsOK(res1)) { | |
13001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13002 | } | |
13003 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13004 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13005 | if (!SWIG_IsOK(ecode2)) { | |
13006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
13007 | } | |
13008 | arg2 = static_cast< int >(val2); | |
13009 | if (arg1) (arg1)->Language = arg2; | |
13010 | ||
13011 | resultobj = SWIG_Py_Void(); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
d55e5bfc RD |
13015 | } |
13016 | ||
13017 | ||
1bd55598 RD |
13018 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13019 | PyObject *resultobj = 0; | |
13020 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13021 | int result; | |
13022 | void *argp1 = 0 ; | |
13023 | int res1 = 0 ; | |
13024 | PyObject *swig_obj[1] ; | |
13025 | ||
13026 | if (!args) SWIG_fail; | |
13027 | swig_obj[0] = args; | |
13028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13029 | if (!SWIG_IsOK(res1)) { | |
13030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13031 | } | |
13032 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13033 | result = (int) ((arg1)->Language); | |
13034 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13035 | return resultobj; | |
13036 | fail: | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13042 | PyObject *resultobj = 0; | |
13043 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13044 | wxString *arg2 = (wxString *) 0 ; | |
13045 | void *argp1 = 0 ; | |
13046 | int res1 = 0 ; | |
13047 | bool temp2 = false ; | |
13048 | PyObject *swig_obj[2] ; | |
13049 | ||
13050 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
13051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13052 | if (!SWIG_IsOK(res1)) { | |
13053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13054 | } | |
13055 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13056 | { | |
13057 | arg2 = wxString_in_helper(swig_obj[1]); | |
13058 | if (arg2 == NULL) SWIG_fail; | |
13059 | temp2 = true; | |
13060 | } | |
13061 | if (arg1) (arg1)->CanonicalName = *arg2; | |
13062 | ||
13063 | resultobj = SWIG_Py_Void(); | |
13064 | { | |
13065 | if (temp2) | |
13066 | delete arg2; | |
13067 | } | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | { | |
13071 | if (temp2) | |
13072 | delete arg2; | |
13073 | } | |
13074 | return NULL; | |
d55e5bfc RD |
13075 | } |
13076 | ||
13077 | ||
1bd55598 RD |
13078 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13079 | PyObject *resultobj = 0; | |
13080 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13081 | wxString *result = 0 ; | |
13082 | void *argp1 = 0 ; | |
13083 | int res1 = 0 ; | |
13084 | PyObject *swig_obj[1] ; | |
13085 | ||
13086 | if (!args) SWIG_fail; | |
13087 | swig_obj[0] = args; | |
13088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13089 | if (!SWIG_IsOK(res1)) { | |
13090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13091 | } | |
13092 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13093 | result = (wxString *)& ((arg1)->CanonicalName); | |
13094 | { | |
13095 | #if wxUSE_UNICODE | |
13096 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13097 | #else | |
13098 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13099 | #endif | |
13100 | } | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | return NULL; | |
d55e5bfc RD |
13104 | } |
13105 | ||
13106 | ||
1bd55598 RD |
13107 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13108 | PyObject *resultobj = 0; | |
13109 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13110 | wxString *arg2 = (wxString *) 0 ; | |
13111 | void *argp1 = 0 ; | |
13112 | int res1 = 0 ; | |
13113 | bool temp2 = false ; | |
13114 | PyObject *swig_obj[2] ; | |
13115 | ||
13116 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
13117 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13118 | if (!SWIG_IsOK(res1)) { | |
13119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13120 | } | |
13121 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13122 | { | |
13123 | arg2 = wxString_in_helper(swig_obj[1]); | |
13124 | if (arg2 == NULL) SWIG_fail; | |
13125 | temp2 = true; | |
13126 | } | |
13127 | if (arg1) (arg1)->Description = *arg2; | |
13128 | ||
13129 | resultobj = SWIG_Py_Void(); | |
13130 | { | |
13131 | if (temp2) | |
13132 | delete arg2; | |
13133 | } | |
13134 | return resultobj; | |
13135 | fail: | |
13136 | { | |
13137 | if (temp2) | |
13138 | delete arg2; | |
13139 | } | |
13140 | return NULL; | |
d55e5bfc RD |
13141 | } |
13142 | ||
13143 | ||
1bd55598 RD |
13144 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13145 | PyObject *resultobj = 0; | |
13146 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
13147 | wxString *result = 0 ; | |
13148 | void *argp1 = 0 ; | |
13149 | int res1 = 0 ; | |
13150 | PyObject *swig_obj[1] ; | |
13151 | ||
13152 | if (!args) SWIG_fail; | |
13153 | swig_obj[0] = args; | |
13154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13155 | if (!SWIG_IsOK(res1)) { | |
13156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
13157 | } | |
13158 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13159 | result = (wxString *)& ((arg1)->Description); | |
13160 | { | |
13161 | #if wxUSE_UNICODE | |
13162 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13163 | #else | |
13164 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13165 | #endif | |
13166 | } | |
13167 | return resultobj; | |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
13173 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13174 | PyObject *obj; | |
13175 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13176 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
13177 | return SWIG_Py_Void(); | |
13178 | } | |
13179 | ||
13180 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj = 0; | |
13182 | int arg1 = (int) -1 ; | |
13183 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
13184 | wxLocale *result = 0 ; | |
13185 | int val1 ; | |
13186 | int ecode1 = 0 ; | |
13187 | int val2 ; | |
13188 | int ecode2 = 0 ; | |
13189 | PyObject * obj0 = 0 ; | |
13190 | PyObject * obj1 = 0 ; | |
13191 | char * kwnames[] = { | |
13192 | (char *) "language",(char *) "flags", NULL | |
13193 | }; | |
13194 | ||
13195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
13196 | if (obj0) { | |
13197 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13198 | if (!SWIG_IsOK(ecode1)) { | |
13199 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
13200 | } | |
13201 | arg1 = static_cast< int >(val1); | |
13202 | } | |
13203 | if (obj1) { | |
13204 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13205 | if (!SWIG_IsOK(ecode2)) { | |
13206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
13207 | } | |
13208 | arg2 = static_cast< int >(val2); | |
13209 | } | |
13210 | { | |
13211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13212 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
13213 | wxPyEndAllowThreads(__tstate); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
13216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
13217 | return resultobj; | |
13218 | fail: | |
13219 | return NULL; | |
d55e5bfc RD |
13220 | } |
13221 | ||
13222 | ||
1bd55598 RD |
13223 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13224 | PyObject *resultobj = 0; | |
13225 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13226 | void *argp1 = 0 ; | |
13227 | int res1 = 0 ; | |
13228 | PyObject *swig_obj[1] ; | |
13229 | ||
13230 | if (!args) SWIG_fail; | |
13231 | swig_obj[0] = args; | |
13232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
13233 | if (!SWIG_IsOK(res1)) { | |
13234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13235 | } | |
13236 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13237 | { | |
13238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13239 | delete arg1; | |
d55e5bfc | 13240 | |
1bd55598 RD |
13241 | wxPyEndAllowThreads(__tstate); |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
13243 | } | |
13244 | resultobj = SWIG_Py_Void(); | |
13245 | return resultobj; | |
13246 | fail: | |
13247 | return NULL; | |
13248 | } | |
13249 | ||
13250 | ||
13251 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13252 | PyObject *resultobj = 0; | |
13253 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13254 | wxString *arg2 = 0 ; | |
13255 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13256 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13257 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13258 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13259 | bool arg5 = (bool) true ; | |
13260 | bool arg6 = (bool) false ; | |
13261 | bool result; | |
13262 | void *argp1 = 0 ; | |
13263 | int res1 = 0 ; | |
13264 | bool temp2 = false ; | |
13265 | bool temp3 = false ; | |
13266 | bool temp4 = false ; | |
13267 | bool val5 ; | |
13268 | int ecode5 = 0 ; | |
13269 | bool val6 ; | |
13270 | int ecode6 = 0 ; | |
13271 | PyObject * obj0 = 0 ; | |
13272 | PyObject * obj1 = 0 ; | |
13273 | PyObject * obj2 = 0 ; | |
13274 | PyObject * obj3 = 0 ; | |
13275 | PyObject * obj4 = 0 ; | |
13276 | PyObject * obj5 = 0 ; | |
13277 | char * kwnames[] = { | |
13278 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
13279 | }; | |
13280 | ||
13281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13283 | if (!SWIG_IsOK(res1)) { | |
13284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13285 | } | |
13286 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13287 | { | |
13288 | arg2 = wxString_in_helper(obj1); | |
13289 | if (arg2 == NULL) SWIG_fail; | |
13290 | temp2 = true; | |
13291 | } | |
13292 | if (obj2) { | |
d55e5bfc | 13293 | { |
1bd55598 RD |
13294 | arg3 = wxString_in_helper(obj2); |
13295 | if (arg3 == NULL) SWIG_fail; | |
13296 | temp3 = true; | |
d55e5bfc | 13297 | } |
1bd55598 RD |
13298 | } |
13299 | if (obj3) { | |
36ed4f51 | 13300 | { |
1bd55598 RD |
13301 | arg4 = wxString_in_helper(obj3); |
13302 | if (arg4 == NULL) SWIG_fail; | |
13303 | temp4 = true; | |
36ed4f51 | 13304 | } |
1bd55598 RD |
13305 | } |
13306 | if (obj4) { | |
13307 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13308 | if (!SWIG_IsOK(ecode5)) { | |
13309 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
13310 | } | |
13311 | arg5 = static_cast< bool >(val5); | |
13312 | } | |
13313 | if (obj5) { | |
13314 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
13315 | if (!SWIG_IsOK(ecode6)) { | |
13316 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
13317 | } | |
13318 | arg6 = static_cast< bool >(val6); | |
13319 | } | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
13323 | wxPyEndAllowThreads(__tstate); | |
13324 | if (PyErr_Occurred()) SWIG_fail; | |
13325 | } | |
13326 | { | |
13327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13328 | } | |
13329 | { | |
13330 | if (temp2) | |
13331 | delete arg2; | |
13332 | } | |
13333 | { | |
13334 | if (temp3) | |
13335 | delete arg3; | |
13336 | } | |
13337 | { | |
13338 | if (temp4) | |
13339 | delete arg4; | |
13340 | } | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | { | |
13344 | if (temp2) | |
13345 | delete arg2; | |
13346 | } | |
13347 | { | |
13348 | if (temp3) | |
13349 | delete arg3; | |
13350 | } | |
13351 | { | |
13352 | if (temp4) | |
13353 | delete arg4; | |
13354 | } | |
13355 | return NULL; | |
13356 | } | |
13357 | ||
13358 | ||
13359 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13360 | PyObject *resultobj = 0; | |
13361 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13362 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
13363 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
13364 | bool result; | |
13365 | void *argp1 = 0 ; | |
13366 | int res1 = 0 ; | |
13367 | int val2 ; | |
13368 | int ecode2 = 0 ; | |
13369 | int val3 ; | |
13370 | int ecode3 = 0 ; | |
13371 | PyObject * obj0 = 0 ; | |
13372 | PyObject * obj1 = 0 ; | |
13373 | PyObject * obj2 = 0 ; | |
13374 | char * kwnames[] = { | |
13375 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
13376 | }; | |
13377 | ||
13378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13380 | if (!SWIG_IsOK(res1)) { | |
13381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13382 | } | |
13383 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13384 | if (obj1) { | |
13385 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13386 | if (!SWIG_IsOK(ecode2)) { | |
13387 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
13388 | } | |
13389 | arg2 = static_cast< int >(val2); | |
13390 | } | |
13391 | if (obj2) { | |
13392 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13393 | if (!SWIG_IsOK(ecode3)) { | |
13394 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
13395 | } | |
13396 | arg3 = static_cast< int >(val3); | |
13397 | } | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | { | |
13405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13406 | } | |
13407 | return resultobj; | |
13408 | fail: | |
13409 | return NULL; | |
d55e5bfc RD |
13410 | } |
13411 | ||
13412 | ||
1bd55598 RD |
13413 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13414 | PyObject *resultobj = 0; | |
13415 | int result; | |
13416 | ||
13417 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
13418 | { | |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | result = (int)wxLocale::GetSystemLanguage(); | |
13421 | wxPyEndAllowThreads(__tstate); | |
13422 | if (PyErr_Occurred()) SWIG_fail; | |
13423 | } | |
13424 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13425 | return resultobj; | |
13426 | fail: | |
13427 | return NULL; | |
d55e5bfc RD |
13428 | } |
13429 | ||
13430 | ||
1bd55598 RD |
13431 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13432 | PyObject *resultobj = 0; | |
13433 | wxFontEncoding result; | |
13434 | ||
13435 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
13436 | { | |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
13439 | wxPyEndAllowThreads(__tstate); | |
13440 | if (PyErr_Occurred()) SWIG_fail; | |
13441 | } | |
13442 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | return NULL; | |
d55e5bfc RD |
13446 | } |
13447 | ||
13448 | ||
1bd55598 RD |
13449 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13450 | PyObject *resultobj = 0; | |
13451 | wxString result; | |
13452 | ||
13453 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | result = wxLocale::GetSystemEncodingName(); | |
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | { | |
13461 | #if wxUSE_UNICODE | |
13462 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13463 | #else | |
13464 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13465 | #endif | |
13466 | } | |
13467 | return resultobj; | |
13468 | fail: | |
13469 | return NULL; | |
d55e5bfc RD |
13470 | } |
13471 | ||
13472 | ||
1bd55598 RD |
13473 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13474 | PyObject *resultobj = 0; | |
13475 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13476 | bool result; | |
13477 | void *argp1 = 0 ; | |
13478 | int res1 = 0 ; | |
13479 | PyObject *swig_obj[1] ; | |
13480 | ||
13481 | if (!args) SWIG_fail; | |
13482 | swig_obj[0] = args; | |
13483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13484 | if (!SWIG_IsOK(res1)) { | |
13485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13486 | } | |
13487 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
13491 | wxPyEndAllowThreads(__tstate); | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
13494 | { | |
13495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13496 | } | |
13497 | return resultobj; | |
13498 | fail: | |
13499 | return NULL; | |
d55e5bfc RD |
13500 | } |
13501 | ||
13502 | ||
1bd55598 RD |
13503 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13504 | PyObject *resultobj = 0; | |
13505 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13506 | wxString result; | |
13507 | void *argp1 = 0 ; | |
13508 | int res1 = 0 ; | |
13509 | PyObject *swig_obj[1] ; | |
13510 | ||
13511 | if (!args) SWIG_fail; | |
13512 | swig_obj[0] = args; | |
13513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13514 | if (!SWIG_IsOK(res1)) { | |
13515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13516 | } | |
13517 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13518 | { | |
13519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13520 | result = ((wxLocale const *)arg1)->GetLocale(); | |
13521 | wxPyEndAllowThreads(__tstate); | |
13522 | if (PyErr_Occurred()) SWIG_fail; | |
13523 | } | |
13524 | { | |
13525 | #if wxUSE_UNICODE | |
13526 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13527 | #else | |
13528 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13529 | #endif | |
13530 | } | |
13531 | return resultobj; | |
13532 | fail: | |
13533 | return NULL; | |
d55e5bfc RD |
13534 | } |
13535 | ||
13536 | ||
1bd55598 RD |
13537 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13538 | PyObject *resultobj = 0; | |
13539 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13540 | int result; | |
13541 | void *argp1 = 0 ; | |
13542 | int res1 = 0 ; | |
13543 | PyObject *swig_obj[1] ; | |
13544 | ||
13545 | if (!args) SWIG_fail; | |
13546 | swig_obj[0] = args; | |
13547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13548 | if (!SWIG_IsOK(res1)) { | |
13549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13550 | } | |
13551 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13552 | { | |
13553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13554 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
13555 | wxPyEndAllowThreads(__tstate); | |
13556 | if (PyErr_Occurred()) SWIG_fail; | |
13557 | } | |
13558 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | return NULL; | |
d55e5bfc RD |
13562 | } |
13563 | ||
13564 | ||
1bd55598 RD |
13565 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13566 | PyObject *resultobj = 0; | |
13567 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13568 | wxString result; | |
13569 | void *argp1 = 0 ; | |
13570 | int res1 = 0 ; | |
13571 | PyObject *swig_obj[1] ; | |
13572 | ||
13573 | if (!args) SWIG_fail; | |
13574 | swig_obj[0] = args; | |
13575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13576 | if (!SWIG_IsOK(res1)) { | |
13577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13578 | } | |
13579 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13580 | { | |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | result = ((wxLocale const *)arg1)->GetSysName(); | |
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
13586 | { | |
36ed4f51 | 13587 | #if wxUSE_UNICODE |
1bd55598 | 13588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 13589 | #else |
1bd55598 | 13590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 13591 | #endif |
1bd55598 RD |
13592 | } |
13593 | return resultobj; | |
13594 | fail: | |
13595 | return NULL; | |
d55e5bfc RD |
13596 | } |
13597 | ||
13598 | ||
1bd55598 RD |
13599 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13600 | PyObject *resultobj = 0; | |
13601 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13602 | wxString result; | |
13603 | void *argp1 = 0 ; | |
13604 | int res1 = 0 ; | |
13605 | PyObject *swig_obj[1] ; | |
13606 | ||
13607 | if (!args) SWIG_fail; | |
13608 | swig_obj[0] = args; | |
13609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13610 | if (!SWIG_IsOK(res1)) { | |
13611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13612 | } | |
13613 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13614 | { | |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
13617 | wxPyEndAllowThreads(__tstate); | |
13618 | if (PyErr_Occurred()) SWIG_fail; | |
13619 | } | |
13620 | { | |
13621 | #if wxUSE_UNICODE | |
13622 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13623 | #else | |
13624 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13625 | #endif | |
13626 | } | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | return NULL; | |
d55e5bfc RD |
13630 | } |
13631 | ||
13632 | ||
1bd55598 RD |
13633 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13634 | PyObject *resultobj = 0; | |
13635 | wxString *arg1 = 0 ; | |
13636 | bool temp1 = false ; | |
13637 | PyObject * obj0 = 0 ; | |
13638 | char * kwnames[] = { | |
13639 | (char *) "prefix", NULL | |
13640 | }; | |
13641 | ||
13642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
13643 | { | |
13644 | arg1 = wxString_in_helper(obj0); | |
13645 | if (arg1 == NULL) SWIG_fail; | |
13646 | temp1 = true; | |
13647 | } | |
13648 | { | |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
13651 | wxPyEndAllowThreads(__tstate); | |
13652 | if (PyErr_Occurred()) SWIG_fail; | |
13653 | } | |
13654 | resultobj = SWIG_Py_Void(); | |
13655 | { | |
13656 | if (temp1) | |
13657 | delete arg1; | |
13658 | } | |
13659 | return resultobj; | |
13660 | fail: | |
13661 | { | |
13662 | if (temp1) | |
13663 | delete arg1; | |
13664 | } | |
13665 | return NULL; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13670 | PyObject *resultobj = 0; | |
13671 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13672 | wxString *arg2 = 0 ; | |
13673 | bool result; | |
13674 | void *argp1 = 0 ; | |
13675 | int res1 = 0 ; | |
13676 | bool temp2 = false ; | |
13677 | PyObject * obj0 = 0 ; | |
13678 | PyObject * obj1 = 0 ; | |
13679 | char * kwnames[] = { | |
13680 | (char *) "self",(char *) "szDomain", NULL | |
13681 | }; | |
13682 | ||
13683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
13684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13685 | if (!SWIG_IsOK(res1)) { | |
13686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
13687 | } | |
13688 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13689 | { | |
13690 | arg2 = wxString_in_helper(obj1); | |
13691 | if (arg2 == NULL) SWIG_fail; | |
13692 | temp2 = true; | |
13693 | } | |
13694 | { | |
13695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13696 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | { | |
13701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13702 | } | |
13703 | { | |
13704 | if (temp2) | |
13705 | delete arg2; | |
13706 | } | |
13707 | return resultobj; | |
13708 | fail: | |
13709 | { | |
13710 | if (temp2) | |
13711 | delete arg2; | |
13712 | } | |
13713 | return NULL; | |
13714 | } | |
13715 | ||
13716 | ||
13717 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13718 | PyObject *resultobj = 0; | |
13719 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13720 | wxString *arg2 = 0 ; | |
13721 | bool result; | |
13722 | void *argp1 = 0 ; | |
13723 | int res1 = 0 ; | |
13724 | bool temp2 = false ; | |
13725 | PyObject * obj0 = 0 ; | |
13726 | PyObject * obj1 = 0 ; | |
13727 | char * kwnames[] = { | |
13728 | (char *) "self",(char *) "szDomain", NULL | |
13729 | }; | |
13730 | ||
13731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
13732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13733 | if (!SWIG_IsOK(res1)) { | |
13734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13735 | } | |
13736 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13737 | { | |
13738 | arg2 = wxString_in_helper(obj1); | |
13739 | if (arg2 == NULL) SWIG_fail; | |
13740 | temp2 = true; | |
13741 | } | |
13742 | { | |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | { | |
13749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13750 | } | |
13751 | { | |
13752 | if (temp2) | |
13753 | delete arg2; | |
13754 | } | |
13755 | return resultobj; | |
13756 | fail: | |
13757 | { | |
13758 | if (temp2) | |
13759 | delete arg2; | |
13760 | } | |
13761 | return NULL; | |
d55e5bfc RD |
13762 | } |
13763 | ||
13764 | ||
1bd55598 RD |
13765 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13766 | PyObject *resultobj = 0; | |
13767 | int arg1 ; | |
13768 | wxLanguageInfo *result = 0 ; | |
13769 | int val1 ; | |
13770 | int ecode1 = 0 ; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | char * kwnames[] = { | |
13773 | (char *) "lang", NULL | |
13774 | }; | |
13775 | ||
13776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
13777 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13778 | if (!SWIG_IsOK(ecode1)) { | |
13779 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
13780 | } | |
13781 | arg1 = static_cast< int >(val1); | |
13782 | { | |
13783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13784 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
13785 | wxPyEndAllowThreads(__tstate); | |
13786 | if (PyErr_Occurred()) SWIG_fail; | |
13787 | } | |
13788 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13789 | return resultobj; | |
13790 | fail: | |
13791 | return NULL; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13796 | PyObject *resultobj = 0; | |
13797 | int arg1 ; | |
13798 | wxString result; | |
13799 | int val1 ; | |
13800 | int ecode1 = 0 ; | |
13801 | PyObject * obj0 = 0 ; | |
13802 | char * kwnames[] = { | |
13803 | (char *) "lang", NULL | |
13804 | }; | |
13805 | ||
13806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
13807 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13808 | if (!SWIG_IsOK(ecode1)) { | |
13809 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
13810 | } | |
13811 | arg1 = static_cast< int >(val1); | |
13812 | { | |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13814 | result = wxLocale::GetLanguageName(arg1); | |
13815 | wxPyEndAllowThreads(__tstate); | |
13816 | if (PyErr_Occurred()) SWIG_fail; | |
13817 | } | |
13818 | { | |
13819 | #if wxUSE_UNICODE | |
13820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13821 | #else | |
13822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13823 | #endif | |
13824 | } | |
13825 | return resultobj; | |
13826 | fail: | |
13827 | return NULL; | |
d55e5bfc RD |
13828 | } |
13829 | ||
13830 | ||
1bd55598 RD |
13831 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13832 | PyObject *resultobj = 0; | |
13833 | wxString *arg1 = 0 ; | |
13834 | wxLanguageInfo *result = 0 ; | |
13835 | bool temp1 = false ; | |
13836 | PyObject * obj0 = 0 ; | |
13837 | char * kwnames[] = { | |
13838 | (char *) "locale", NULL | |
13839 | }; | |
13840 | ||
13841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
13842 | { | |
13843 | arg1 = wxString_in_helper(obj0); | |
13844 | if (arg1 == NULL) SWIG_fail; | |
13845 | temp1 = true; | |
13846 | } | |
13847 | { | |
13848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13849 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
13853 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
13854 | { | |
13855 | if (temp1) | |
13856 | delete arg1; | |
13857 | } | |
13858 | return resultobj; | |
13859 | fail: | |
13860 | { | |
13861 | if (temp1) | |
13862 | delete arg1; | |
13863 | } | |
13864 | return NULL; | |
d55e5bfc RD |
13865 | } |
13866 | ||
13867 | ||
1bd55598 RD |
13868 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13869 | PyObject *resultobj = 0; | |
13870 | wxLanguageInfo *arg1 = 0 ; | |
13871 | void *argp1 = 0 ; | |
13872 | int res1 = 0 ; | |
13873 | PyObject * obj0 = 0 ; | |
13874 | char * kwnames[] = { | |
13875 | (char *) "info", NULL | |
13876 | }; | |
13877 | ||
13878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
13879 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
13880 | if (!SWIG_IsOK(res1)) { | |
13881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
13882 | } | |
13883 | if (!argp1) { | |
13884 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
13885 | } | |
13886 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
13887 | { | |
13888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13889 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
13890 | wxPyEndAllowThreads(__tstate); | |
13891 | if (PyErr_Occurred()) SWIG_fail; | |
13892 | } | |
13893 | resultobj = SWIG_Py_Void(); | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
13900 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13901 | PyObject *resultobj = 0; | |
13902 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13903 | wxString *arg2 = 0 ; | |
13904 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13905 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13906 | wxString result; | |
13907 | void *argp1 = 0 ; | |
13908 | int res1 = 0 ; | |
13909 | bool temp2 = false ; | |
13910 | bool temp3 = false ; | |
13911 | PyObject * obj0 = 0 ; | |
13912 | PyObject * obj1 = 0 ; | |
13913 | PyObject * obj2 = 0 ; | |
13914 | char * kwnames[] = { | |
13915 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
13916 | }; | |
13917 | ||
13918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13920 | if (!SWIG_IsOK(res1)) { | |
13921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13922 | } | |
13923 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13924 | { | |
13925 | arg2 = wxString_in_helper(obj1); | |
13926 | if (arg2 == NULL) SWIG_fail; | |
13927 | temp2 = true; | |
13928 | } | |
13929 | if (obj2) { | |
d55e5bfc | 13930 | { |
1bd55598 RD |
13931 | arg3 = wxString_in_helper(obj2); |
13932 | if (arg3 == NULL) SWIG_fail; | |
13933 | temp3 = true; | |
d55e5bfc | 13934 | } |
1bd55598 RD |
13935 | } |
13936 | { | |
13937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13938 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
13939 | wxPyEndAllowThreads(__tstate); | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | } | |
13942 | { | |
13943 | #if wxUSE_UNICODE | |
13944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13945 | #else | |
13946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13947 | #endif | |
13948 | } | |
13949 | { | |
13950 | if (temp2) | |
13951 | delete arg2; | |
13952 | } | |
13953 | { | |
13954 | if (temp3) | |
13955 | delete arg3; | |
13956 | } | |
13957 | return resultobj; | |
13958 | fail: | |
13959 | { | |
13960 | if (temp2) | |
13961 | delete arg2; | |
13962 | } | |
13963 | { | |
13964 | if (temp3) | |
13965 | delete arg3; | |
13966 | } | |
13967 | return NULL; | |
d55e5bfc RD |
13968 | } |
13969 | ||
13970 | ||
1bd55598 RD |
13971 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13972 | PyObject *resultobj = 0; | |
13973 | wxLocale *arg1 = (wxLocale *) 0 ; | |
13974 | wxString *result = 0 ; | |
13975 | void *argp1 = 0 ; | |
13976 | int res1 = 0 ; | |
13977 | PyObject *swig_obj[1] ; | |
13978 | ||
13979 | if (!args) SWIG_fail; | |
13980 | swig_obj[0] = args; | |
13981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
13982 | if (!SWIG_IsOK(res1)) { | |
13983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
13984 | } | |
13985 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
13986 | { | |
13987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 13988 | { |
1bd55598 RD |
13989 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); |
13990 | result = (wxString *) &_result_ref; | |
d55e5bfc | 13991 | } |
1bd55598 RD |
13992 | wxPyEndAllowThreads(__tstate); |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
13995 | { | |
13996 | #if wxUSE_UNICODE | |
13997 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13998 | #else | |
13999 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14000 | #endif | |
14001 | } | |
14002 | return resultobj; | |
14003 | fail: | |
14004 | return NULL; | |
d55e5bfc RD |
14005 | } |
14006 | ||
14007 | ||
1bd55598 RD |
14008 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14009 | PyObject *obj; | |
14010 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14011 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
14012 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14013 | } |
14014 | ||
1bd55598 RD |
14015 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14016 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14017 | } |
14018 | ||
1bd55598 RD |
14019 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14020 | PyObject *resultobj = 0; | |
14021 | wxLocale *result = 0 ; | |
14022 | ||
14023 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
14024 | { | |
14025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14026 | result = (wxLocale *)wxGetLocale(); | |
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
14030 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
14031 | return resultobj; | |
14032 | fail: | |
14033 | return NULL; | |
d55e5bfc RD |
14034 | } |
14035 | ||
14036 | ||
1bd55598 RD |
14037 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14038 | PyObject *resultobj = 0; | |
14039 | wxString *arg1 = 0 ; | |
14040 | wxString result; | |
14041 | bool temp1 = false ; | |
14042 | ||
14043 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
14044 | { | |
14045 | arg1 = wxString_in_helper(swig_obj[0]); | |
14046 | if (arg1 == NULL) SWIG_fail; | |
14047 | temp1 = true; | |
14048 | } | |
14049 | { | |
14050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14051 | result = wxGetTranslation((wxString const &)*arg1); | |
14052 | wxPyEndAllowThreads(__tstate); | |
14053 | if (PyErr_Occurred()) SWIG_fail; | |
14054 | } | |
14055 | { | |
36ed4f51 | 14056 | #if wxUSE_UNICODE |
1bd55598 | 14057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 14058 | #else |
1bd55598 | 14059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 14060 | #endif |
1bd55598 RD |
14061 | } |
14062 | { | |
14063 | if (temp1) | |
14064 | delete arg1; | |
14065 | } | |
14066 | return resultobj; | |
14067 | fail: | |
14068 | { | |
14069 | if (temp1) | |
14070 | delete arg1; | |
14071 | } | |
14072 | return NULL; | |
5e483524 RD |
14073 | } |
14074 | ||
14075 | ||
1bd55598 RD |
14076 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
14077 | PyObject *resultobj = 0; | |
14078 | wxString *arg1 = 0 ; | |
14079 | wxString *arg2 = 0 ; | |
14080 | size_t arg3 ; | |
14081 | wxString result; | |
14082 | bool temp1 = false ; | |
14083 | bool temp2 = false ; | |
14084 | size_t val3 ; | |
14085 | int ecode3 = 0 ; | |
14086 | ||
14087 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
14088 | { | |
14089 | arg1 = wxString_in_helper(swig_obj[0]); | |
14090 | if (arg1 == NULL) SWIG_fail; | |
14091 | temp1 = true; | |
14092 | } | |
14093 | { | |
14094 | arg2 = wxString_in_helper(swig_obj[1]); | |
14095 | if (arg2 == NULL) SWIG_fail; | |
14096 | temp2 = true; | |
14097 | } | |
14098 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
14099 | if (!SWIG_IsOK(ecode3)) { | |
14100 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
14101 | } | |
14102 | arg3 = static_cast< size_t >(val3); | |
14103 | { | |
14104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14105 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
14106 | wxPyEndAllowThreads(__tstate); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | } | |
14109 | { | |
36ed4f51 | 14110 | #if wxUSE_UNICODE |
1bd55598 | 14111 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 14112 | #else |
1bd55598 | 14113 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
36ed4f51 | 14114 | #endif |
1bd55598 RD |
14115 | } |
14116 | { | |
14117 | if (temp1) | |
14118 | delete arg1; | |
14119 | } | |
14120 | { | |
14121 | if (temp2) | |
14122 | delete arg2; | |
14123 | } | |
14124 | return resultobj; | |
14125 | fail: | |
14126 | { | |
14127 | if (temp1) | |
14128 | delete arg1; | |
14129 | } | |
14130 | { | |
14131 | if (temp2) | |
14132 | delete arg2; | |
14133 | } | |
14134 | return NULL; | |
d55e5bfc RD |
14135 | } |
14136 | ||
14137 | ||
1bd55598 RD |
14138 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
14139 | int argc; | |
14140 | PyObject *argv[4]; | |
14141 | ||
14142 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail; | |
14143 | --argc; | |
14144 | if (argc == 1) { | |
14145 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
14146 | } | |
14147 | if (argc == 3) { | |
14148 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); | |
14149 | } | |
14150 | ||
14151 | fail: | |
14152 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
14153 | return NULL; | |
d55e5bfc RD |
14154 | } |
14155 | ||
14156 | ||
1bd55598 RD |
14157 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14158 | PyObject *resultobj = 0; | |
14159 | wxEncodingConverter *result = 0 ; | |
14160 | ||
14161 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
14162 | { | |
14163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14164 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | return NULL; | |
d55e5bfc RD |
14172 | } |
14173 | ||
14174 | ||
1bd55598 RD |
14175 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14176 | PyObject *resultobj = 0; | |
14177 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14178 | void *argp1 = 0 ; | |
14179 | int res1 = 0 ; | |
14180 | PyObject *swig_obj[1] ; | |
14181 | ||
14182 | if (!args) SWIG_fail; | |
14183 | swig_obj[0] = args; | |
14184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
14185 | if (!SWIG_IsOK(res1)) { | |
14186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14187 | } | |
14188 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14189 | { | |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | delete arg1; | |
d55e5bfc | 14192 | |
1bd55598 RD |
14193 | wxPyEndAllowThreads(__tstate); |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
14196 | resultobj = SWIG_Py_Void(); | |
14197 | return resultobj; | |
14198 | fail: | |
14199 | return NULL; | |
14200 | } | |
14201 | ||
14202 | ||
14203 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14204 | PyObject *resultobj = 0; | |
14205 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14206 | wxFontEncoding arg2 ; | |
14207 | wxFontEncoding arg3 ; | |
14208 | int arg4 = (int) wxCONVERT_STRICT ; | |
14209 | bool result; | |
14210 | void *argp1 = 0 ; | |
14211 | int res1 = 0 ; | |
14212 | int val2 ; | |
14213 | int ecode2 = 0 ; | |
14214 | int val3 ; | |
14215 | int ecode3 = 0 ; | |
14216 | int val4 ; | |
14217 | int ecode4 = 0 ; | |
14218 | PyObject * obj0 = 0 ; | |
14219 | PyObject * obj1 = 0 ; | |
14220 | PyObject * obj2 = 0 ; | |
14221 | PyObject * obj3 = 0 ; | |
14222 | char * kwnames[] = { | |
14223 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
14224 | }; | |
14225 | ||
14226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14228 | if (!SWIG_IsOK(res1)) { | |
14229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14230 | } | |
14231 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14232 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14233 | if (!SWIG_IsOK(ecode2)) { | |
14234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14235 | } | |
14236 | arg2 = static_cast< wxFontEncoding >(val2); | |
14237 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14238 | if (!SWIG_IsOK(ecode3)) { | |
14239 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
14240 | } | |
14241 | arg3 = static_cast< wxFontEncoding >(val3); | |
14242 | if (obj3) { | |
14243 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14244 | if (!SWIG_IsOK(ecode4)) { | |
14245 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
14246 | } | |
14247 | arg4 = static_cast< int >(val4); | |
14248 | } | |
14249 | { | |
14250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14251 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
14252 | wxPyEndAllowThreads(__tstate); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
14255 | { | |
14256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14257 | } | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | return NULL; | |
14261 | } | |
14262 | ||
14263 | ||
14264 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14265 | PyObject *resultobj = 0; | |
14266 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
14267 | wxString *arg2 = 0 ; | |
14268 | wxString result; | |
14269 | void *argp1 = 0 ; | |
14270 | int res1 = 0 ; | |
14271 | bool temp2 = false ; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | PyObject * obj1 = 0 ; | |
14274 | char * kwnames[] = { | |
14275 | (char *) "self",(char *) "input", NULL | |
14276 | }; | |
14277 | ||
14278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
14279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
14280 | if (!SWIG_IsOK(res1)) { | |
14281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
14282 | } | |
14283 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
14284 | { | |
14285 | arg2 = wxString_in_helper(obj1); | |
14286 | if (arg2 == NULL) SWIG_fail; | |
14287 | temp2 = true; | |
14288 | } | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (arg1)->Convert((wxString const &)*arg2); | |
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
14295 | { | |
d55e5bfc | 14296 | #if wxUSE_UNICODE |
1bd55598 | 14297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14298 | #else |
1bd55598 | 14299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 14300 | #endif |
1bd55598 RD |
14301 | } |
14302 | { | |
14303 | if (temp2) | |
14304 | delete arg2; | |
14305 | } | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | { | |
14309 | if (temp2) | |
14310 | delete arg2; | |
14311 | } | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
14316 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14317 | PyObject *resultobj = 0; | |
14318 | wxFontEncoding arg1 ; | |
14319 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
14320 | wxFontEncodingArray result; | |
14321 | int val1 ; | |
14322 | int ecode1 = 0 ; | |
14323 | int val2 ; | |
14324 | int ecode2 = 0 ; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | PyObject * obj1 = 0 ; | |
14327 | char * kwnames[] = { | |
14328 | (char *) "enc",(char *) "platform", NULL | |
14329 | }; | |
14330 | ||
14331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
14332 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14333 | if (!SWIG_IsOK(ecode1)) { | |
14334 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14335 | } | |
14336 | arg1 = static_cast< wxFontEncoding >(val1); | |
14337 | if (obj1) { | |
14338 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14339 | if (!SWIG_IsOK(ecode2)) { | |
14340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
14341 | } | |
14342 | arg2 = static_cast< int >(val2); | |
14343 | } | |
14344 | { | |
14345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14346 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | { | |
14351 | resultobj = PyList_New(0); | |
14352 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
14353 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
14354 | PyList_Append(resultobj, number); | |
14355 | Py_DECREF(number); | |
d55e5bfc | 14356 | } |
1bd55598 RD |
14357 | } |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
d55e5bfc RD |
14361 | } |
14362 | ||
14363 | ||
1bd55598 RD |
14364 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14365 | PyObject *resultobj = 0; | |
14366 | wxFontEncoding arg1 ; | |
14367 | wxFontEncodingArray result; | |
14368 | int val1 ; | |
14369 | int ecode1 = 0 ; | |
14370 | PyObject * obj0 = 0 ; | |
14371 | char * kwnames[] = { | |
14372 | (char *) "enc", NULL | |
14373 | }; | |
14374 | ||
14375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
14376 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14377 | if (!SWIG_IsOK(ecode1)) { | |
14378 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14379 | } | |
14380 | arg1 = static_cast< wxFontEncoding >(val1); | |
14381 | { | |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | { | |
14388 | resultobj = PyList_New(0); | |
14389 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
14390 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
14391 | PyList_Append(resultobj, number); | |
14392 | Py_DECREF(number); | |
d55e5bfc | 14393 | } |
1bd55598 RD |
14394 | } |
14395 | return resultobj; | |
14396 | fail: | |
14397 | return NULL; | |
14398 | } | |
14399 | ||
14400 | ||
14401 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14402 | PyObject *resultobj = 0; | |
14403 | wxFontEncoding arg1 ; | |
14404 | wxFontEncoding arg2 ; | |
14405 | bool result; | |
14406 | int val1 ; | |
14407 | int ecode1 = 0 ; | |
14408 | int val2 ; | |
14409 | int ecode2 = 0 ; | |
14410 | PyObject * obj0 = 0 ; | |
14411 | PyObject * obj1 = 0 ; | |
14412 | char * kwnames[] = { | |
14413 | (char *) "encIn",(char *) "encOut", NULL | |
14414 | }; | |
14415 | ||
14416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
14417 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14418 | if (!SWIG_IsOK(ecode1)) { | |
14419 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14420 | } | |
14421 | arg1 = static_cast< wxFontEncoding >(val1); | |
14422 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14423 | if (!SWIG_IsOK(ecode2)) { | |
14424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14425 | } | |
14426 | arg2 = static_cast< wxFontEncoding >(val2); | |
14427 | { | |
14428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14429 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | { | |
14434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14435 | } | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
d55e5bfc RD |
14439 | } |
14440 | ||
14441 | ||
1bd55598 RD |
14442 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14443 | PyObject *obj; | |
14444 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14445 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
14446 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14447 | } |
14448 | ||
1bd55598 RD |
14449 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14450 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14451 | } |
14452 | ||
1bd55598 RD |
14453 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14454 | PyObject *resultobj = 0; | |
14455 | wxDC *arg1 = (wxDC *) 0 ; | |
14456 | void *argp1 = 0 ; | |
14457 | int res1 = 0 ; | |
14458 | PyObject *swig_obj[1] ; | |
14459 | ||
14460 | if (!args) SWIG_fail; | |
14461 | swig_obj[0] = args; | |
14462 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
14463 | if (!SWIG_IsOK(res1)) { | |
14464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14465 | } | |
14466 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | delete arg1; | |
d55e5bfc | 14470 | |
1bd55598 RD |
14471 | wxPyEndAllowThreads(__tstate); |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | resultobj = SWIG_Py_Void(); | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14482 | PyObject *resultobj = 0; | |
14483 | wxDC *arg1 = (wxDC *) 0 ; | |
14484 | int arg2 ; | |
14485 | int arg3 ; | |
14486 | wxColour *arg4 = 0 ; | |
14487 | int arg5 = (int) wxFLOOD_SURFACE ; | |
14488 | bool result; | |
14489 | void *argp1 = 0 ; | |
14490 | int res1 = 0 ; | |
14491 | int val2 ; | |
14492 | int ecode2 = 0 ; | |
14493 | int val3 ; | |
14494 | int ecode3 = 0 ; | |
14495 | wxColour temp4 ; | |
14496 | int val5 ; | |
14497 | int ecode5 = 0 ; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | PyObject * obj1 = 0 ; | |
14500 | PyObject * obj2 = 0 ; | |
14501 | PyObject * obj3 = 0 ; | |
14502 | PyObject * obj4 = 0 ; | |
14503 | char * kwnames[] = { | |
14504 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
14505 | }; | |
14506 | ||
14507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14509 | if (!SWIG_IsOK(res1)) { | |
14510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14511 | } | |
14512 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14513 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14514 | if (!SWIG_IsOK(ecode2)) { | |
14515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
14516 | } | |
14517 | arg2 = static_cast< int >(val2); | |
14518 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14519 | if (!SWIG_IsOK(ecode3)) { | |
14520 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
14521 | } | |
14522 | arg3 = static_cast< int >(val3); | |
14523 | { | |
14524 | arg4 = &temp4; | |
14525 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
14526 | } | |
14527 | if (obj4) { | |
14528 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14529 | if (!SWIG_IsOK(ecode5)) { | |
14530 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
14531 | } | |
14532 | arg5 = static_cast< int >(val5); | |
14533 | } | |
14534 | { | |
14535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14536 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
14537 | wxPyEndAllowThreads(__tstate); | |
14538 | if (PyErr_Occurred()) SWIG_fail; | |
14539 | } | |
14540 | { | |
14541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14542 | } | |
14543 | return resultobj; | |
14544 | fail: | |
14545 | return NULL; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14550 | PyObject *resultobj = 0; | |
14551 | wxDC *arg1 = (wxDC *) 0 ; | |
14552 | wxPoint *arg2 = 0 ; | |
14553 | wxColour *arg3 = 0 ; | |
14554 | int arg4 = (int) wxFLOOD_SURFACE ; | |
14555 | bool result; | |
14556 | void *argp1 = 0 ; | |
14557 | int res1 = 0 ; | |
14558 | wxPoint temp2 ; | |
14559 | wxColour temp3 ; | |
14560 | int val4 ; | |
14561 | int ecode4 = 0 ; | |
14562 | PyObject * obj0 = 0 ; | |
14563 | PyObject * obj1 = 0 ; | |
14564 | PyObject * obj2 = 0 ; | |
14565 | PyObject * obj3 = 0 ; | |
14566 | char * kwnames[] = { | |
14567 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
14568 | }; | |
14569 | ||
14570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14572 | if (!SWIG_IsOK(res1)) { | |
14573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14574 | } | |
14575 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14576 | { | |
14577 | arg2 = &temp2; | |
14578 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14579 | } | |
14580 | { | |
14581 | arg3 = &temp3; | |
14582 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14583 | } | |
14584 | if (obj3) { | |
14585 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14586 | if (!SWIG_IsOK(ecode4)) { | |
14587 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
14588 | } | |
14589 | arg4 = static_cast< int >(val4); | |
14590 | } | |
14591 | { | |
14592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14593 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
14594 | wxPyEndAllowThreads(__tstate); | |
14595 | if (PyErr_Occurred()) SWIG_fail; | |
14596 | } | |
14597 | { | |
14598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14599 | } | |
14600 | return resultobj; | |
14601 | fail: | |
14602 | return NULL; | |
14603 | } | |
14604 | ||
14605 | ||
14606 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14607 | PyObject *resultobj = 0; | |
14608 | wxDC *arg1 = (wxDC *) 0 ; | |
14609 | wxRect *arg2 = 0 ; | |
14610 | wxColour *arg3 = 0 ; | |
14611 | wxColour *arg4 = 0 ; | |
14612 | wxPoint *arg5 = 0 ; | |
14613 | void *argp1 = 0 ; | |
14614 | int res1 = 0 ; | |
14615 | wxRect temp2 ; | |
14616 | wxColour temp3 ; | |
14617 | wxColour temp4 ; | |
14618 | wxPoint temp5 ; | |
14619 | PyObject * obj0 = 0 ; | |
14620 | PyObject * obj1 = 0 ; | |
14621 | PyObject * obj2 = 0 ; | |
14622 | PyObject * obj3 = 0 ; | |
14623 | PyObject * obj4 = 0 ; | |
14624 | char * kwnames[] = { | |
14625 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
14626 | }; | |
14627 | ||
14628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14630 | if (!SWIG_IsOK(res1)) { | |
14631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14632 | } | |
14633 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14634 | { | |
14635 | arg2 = &temp2; | |
14636 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
14637 | } | |
14638 | { | |
14639 | arg3 = &temp3; | |
14640 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14641 | } | |
14642 | { | |
14643 | arg4 = &temp4; | |
14644 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
14645 | } | |
14646 | { | |
14647 | arg5 = &temp5; | |
14648 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14649 | } | |
14650 | { | |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | resultobj = SWIG_Py_Void(); | |
14657 | return resultobj; | |
14658 | fail: | |
14659 | return NULL; | |
14660 | } | |
14661 | ||
14662 | ||
14663 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14664 | PyObject *resultobj = 0; | |
14665 | wxDC *arg1 = (wxDC *) 0 ; | |
14666 | wxRect *arg2 = 0 ; | |
14667 | wxColour *arg3 = 0 ; | |
14668 | wxColour *arg4 = 0 ; | |
14669 | wxDirection arg5 = (wxDirection) wxEAST ; | |
14670 | void *argp1 = 0 ; | |
14671 | int res1 = 0 ; | |
14672 | wxRect temp2 ; | |
14673 | wxColour temp3 ; | |
14674 | wxColour temp4 ; | |
14675 | int val5 ; | |
14676 | int ecode5 = 0 ; | |
14677 | PyObject * obj0 = 0 ; | |
14678 | PyObject * obj1 = 0 ; | |
14679 | PyObject * obj2 = 0 ; | |
14680 | PyObject * obj3 = 0 ; | |
14681 | PyObject * obj4 = 0 ; | |
14682 | char * kwnames[] = { | |
14683 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
14684 | }; | |
14685 | ||
14686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14688 | if (!SWIG_IsOK(res1)) { | |
14689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14690 | } | |
14691 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14692 | { | |
14693 | arg2 = &temp2; | |
14694 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
14695 | } | |
14696 | { | |
14697 | arg3 = &temp3; | |
14698 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14699 | } | |
14700 | { | |
14701 | arg4 = &temp4; | |
14702 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
14703 | } | |
14704 | if (obj4) { | |
14705 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14706 | if (!SWIG_IsOK(ecode5)) { | |
14707 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
14708 | } | |
14709 | arg5 = static_cast< wxDirection >(val5); | |
14710 | } | |
14711 | { | |
14712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14713 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
14714 | wxPyEndAllowThreads(__tstate); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
14716 | } | |
14717 | resultobj = SWIG_Py_Void(); | |
14718 | return resultobj; | |
14719 | fail: | |
14720 | return NULL; | |
14721 | } | |
14722 | ||
14723 | ||
14724 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14725 | PyObject *resultobj = 0; | |
14726 | wxDC *arg1 = (wxDC *) 0 ; | |
14727 | int arg2 ; | |
14728 | int arg3 ; | |
14729 | wxColour result; | |
14730 | void *argp1 = 0 ; | |
14731 | int res1 = 0 ; | |
14732 | int val2 ; | |
14733 | int ecode2 = 0 ; | |
14734 | int val3 ; | |
14735 | int ecode3 = 0 ; | |
14736 | PyObject * obj0 = 0 ; | |
14737 | PyObject * obj1 = 0 ; | |
14738 | PyObject * obj2 = 0 ; | |
14739 | char * kwnames[] = { | |
14740 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14741 | }; | |
14742 | ||
14743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14745 | if (!SWIG_IsOK(res1)) { | |
14746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14747 | } | |
14748 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14749 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14750 | if (!SWIG_IsOK(ecode2)) { | |
14751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
14752 | } | |
14753 | arg2 = static_cast< int >(val2); | |
14754 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14755 | if (!SWIG_IsOK(ecode3)) { | |
14756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
14757 | } | |
14758 | arg3 = static_cast< int >(val3); | |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
14762 | wxPyEndAllowThreads(__tstate); | |
14763 | if (PyErr_Occurred()) SWIG_fail; | |
14764 | } | |
14765 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
14766 | return resultobj; | |
14767 | fail: | |
14768 | return NULL; | |
14769 | } | |
14770 | ||
14771 | ||
14772 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14773 | PyObject *resultobj = 0; | |
14774 | wxDC *arg1 = (wxDC *) 0 ; | |
14775 | wxPoint *arg2 = 0 ; | |
14776 | wxColour result; | |
14777 | void *argp1 = 0 ; | |
14778 | int res1 = 0 ; | |
14779 | wxPoint temp2 ; | |
14780 | PyObject * obj0 = 0 ; | |
14781 | PyObject * obj1 = 0 ; | |
14782 | char * kwnames[] = { | |
14783 | (char *) "self",(char *) "pt", NULL | |
14784 | }; | |
14785 | ||
14786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
14787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14788 | if (!SWIG_IsOK(res1)) { | |
14789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14790 | } | |
14791 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14792 | { | |
14793 | arg2 = &temp2; | |
14794 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14795 | } | |
14796 | { | |
14797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14798 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
14799 | wxPyEndAllowThreads(__tstate); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
14803 | return resultobj; | |
14804 | fail: | |
14805 | return NULL; | |
14806 | } | |
14807 | ||
14808 | ||
14809 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14810 | PyObject *resultobj = 0; | |
14811 | wxDC *arg1 = (wxDC *) 0 ; | |
14812 | int arg2 ; | |
14813 | int arg3 ; | |
14814 | int arg4 ; | |
14815 | int arg5 ; | |
14816 | void *argp1 = 0 ; | |
14817 | int res1 = 0 ; | |
14818 | int val2 ; | |
14819 | int ecode2 = 0 ; | |
14820 | int val3 ; | |
14821 | int ecode3 = 0 ; | |
14822 | int val4 ; | |
14823 | int ecode4 = 0 ; | |
14824 | int val5 ; | |
14825 | int ecode5 = 0 ; | |
14826 | PyObject * obj0 = 0 ; | |
14827 | PyObject * obj1 = 0 ; | |
14828 | PyObject * obj2 = 0 ; | |
14829 | PyObject * obj3 = 0 ; | |
14830 | PyObject * obj4 = 0 ; | |
14831 | char * kwnames[] = { | |
14832 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
14833 | }; | |
14834 | ||
14835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14837 | if (!SWIG_IsOK(res1)) { | |
14838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14839 | } | |
14840 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14841 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14842 | if (!SWIG_IsOK(ecode2)) { | |
14843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
14844 | } | |
14845 | arg2 = static_cast< int >(val2); | |
14846 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14847 | if (!SWIG_IsOK(ecode3)) { | |
14848 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
14849 | } | |
14850 | arg3 = static_cast< int >(val3); | |
14851 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14852 | if (!SWIG_IsOK(ecode4)) { | |
14853 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
14854 | } | |
14855 | arg4 = static_cast< int >(val4); | |
14856 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14857 | if (!SWIG_IsOK(ecode5)) { | |
14858 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
14859 | } | |
14860 | arg5 = static_cast< int >(val5); | |
14861 | { | |
14862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14863 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
14864 | wxPyEndAllowThreads(__tstate); | |
14865 | if (PyErr_Occurred()) SWIG_fail; | |
14866 | } | |
14867 | resultobj = SWIG_Py_Void(); | |
14868 | return resultobj; | |
14869 | fail: | |
14870 | return NULL; | |
14871 | } | |
14872 | ||
14873 | ||
14874 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14875 | PyObject *resultobj = 0; | |
14876 | wxDC *arg1 = (wxDC *) 0 ; | |
14877 | wxPoint *arg2 = 0 ; | |
14878 | wxPoint *arg3 = 0 ; | |
14879 | void *argp1 = 0 ; | |
14880 | int res1 = 0 ; | |
14881 | wxPoint temp2 ; | |
14882 | wxPoint temp3 ; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | PyObject * obj1 = 0 ; | |
14885 | PyObject * obj2 = 0 ; | |
14886 | char * kwnames[] = { | |
14887 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
14888 | }; | |
14889 | ||
14890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14892 | if (!SWIG_IsOK(res1)) { | |
14893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14894 | } | |
14895 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14896 | { | |
14897 | arg2 = &temp2; | |
14898 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14899 | } | |
14900 | { | |
14901 | arg3 = &temp3; | |
14902 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14903 | } | |
14904 | { | |
14905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14906 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
14907 | wxPyEndAllowThreads(__tstate); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
14909 | } | |
14910 | resultobj = SWIG_Py_Void(); | |
14911 | return resultobj; | |
14912 | fail: | |
14913 | return NULL; | |
14914 | } | |
14915 | ||
14916 | ||
14917 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14918 | PyObject *resultobj = 0; | |
14919 | wxDC *arg1 = (wxDC *) 0 ; | |
14920 | int arg2 ; | |
14921 | int arg3 ; | |
14922 | void *argp1 = 0 ; | |
14923 | int res1 = 0 ; | |
14924 | int val2 ; | |
14925 | int ecode2 = 0 ; | |
14926 | int val3 ; | |
14927 | int ecode3 = 0 ; | |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | PyObject * obj2 = 0 ; | |
14931 | char * kwnames[] = { | |
14932 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14933 | }; | |
14934 | ||
14935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14937 | if (!SWIG_IsOK(res1)) { | |
14938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14939 | } | |
14940 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14941 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14942 | if (!SWIG_IsOK(ecode2)) { | |
14943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
14944 | } | |
14945 | arg2 = static_cast< int >(val2); | |
14946 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14947 | if (!SWIG_IsOK(ecode3)) { | |
14948 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
14949 | } | |
14950 | arg3 = static_cast< int >(val3); | |
14951 | { | |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14953 | (arg1)->CrossHair(arg2,arg3); | |
14954 | wxPyEndAllowThreads(__tstate); | |
14955 | if (PyErr_Occurred()) SWIG_fail; | |
14956 | } | |
14957 | resultobj = SWIG_Py_Void(); | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
14964 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14965 | PyObject *resultobj = 0; | |
14966 | wxDC *arg1 = (wxDC *) 0 ; | |
14967 | wxPoint *arg2 = 0 ; | |
14968 | void *argp1 = 0 ; | |
14969 | int res1 = 0 ; | |
14970 | wxPoint temp2 ; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | PyObject * obj1 = 0 ; | |
14973 | char * kwnames[] = { | |
14974 | (char *) "self",(char *) "pt", NULL | |
14975 | }; | |
14976 | ||
14977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
14978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
14979 | if (!SWIG_IsOK(res1)) { | |
14980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
14981 | } | |
14982 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
14983 | { | |
14984 | arg2 = &temp2; | |
14985 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14986 | } | |
14987 | { | |
14988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14989 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | resultobj = SWIG_Py_Void(); | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15001 | PyObject *resultobj = 0; | |
15002 | wxDC *arg1 = (wxDC *) 0 ; | |
15003 | int arg2 ; | |
15004 | int arg3 ; | |
15005 | int arg4 ; | |
15006 | int arg5 ; | |
15007 | int arg6 ; | |
15008 | int arg7 ; | |
15009 | void *argp1 = 0 ; | |
15010 | int res1 = 0 ; | |
15011 | int val2 ; | |
15012 | int ecode2 = 0 ; | |
15013 | int val3 ; | |
15014 | int ecode3 = 0 ; | |
15015 | int val4 ; | |
15016 | int ecode4 = 0 ; | |
15017 | int val5 ; | |
15018 | int ecode5 = 0 ; | |
15019 | int val6 ; | |
15020 | int ecode6 = 0 ; | |
15021 | int val7 ; | |
15022 | int ecode7 = 0 ; | |
15023 | PyObject * obj0 = 0 ; | |
15024 | PyObject * obj1 = 0 ; | |
15025 | PyObject * obj2 = 0 ; | |
15026 | PyObject * obj3 = 0 ; | |
15027 | PyObject * obj4 = 0 ; | |
15028 | PyObject * obj5 = 0 ; | |
15029 | PyObject * obj6 = 0 ; | |
15030 | char * kwnames[] = { | |
15031 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
15032 | }; | |
15033 | ||
15034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15036 | if (!SWIG_IsOK(res1)) { | |
15037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15038 | } | |
15039 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15040 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15041 | if (!SWIG_IsOK(ecode2)) { | |
15042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
15043 | } | |
15044 | arg2 = static_cast< int >(val2); | |
15045 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15046 | if (!SWIG_IsOK(ecode3)) { | |
15047 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
15048 | } | |
15049 | arg3 = static_cast< int >(val3); | |
15050 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15051 | if (!SWIG_IsOK(ecode4)) { | |
15052 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
15053 | } | |
15054 | arg4 = static_cast< int >(val4); | |
15055 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15056 | if (!SWIG_IsOK(ecode5)) { | |
15057 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
15058 | } | |
15059 | arg5 = static_cast< int >(val5); | |
15060 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
15061 | if (!SWIG_IsOK(ecode6)) { | |
15062 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
15063 | } | |
15064 | arg6 = static_cast< int >(val6); | |
15065 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
15066 | if (!SWIG_IsOK(ecode7)) { | |
15067 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
15068 | } | |
15069 | arg7 = static_cast< int >(val7); | |
15070 | { | |
15071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15072 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15073 | wxPyEndAllowThreads(__tstate); | |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
15075 | } | |
15076 | resultobj = SWIG_Py_Void(); | |
15077 | return resultobj; | |
15078 | fail: | |
15079 | return NULL; | |
15080 | } | |
15081 | ||
15082 | ||
15083 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15084 | PyObject *resultobj = 0; | |
15085 | wxDC *arg1 = (wxDC *) 0 ; | |
15086 | wxPoint *arg2 = 0 ; | |
15087 | wxPoint *arg3 = 0 ; | |
15088 | wxPoint *arg4 = 0 ; | |
15089 | void *argp1 = 0 ; | |
15090 | int res1 = 0 ; | |
15091 | wxPoint temp2 ; | |
15092 | wxPoint temp3 ; | |
15093 | wxPoint temp4 ; | |
15094 | PyObject * obj0 = 0 ; | |
15095 | PyObject * obj1 = 0 ; | |
15096 | PyObject * obj2 = 0 ; | |
15097 | PyObject * obj3 = 0 ; | |
15098 | char * kwnames[] = { | |
15099 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
15100 | }; | |
15101 | ||
15102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15104 | if (!SWIG_IsOK(res1)) { | |
15105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15106 | } | |
15107 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15108 | { | |
15109 | arg2 = &temp2; | |
15110 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15111 | } | |
15112 | { | |
15113 | arg3 = &temp3; | |
15114 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15115 | } | |
15116 | { | |
15117 | arg4 = &temp4; | |
15118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15119 | } | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
15123 | wxPyEndAllowThreads(__tstate); | |
15124 | if (PyErr_Occurred()) SWIG_fail; | |
15125 | } | |
15126 | resultobj = SWIG_Py_Void(); | |
15127 | return resultobj; | |
15128 | fail: | |
15129 | return NULL; | |
15130 | } | |
15131 | ||
15132 | ||
15133 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15134 | PyObject *resultobj = 0; | |
15135 | wxDC *arg1 = (wxDC *) 0 ; | |
15136 | int arg2 ; | |
15137 | int arg3 ; | |
15138 | int arg4 ; | |
15139 | int arg5 ; | |
15140 | void *argp1 = 0 ; | |
15141 | int res1 = 0 ; | |
15142 | int val2 ; | |
15143 | int ecode2 = 0 ; | |
15144 | int val3 ; | |
15145 | int ecode3 = 0 ; | |
15146 | int val4 ; | |
15147 | int ecode4 = 0 ; | |
15148 | int val5 ; | |
15149 | int ecode5 = 0 ; | |
15150 | PyObject * obj0 = 0 ; | |
15151 | PyObject * obj1 = 0 ; | |
15152 | PyObject * obj2 = 0 ; | |
15153 | PyObject * obj3 = 0 ; | |
15154 | PyObject * obj4 = 0 ; | |
15155 | char * kwnames[] = { | |
15156 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15157 | }; | |
15158 | ||
15159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15161 | if (!SWIG_IsOK(res1)) { | |
15162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15163 | } | |
15164 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15166 | if (!SWIG_IsOK(ecode2)) { | |
15167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
15168 | } | |
15169 | arg2 = static_cast< int >(val2); | |
15170 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15171 | if (!SWIG_IsOK(ecode3)) { | |
15172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
15173 | } | |
15174 | arg3 = static_cast< int >(val3); | |
15175 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15176 | if (!SWIG_IsOK(ecode4)) { | |
15177 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
15178 | } | |
15179 | arg4 = static_cast< int >(val4); | |
15180 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15181 | if (!SWIG_IsOK(ecode5)) { | |
15182 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
15183 | } | |
15184 | arg5 = static_cast< int >(val5); | |
15185 | { | |
15186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15187 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
15188 | wxPyEndAllowThreads(__tstate); | |
15189 | if (PyErr_Occurred()) SWIG_fail; | |
15190 | } | |
15191 | resultobj = SWIG_Py_Void(); | |
15192 | return resultobj; | |
15193 | fail: | |
15194 | return NULL; | |
15195 | } | |
15196 | ||
15197 | ||
15198 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15199 | PyObject *resultobj = 0; | |
15200 | wxDC *arg1 = (wxDC *) 0 ; | |
15201 | wxRect *arg2 = 0 ; | |
15202 | void *argp1 = 0 ; | |
15203 | int res1 = 0 ; | |
15204 | wxRect temp2 ; | |
15205 | PyObject * obj0 = 0 ; | |
15206 | PyObject * obj1 = 0 ; | |
15207 | char * kwnames[] = { | |
15208 | (char *) "self",(char *) "rect", NULL | |
15209 | }; | |
15210 | ||
15211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
15212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15213 | if (!SWIG_IsOK(res1)) { | |
15214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15215 | } | |
15216 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15217 | { | |
15218 | arg2 = &temp2; | |
15219 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15220 | } | |
15221 | { | |
15222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15223 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
15224 | wxPyEndAllowThreads(__tstate); | |
15225 | if (PyErr_Occurred()) SWIG_fail; | |
15226 | } | |
15227 | resultobj = SWIG_Py_Void(); | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
15234 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15235 | PyObject *resultobj = 0; | |
15236 | wxDC *arg1 = (wxDC *) 0 ; | |
15237 | int arg2 ; | |
15238 | int arg3 ; | |
15239 | int arg4 ; | |
15240 | int arg5 ; | |
15241 | double arg6 ; | |
15242 | double arg7 ; | |
15243 | void *argp1 = 0 ; | |
15244 | int res1 = 0 ; | |
15245 | int val2 ; | |
15246 | int ecode2 = 0 ; | |
15247 | int val3 ; | |
15248 | int ecode3 = 0 ; | |
15249 | int val4 ; | |
15250 | int ecode4 = 0 ; | |
15251 | int val5 ; | |
15252 | int ecode5 = 0 ; | |
15253 | double val6 ; | |
15254 | int ecode6 = 0 ; | |
15255 | double val7 ; | |
15256 | int ecode7 = 0 ; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | PyObject * obj1 = 0 ; | |
15259 | PyObject * obj2 = 0 ; | |
15260 | PyObject * obj3 = 0 ; | |
15261 | PyObject * obj4 = 0 ; | |
15262 | PyObject * obj5 = 0 ; | |
15263 | PyObject * obj6 = 0 ; | |
15264 | char * kwnames[] = { | |
15265 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
15266 | }; | |
15267 | ||
15268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15270 | if (!SWIG_IsOK(res1)) { | |
15271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15272 | } | |
15273 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15275 | if (!SWIG_IsOK(ecode2)) { | |
15276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
15277 | } | |
15278 | arg2 = static_cast< int >(val2); | |
15279 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15280 | if (!SWIG_IsOK(ecode3)) { | |
15281 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
15282 | } | |
15283 | arg3 = static_cast< int >(val3); | |
15284 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15285 | if (!SWIG_IsOK(ecode4)) { | |
15286 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
15287 | } | |
15288 | arg4 = static_cast< int >(val4); | |
15289 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15290 | if (!SWIG_IsOK(ecode5)) { | |
15291 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
15292 | } | |
15293 | arg5 = static_cast< int >(val5); | |
15294 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
15295 | if (!SWIG_IsOK(ecode6)) { | |
15296 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
15297 | } | |
15298 | arg6 = static_cast< double >(val6); | |
15299 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
15300 | if (!SWIG_IsOK(ecode7)) { | |
15301 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
15302 | } | |
15303 | arg7 = static_cast< double >(val7); | |
15304 | { | |
15305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15306 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15310 | resultobj = SWIG_Py_Void(); | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15318 | PyObject *resultobj = 0; | |
15319 | wxDC *arg1 = (wxDC *) 0 ; | |
15320 | wxPoint *arg2 = 0 ; | |
15321 | wxSize *arg3 = 0 ; | |
15322 | double arg4 ; | |
15323 | double arg5 ; | |
15324 | void *argp1 = 0 ; | |
15325 | int res1 = 0 ; | |
15326 | wxPoint temp2 ; | |
15327 | wxSize temp3 ; | |
15328 | double val4 ; | |
15329 | int ecode4 = 0 ; | |
15330 | double val5 ; | |
15331 | int ecode5 = 0 ; | |
15332 | PyObject * obj0 = 0 ; | |
15333 | PyObject * obj1 = 0 ; | |
15334 | PyObject * obj2 = 0 ; | |
15335 | PyObject * obj3 = 0 ; | |
15336 | PyObject * obj4 = 0 ; | |
15337 | char * kwnames[] = { | |
15338 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
15339 | }; | |
15340 | ||
15341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15343 | if (!SWIG_IsOK(res1)) { | |
15344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15345 | } | |
15346 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15347 | { | |
15348 | arg2 = &temp2; | |
15349 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15350 | } | |
15351 | { | |
15352 | arg3 = &temp3; | |
15353 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15354 | } | |
15355 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
15356 | if (!SWIG_IsOK(ecode4)) { | |
15357 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
15358 | } | |
15359 | arg4 = static_cast< double >(val4); | |
15360 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
15361 | if (!SWIG_IsOK(ecode5)) { | |
15362 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
15363 | } | |
15364 | arg5 = static_cast< double >(val5); | |
15365 | { | |
15366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15367 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
15368 | wxPyEndAllowThreads(__tstate); | |
15369 | if (PyErr_Occurred()) SWIG_fail; | |
15370 | } | |
15371 | resultobj = SWIG_Py_Void(); | |
15372 | return resultobj; | |
15373 | fail: | |
15374 | return NULL; | |
15375 | } | |
15376 | ||
15377 | ||
15378 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15379 | PyObject *resultobj = 0; | |
15380 | wxDC *arg1 = (wxDC *) 0 ; | |
15381 | int arg2 ; | |
15382 | int arg3 ; | |
15383 | void *argp1 = 0 ; | |
15384 | int res1 = 0 ; | |
15385 | int val2 ; | |
15386 | int ecode2 = 0 ; | |
15387 | int val3 ; | |
15388 | int ecode3 = 0 ; | |
15389 | PyObject * obj0 = 0 ; | |
15390 | PyObject * obj1 = 0 ; | |
15391 | PyObject * obj2 = 0 ; | |
15392 | char * kwnames[] = { | |
15393 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15394 | }; | |
15395 | ||
15396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15398 | if (!SWIG_IsOK(res1)) { | |
15399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15400 | } | |
15401 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15402 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15403 | if (!SWIG_IsOK(ecode2)) { | |
15404 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
15405 | } | |
15406 | arg2 = static_cast< int >(val2); | |
15407 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15408 | if (!SWIG_IsOK(ecode3)) { | |
15409 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
15410 | } | |
15411 | arg3 = static_cast< int >(val3); | |
15412 | { | |
15413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15414 | (arg1)->DrawPoint(arg2,arg3); | |
15415 | wxPyEndAllowThreads(__tstate); | |
15416 | if (PyErr_Occurred()) SWIG_fail; | |
15417 | } | |
15418 | resultobj = SWIG_Py_Void(); | |
15419 | return resultobj; | |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15426 | PyObject *resultobj = 0; | |
15427 | wxDC *arg1 = (wxDC *) 0 ; | |
15428 | wxPoint *arg2 = 0 ; | |
15429 | void *argp1 = 0 ; | |
15430 | int res1 = 0 ; | |
15431 | wxPoint temp2 ; | |
15432 | PyObject * obj0 = 0 ; | |
15433 | PyObject * obj1 = 0 ; | |
15434 | char * kwnames[] = { | |
15435 | (char *) "self",(char *) "pt", NULL | |
15436 | }; | |
15437 | ||
15438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
15439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15440 | if (!SWIG_IsOK(res1)) { | |
15441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15442 | } | |
15443 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15444 | { | |
15445 | arg2 = &temp2; | |
15446 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15447 | } | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
15451 | wxPyEndAllowThreads(__tstate); | |
15452 | if (PyErr_Occurred()) SWIG_fail; | |
15453 | } | |
15454 | resultobj = SWIG_Py_Void(); | |
15455 | return resultobj; | |
15456 | fail: | |
15457 | return NULL; | |
15458 | } | |
15459 | ||
15460 | ||
15461 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15462 | PyObject *resultobj = 0; | |
15463 | wxDC *arg1 = (wxDC *) 0 ; | |
15464 | int arg2 ; | |
15465 | int arg3 ; | |
15466 | int arg4 ; | |
15467 | int arg5 ; | |
15468 | void *argp1 = 0 ; | |
15469 | int res1 = 0 ; | |
15470 | int val2 ; | |
15471 | int ecode2 = 0 ; | |
15472 | int val3 ; | |
15473 | int ecode3 = 0 ; | |
15474 | int val4 ; | |
15475 | int ecode4 = 0 ; | |
15476 | int val5 ; | |
15477 | int ecode5 = 0 ; | |
15478 | PyObject * obj0 = 0 ; | |
15479 | PyObject * obj1 = 0 ; | |
15480 | PyObject * obj2 = 0 ; | |
15481 | PyObject * obj3 = 0 ; | |
15482 | PyObject * obj4 = 0 ; | |
15483 | char * kwnames[] = { | |
15484 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15485 | }; | |
15486 | ||
15487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15489 | if (!SWIG_IsOK(res1)) { | |
15490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15491 | } | |
15492 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15493 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15494 | if (!SWIG_IsOK(ecode2)) { | |
15495 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
15496 | } | |
15497 | arg2 = static_cast< int >(val2); | |
15498 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15499 | if (!SWIG_IsOK(ecode3)) { | |
15500 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
15501 | } | |
15502 | arg3 = static_cast< int >(val3); | |
15503 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15504 | if (!SWIG_IsOK(ecode4)) { | |
15505 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
15506 | } | |
15507 | arg4 = static_cast< int >(val4); | |
15508 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15509 | if (!SWIG_IsOK(ecode5)) { | |
15510 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
15511 | } | |
15512 | arg5 = static_cast< int >(val5); | |
15513 | { | |
15514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15515 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
15516 | wxPyEndAllowThreads(__tstate); | |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
15519 | resultobj = SWIG_Py_Void(); | |
15520 | return resultobj; | |
15521 | fail: | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
15526 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15527 | PyObject *resultobj = 0; | |
15528 | wxDC *arg1 = (wxDC *) 0 ; | |
15529 | wxRect *arg2 = 0 ; | |
15530 | void *argp1 = 0 ; | |
15531 | int res1 = 0 ; | |
15532 | wxRect temp2 ; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | PyObject * obj1 = 0 ; | |
15535 | char * kwnames[] = { | |
15536 | (char *) "self",(char *) "rect", NULL | |
15537 | }; | |
15538 | ||
15539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
15540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15541 | if (!SWIG_IsOK(res1)) { | |
15542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15543 | } | |
15544 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15545 | { | |
15546 | arg2 = &temp2; | |
15547 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15548 | } | |
15549 | { | |
15550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15551 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
15552 | wxPyEndAllowThreads(__tstate); | |
15553 | if (PyErr_Occurred()) SWIG_fail; | |
15554 | } | |
15555 | resultobj = SWIG_Py_Void(); | |
15556 | return resultobj; | |
15557 | fail: | |
15558 | return NULL; | |
15559 | } | |
15560 | ||
15561 | ||
15562 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15563 | PyObject *resultobj = 0; | |
15564 | wxDC *arg1 = (wxDC *) 0 ; | |
15565 | wxPoint *arg2 = 0 ; | |
15566 | wxSize *arg3 = 0 ; | |
15567 | void *argp1 = 0 ; | |
15568 | int res1 = 0 ; | |
15569 | wxPoint temp2 ; | |
15570 | wxSize temp3 ; | |
15571 | PyObject * obj0 = 0 ; | |
15572 | PyObject * obj1 = 0 ; | |
15573 | PyObject * obj2 = 0 ; | |
15574 | char * kwnames[] = { | |
15575 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
15576 | }; | |
15577 | ||
15578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15580 | if (!SWIG_IsOK(res1)) { | |
15581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15582 | } | |
15583 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15584 | { | |
15585 | arg2 = &temp2; | |
15586 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15587 | } | |
15588 | { | |
15589 | arg3 = &temp3; | |
15590 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15591 | } | |
15592 | { | |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15594 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
15595 | wxPyEndAllowThreads(__tstate); | |
15596 | if (PyErr_Occurred()) SWIG_fail; | |
15597 | } | |
15598 | resultobj = SWIG_Py_Void(); | |
15599 | return resultobj; | |
15600 | fail: | |
15601 | return NULL; | |
15602 | } | |
15603 | ||
15604 | ||
15605 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15606 | PyObject *resultobj = 0; | |
15607 | wxDC *arg1 = (wxDC *) 0 ; | |
15608 | int arg2 ; | |
15609 | int arg3 ; | |
15610 | int arg4 ; | |
15611 | int arg5 ; | |
15612 | double arg6 ; | |
15613 | void *argp1 = 0 ; | |
15614 | int res1 = 0 ; | |
15615 | int val2 ; | |
15616 | int ecode2 = 0 ; | |
15617 | int val3 ; | |
15618 | int ecode3 = 0 ; | |
15619 | int val4 ; | |
15620 | int ecode4 = 0 ; | |
15621 | int val5 ; | |
15622 | int ecode5 = 0 ; | |
15623 | double val6 ; | |
15624 | int ecode6 = 0 ; | |
15625 | PyObject * obj0 = 0 ; | |
15626 | PyObject * obj1 = 0 ; | |
15627 | PyObject * obj2 = 0 ; | |
15628 | PyObject * obj3 = 0 ; | |
15629 | PyObject * obj4 = 0 ; | |
15630 | PyObject * obj5 = 0 ; | |
15631 | char * kwnames[] = { | |
15632 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
15633 | }; | |
15634 | ||
15635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15637 | if (!SWIG_IsOK(res1)) { | |
15638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15639 | } | |
15640 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15641 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15642 | if (!SWIG_IsOK(ecode2)) { | |
15643 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
15644 | } | |
15645 | arg2 = static_cast< int >(val2); | |
15646 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15647 | if (!SWIG_IsOK(ecode3)) { | |
15648 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
15649 | } | |
15650 | arg3 = static_cast< int >(val3); | |
15651 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15652 | if (!SWIG_IsOK(ecode4)) { | |
15653 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
15654 | } | |
15655 | arg4 = static_cast< int >(val4); | |
15656 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15657 | if (!SWIG_IsOK(ecode5)) { | |
15658 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
15659 | } | |
15660 | arg5 = static_cast< int >(val5); | |
15661 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
15662 | if (!SWIG_IsOK(ecode6)) { | |
15663 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
15664 | } | |
15665 | arg6 = static_cast< double >(val6); | |
15666 | { | |
15667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15668 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
15669 | wxPyEndAllowThreads(__tstate); | |
15670 | if (PyErr_Occurred()) SWIG_fail; | |
15671 | } | |
15672 | resultobj = SWIG_Py_Void(); | |
15673 | return resultobj; | |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
15679 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15680 | PyObject *resultobj = 0; | |
15681 | wxDC *arg1 = (wxDC *) 0 ; | |
15682 | wxRect *arg2 = 0 ; | |
15683 | double arg3 ; | |
15684 | void *argp1 = 0 ; | |
15685 | int res1 = 0 ; | |
15686 | wxRect temp2 ; | |
15687 | double val3 ; | |
15688 | int ecode3 = 0 ; | |
15689 | PyObject * obj0 = 0 ; | |
15690 | PyObject * obj1 = 0 ; | |
15691 | PyObject * obj2 = 0 ; | |
15692 | char * kwnames[] = { | |
15693 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
15694 | }; | |
15695 | ||
15696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15698 | if (!SWIG_IsOK(res1)) { | |
15699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15700 | } | |
15701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15702 | { | |
15703 | arg2 = &temp2; | |
15704 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15705 | } | |
15706 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
15707 | if (!SWIG_IsOK(ecode3)) { | |
15708 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
15709 | } | |
15710 | arg3 = static_cast< double >(val3); | |
15711 | { | |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
15714 | wxPyEndAllowThreads(__tstate); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
15717 | resultobj = SWIG_Py_Void(); | |
15718 | return resultobj; | |
15719 | fail: | |
15720 | return NULL; | |
15721 | } | |
15722 | ||
15723 | ||
15724 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15725 | PyObject *resultobj = 0; | |
15726 | wxDC *arg1 = (wxDC *) 0 ; | |
15727 | wxPoint *arg2 = 0 ; | |
15728 | wxSize *arg3 = 0 ; | |
15729 | double arg4 ; | |
15730 | void *argp1 = 0 ; | |
15731 | int res1 = 0 ; | |
15732 | wxPoint temp2 ; | |
15733 | wxSize temp3 ; | |
15734 | double val4 ; | |
15735 | int ecode4 = 0 ; | |
15736 | PyObject * obj0 = 0 ; | |
15737 | PyObject * obj1 = 0 ; | |
15738 | PyObject * obj2 = 0 ; | |
15739 | PyObject * obj3 = 0 ; | |
15740 | char * kwnames[] = { | |
15741 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
15742 | }; | |
15743 | ||
15744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15746 | if (!SWIG_IsOK(res1)) { | |
15747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15748 | } | |
15749 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15750 | { | |
15751 | arg2 = &temp2; | |
15752 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15753 | } | |
15754 | { | |
15755 | arg3 = &temp3; | |
15756 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15757 | } | |
15758 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
15759 | if (!SWIG_IsOK(ecode4)) { | |
15760 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
15761 | } | |
15762 | arg4 = static_cast< double >(val4); | |
15763 | { | |
15764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15765 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
15766 | wxPyEndAllowThreads(__tstate); | |
15767 | if (PyErr_Occurred()) SWIG_fail; | |
15768 | } | |
15769 | resultobj = SWIG_Py_Void(); | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
15776 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15777 | PyObject *resultobj = 0; | |
15778 | wxDC *arg1 = (wxDC *) 0 ; | |
15779 | int arg2 ; | |
15780 | int arg3 ; | |
15781 | int arg4 ; | |
15782 | void *argp1 = 0 ; | |
15783 | int res1 = 0 ; | |
15784 | int val2 ; | |
15785 | int ecode2 = 0 ; | |
15786 | int val3 ; | |
15787 | int ecode3 = 0 ; | |
15788 | int val4 ; | |
15789 | int ecode4 = 0 ; | |
15790 | PyObject * obj0 = 0 ; | |
15791 | PyObject * obj1 = 0 ; | |
15792 | PyObject * obj2 = 0 ; | |
15793 | PyObject * obj3 = 0 ; | |
15794 | char * kwnames[] = { | |
15795 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
15796 | }; | |
15797 | ||
15798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15800 | if (!SWIG_IsOK(res1)) { | |
15801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15802 | } | |
15803 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15804 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15805 | if (!SWIG_IsOK(ecode2)) { | |
15806 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
15807 | } | |
15808 | arg2 = static_cast< int >(val2); | |
15809 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15810 | if (!SWIG_IsOK(ecode3)) { | |
15811 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
15812 | } | |
15813 | arg3 = static_cast< int >(val3); | |
15814 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15815 | if (!SWIG_IsOK(ecode4)) { | |
15816 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
15817 | } | |
15818 | arg4 = static_cast< int >(val4); | |
15819 | { | |
15820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15821 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | resultobj = SWIG_Py_Void(); | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj = 0; | |
15834 | wxDC *arg1 = (wxDC *) 0 ; | |
15835 | wxPoint *arg2 = 0 ; | |
15836 | int arg3 ; | |
15837 | void *argp1 = 0 ; | |
15838 | int res1 = 0 ; | |
15839 | wxPoint temp2 ; | |
15840 | int val3 ; | |
15841 | int ecode3 = 0 ; | |
15842 | PyObject * obj0 = 0 ; | |
15843 | PyObject * obj1 = 0 ; | |
15844 | PyObject * obj2 = 0 ; | |
15845 | char * kwnames[] = { | |
15846 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
15847 | }; | |
15848 | ||
15849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15851 | if (!SWIG_IsOK(res1)) { | |
15852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15853 | } | |
15854 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15855 | { | |
15856 | arg2 = &temp2; | |
15857 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15858 | } | |
15859 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15860 | if (!SWIG_IsOK(ecode3)) { | |
15861 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
15862 | } | |
15863 | arg3 = static_cast< int >(val3); | |
15864 | { | |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | resultobj = SWIG_Py_Void(); | |
15871 | return resultobj; | |
15872 | fail: | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
15877 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15878 | PyObject *resultobj = 0; | |
15879 | wxDC *arg1 = (wxDC *) 0 ; | |
15880 | int arg2 ; | |
15881 | int arg3 ; | |
15882 | int arg4 ; | |
15883 | int arg5 ; | |
15884 | void *argp1 = 0 ; | |
15885 | int res1 = 0 ; | |
15886 | int val2 ; | |
15887 | int ecode2 = 0 ; | |
15888 | int val3 ; | |
15889 | int ecode3 = 0 ; | |
15890 | int val4 ; | |
15891 | int ecode4 = 0 ; | |
15892 | int val5 ; | |
15893 | int ecode5 = 0 ; | |
15894 | PyObject * obj0 = 0 ; | |
15895 | PyObject * obj1 = 0 ; | |
15896 | PyObject * obj2 = 0 ; | |
15897 | PyObject * obj3 = 0 ; | |
15898 | PyObject * obj4 = 0 ; | |
15899 | char * kwnames[] = { | |
15900 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15901 | }; | |
15902 | ||
15903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
15904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15905 | if (!SWIG_IsOK(res1)) { | |
15906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15907 | } | |
15908 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15909 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15910 | if (!SWIG_IsOK(ecode2)) { | |
15911 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
15912 | } | |
15913 | arg2 = static_cast< int >(val2); | |
15914 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15915 | if (!SWIG_IsOK(ecode3)) { | |
15916 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
15917 | } | |
15918 | arg3 = static_cast< int >(val3); | |
15919 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15920 | if (!SWIG_IsOK(ecode4)) { | |
15921 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
15922 | } | |
15923 | arg4 = static_cast< int >(val4); | |
15924 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
15925 | if (!SWIG_IsOK(ecode5)) { | |
15926 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
15927 | } | |
15928 | arg5 = static_cast< int >(val5); | |
15929 | { | |
15930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15931 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
15932 | wxPyEndAllowThreads(__tstate); | |
15933 | if (PyErr_Occurred()) SWIG_fail; | |
15934 | } | |
15935 | resultobj = SWIG_Py_Void(); | |
15936 | return resultobj; | |
15937 | fail: | |
15938 | return NULL; | |
15939 | } | |
15940 | ||
15941 | ||
15942 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15943 | PyObject *resultobj = 0; | |
15944 | wxDC *arg1 = (wxDC *) 0 ; | |
15945 | wxRect *arg2 = 0 ; | |
15946 | void *argp1 = 0 ; | |
15947 | int res1 = 0 ; | |
15948 | wxRect temp2 ; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | PyObject * obj1 = 0 ; | |
15951 | char * kwnames[] = { | |
15952 | (char *) "self",(char *) "rect", NULL | |
15953 | }; | |
15954 | ||
15955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
15956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15957 | if (!SWIG_IsOK(res1)) { | |
15958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15959 | } | |
15960 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
15961 | { | |
15962 | arg2 = &temp2; | |
15963 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15964 | } | |
15965 | { | |
15966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15967 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
15968 | wxPyEndAllowThreads(__tstate); | |
15969 | if (PyErr_Occurred()) SWIG_fail; | |
15970 | } | |
15971 | resultobj = SWIG_Py_Void(); | |
15972 | return resultobj; | |
15973 | fail: | |
15974 | return NULL; | |
15975 | } | |
15976 | ||
15977 | ||
15978 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15979 | PyObject *resultobj = 0; | |
15980 | wxDC *arg1 = (wxDC *) 0 ; | |
15981 | wxPoint *arg2 = 0 ; | |
15982 | wxSize *arg3 = 0 ; | |
15983 | void *argp1 = 0 ; | |
15984 | int res1 = 0 ; | |
15985 | wxPoint temp2 ; | |
15986 | wxSize temp3 ; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | PyObject * obj1 = 0 ; | |
15989 | PyObject * obj2 = 0 ; | |
15990 | char * kwnames[] = { | |
15991 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
15992 | }; | |
15993 | ||
15994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
15996 | if (!SWIG_IsOK(res1)) { | |
15997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
15998 | } | |
15999 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16000 | { | |
16001 | arg2 = &temp2; | |
16002 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16003 | } | |
16004 | { | |
16005 | arg3 = &temp3; | |
16006 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16007 | } | |
16008 | { | |
16009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16010 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16011 | wxPyEndAllowThreads(__tstate); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
16013 | } | |
16014 | resultobj = SWIG_Py_Void(); | |
16015 | return resultobj; | |
16016 | fail: | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
16021 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16022 | PyObject *resultobj = 0; | |
16023 | wxDC *arg1 = (wxDC *) 0 ; | |
16024 | wxIcon *arg2 = 0 ; | |
16025 | int arg3 ; | |
16026 | int arg4 ; | |
16027 | void *argp1 = 0 ; | |
16028 | int res1 = 0 ; | |
16029 | void *argp2 = 0 ; | |
16030 | int res2 = 0 ; | |
16031 | int val3 ; | |
16032 | int ecode3 = 0 ; | |
16033 | int val4 ; | |
16034 | int ecode4 = 0 ; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | PyObject * obj1 = 0 ; | |
16037 | PyObject * obj2 = 0 ; | |
16038 | PyObject * obj3 = 0 ; | |
16039 | char * kwnames[] = { | |
16040 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
16041 | }; | |
16042 | ||
16043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16045 | if (!SWIG_IsOK(res1)) { | |
16046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16047 | } | |
16048 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16049 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16050 | if (!SWIG_IsOK(res2)) { | |
16051 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16052 | } | |
16053 | if (!argp2) { | |
16054 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16055 | } | |
16056 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16057 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16058 | if (!SWIG_IsOK(ecode3)) { | |
16059 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
16060 | } | |
16061 | arg3 = static_cast< int >(val3); | |
16062 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16063 | if (!SWIG_IsOK(ecode4)) { | |
16064 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
16065 | } | |
16066 | arg4 = static_cast< int >(val4); | |
16067 | { | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | resultobj = SWIG_Py_Void(); | |
16074 | return resultobj; | |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
16080 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16081 | PyObject *resultobj = 0; | |
16082 | wxDC *arg1 = (wxDC *) 0 ; | |
16083 | wxIcon *arg2 = 0 ; | |
16084 | wxPoint *arg3 = 0 ; | |
16085 | void *argp1 = 0 ; | |
16086 | int res1 = 0 ; | |
16087 | void *argp2 = 0 ; | |
16088 | int res2 = 0 ; | |
16089 | wxPoint temp3 ; | |
16090 | PyObject * obj0 = 0 ; | |
16091 | PyObject * obj1 = 0 ; | |
16092 | PyObject * obj2 = 0 ; | |
16093 | char * kwnames[] = { | |
16094 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
16095 | }; | |
16096 | ||
16097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16099 | if (!SWIG_IsOK(res1)) { | |
16100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16101 | } | |
16102 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16103 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16104 | if (!SWIG_IsOK(res2)) { | |
16105 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16106 | } | |
16107 | if (!argp2) { | |
16108 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16109 | } | |
16110 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16111 | { | |
16112 | arg3 = &temp3; | |
16113 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16114 | } | |
16115 | { | |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
16118 | wxPyEndAllowThreads(__tstate); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
16121 | resultobj = SWIG_Py_Void(); | |
16122 | return resultobj; | |
16123 | fail: | |
16124 | return NULL; | |
16125 | } | |
16126 | ||
16127 | ||
16128 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16129 | PyObject *resultobj = 0; | |
16130 | wxDC *arg1 = (wxDC *) 0 ; | |
16131 | wxBitmap *arg2 = 0 ; | |
16132 | int arg3 ; | |
16133 | int arg4 ; | |
16134 | bool arg5 = (bool) false ; | |
16135 | void *argp1 = 0 ; | |
16136 | int res1 = 0 ; | |
16137 | void *argp2 = 0 ; | |
16138 | int res2 = 0 ; | |
16139 | int val3 ; | |
16140 | int ecode3 = 0 ; | |
16141 | int val4 ; | |
16142 | int ecode4 = 0 ; | |
16143 | bool val5 ; | |
16144 | int ecode5 = 0 ; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | PyObject * obj1 = 0 ; | |
16147 | PyObject * obj2 = 0 ; | |
16148 | PyObject * obj3 = 0 ; | |
16149 | PyObject * obj4 = 0 ; | |
16150 | char * kwnames[] = { | |
16151 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
16152 | }; | |
16153 | ||
16154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16156 | if (!SWIG_IsOK(res1)) { | |
16157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16158 | } | |
16159 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16160 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16161 | if (!SWIG_IsOK(res2)) { | |
16162 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16163 | } | |
16164 | if (!argp2) { | |
16165 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16166 | } | |
16167 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16168 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16169 | if (!SWIG_IsOK(ecode3)) { | |
16170 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
16171 | } | |
16172 | arg3 = static_cast< int >(val3); | |
16173 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16174 | if (!SWIG_IsOK(ecode4)) { | |
16175 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
16176 | } | |
16177 | arg4 = static_cast< int >(val4); | |
16178 | if (obj4) { | |
16179 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16180 | if (!SWIG_IsOK(ecode5)) { | |
16181 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
16182 | } | |
16183 | arg5 = static_cast< bool >(val5); | |
16184 | } | |
16185 | { | |
16186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16187 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
16191 | resultobj = SWIG_Py_Void(); | |
16192 | return resultobj; | |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
16198 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16199 | PyObject *resultobj = 0; | |
16200 | wxDC *arg1 = (wxDC *) 0 ; | |
16201 | wxBitmap *arg2 = 0 ; | |
16202 | wxPoint *arg3 = 0 ; | |
16203 | bool arg4 = (bool) false ; | |
16204 | void *argp1 = 0 ; | |
16205 | int res1 = 0 ; | |
16206 | void *argp2 = 0 ; | |
16207 | int res2 = 0 ; | |
16208 | wxPoint temp3 ; | |
16209 | bool val4 ; | |
16210 | int ecode4 = 0 ; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | PyObject * obj1 = 0 ; | |
16213 | PyObject * obj2 = 0 ; | |
16214 | PyObject * obj3 = 0 ; | |
16215 | char * kwnames[] = { | |
16216 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
16217 | }; | |
16218 | ||
16219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16221 | if (!SWIG_IsOK(res1)) { | |
16222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16223 | } | |
16224 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16225 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
16226 | if (!SWIG_IsOK(res2)) { | |
16227 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16228 | } | |
16229 | if (!argp2) { | |
16230 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
16231 | } | |
16232 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
16233 | { | |
16234 | arg3 = &temp3; | |
16235 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16236 | } | |
16237 | if (obj3) { | |
16238 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
16239 | if (!SWIG_IsOK(ecode4)) { | |
16240 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
16241 | } | |
16242 | arg4 = static_cast< bool >(val4); | |
16243 | } | |
16244 | { | |
16245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16246 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | resultobj = SWIG_Py_Void(); | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj = 0; | |
16259 | wxDC *arg1 = (wxDC *) 0 ; | |
16260 | wxString *arg2 = 0 ; | |
16261 | int arg3 ; | |
16262 | int arg4 ; | |
16263 | void *argp1 = 0 ; | |
16264 | int res1 = 0 ; | |
16265 | bool temp2 = false ; | |
16266 | int val3 ; | |
16267 | int ecode3 = 0 ; | |
16268 | int val4 ; | |
16269 | int ecode4 = 0 ; | |
16270 | PyObject * obj0 = 0 ; | |
16271 | PyObject * obj1 = 0 ; | |
16272 | PyObject * obj2 = 0 ; | |
16273 | PyObject * obj3 = 0 ; | |
16274 | char * kwnames[] = { | |
16275 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
16276 | }; | |
16277 | ||
16278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16280 | if (!SWIG_IsOK(res1)) { | |
16281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16282 | } | |
16283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16284 | { | |
16285 | arg2 = wxString_in_helper(obj1); | |
16286 | if (arg2 == NULL) SWIG_fail; | |
16287 | temp2 = true; | |
16288 | } | |
16289 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16290 | if (!SWIG_IsOK(ecode3)) { | |
16291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
16292 | } | |
16293 | arg3 = static_cast< int >(val3); | |
16294 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16295 | if (!SWIG_IsOK(ecode4)) { | |
16296 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
16297 | } | |
16298 | arg4 = static_cast< int >(val4); | |
16299 | { | |
16300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16301 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | resultobj = SWIG_Py_Void(); | |
16306 | { | |
16307 | if (temp2) | |
16308 | delete arg2; | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | { | |
16313 | if (temp2) | |
16314 | delete arg2; | |
16315 | } | |
16316 | return NULL; | |
16317 | } | |
16318 | ||
16319 | ||
16320 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16321 | PyObject *resultobj = 0; | |
16322 | wxDC *arg1 = (wxDC *) 0 ; | |
16323 | wxString *arg2 = 0 ; | |
16324 | wxPoint *arg3 = 0 ; | |
16325 | void *argp1 = 0 ; | |
16326 | int res1 = 0 ; | |
16327 | bool temp2 = false ; | |
16328 | wxPoint temp3 ; | |
16329 | PyObject * obj0 = 0 ; | |
16330 | PyObject * obj1 = 0 ; | |
16331 | PyObject * obj2 = 0 ; | |
16332 | char * kwnames[] = { | |
16333 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
16334 | }; | |
16335 | ||
16336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16338 | if (!SWIG_IsOK(res1)) { | |
16339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16340 | } | |
16341 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16342 | { | |
16343 | arg2 = wxString_in_helper(obj1); | |
16344 | if (arg2 == NULL) SWIG_fail; | |
16345 | temp2 = true; | |
16346 | } | |
16347 | { | |
16348 | arg3 = &temp3; | |
16349 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16350 | } | |
16351 | { | |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
16354 | wxPyEndAllowThreads(__tstate); | |
16355 | if (PyErr_Occurred()) SWIG_fail; | |
16356 | } | |
16357 | resultobj = SWIG_Py_Void(); | |
16358 | { | |
16359 | if (temp2) | |
16360 | delete arg2; | |
16361 | } | |
16362 | return resultobj; | |
16363 | fail: | |
16364 | { | |
16365 | if (temp2) | |
16366 | delete arg2; | |
16367 | } | |
16368 | return NULL; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16373 | PyObject *resultobj = 0; | |
16374 | wxDC *arg1 = (wxDC *) 0 ; | |
16375 | wxString *arg2 = 0 ; | |
16376 | int arg3 ; | |
16377 | int arg4 ; | |
16378 | double arg5 ; | |
16379 | void *argp1 = 0 ; | |
16380 | int res1 = 0 ; | |
16381 | bool temp2 = false ; | |
16382 | int val3 ; | |
16383 | int ecode3 = 0 ; | |
16384 | int val4 ; | |
16385 | int ecode4 = 0 ; | |
16386 | double val5 ; | |
16387 | int ecode5 = 0 ; | |
16388 | PyObject * obj0 = 0 ; | |
16389 | PyObject * obj1 = 0 ; | |
16390 | PyObject * obj2 = 0 ; | |
16391 | PyObject * obj3 = 0 ; | |
16392 | PyObject * obj4 = 0 ; | |
16393 | char * kwnames[] = { | |
16394 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
16395 | }; | |
16396 | ||
16397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16399 | if (!SWIG_IsOK(res1)) { | |
16400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16401 | } | |
16402 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16403 | { | |
16404 | arg2 = wxString_in_helper(obj1); | |
16405 | if (arg2 == NULL) SWIG_fail; | |
16406 | temp2 = true; | |
16407 | } | |
16408 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16409 | if (!SWIG_IsOK(ecode3)) { | |
16410 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
16411 | } | |
16412 | arg3 = static_cast< int >(val3); | |
16413 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16414 | if (!SWIG_IsOK(ecode4)) { | |
16415 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
16416 | } | |
16417 | arg4 = static_cast< int >(val4); | |
16418 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
16419 | if (!SWIG_IsOK(ecode5)) { | |
16420 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
16421 | } | |
16422 | arg5 = static_cast< double >(val5); | |
16423 | { | |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16425 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
16429 | resultobj = SWIG_Py_Void(); | |
16430 | { | |
16431 | if (temp2) | |
16432 | delete arg2; | |
16433 | } | |
16434 | return resultobj; | |
16435 | fail: | |
16436 | { | |
16437 | if (temp2) | |
16438 | delete arg2; | |
16439 | } | |
16440 | return NULL; | |
16441 | } | |
16442 | ||
16443 | ||
16444 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16445 | PyObject *resultobj = 0; | |
16446 | wxDC *arg1 = (wxDC *) 0 ; | |
16447 | wxString *arg2 = 0 ; | |
16448 | wxPoint *arg3 = 0 ; | |
16449 | double arg4 ; | |
16450 | void *argp1 = 0 ; | |
16451 | int res1 = 0 ; | |
16452 | bool temp2 = false ; | |
16453 | wxPoint temp3 ; | |
16454 | double val4 ; | |
16455 | int ecode4 = 0 ; | |
16456 | PyObject * obj0 = 0 ; | |
16457 | PyObject * obj1 = 0 ; | |
16458 | PyObject * obj2 = 0 ; | |
16459 | PyObject * obj3 = 0 ; | |
16460 | char * kwnames[] = { | |
16461 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
16462 | }; | |
16463 | ||
16464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16466 | if (!SWIG_IsOK(res1)) { | |
16467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16468 | } | |
16469 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16470 | { | |
16471 | arg2 = wxString_in_helper(obj1); | |
16472 | if (arg2 == NULL) SWIG_fail; | |
16473 | temp2 = true; | |
16474 | } | |
16475 | { | |
16476 | arg3 = &temp3; | |
16477 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16478 | } | |
16479 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
16480 | if (!SWIG_IsOK(ecode4)) { | |
16481 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
16482 | } | |
16483 | arg4 = static_cast< double >(val4); | |
16484 | { | |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
16487 | wxPyEndAllowThreads(__tstate); | |
16488 | if (PyErr_Occurred()) SWIG_fail; | |
16489 | } | |
16490 | resultobj = SWIG_Py_Void(); | |
16491 | { | |
16492 | if (temp2) | |
16493 | delete arg2; | |
16494 | } | |
16495 | return resultobj; | |
16496 | fail: | |
16497 | { | |
16498 | if (temp2) | |
16499 | delete arg2; | |
16500 | } | |
16501 | return NULL; | |
16502 | } | |
16503 | ||
16504 | ||
16505 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16506 | PyObject *resultobj = 0; | |
16507 | wxDC *arg1 = (wxDC *) 0 ; | |
16508 | int arg2 ; | |
16509 | int arg3 ; | |
16510 | int arg4 ; | |
16511 | int arg5 ; | |
16512 | wxDC *arg6 = (wxDC *) 0 ; | |
16513 | int arg7 ; | |
16514 | int arg8 ; | |
16515 | int arg9 = (int) wxCOPY ; | |
16516 | bool arg10 = (bool) false ; | |
16517 | int arg11 = (int) -1 ; | |
16518 | int arg12 = (int) -1 ; | |
16519 | bool result; | |
16520 | void *argp1 = 0 ; | |
16521 | int res1 = 0 ; | |
16522 | int val2 ; | |
16523 | int ecode2 = 0 ; | |
16524 | int val3 ; | |
16525 | int ecode3 = 0 ; | |
16526 | int val4 ; | |
16527 | int ecode4 = 0 ; | |
16528 | int val5 ; | |
16529 | int ecode5 = 0 ; | |
16530 | void *argp6 = 0 ; | |
16531 | int res6 = 0 ; | |
16532 | int val7 ; | |
16533 | int ecode7 = 0 ; | |
16534 | int val8 ; | |
16535 | int ecode8 = 0 ; | |
16536 | int val9 ; | |
16537 | int ecode9 = 0 ; | |
16538 | bool val10 ; | |
16539 | int ecode10 = 0 ; | |
16540 | int val11 ; | |
16541 | int ecode11 = 0 ; | |
16542 | int val12 ; | |
16543 | int ecode12 = 0 ; | |
16544 | PyObject * obj0 = 0 ; | |
16545 | PyObject * obj1 = 0 ; | |
16546 | PyObject * obj2 = 0 ; | |
16547 | PyObject * obj3 = 0 ; | |
16548 | PyObject * obj4 = 0 ; | |
16549 | PyObject * obj5 = 0 ; | |
16550 | PyObject * obj6 = 0 ; | |
16551 | PyObject * obj7 = 0 ; | |
16552 | PyObject * obj8 = 0 ; | |
16553 | PyObject * obj9 = 0 ; | |
16554 | PyObject * obj10 = 0 ; | |
16555 | PyObject * obj11 = 0 ; | |
16556 | char * kwnames[] = { | |
16557 | (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 | |
16558 | }; | |
16559 | ||
16560 | 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; | |
16561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16562 | if (!SWIG_IsOK(res1)) { | |
16563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16564 | } | |
16565 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16566 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16567 | if (!SWIG_IsOK(ecode2)) { | |
16568 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
16569 | } | |
16570 | arg2 = static_cast< int >(val2); | |
16571 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16572 | if (!SWIG_IsOK(ecode3)) { | |
16573 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
16574 | } | |
16575 | arg3 = static_cast< int >(val3); | |
16576 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16577 | if (!SWIG_IsOK(ecode4)) { | |
16578 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
16579 | } | |
16580 | arg4 = static_cast< int >(val4); | |
16581 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16582 | if (!SWIG_IsOK(ecode5)) { | |
16583 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
16584 | } | |
16585 | arg5 = static_cast< int >(val5); | |
16586 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16587 | if (!SWIG_IsOK(res6)) { | |
16588 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
16589 | } | |
16590 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
16591 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
16592 | if (!SWIG_IsOK(ecode7)) { | |
16593 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
16594 | } | |
16595 | arg7 = static_cast< int >(val7); | |
16596 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
16597 | if (!SWIG_IsOK(ecode8)) { | |
16598 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
16599 | } | |
16600 | arg8 = static_cast< int >(val8); | |
16601 | if (obj8) { | |
16602 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
16603 | if (!SWIG_IsOK(ecode9)) { | |
16604 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
16605 | } | |
16606 | arg9 = static_cast< int >(val9); | |
16607 | } | |
16608 | if (obj9) { | |
16609 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
16610 | if (!SWIG_IsOK(ecode10)) { | |
16611 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
16612 | } | |
16613 | arg10 = static_cast< bool >(val10); | |
16614 | } | |
16615 | if (obj10) { | |
16616 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
16617 | if (!SWIG_IsOK(ecode11)) { | |
16618 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
16619 | } | |
16620 | arg11 = static_cast< int >(val11); | |
16621 | } | |
16622 | if (obj11) { | |
16623 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
16624 | if (!SWIG_IsOK(ecode12)) { | |
16625 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
16626 | } | |
16627 | arg12 = static_cast< int >(val12); | |
16628 | } | |
16629 | { | |
16630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16631 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16637 | } | |
16638 | return resultobj; | |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16645 | PyObject *resultobj = 0; | |
16646 | wxDC *arg1 = (wxDC *) 0 ; | |
16647 | wxPoint *arg2 = 0 ; | |
16648 | wxSize *arg3 = 0 ; | |
16649 | wxDC *arg4 = (wxDC *) 0 ; | |
16650 | wxPoint *arg5 = 0 ; | |
16651 | int arg6 = (int) wxCOPY ; | |
16652 | bool arg7 = (bool) false ; | |
16653 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
16654 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
16655 | bool result; | |
16656 | void *argp1 = 0 ; | |
16657 | int res1 = 0 ; | |
16658 | wxPoint temp2 ; | |
16659 | wxSize temp3 ; | |
16660 | void *argp4 = 0 ; | |
16661 | int res4 = 0 ; | |
16662 | wxPoint temp5 ; | |
16663 | int val6 ; | |
16664 | int ecode6 = 0 ; | |
16665 | bool val7 ; | |
16666 | int ecode7 = 0 ; | |
16667 | wxPoint temp8 ; | |
16668 | PyObject * obj0 = 0 ; | |
16669 | PyObject * obj1 = 0 ; | |
16670 | PyObject * obj2 = 0 ; | |
16671 | PyObject * obj3 = 0 ; | |
16672 | PyObject * obj4 = 0 ; | |
16673 | PyObject * obj5 = 0 ; | |
16674 | PyObject * obj6 = 0 ; | |
16675 | PyObject * obj7 = 0 ; | |
16676 | char * kwnames[] = { | |
16677 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
16678 | }; | |
16679 | ||
16680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
16681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16682 | if (!SWIG_IsOK(res1)) { | |
16683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16684 | } | |
16685 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16686 | { | |
16687 | arg2 = &temp2; | |
16688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16689 | } | |
16690 | { | |
16691 | arg3 = &temp3; | |
16692 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16693 | } | |
16694 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16695 | if (!SWIG_IsOK(res4)) { | |
16696 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
16697 | } | |
16698 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
16699 | { | |
16700 | arg5 = &temp5; | |
16701 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
16702 | } | |
16703 | if (obj5) { | |
16704 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
16705 | if (!SWIG_IsOK(ecode6)) { | |
16706 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
16707 | } | |
16708 | arg6 = static_cast< int >(val6); | |
16709 | } | |
16710 | if (obj6) { | |
16711 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
16712 | if (!SWIG_IsOK(ecode7)) { | |
16713 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
16714 | } | |
16715 | arg7 = static_cast< bool >(val7); | |
16716 | } | |
16717 | if (obj7) { | |
36ed4f51 | 16718 | { |
1bd55598 RD |
16719 | arg8 = &temp8; |
16720 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
36ed4f51 | 16721 | } |
1bd55598 RD |
16722 | } |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | { | |
16730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16731 | } | |
16732 | return resultobj; | |
16733 | fail: | |
16734 | return NULL; | |
16735 | } | |
16736 | ||
16737 | ||
16738 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16739 | PyObject *resultobj = 0; | |
16740 | wxDC *arg1 = (wxDC *) 0 ; | |
16741 | int arg2 ; | |
16742 | int arg3 ; | |
16743 | int arg4 ; | |
16744 | int arg5 ; | |
16745 | void *argp1 = 0 ; | |
16746 | int res1 = 0 ; | |
16747 | int val2 ; | |
16748 | int ecode2 = 0 ; | |
16749 | int val3 ; | |
16750 | int ecode3 = 0 ; | |
16751 | int val4 ; | |
16752 | int ecode4 = 0 ; | |
16753 | int val5 ; | |
16754 | int ecode5 = 0 ; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | PyObject * obj1 = 0 ; | |
16757 | PyObject * obj2 = 0 ; | |
16758 | PyObject * obj3 = 0 ; | |
16759 | PyObject * obj4 = 0 ; | |
16760 | char * kwnames[] = { | |
16761 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16762 | }; | |
16763 | ||
16764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
16765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16766 | if (!SWIG_IsOK(res1)) { | |
16767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16768 | } | |
16769 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16770 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16771 | if (!SWIG_IsOK(ecode2)) { | |
16772 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
16773 | } | |
16774 | arg2 = static_cast< int >(val2); | |
16775 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16776 | if (!SWIG_IsOK(ecode3)) { | |
16777 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
16778 | } | |
16779 | arg3 = static_cast< int >(val3); | |
16780 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16781 | if (!SWIG_IsOK(ecode4)) { | |
16782 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
16783 | } | |
16784 | arg4 = static_cast< int >(val4); | |
16785 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
16786 | if (!SWIG_IsOK(ecode5)) { | |
16787 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
16788 | } | |
16789 | arg5 = static_cast< int >(val5); | |
16790 | { | |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
16793 | wxPyEndAllowThreads(__tstate); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
16796 | resultobj = SWIG_Py_Void(); | |
16797 | return resultobj; | |
16798 | fail: | |
16799 | return NULL; | |
16800 | } | |
16801 | ||
16802 | ||
16803 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16804 | PyObject *resultobj = 0; | |
16805 | wxDC *arg1 = (wxDC *) 0 ; | |
16806 | wxPoint *arg2 = 0 ; | |
16807 | wxSize *arg3 = 0 ; | |
16808 | void *argp1 = 0 ; | |
16809 | int res1 = 0 ; | |
16810 | wxPoint temp2 ; | |
16811 | wxSize temp3 ; | |
16812 | PyObject * obj0 = 0 ; | |
16813 | PyObject * obj1 = 0 ; | |
16814 | PyObject * obj2 = 0 ; | |
16815 | char * kwnames[] = { | |
16816 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
16817 | }; | |
16818 | ||
16819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16821 | if (!SWIG_IsOK(res1)) { | |
16822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16823 | } | |
16824 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16825 | { | |
16826 | arg2 = &temp2; | |
16827 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16828 | } | |
16829 | { | |
16830 | arg3 = &temp3; | |
16831 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
16832 | } | |
16833 | { | |
16834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16835 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
16836 | wxPyEndAllowThreads(__tstate); | |
16837 | if (PyErr_Occurred()) SWIG_fail; | |
16838 | } | |
16839 | resultobj = SWIG_Py_Void(); | |
16840 | return resultobj; | |
16841 | fail: | |
16842 | return NULL; | |
16843 | } | |
16844 | ||
16845 | ||
16846 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16847 | PyObject *resultobj = 0; | |
16848 | wxDC *arg1 = (wxDC *) 0 ; | |
16849 | wxRegion *arg2 = 0 ; | |
16850 | void *argp1 = 0 ; | |
16851 | int res1 = 0 ; | |
16852 | void *argp2 = 0 ; | |
16853 | int res2 = 0 ; | |
16854 | PyObject * obj0 = 0 ; | |
16855 | PyObject * obj1 = 0 ; | |
16856 | char * kwnames[] = { | |
16857 | (char *) "self",(char *) "region", NULL | |
16858 | }; | |
16859 | ||
16860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
16861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16862 | if (!SWIG_IsOK(res1)) { | |
16863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16864 | } | |
16865 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16866 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
16867 | if (!SWIG_IsOK(res2)) { | |
16868 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
16869 | } | |
16870 | if (!argp2) { | |
16871 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
16872 | } | |
16873 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
16874 | { | |
16875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16876 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | resultobj = SWIG_Py_Void(); | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
16887 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16888 | PyObject *resultobj = 0; | |
16889 | wxDC *arg1 = (wxDC *) 0 ; | |
16890 | wxRect *arg2 = 0 ; | |
16891 | void *argp1 = 0 ; | |
16892 | int res1 = 0 ; | |
16893 | wxRect temp2 ; | |
16894 | PyObject * obj0 = 0 ; | |
16895 | PyObject * obj1 = 0 ; | |
16896 | char * kwnames[] = { | |
16897 | (char *) "self",(char *) "rect", NULL | |
16898 | }; | |
16899 | ||
16900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
16901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16902 | if (!SWIG_IsOK(res1)) { | |
16903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16904 | } | |
16905 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16906 | { | |
16907 | arg2 = &temp2; | |
16908 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16909 | } | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | resultobj = SWIG_Py_Void(); | |
16917 | return resultobj; | |
16918 | fail: | |
16919 | return NULL; | |
16920 | } | |
16921 | ||
16922 | ||
16923 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16924 | PyObject *resultobj = 0; | |
16925 | wxDC *arg1 = (wxDC *) 0 ; | |
16926 | int arg2 ; | |
16927 | wxPoint *arg3 = (wxPoint *) 0 ; | |
16928 | int arg4 = (int) 0 ; | |
16929 | int arg5 = (int) 0 ; | |
16930 | void *argp1 = 0 ; | |
16931 | int res1 = 0 ; | |
16932 | int val4 ; | |
16933 | int ecode4 = 0 ; | |
16934 | int val5 ; | |
16935 | int ecode5 = 0 ; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | PyObject * obj1 = 0 ; | |
16938 | PyObject * obj2 = 0 ; | |
16939 | PyObject * obj3 = 0 ; | |
16940 | char * kwnames[] = { | |
16941 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
16942 | }; | |
16943 | ||
16944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
16946 | if (!SWIG_IsOK(res1)) { | |
16947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
16948 | } | |
16949 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
16950 | { | |
16951 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
16952 | if (arg3 == NULL) SWIG_fail; | |
16953 | } | |
16954 | if (obj2) { | |
16955 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
16956 | if (!SWIG_IsOK(ecode4)) { | |
16957 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
16958 | } | |
16959 | arg4 = static_cast< int >(val4); | |
16960 | } | |
16961 | if (obj3) { | |
16962 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
16963 | if (!SWIG_IsOK(ecode5)) { | |
16964 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
16965 | } | |
16966 | arg5 = static_cast< int >(val5); | |
16967 | } | |
16968 | { | |
16969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16970 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
16971 | wxPyEndAllowThreads(__tstate); | |
16972 | if (PyErr_Occurred()) SWIG_fail; | |
16973 | } | |
16974 | resultobj = SWIG_Py_Void(); | |
16975 | { | |
16976 | if (arg3) delete [] arg3; | |
16977 | } | |
16978 | return resultobj; | |
16979 | fail: | |
16980 | { | |
16981 | if (arg3) delete [] arg3; | |
16982 | } | |
16983 | return NULL; | |
16984 | } | |
16985 | ||
16986 | ||
16987 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16988 | PyObject *resultobj = 0; | |
16989 | wxDC *arg1 = (wxDC *) 0 ; | |
16990 | int arg2 ; | |
16991 | wxPoint *arg3 = (wxPoint *) 0 ; | |
16992 | int arg4 = (int) 0 ; | |
16993 | int arg5 = (int) 0 ; | |
16994 | int arg6 = (int) wxODDEVEN_RULE ; | |
16995 | void *argp1 = 0 ; | |
16996 | int res1 = 0 ; | |
16997 | int val4 ; | |
16998 | int ecode4 = 0 ; | |
16999 | int val5 ; | |
17000 | int ecode5 = 0 ; | |
17001 | int val6 ; | |
17002 | int ecode6 = 0 ; | |
17003 | PyObject * obj0 = 0 ; | |
17004 | PyObject * obj1 = 0 ; | |
17005 | PyObject * obj2 = 0 ; | |
17006 | PyObject * obj3 = 0 ; | |
17007 | PyObject * obj4 = 0 ; | |
17008 | char * kwnames[] = { | |
17009 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
17010 | }; | |
17011 | ||
17012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17014 | if (!SWIG_IsOK(res1)) { | |
17015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17016 | } | |
17017 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17018 | { | |
17019 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17020 | if (arg3 == NULL) SWIG_fail; | |
17021 | } | |
17022 | if (obj2) { | |
17023 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
17024 | if (!SWIG_IsOK(ecode4)) { | |
17025 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
17026 | } | |
17027 | arg4 = static_cast< int >(val4); | |
17028 | } | |
17029 | if (obj3) { | |
17030 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
17031 | if (!SWIG_IsOK(ecode5)) { | |
17032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
17033 | } | |
17034 | arg5 = static_cast< int >(val5); | |
17035 | } | |
17036 | if (obj4) { | |
17037 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
17038 | if (!SWIG_IsOK(ecode6)) { | |
17039 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
17040 | } | |
17041 | arg6 = static_cast< int >(val6); | |
17042 | } | |
17043 | { | |
17044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17045 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
17049 | resultobj = SWIG_Py_Void(); | |
17050 | { | |
17051 | if (arg3) delete [] arg3; | |
17052 | } | |
17053 | return resultobj; | |
17054 | fail: | |
17055 | { | |
17056 | if (arg3) delete [] arg3; | |
17057 | } | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17063 | PyObject *resultobj = 0; | |
17064 | wxDC *arg1 = (wxDC *) 0 ; | |
17065 | wxString *arg2 = 0 ; | |
17066 | wxRect *arg3 = 0 ; | |
17067 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17068 | int arg5 = (int) -1 ; | |
17069 | void *argp1 = 0 ; | |
17070 | int res1 = 0 ; | |
17071 | bool temp2 = false ; | |
17072 | wxRect temp3 ; | |
17073 | int val4 ; | |
17074 | int ecode4 = 0 ; | |
17075 | int val5 ; | |
17076 | int ecode5 = 0 ; | |
17077 | PyObject * obj0 = 0 ; | |
17078 | PyObject * obj1 = 0 ; | |
17079 | PyObject * obj2 = 0 ; | |
17080 | PyObject * obj3 = 0 ; | |
17081 | PyObject * obj4 = 0 ; | |
17082 | char * kwnames[] = { | |
17083 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17084 | }; | |
17085 | ||
17086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17088 | if (!SWIG_IsOK(res1)) { | |
17089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17090 | } | |
17091 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17092 | { | |
17093 | arg2 = wxString_in_helper(obj1); | |
17094 | if (arg2 == NULL) SWIG_fail; | |
17095 | temp2 = true; | |
17096 | } | |
17097 | { | |
17098 | arg3 = &temp3; | |
17099 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17100 | } | |
17101 | if (obj3) { | |
17102 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17103 | if (!SWIG_IsOK(ecode4)) { | |
17104 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
17105 | } | |
17106 | arg4 = static_cast< int >(val4); | |
17107 | } | |
17108 | if (obj4) { | |
17109 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17110 | if (!SWIG_IsOK(ecode5)) { | |
17111 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
17112 | } | |
17113 | arg5 = static_cast< int >(val5); | |
17114 | } | |
17115 | { | |
17116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17117 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
17118 | wxPyEndAllowThreads(__tstate); | |
17119 | if (PyErr_Occurred()) SWIG_fail; | |
17120 | } | |
17121 | resultobj = SWIG_Py_Void(); | |
17122 | { | |
17123 | if (temp2) | |
17124 | delete arg2; | |
17125 | } | |
17126 | return resultobj; | |
17127 | fail: | |
17128 | { | |
17129 | if (temp2) | |
17130 | delete arg2; | |
17131 | } | |
17132 | return NULL; | |
17133 | } | |
17134 | ||
17135 | ||
17136 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17137 | PyObject *resultobj = 0; | |
17138 | wxDC *arg1 = (wxDC *) 0 ; | |
17139 | wxString *arg2 = 0 ; | |
17140 | wxBitmap *arg3 = 0 ; | |
17141 | wxRect *arg4 = 0 ; | |
17142 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
17143 | int arg6 = (int) -1 ; | |
17144 | wxRect result; | |
17145 | void *argp1 = 0 ; | |
17146 | int res1 = 0 ; | |
17147 | bool temp2 = false ; | |
17148 | void *argp3 = 0 ; | |
17149 | int res3 = 0 ; | |
17150 | wxRect temp4 ; | |
17151 | int val5 ; | |
17152 | int ecode5 = 0 ; | |
17153 | int val6 ; | |
17154 | int ecode6 = 0 ; | |
17155 | PyObject * obj0 = 0 ; | |
17156 | PyObject * obj1 = 0 ; | |
17157 | PyObject * obj2 = 0 ; | |
17158 | PyObject * obj3 = 0 ; | |
17159 | PyObject * obj4 = 0 ; | |
17160 | PyObject * obj5 = 0 ; | |
17161 | char * kwnames[] = { | |
17162 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
17163 | }; | |
17164 | ||
17165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17167 | if (!SWIG_IsOK(res1)) { | |
17168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17169 | } | |
17170 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17171 | { | |
17172 | arg2 = wxString_in_helper(obj1); | |
17173 | if (arg2 == NULL) SWIG_fail; | |
17174 | temp2 = true; | |
17175 | } | |
17176 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
17177 | if (!SWIG_IsOK(res3)) { | |
17178 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17179 | } | |
17180 | if (!argp3) { | |
17181 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
17182 | } | |
17183 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
17184 | { | |
17185 | arg4 = &temp4; | |
17186 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
17187 | } | |
17188 | if (obj4) { | |
17189 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17190 | if (!SWIG_IsOK(ecode5)) { | |
17191 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
17192 | } | |
17193 | arg5 = static_cast< int >(val5); | |
17194 | } | |
17195 | if (obj5) { | |
17196 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17197 | if (!SWIG_IsOK(ecode6)) { | |
17198 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
17199 | } | |
17200 | arg6 = static_cast< int >(val6); | |
17201 | } | |
17202 | { | |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17204 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
17205 | wxPyEndAllowThreads(__tstate); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | } | |
17208 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
17209 | { | |
17210 | if (temp2) | |
17211 | delete arg2; | |
17212 | } | |
17213 | return resultobj; | |
17214 | fail: | |
17215 | { | |
17216 | if (temp2) | |
17217 | delete arg2; | |
17218 | } | |
17219 | return NULL; | |
17220 | } | |
17221 | ||
17222 | ||
17223 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17224 | PyObject *resultobj = 0; | |
17225 | wxDC *arg1 = (wxDC *) 0 ; | |
17226 | int arg2 ; | |
17227 | wxPoint *arg3 = (wxPoint *) 0 ; | |
17228 | void *argp1 = 0 ; | |
17229 | int res1 = 0 ; | |
17230 | PyObject * obj0 = 0 ; | |
17231 | PyObject * obj1 = 0 ; | |
17232 | char * kwnames[] = { | |
17233 | (char *) "self",(char *) "points", NULL | |
17234 | }; | |
17235 | ||
17236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
17237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17238 | if (!SWIG_IsOK(res1)) { | |
17239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17240 | } | |
17241 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17242 | { | |
17243 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
17244 | if (arg3 == NULL) SWIG_fail; | |
17245 | } | |
17246 | { | |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17248 | (arg1)->DrawSpline(arg2,arg3); | |
17249 | wxPyEndAllowThreads(__tstate); | |
17250 | if (PyErr_Occurred()) SWIG_fail; | |
17251 | } | |
17252 | resultobj = SWIG_Py_Void(); | |
17253 | { | |
17254 | if (arg3) delete [] arg3; | |
17255 | } | |
17256 | return resultobj; | |
17257 | fail: | |
17258 | { | |
17259 | if (arg3) delete [] arg3; | |
17260 | } | |
17261 | return NULL; | |
17262 | } | |
17263 | ||
17264 | ||
17265 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17266 | PyObject *resultobj = 0; | |
17267 | wxDC *arg1 = (wxDC *) 0 ; | |
17268 | void *argp1 = 0 ; | |
17269 | int res1 = 0 ; | |
17270 | PyObject *swig_obj[1] ; | |
17271 | ||
17272 | if (!args) SWIG_fail; | |
17273 | swig_obj[0] = args; | |
17274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17275 | if (!SWIG_IsOK(res1)) { | |
17276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17277 | } | |
17278 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17279 | { | |
17280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17281 | (arg1)->Clear(); | |
17282 | wxPyEndAllowThreads(__tstate); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | } | |
17285 | resultobj = SWIG_Py_Void(); | |
17286 | return resultobj; | |
17287 | fail: | |
17288 | return NULL; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17293 | PyObject *resultobj = 0; | |
17294 | wxDC *arg1 = (wxDC *) 0 ; | |
17295 | wxString *arg2 = 0 ; | |
17296 | bool result; | |
17297 | void *argp1 = 0 ; | |
17298 | int res1 = 0 ; | |
17299 | bool temp2 = false ; | |
17300 | PyObject * obj0 = 0 ; | |
17301 | PyObject * obj1 = 0 ; | |
17302 | char * kwnames[] = { | |
17303 | (char *) "self",(char *) "message", NULL | |
17304 | }; | |
17305 | ||
17306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
17307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17308 | if (!SWIG_IsOK(res1)) { | |
17309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17310 | } | |
17311 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17312 | { | |
17313 | arg2 = wxString_in_helper(obj1); | |
17314 | if (arg2 == NULL) SWIG_fail; | |
17315 | temp2 = true; | |
17316 | } | |
17317 | { | |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17319 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
17320 | wxPyEndAllowThreads(__tstate); | |
17321 | if (PyErr_Occurred()) SWIG_fail; | |
17322 | } | |
17323 | { | |
17324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17325 | } | |
17326 | { | |
17327 | if (temp2) | |
17328 | delete arg2; | |
17329 | } | |
17330 | return resultobj; | |
17331 | fail: | |
17332 | { | |
17333 | if (temp2) | |
17334 | delete arg2; | |
17335 | } | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17341 | PyObject *resultobj = 0; | |
17342 | wxDC *arg1 = (wxDC *) 0 ; | |
17343 | void *argp1 = 0 ; | |
17344 | int res1 = 0 ; | |
17345 | PyObject *swig_obj[1] ; | |
17346 | ||
17347 | if (!args) SWIG_fail; | |
17348 | swig_obj[0] = args; | |
17349 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17350 | if (!SWIG_IsOK(res1)) { | |
17351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17352 | } | |
17353 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17354 | { | |
17355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17356 | (arg1)->EndDoc(); | |
17357 | wxPyEndAllowThreads(__tstate); | |
17358 | if (PyErr_Occurred()) SWIG_fail; | |
17359 | } | |
17360 | resultobj = SWIG_Py_Void(); | |
17361 | return resultobj; | |
17362 | fail: | |
17363 | return NULL; | |
17364 | } | |
17365 | ||
17366 | ||
17367 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17368 | PyObject *resultobj = 0; | |
17369 | wxDC *arg1 = (wxDC *) 0 ; | |
17370 | void *argp1 = 0 ; | |
17371 | int res1 = 0 ; | |
17372 | PyObject *swig_obj[1] ; | |
17373 | ||
17374 | if (!args) SWIG_fail; | |
17375 | swig_obj[0] = args; | |
17376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17377 | if (!SWIG_IsOK(res1)) { | |
17378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17379 | } | |
17380 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17381 | { | |
17382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17383 | (arg1)->StartPage(); | |
17384 | wxPyEndAllowThreads(__tstate); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | } | |
17387 | resultobj = SWIG_Py_Void(); | |
17388 | return resultobj; | |
17389 | fail: | |
17390 | return NULL; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17395 | PyObject *resultobj = 0; | |
17396 | wxDC *arg1 = (wxDC *) 0 ; | |
17397 | void *argp1 = 0 ; | |
17398 | int res1 = 0 ; | |
17399 | PyObject *swig_obj[1] ; | |
17400 | ||
17401 | if (!args) SWIG_fail; | |
17402 | swig_obj[0] = args; | |
17403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17404 | if (!SWIG_IsOK(res1)) { | |
17405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17406 | } | |
17407 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17408 | { | |
17409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17410 | (arg1)->EndPage(); | |
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | resultobj = SWIG_Py_Void(); | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
17421 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj = 0; | |
17423 | wxDC *arg1 = (wxDC *) 0 ; | |
17424 | wxFont *arg2 = 0 ; | |
17425 | void *argp1 = 0 ; | |
17426 | int res1 = 0 ; | |
17427 | void *argp2 = 0 ; | |
17428 | int res2 = 0 ; | |
17429 | PyObject * obj0 = 0 ; | |
17430 | PyObject * obj1 = 0 ; | |
17431 | char * kwnames[] = { | |
17432 | (char *) "self",(char *) "font", NULL | |
17433 | }; | |
17434 | ||
17435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
17436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17437 | if (!SWIG_IsOK(res1)) { | |
17438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17439 | } | |
17440 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17441 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
17442 | if (!SWIG_IsOK(res2)) { | |
17443 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
17444 | } | |
17445 | if (!argp2) { | |
17446 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
17447 | } | |
17448 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
17449 | { | |
17450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17451 | (arg1)->SetFont((wxFont const &)*arg2); | |
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
17455 | resultobj = SWIG_Py_Void(); | |
17456 | return resultobj; | |
17457 | fail: | |
17458 | return NULL; | |
17459 | } | |
17460 | ||
17461 | ||
17462 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17463 | PyObject *resultobj = 0; | |
17464 | wxDC *arg1 = (wxDC *) 0 ; | |
17465 | wxPen *arg2 = 0 ; | |
17466 | void *argp1 = 0 ; | |
17467 | int res1 = 0 ; | |
17468 | void *argp2 = 0 ; | |
17469 | int res2 = 0 ; | |
17470 | PyObject * obj0 = 0 ; | |
17471 | PyObject * obj1 = 0 ; | |
17472 | char * kwnames[] = { | |
17473 | (char *) "self",(char *) "pen", NULL | |
17474 | }; | |
17475 | ||
17476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
17477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17478 | if (!SWIG_IsOK(res1)) { | |
17479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17480 | } | |
17481 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17482 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
17483 | if (!SWIG_IsOK(res2)) { | |
17484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
17485 | } | |
17486 | if (!argp2) { | |
17487 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
17488 | } | |
17489 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | (arg1)->SetPen((wxPen const &)*arg2); | |
17493 | wxPyEndAllowThreads(__tstate); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
17495 | } | |
17496 | resultobj = SWIG_Py_Void(); | |
17497 | return resultobj; | |
17498 | fail: | |
17499 | return NULL; | |
17500 | } | |
17501 | ||
17502 | ||
17503 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17504 | PyObject *resultobj = 0; | |
17505 | wxDC *arg1 = (wxDC *) 0 ; | |
17506 | wxBrush *arg2 = 0 ; | |
17507 | void *argp1 = 0 ; | |
17508 | int res1 = 0 ; | |
17509 | void *argp2 = 0 ; | |
17510 | int res2 = 0 ; | |
17511 | PyObject * obj0 = 0 ; | |
17512 | PyObject * obj1 = 0 ; | |
17513 | char * kwnames[] = { | |
17514 | (char *) "self",(char *) "brush", NULL | |
17515 | }; | |
17516 | ||
17517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
17518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17519 | if (!SWIG_IsOK(res1)) { | |
17520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17521 | } | |
17522 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17523 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
17524 | if (!SWIG_IsOK(res2)) { | |
17525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
17526 | } | |
17527 | if (!argp2) { | |
17528 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
17529 | } | |
17530 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
17531 | { | |
17532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17533 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
17534 | wxPyEndAllowThreads(__tstate); | |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
17537 | resultobj = SWIG_Py_Void(); | |
17538 | return resultobj; | |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17545 | PyObject *resultobj = 0; | |
17546 | wxDC *arg1 = (wxDC *) 0 ; | |
17547 | wxBrush *arg2 = 0 ; | |
17548 | void *argp1 = 0 ; | |
17549 | int res1 = 0 ; | |
17550 | void *argp2 = 0 ; | |
17551 | int res2 = 0 ; | |
17552 | PyObject * obj0 = 0 ; | |
17553 | PyObject * obj1 = 0 ; | |
17554 | char * kwnames[] = { | |
17555 | (char *) "self",(char *) "brush", NULL | |
17556 | }; | |
17557 | ||
17558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
17559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17560 | if (!SWIG_IsOK(res1)) { | |
17561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17562 | } | |
17563 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17564 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
17565 | if (!SWIG_IsOK(res2)) { | |
17566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
17567 | } | |
17568 | if (!argp2) { | |
17569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
17570 | } | |
17571 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = SWIG_Py_Void(); | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
17582 | } | |
17583 | ||
17584 | ||
17585 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17586 | PyObject *resultobj = 0; | |
17587 | wxDC *arg1 = (wxDC *) 0 ; | |
17588 | int arg2 ; | |
17589 | void *argp1 = 0 ; | |
17590 | int res1 = 0 ; | |
17591 | int val2 ; | |
17592 | int ecode2 = 0 ; | |
17593 | PyObject * obj0 = 0 ; | |
17594 | PyObject * obj1 = 0 ; | |
17595 | char * kwnames[] = { | |
17596 | (char *) "self",(char *) "mode", NULL | |
17597 | }; | |
17598 | ||
17599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
17600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17601 | if (!SWIG_IsOK(res1)) { | |
17602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17603 | } | |
17604 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17606 | if (!SWIG_IsOK(ecode2)) { | |
17607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
17608 | } | |
17609 | arg2 = static_cast< int >(val2); | |
17610 | { | |
17611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17612 | (arg1)->SetBackgroundMode(arg2); | |
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = SWIG_Py_Void(); | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj = 0; | |
17625 | wxDC *arg1 = (wxDC *) 0 ; | |
17626 | wxPalette *arg2 = 0 ; | |
17627 | void *argp1 = 0 ; | |
17628 | int res1 = 0 ; | |
17629 | void *argp2 = 0 ; | |
17630 | int res2 = 0 ; | |
17631 | PyObject * obj0 = 0 ; | |
17632 | PyObject * obj1 = 0 ; | |
17633 | char * kwnames[] = { | |
17634 | (char *) "self",(char *) "palette", NULL | |
17635 | }; | |
17636 | ||
17637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
17638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17639 | if (!SWIG_IsOK(res1)) { | |
17640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17641 | } | |
17642 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17643 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
17644 | if (!SWIG_IsOK(res2)) { | |
17645 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
17646 | } | |
17647 | if (!argp2) { | |
17648 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
17649 | } | |
17650 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
17651 | { | |
17652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17653 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | resultobj = SWIG_Py_Void(); | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17665 | PyObject *resultobj = 0; | |
17666 | wxDC *arg1 = (wxDC *) 0 ; | |
17667 | void *argp1 = 0 ; | |
17668 | int res1 = 0 ; | |
17669 | PyObject *swig_obj[1] ; | |
17670 | ||
17671 | if (!args) SWIG_fail; | |
17672 | swig_obj[0] = args; | |
17673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17674 | if (!SWIG_IsOK(res1)) { | |
17675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17676 | } | |
17677 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17678 | { | |
17679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17680 | (arg1)->DestroyClippingRegion(); | |
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
17684 | resultobj = SWIG_Py_Void(); | |
17685 | return resultobj; | |
17686 | fail: | |
17687 | return NULL; | |
17688 | } | |
17689 | ||
17690 | ||
17691 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17692 | PyObject *resultobj = 0; | |
17693 | wxDC *arg1 = (wxDC *) 0 ; | |
17694 | int *arg2 = (int *) 0 ; | |
17695 | int *arg3 = (int *) 0 ; | |
17696 | int *arg4 = (int *) 0 ; | |
17697 | int *arg5 = (int *) 0 ; | |
17698 | void *argp1 = 0 ; | |
17699 | int res1 = 0 ; | |
17700 | int temp2 ; | |
17701 | int res2 = SWIG_TMPOBJ ; | |
17702 | int temp3 ; | |
17703 | int res3 = SWIG_TMPOBJ ; | |
17704 | int temp4 ; | |
17705 | int res4 = SWIG_TMPOBJ ; | |
17706 | int temp5 ; | |
17707 | int res5 = SWIG_TMPOBJ ; | |
17708 | PyObject *swig_obj[1] ; | |
17709 | ||
17710 | arg2 = &temp2; | |
17711 | arg3 = &temp3; | |
17712 | arg4 = &temp4; | |
17713 | arg5 = &temp5; | |
17714 | if (!args) SWIG_fail; | |
17715 | swig_obj[0] = args; | |
17716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17717 | if (!SWIG_IsOK(res1)) { | |
17718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
17719 | } | |
17720 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
17724 | wxPyEndAllowThreads(__tstate); | |
17725 | if (PyErr_Occurred()) SWIG_fail; | |
17726 | } | |
17727 | resultobj = SWIG_Py_Void(); | |
17728 | if (SWIG_IsTmpObj(res2)) { | |
17729 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
17730 | } else { | |
17731 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17732 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
17733 | } | |
17734 | if (SWIG_IsTmpObj(res3)) { | |
17735 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
17736 | } else { | |
17737 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17738 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
17739 | } | |
17740 | if (SWIG_IsTmpObj(res4)) { | |
17741 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
17742 | } else { | |
17743 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17744 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
17745 | } | |
17746 | if (SWIG_IsTmpObj(res5)) { | |
17747 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
17748 | } else { | |
17749 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17750 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
17751 | } | |
17752 | return resultobj; | |
17753 | fail: | |
17754 | return NULL; | |
17755 | } | |
17756 | ||
17757 | ||
17758 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17759 | PyObject *resultobj = 0; | |
17760 | wxDC *arg1 = (wxDC *) 0 ; | |
17761 | wxRect result; | |
17762 | void *argp1 = 0 ; | |
17763 | int res1 = 0 ; | |
17764 | PyObject *swig_obj[1] ; | |
17765 | ||
17766 | if (!args) SWIG_fail; | |
17767 | swig_obj[0] = args; | |
17768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17769 | if (!SWIG_IsOK(res1)) { | |
17770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17771 | } | |
17772 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17773 | { | |
17774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17775 | result = wxDC_GetClippingRect(arg1); | |
17776 | wxPyEndAllowThreads(__tstate); | |
17777 | if (PyErr_Occurred()) SWIG_fail; | |
17778 | } | |
17779 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
17780 | return resultobj; | |
17781 | fail: | |
17782 | return NULL; | |
17783 | } | |
17784 | ||
17785 | ||
17786 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17787 | PyObject *resultobj = 0; | |
17788 | wxDC *arg1 = (wxDC *) 0 ; | |
17789 | int result; | |
17790 | void *argp1 = 0 ; | |
17791 | int res1 = 0 ; | |
17792 | PyObject *swig_obj[1] ; | |
17793 | ||
17794 | if (!args) SWIG_fail; | |
17795 | swig_obj[0] = args; | |
17796 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17797 | if (!SWIG_IsOK(res1)) { | |
17798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
17799 | } | |
17800 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17801 | { | |
17802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17803 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
17804 | wxPyEndAllowThreads(__tstate); | |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
17806 | } | |
17807 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17808 | return resultobj; | |
17809 | fail: | |
17810 | return NULL; | |
17811 | } | |
17812 | ||
17813 | ||
17814 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17815 | PyObject *resultobj = 0; | |
17816 | wxDC *arg1 = (wxDC *) 0 ; | |
17817 | int result; | |
17818 | void *argp1 = 0 ; | |
17819 | int res1 = 0 ; | |
17820 | PyObject *swig_obj[1] ; | |
17821 | ||
17822 | if (!args) SWIG_fail; | |
17823 | swig_obj[0] = args; | |
17824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17825 | if (!SWIG_IsOK(res1)) { | |
17826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
17827 | } | |
17828 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17829 | { | |
17830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17831 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
17832 | wxPyEndAllowThreads(__tstate); | |
17833 | if (PyErr_Occurred()) SWIG_fail; | |
17834 | } | |
17835 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17836 | return resultobj; | |
17837 | fail: | |
17838 | return NULL; | |
17839 | } | |
17840 | ||
17841 | ||
17842 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17843 | PyObject *resultobj = 0; | |
17844 | wxDC *arg1 = (wxDC *) 0 ; | |
17845 | wxString *arg2 = 0 ; | |
17846 | int *arg3 = (int *) 0 ; | |
17847 | int *arg4 = (int *) 0 ; | |
17848 | void *argp1 = 0 ; | |
17849 | int res1 = 0 ; | |
17850 | bool temp2 = false ; | |
17851 | int temp3 ; | |
17852 | int res3 = SWIG_TMPOBJ ; | |
17853 | int temp4 ; | |
17854 | int res4 = SWIG_TMPOBJ ; | |
17855 | PyObject * obj0 = 0 ; | |
17856 | PyObject * obj1 = 0 ; | |
17857 | char * kwnames[] = { | |
17858 | (char *) "self",(char *) "string", NULL | |
17859 | }; | |
17860 | ||
17861 | arg3 = &temp3; | |
17862 | arg4 = &temp4; | |
17863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
17864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17865 | if (!SWIG_IsOK(res1)) { | |
17866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17867 | } | |
17868 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17869 | { | |
17870 | arg2 = wxString_in_helper(obj1); | |
17871 | if (arg2 == NULL) SWIG_fail; | |
17872 | temp2 = true; | |
17873 | } | |
17874 | { | |
17875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17876 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
17877 | wxPyEndAllowThreads(__tstate); | |
17878 | if (PyErr_Occurred()) SWIG_fail; | |
17879 | } | |
17880 | resultobj = SWIG_Py_Void(); | |
17881 | if (SWIG_IsTmpObj(res3)) { | |
17882 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
17883 | } else { | |
17884 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17885 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
17886 | } | |
17887 | if (SWIG_IsTmpObj(res4)) { | |
17888 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
17889 | } else { | |
17890 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17891 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
17892 | } | |
17893 | { | |
17894 | if (temp2) | |
17895 | delete arg2; | |
17896 | } | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | { | |
17900 | if (temp2) | |
17901 | delete arg2; | |
17902 | } | |
17903 | return NULL; | |
17904 | } | |
17905 | ||
17906 | ||
17907 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17908 | PyObject *resultobj = 0; | |
17909 | wxDC *arg1 = (wxDC *) 0 ; | |
17910 | wxString *arg2 = 0 ; | |
17911 | int *arg3 = (int *) 0 ; | |
17912 | int *arg4 = (int *) 0 ; | |
17913 | int *arg5 = (int *) 0 ; | |
17914 | int *arg6 = (int *) 0 ; | |
17915 | wxFont *arg7 = (wxFont *) NULL ; | |
17916 | void *argp1 = 0 ; | |
17917 | int res1 = 0 ; | |
17918 | bool temp2 = false ; | |
17919 | int temp3 ; | |
17920 | int res3 = SWIG_TMPOBJ ; | |
17921 | int temp4 ; | |
17922 | int res4 = SWIG_TMPOBJ ; | |
17923 | int temp5 ; | |
17924 | int res5 = SWIG_TMPOBJ ; | |
17925 | int temp6 ; | |
17926 | int res6 = SWIG_TMPOBJ ; | |
17927 | void *argp7 = 0 ; | |
17928 | int res7 = 0 ; | |
17929 | PyObject * obj0 = 0 ; | |
17930 | PyObject * obj1 = 0 ; | |
17931 | PyObject * obj2 = 0 ; | |
17932 | char * kwnames[] = { | |
17933 | (char *) "self",(char *) "string",(char *) "font", NULL | |
17934 | }; | |
17935 | ||
17936 | arg3 = &temp3; | |
17937 | arg4 = &temp4; | |
17938 | arg5 = &temp5; | |
17939 | arg6 = &temp6; | |
17940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17942 | if (!SWIG_IsOK(res1)) { | |
17943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17944 | } | |
17945 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17946 | { | |
17947 | arg2 = wxString_in_helper(obj1); | |
17948 | if (arg2 == NULL) SWIG_fail; | |
17949 | temp2 = true; | |
17950 | } | |
17951 | if (obj2) { | |
17952 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
17953 | if (!SWIG_IsOK(res7)) { | |
17954 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
36ed4f51 | 17955 | } |
1bd55598 RD |
17956 | arg7 = reinterpret_cast< wxFont * >(argp7); |
17957 | } | |
17958 | { | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | resultobj = SWIG_Py_Void(); | |
17965 | if (SWIG_IsTmpObj(res3)) { | |
17966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
17967 | } else { | |
17968 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17969 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
17970 | } | |
17971 | if (SWIG_IsTmpObj(res4)) { | |
17972 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
17973 | } else { | |
17974 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17975 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
17976 | } | |
17977 | if (SWIG_IsTmpObj(res5)) { | |
17978 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
17979 | } else { | |
17980 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17981 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
17982 | } | |
17983 | if (SWIG_IsTmpObj(res6)) { | |
17984 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
17985 | } else { | |
17986 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
17987 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
17988 | } | |
17989 | { | |
17990 | if (temp2) | |
17991 | delete arg2; | |
17992 | } | |
17993 | return resultobj; | |
17994 | fail: | |
17995 | { | |
17996 | if (temp2) | |
17997 | delete arg2; | |
17998 | } | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj = 0; | |
18005 | wxDC *arg1 = (wxDC *) 0 ; | |
18006 | wxString *arg2 = 0 ; | |
18007 | int *arg3 = (int *) 0 ; | |
18008 | int *arg4 = (int *) 0 ; | |
18009 | int *arg5 = (int *) 0 ; | |
18010 | wxFont *arg6 = (wxFont *) NULL ; | |
18011 | void *argp1 = 0 ; | |
18012 | int res1 = 0 ; | |
18013 | bool temp2 = false ; | |
18014 | int temp3 ; | |
18015 | int res3 = SWIG_TMPOBJ ; | |
18016 | int temp4 ; | |
18017 | int res4 = SWIG_TMPOBJ ; | |
18018 | int temp5 ; | |
18019 | int res5 = SWIG_TMPOBJ ; | |
18020 | void *argp6 = 0 ; | |
18021 | int res6 = 0 ; | |
18022 | PyObject * obj0 = 0 ; | |
18023 | PyObject * obj1 = 0 ; | |
18024 | PyObject * obj2 = 0 ; | |
18025 | char * kwnames[] = { | |
18026 | (char *) "self",(char *) "text",(char *) "font", NULL | |
18027 | }; | |
18028 | ||
18029 | arg3 = &temp3; | |
18030 | arg4 = &temp4; | |
18031 | arg5 = &temp5; | |
18032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18034 | if (!SWIG_IsOK(res1)) { | |
18035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18036 | } | |
18037 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18038 | { | |
18039 | arg2 = wxString_in_helper(obj1); | |
18040 | if (arg2 == NULL) SWIG_fail; | |
18041 | temp2 = true; | |
18042 | } | |
18043 | if (obj2) { | |
18044 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
18045 | if (!SWIG_IsOK(res6)) { | |
18046 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
36ed4f51 | 18047 | } |
1bd55598 RD |
18048 | arg6 = reinterpret_cast< wxFont * >(argp6); |
18049 | } | |
18050 | { | |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | resultobj = SWIG_Py_Void(); | |
18057 | if (SWIG_IsTmpObj(res3)) { | |
18058 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18059 | } else { | |
18060 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18061 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18062 | } | |
18063 | if (SWIG_IsTmpObj(res4)) { | |
18064 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
18065 | } else { | |
18066 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18067 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
18068 | } | |
18069 | if (SWIG_IsTmpObj(res5)) { | |
18070 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
18071 | } else { | |
18072 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18073 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
18074 | } | |
18075 | { | |
18076 | if (temp2) | |
18077 | delete arg2; | |
18078 | } | |
18079 | return resultobj; | |
18080 | fail: | |
18081 | { | |
18082 | if (temp2) | |
18083 | delete arg2; | |
18084 | } | |
18085 | return NULL; | |
18086 | } | |
18087 | ||
18088 | ||
18089 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18090 | PyObject *resultobj = 0; | |
18091 | wxDC *arg1 = (wxDC *) 0 ; | |
18092 | wxString *arg2 = 0 ; | |
18093 | wxArrayInt result; | |
18094 | void *argp1 = 0 ; | |
18095 | int res1 = 0 ; | |
18096 | bool temp2 = false ; | |
18097 | PyObject * obj0 = 0 ; | |
18098 | PyObject * obj1 = 0 ; | |
18099 | char * kwnames[] = { | |
18100 | (char *) "self",(char *) "text", NULL | |
18101 | }; | |
18102 | ||
18103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18105 | if (!SWIG_IsOK(res1)) { | |
18106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18107 | } | |
18108 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18109 | { | |
18110 | arg2 = wxString_in_helper(obj1); | |
18111 | if (arg2 == NULL) SWIG_fail; | |
18112 | temp2 = true; | |
18113 | } | |
18114 | { | |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | { | |
18121 | resultobj = PyList_New(0); | |
18122 | size_t idx; | |
18123 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
18124 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
18125 | PyList_Append(resultobj, val); | |
18126 | Py_DECREF(val); | |
36ed4f51 | 18127 | } |
1bd55598 RD |
18128 | } |
18129 | { | |
18130 | if (temp2) | |
18131 | delete arg2; | |
18132 | } | |
18133 | return resultobj; | |
18134 | fail: | |
18135 | { | |
18136 | if (temp2) | |
18137 | delete arg2; | |
18138 | } | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
18143 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18144 | PyObject *resultobj = 0; | |
18145 | wxDC *arg1 = (wxDC *) 0 ; | |
18146 | wxSize result; | |
18147 | void *argp1 = 0 ; | |
18148 | int res1 = 0 ; | |
18149 | PyObject *swig_obj[1] ; | |
18150 | ||
18151 | if (!args) SWIG_fail; | |
18152 | swig_obj[0] = args; | |
18153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18154 | if (!SWIG_IsOK(res1)) { | |
18155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18156 | } | |
18157 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18158 | { | |
18159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18160 | result = (arg1)->GetSize(); | |
18161 | wxPyEndAllowThreads(__tstate); | |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
18163 | } | |
18164 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18165 | return resultobj; | |
18166 | fail: | |
18167 | return NULL; | |
18168 | } | |
18169 | ||
18170 | ||
18171 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18172 | PyObject *resultobj = 0; | |
18173 | wxDC *arg1 = (wxDC *) 0 ; | |
18174 | int *arg2 = (int *) 0 ; | |
18175 | int *arg3 = (int *) 0 ; | |
18176 | void *argp1 = 0 ; | |
18177 | int res1 = 0 ; | |
18178 | int temp2 ; | |
18179 | int res2 = SWIG_TMPOBJ ; | |
18180 | int temp3 ; | |
18181 | int res3 = SWIG_TMPOBJ ; | |
18182 | PyObject *swig_obj[1] ; | |
18183 | ||
18184 | arg2 = &temp2; | |
18185 | arg3 = &temp3; | |
18186 | if (!args) SWIG_fail; | |
18187 | swig_obj[0] = args; | |
18188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18189 | if (!SWIG_IsOK(res1)) { | |
18190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18191 | } | |
18192 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18193 | { | |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | (arg1)->GetSize(arg2,arg3); | |
18196 | wxPyEndAllowThreads(__tstate); | |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
18198 | } | |
18199 | resultobj = SWIG_Py_Void(); | |
18200 | if (SWIG_IsTmpObj(res2)) { | |
18201 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18202 | } else { | |
18203 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18204 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18205 | } | |
18206 | if (SWIG_IsTmpObj(res3)) { | |
18207 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18208 | } else { | |
18209 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18210 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18211 | } | |
18212 | return resultobj; | |
18213 | fail: | |
18214 | return NULL; | |
18215 | } | |
18216 | ||
18217 | ||
18218 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18219 | PyObject *resultobj = 0; | |
18220 | wxDC *arg1 = (wxDC *) 0 ; | |
18221 | wxSize result; | |
18222 | void *argp1 = 0 ; | |
18223 | int res1 = 0 ; | |
18224 | PyObject *swig_obj[1] ; | |
18225 | ||
18226 | if (!args) SWIG_fail; | |
18227 | swig_obj[0] = args; | |
18228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18229 | if (!SWIG_IsOK(res1)) { | |
18230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18231 | } | |
18232 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18233 | { | |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
18239 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18240 | return resultobj; | |
18241 | fail: | |
18242 | return NULL; | |
18243 | } | |
18244 | ||
18245 | ||
18246 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18247 | PyObject *resultobj = 0; | |
18248 | wxDC *arg1 = (wxDC *) 0 ; | |
18249 | int *arg2 = (int *) 0 ; | |
18250 | int *arg3 = (int *) 0 ; | |
18251 | void *argp1 = 0 ; | |
18252 | int res1 = 0 ; | |
18253 | int temp2 ; | |
18254 | int res2 = SWIG_TMPOBJ ; | |
18255 | int temp3 ; | |
18256 | int res3 = SWIG_TMPOBJ ; | |
18257 | PyObject *swig_obj[1] ; | |
18258 | ||
18259 | arg2 = &temp2; | |
18260 | arg3 = &temp3; | |
18261 | if (!args) SWIG_fail; | |
18262 | swig_obj[0] = args; | |
18263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18264 | if (!SWIG_IsOK(res1)) { | |
18265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18266 | } | |
18267 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18268 | { | |
18269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18270 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | resultobj = SWIG_Py_Void(); | |
18275 | if (SWIG_IsTmpObj(res2)) { | |
18276 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
18277 | } else { | |
18278 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18279 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
18280 | } | |
18281 | if (SWIG_IsTmpObj(res3)) { | |
18282 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
18283 | } else { | |
18284 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
18285 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
18286 | } | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18294 | PyObject *resultobj = 0; | |
18295 | wxDC *arg1 = (wxDC *) 0 ; | |
18296 | int arg2 ; | |
18297 | int result; | |
18298 | void *argp1 = 0 ; | |
18299 | int res1 = 0 ; | |
18300 | int val2 ; | |
18301 | int ecode2 = 0 ; | |
18302 | PyObject * obj0 = 0 ; | |
18303 | PyObject * obj1 = 0 ; | |
18304 | char * kwnames[] = { | |
18305 | (char *) "self",(char *) "x", NULL | |
18306 | }; | |
18307 | ||
18308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
18309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18310 | if (!SWIG_IsOK(res1)) { | |
18311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18312 | } | |
18313 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18315 | if (!SWIG_IsOK(ecode2)) { | |
18316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
18317 | } | |
18318 | arg2 = static_cast< int >(val2); | |
18319 | { | |
18320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18321 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18326 | return resultobj; | |
18327 | fail: | |
18328 | return NULL; | |
18329 | } | |
18330 | ||
18331 | ||
18332 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18333 | PyObject *resultobj = 0; | |
18334 | wxDC *arg1 = (wxDC *) 0 ; | |
18335 | int arg2 ; | |
18336 | int result; | |
18337 | void *argp1 = 0 ; | |
18338 | int res1 = 0 ; | |
18339 | int val2 ; | |
18340 | int ecode2 = 0 ; | |
18341 | PyObject * obj0 = 0 ; | |
18342 | PyObject * obj1 = 0 ; | |
18343 | char * kwnames[] = { | |
18344 | (char *) "self",(char *) "y", NULL | |
18345 | }; | |
18346 | ||
18347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
18348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18349 | if (!SWIG_IsOK(res1)) { | |
18350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18351 | } | |
18352 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18353 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18354 | if (!SWIG_IsOK(ecode2)) { | |
18355 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
18356 | } | |
18357 | arg2 = static_cast< int >(val2); | |
18358 | { | |
18359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18360 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18365 | return resultobj; | |
18366 | fail: | |
18367 | return NULL; | |
18368 | } | |
18369 | ||
18370 | ||
18371 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18372 | PyObject *resultobj = 0; | |
18373 | wxDC *arg1 = (wxDC *) 0 ; | |
18374 | int arg2 ; | |
18375 | int result; | |
18376 | void *argp1 = 0 ; | |
18377 | int res1 = 0 ; | |
18378 | int val2 ; | |
18379 | int ecode2 = 0 ; | |
18380 | PyObject * obj0 = 0 ; | |
18381 | PyObject * obj1 = 0 ; | |
18382 | char * kwnames[] = { | |
18383 | (char *) "self",(char *) "x", NULL | |
18384 | }; | |
18385 | ||
18386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
18387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18388 | if (!SWIG_IsOK(res1)) { | |
18389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18390 | } | |
18391 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18392 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18393 | if (!SWIG_IsOK(ecode2)) { | |
18394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
18395 | } | |
18396 | arg2 = static_cast< int >(val2); | |
18397 | { | |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
18400 | wxPyEndAllowThreads(__tstate); | |
18401 | if (PyErr_Occurred()) SWIG_fail; | |
18402 | } | |
18403 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18404 | return resultobj; | |
18405 | fail: | |
18406 | return NULL; | |
18407 | } | |
18408 | ||
18409 | ||
18410 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18411 | PyObject *resultobj = 0; | |
18412 | wxDC *arg1 = (wxDC *) 0 ; | |
18413 | int arg2 ; | |
18414 | int result; | |
18415 | void *argp1 = 0 ; | |
18416 | int res1 = 0 ; | |
18417 | int val2 ; | |
18418 | int ecode2 = 0 ; | |
18419 | PyObject * obj0 = 0 ; | |
18420 | PyObject * obj1 = 0 ; | |
18421 | char * kwnames[] = { | |
18422 | (char *) "self",(char *) "y", NULL | |
18423 | }; | |
18424 | ||
18425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
18426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18427 | if (!SWIG_IsOK(res1)) { | |
18428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18429 | } | |
18430 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18432 | if (!SWIG_IsOK(ecode2)) { | |
18433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
18434 | } | |
18435 | arg2 = static_cast< int >(val2); | |
18436 | { | |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18438 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
18439 | wxPyEndAllowThreads(__tstate); | |
18440 | if (PyErr_Occurred()) SWIG_fail; | |
18441 | } | |
18442 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
18449 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18450 | PyObject *resultobj = 0; | |
18451 | wxDC *arg1 = (wxDC *) 0 ; | |
18452 | int arg2 ; | |
18453 | int result; | |
18454 | void *argp1 = 0 ; | |
18455 | int res1 = 0 ; | |
18456 | int val2 ; | |
18457 | int ecode2 = 0 ; | |
18458 | PyObject * obj0 = 0 ; | |
18459 | PyObject * obj1 = 0 ; | |
18460 | char * kwnames[] = { | |
18461 | (char *) "self",(char *) "x", NULL | |
18462 | }; | |
18463 | ||
18464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
18465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18466 | if (!SWIG_IsOK(res1)) { | |
18467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18468 | } | |
18469 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18470 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18471 | if (!SWIG_IsOK(ecode2)) { | |
18472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
18473 | } | |
18474 | arg2 = static_cast< int >(val2); | |
18475 | { | |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18477 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
18478 | wxPyEndAllowThreads(__tstate); | |
18479 | if (PyErr_Occurred()) SWIG_fail; | |
18480 | } | |
18481 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18482 | return resultobj; | |
18483 | fail: | |
18484 | return NULL; | |
18485 | } | |
18486 | ||
18487 | ||
18488 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18489 | PyObject *resultobj = 0; | |
18490 | wxDC *arg1 = (wxDC *) 0 ; | |
18491 | int arg2 ; | |
18492 | int result; | |
18493 | void *argp1 = 0 ; | |
18494 | int res1 = 0 ; | |
18495 | int val2 ; | |
18496 | int ecode2 = 0 ; | |
18497 | PyObject * obj0 = 0 ; | |
18498 | PyObject * obj1 = 0 ; | |
18499 | char * kwnames[] = { | |
18500 | (char *) "self",(char *) "y", NULL | |
18501 | }; | |
18502 | ||
18503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
18504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18505 | if (!SWIG_IsOK(res1)) { | |
18506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18507 | } | |
18508 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18510 | if (!SWIG_IsOK(ecode2)) { | |
18511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
18512 | } | |
18513 | arg2 = static_cast< int >(val2); | |
18514 | { | |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
18520 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18521 | return resultobj; | |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18528 | PyObject *resultobj = 0; | |
18529 | wxDC *arg1 = (wxDC *) 0 ; | |
18530 | int arg2 ; | |
18531 | int result; | |
18532 | void *argp1 = 0 ; | |
18533 | int res1 = 0 ; | |
18534 | int val2 ; | |
18535 | int ecode2 = 0 ; | |
18536 | PyObject * obj0 = 0 ; | |
18537 | PyObject * obj1 = 0 ; | |
18538 | char * kwnames[] = { | |
18539 | (char *) "self",(char *) "x", NULL | |
18540 | }; | |
18541 | ||
18542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
18543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18544 | if (!SWIG_IsOK(res1)) { | |
18545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18546 | } | |
18547 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18548 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18549 | if (!SWIG_IsOK(ecode2)) { | |
18550 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
18551 | } | |
18552 | arg2 = static_cast< int >(val2); | |
18553 | { | |
18554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18555 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
18556 | wxPyEndAllowThreads(__tstate); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | } | |
18559 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18560 | return resultobj; | |
18561 | fail: | |
18562 | return NULL; | |
18563 | } | |
18564 | ||
18565 | ||
18566 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18567 | PyObject *resultobj = 0; | |
18568 | wxDC *arg1 = (wxDC *) 0 ; | |
18569 | int arg2 ; | |
18570 | int result; | |
18571 | void *argp1 = 0 ; | |
18572 | int res1 = 0 ; | |
18573 | int val2 ; | |
18574 | int ecode2 = 0 ; | |
18575 | PyObject * obj0 = 0 ; | |
18576 | PyObject * obj1 = 0 ; | |
18577 | char * kwnames[] = { | |
18578 | (char *) "self",(char *) "y", NULL | |
18579 | }; | |
18580 | ||
18581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
18582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18583 | if (!SWIG_IsOK(res1)) { | |
18584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18585 | } | |
18586 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18587 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18588 | if (!SWIG_IsOK(ecode2)) { | |
18589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
18590 | } | |
18591 | arg2 = static_cast< int >(val2); | |
18592 | { | |
18593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18594 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
18595 | wxPyEndAllowThreads(__tstate); | |
18596 | if (PyErr_Occurred()) SWIG_fail; | |
18597 | } | |
18598 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18599 | return resultobj; | |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18606 | PyObject *resultobj = 0; | |
18607 | wxDC *arg1 = (wxDC *) 0 ; | |
18608 | bool result; | |
18609 | void *argp1 = 0 ; | |
18610 | int res1 = 0 ; | |
18611 | PyObject *swig_obj[1] ; | |
18612 | ||
18613 | if (!args) SWIG_fail; | |
18614 | swig_obj[0] = args; | |
18615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18616 | if (!SWIG_IsOK(res1)) { | |
18617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18618 | } | |
18619 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18620 | { | |
18621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18622 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | { | |
18627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18628 | } | |
18629 | return resultobj; | |
18630 | fail: | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
18635 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18636 | PyObject *resultobj = 0; | |
18637 | wxDC *arg1 = (wxDC *) 0 ; | |
18638 | bool result; | |
18639 | void *argp1 = 0 ; | |
18640 | int res1 = 0 ; | |
18641 | PyObject *swig_obj[1] ; | |
18642 | ||
18643 | if (!args) SWIG_fail; | |
18644 | swig_obj[0] = args; | |
18645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18646 | if (!SWIG_IsOK(res1)) { | |
18647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18648 | } | |
18649 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
18653 | wxPyEndAllowThreads(__tstate); | |
18654 | if (PyErr_Occurred()) SWIG_fail; | |
18655 | } | |
18656 | { | |
18657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18658 | } | |
18659 | return resultobj; | |
18660 | fail: | |
18661 | return NULL; | |
18662 | } | |
18663 | ||
18664 | ||
18665 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18666 | PyObject *resultobj = 0; | |
18667 | wxDC *arg1 = (wxDC *) 0 ; | |
18668 | int result; | |
18669 | void *argp1 = 0 ; | |
18670 | int res1 = 0 ; | |
18671 | PyObject *swig_obj[1] ; | |
18672 | ||
18673 | if (!args) SWIG_fail; | |
18674 | swig_obj[0] = args; | |
18675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18676 | if (!SWIG_IsOK(res1)) { | |
18677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18678 | } | |
18679 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18680 | { | |
18681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18682 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18687 | return resultobj; | |
18688 | fail: | |
18689 | return NULL; | |
18690 | } | |
18691 | ||
18692 | ||
18693 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18694 | PyObject *resultobj = 0; | |
18695 | wxDC *arg1 = (wxDC *) 0 ; | |
18696 | wxSize result; | |
18697 | void *argp1 = 0 ; | |
18698 | int res1 = 0 ; | |
18699 | PyObject *swig_obj[1] ; | |
18700 | ||
18701 | if (!args) SWIG_fail; | |
18702 | swig_obj[0] = args; | |
18703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18704 | if (!SWIG_IsOK(res1)) { | |
18705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18706 | } | |
18707 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18708 | { | |
18709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18710 | result = ((wxDC const *)arg1)->GetPPI(); | |
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
18714 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
18715 | return resultobj; | |
18716 | fail: | |
18717 | return NULL; | |
18718 | } | |
18719 | ||
18720 | ||
18721 | SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18722 | PyObject *resultobj = 0; | |
18723 | wxDC *arg1 = (wxDC *) 0 ; | |
18724 | bool result; | |
18725 | void *argp1 = 0 ; | |
18726 | int res1 = 0 ; | |
18727 | PyObject *swig_obj[1] ; | |
18728 | ||
18729 | if (!args) SWIG_fail; | |
18730 | swig_obj[0] = args; | |
18731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18732 | if (!SWIG_IsOK(res1)) { | |
18733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18734 | } | |
18735 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18736 | { | |
18737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18738 | result = (bool)((wxDC const *)arg1)->Ok(); | |
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | { | |
18743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18744 | } | |
18745 | return resultobj; | |
18746 | fail: | |
18747 | return NULL; | |
18748 | } | |
18749 | ||
18750 | ||
18751 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18752 | PyObject *resultobj = 0; | |
18753 | wxDC *arg1 = (wxDC *) 0 ; | |
18754 | int result; | |
18755 | void *argp1 = 0 ; | |
18756 | int res1 = 0 ; | |
18757 | PyObject *swig_obj[1] ; | |
18758 | ||
18759 | if (!args) SWIG_fail; | |
18760 | swig_obj[0] = args; | |
18761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18762 | if (!SWIG_IsOK(res1)) { | |
18763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18764 | } | |
18765 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18766 | { | |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
18769 | wxPyEndAllowThreads(__tstate); | |
18770 | if (PyErr_Occurred()) SWIG_fail; | |
18771 | } | |
18772 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18773 | return resultobj; | |
18774 | fail: | |
18775 | return NULL; | |
18776 | } | |
18777 | ||
18778 | ||
18779 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18780 | PyObject *resultobj = 0; | |
18781 | wxDC *arg1 = (wxDC *) 0 ; | |
18782 | wxBrush *result = 0 ; | |
18783 | void *argp1 = 0 ; | |
18784 | int res1 = 0 ; | |
18785 | PyObject *swig_obj[1] ; | |
18786 | ||
18787 | if (!args) SWIG_fail; | |
18788 | swig_obj[0] = args; | |
18789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18790 | if (!SWIG_IsOK(res1)) { | |
18791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18792 | } | |
18793 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18794 | { | |
18795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18796 | { |
1bd55598 RD |
18797 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
18798 | result = (wxBrush *) &_result_ref; | |
36ed4f51 | 18799 | } |
1bd55598 RD |
18800 | wxPyEndAllowThreads(__tstate); |
18801 | if (PyErr_Occurred()) SWIG_fail; | |
18802 | } | |
18803 | { | |
18804 | wxBrush* resultptr = new wxBrush(*result); | |
18805 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
18806 | } | |
18807 | return resultobj; | |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18814 | PyObject *resultobj = 0; | |
18815 | wxDC *arg1 = (wxDC *) 0 ; | |
18816 | wxBrush *result = 0 ; | |
18817 | void *argp1 = 0 ; | |
18818 | int res1 = 0 ; | |
18819 | PyObject *swig_obj[1] ; | |
18820 | ||
18821 | if (!args) SWIG_fail; | |
18822 | swig_obj[0] = args; | |
18823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18824 | if (!SWIG_IsOK(res1)) { | |
18825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18826 | } | |
18827 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18828 | { | |
18829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18830 | { |
1bd55598 RD |
18831 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
18832 | result = (wxBrush *) &_result_ref; | |
36ed4f51 | 18833 | } |
1bd55598 RD |
18834 | wxPyEndAllowThreads(__tstate); |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | { | |
18838 | wxBrush* resultptr = new wxBrush(*result); | |
18839 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
18840 | } | |
18841 | return resultobj; | |
18842 | fail: | |
18843 | return NULL; | |
18844 | } | |
18845 | ||
18846 | ||
18847 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18848 | PyObject *resultobj = 0; | |
18849 | wxDC *arg1 = (wxDC *) 0 ; | |
18850 | wxFont *result = 0 ; | |
18851 | void *argp1 = 0 ; | |
18852 | int res1 = 0 ; | |
18853 | PyObject *swig_obj[1] ; | |
18854 | ||
18855 | if (!args) SWIG_fail; | |
18856 | swig_obj[0] = args; | |
18857 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18858 | if (!SWIG_IsOK(res1)) { | |
18859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18860 | } | |
18861 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18862 | { | |
18863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18864 | { |
1bd55598 RD |
18865 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
18866 | result = (wxFont *) &_result_ref; | |
36ed4f51 | 18867 | } |
1bd55598 RD |
18868 | wxPyEndAllowThreads(__tstate); |
18869 | if (PyErr_Occurred()) SWIG_fail; | |
18870 | } | |
18871 | { | |
18872 | wxFont* resultptr = new wxFont(*result); | |
18873 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
18874 | } | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
18881 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18882 | PyObject *resultobj = 0; | |
18883 | wxDC *arg1 = (wxDC *) 0 ; | |
18884 | wxPen *result = 0 ; | |
18885 | void *argp1 = 0 ; | |
18886 | int res1 = 0 ; | |
18887 | PyObject *swig_obj[1] ; | |
18888 | ||
18889 | if (!args) SWIG_fail; | |
18890 | swig_obj[0] = args; | |
18891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18892 | if (!SWIG_IsOK(res1)) { | |
18893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18894 | } | |
18895 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18896 | { | |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18898 | { |
1bd55598 RD |
18899 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
18900 | result = (wxPen *) &_result_ref; | |
36ed4f51 | 18901 | } |
1bd55598 RD |
18902 | wxPyEndAllowThreads(__tstate); |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
18905 | { | |
18906 | wxPen* resultptr = new wxPen(*result); | |
18907 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
18908 | } | |
18909 | return resultobj; | |
18910 | fail: | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
18915 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18916 | PyObject *resultobj = 0; | |
18917 | wxDC *arg1 = (wxDC *) 0 ; | |
18918 | wxColour *result = 0 ; | |
18919 | void *argp1 = 0 ; | |
18920 | int res1 = 0 ; | |
18921 | PyObject *swig_obj[1] ; | |
18922 | ||
18923 | if (!args) SWIG_fail; | |
18924 | swig_obj[0] = args; | |
18925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18926 | if (!SWIG_IsOK(res1)) { | |
18927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18928 | } | |
18929 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18932 | { |
1bd55598 RD |
18933 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
18934 | result = (wxColour *) &_result_ref; | |
36ed4f51 | 18935 | } |
1bd55598 RD |
18936 | wxPyEndAllowThreads(__tstate); |
18937 | if (PyErr_Occurred()) SWIG_fail; | |
18938 | } | |
18939 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
18940 | return resultobj; | |
18941 | fail: | |
18942 | return NULL; | |
18943 | } | |
18944 | ||
18945 | ||
18946 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18947 | PyObject *resultobj = 0; | |
18948 | wxDC *arg1 = (wxDC *) 0 ; | |
18949 | wxColour *result = 0 ; | |
18950 | void *argp1 = 0 ; | |
18951 | int res1 = 0 ; | |
18952 | PyObject *swig_obj[1] ; | |
18953 | ||
18954 | if (!args) SWIG_fail; | |
18955 | swig_obj[0] = args; | |
18956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18957 | if (!SWIG_IsOK(res1)) { | |
18958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
18959 | } | |
18960 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18961 | { | |
18962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18963 | { |
1bd55598 RD |
18964 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
18965 | result = (wxColour *) &_result_ref; | |
36ed4f51 | 18966 | } |
1bd55598 RD |
18967 | wxPyEndAllowThreads(__tstate); |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
18977 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18978 | PyObject *resultobj = 0; | |
18979 | wxDC *arg1 = (wxDC *) 0 ; | |
18980 | wxColour *arg2 = 0 ; | |
18981 | void *argp1 = 0 ; | |
18982 | int res1 = 0 ; | |
18983 | wxColour temp2 ; | |
18984 | PyObject * obj0 = 0 ; | |
18985 | PyObject * obj1 = 0 ; | |
18986 | char * kwnames[] = { | |
18987 | (char *) "self",(char *) "colour", NULL | |
18988 | }; | |
18989 | ||
18990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
18991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18992 | if (!SWIG_IsOK(res1)) { | |
18993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18994 | } | |
18995 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18996 | { | |
18997 | arg2 = &temp2; | |
18998 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18999 | } | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | resultobj = SWIG_Py_Void(); | |
19007 | return resultobj; | |
19008 | fail: | |
19009 | return NULL; | |
19010 | } | |
19011 | ||
19012 | ||
19013 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19014 | PyObject *resultobj = 0; | |
19015 | wxDC *arg1 = (wxDC *) 0 ; | |
19016 | wxColour *arg2 = 0 ; | |
19017 | void *argp1 = 0 ; | |
19018 | int res1 = 0 ; | |
19019 | wxColour temp2 ; | |
19020 | PyObject * obj0 = 0 ; | |
19021 | PyObject * obj1 = 0 ; | |
19022 | char * kwnames[] = { | |
19023 | (char *) "self",(char *) "colour", NULL | |
19024 | }; | |
19025 | ||
19026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
19027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19028 | if (!SWIG_IsOK(res1)) { | |
19029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19030 | } | |
19031 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19032 | { | |
19033 | arg2 = &temp2; | |
19034 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19035 | } | |
19036 | { | |
19037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19038 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
19039 | wxPyEndAllowThreads(__tstate); | |
19040 | if (PyErr_Occurred()) SWIG_fail; | |
19041 | } | |
19042 | resultobj = SWIG_Py_Void(); | |
19043 | return resultobj; | |
19044 | fail: | |
19045 | return NULL; | |
19046 | } | |
19047 | ||
19048 | ||
19049 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19050 | PyObject *resultobj = 0; | |
19051 | wxDC *arg1 = (wxDC *) 0 ; | |
19052 | int result; | |
19053 | void *argp1 = 0 ; | |
19054 | int res1 = 0 ; | |
19055 | PyObject *swig_obj[1] ; | |
19056 | ||
19057 | if (!args) SWIG_fail; | |
19058 | swig_obj[0] = args; | |
19059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19060 | if (!SWIG_IsOK(res1)) { | |
19061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19062 | } | |
19063 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19064 | { | |
19065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19066 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19071 | return resultobj; | |
19072 | fail: | |
19073 | return NULL; | |
19074 | } | |
19075 | ||
19076 | ||
19077 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19078 | PyObject *resultobj = 0; | |
19079 | wxDC *arg1 = (wxDC *) 0 ; | |
19080 | int arg2 ; | |
19081 | void *argp1 = 0 ; | |
19082 | int res1 = 0 ; | |
19083 | int val2 ; | |
19084 | int ecode2 = 0 ; | |
19085 | PyObject * obj0 = 0 ; | |
19086 | PyObject * obj1 = 0 ; | |
19087 | char * kwnames[] = { | |
19088 | (char *) "self",(char *) "mode", NULL | |
19089 | }; | |
19090 | ||
19091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
19092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19093 | if (!SWIG_IsOK(res1)) { | |
19094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19095 | } | |
19096 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19097 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19098 | if (!SWIG_IsOK(ecode2)) { | |
19099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
19100 | } | |
19101 | arg2 = static_cast< int >(val2); | |
19102 | { | |
19103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19104 | (arg1)->SetMapMode(arg2); | |
19105 | wxPyEndAllowThreads(__tstate); | |
19106 | if (PyErr_Occurred()) SWIG_fail; | |
19107 | } | |
19108 | resultobj = SWIG_Py_Void(); | |
19109 | return resultobj; | |
19110 | fail: | |
19111 | return NULL; | |
19112 | } | |
19113 | ||
19114 | ||
19115 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19116 | PyObject *resultobj = 0; | |
19117 | wxDC *arg1 = (wxDC *) 0 ; | |
19118 | double *arg2 = (double *) 0 ; | |
19119 | double *arg3 = (double *) 0 ; | |
19120 | void *argp1 = 0 ; | |
19121 | int res1 = 0 ; | |
19122 | double temp2 ; | |
19123 | int res2 = SWIG_TMPOBJ ; | |
19124 | double temp3 ; | |
19125 | int res3 = SWIG_TMPOBJ ; | |
19126 | PyObject *swig_obj[1] ; | |
19127 | ||
19128 | arg2 = &temp2; | |
19129 | arg3 = &temp3; | |
19130 | if (!args) SWIG_fail; | |
19131 | swig_obj[0] = args; | |
19132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19133 | if (!SWIG_IsOK(res1)) { | |
19134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19135 | } | |
19136 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
19140 | wxPyEndAllowThreads(__tstate); | |
19141 | if (PyErr_Occurred()) SWIG_fail; | |
19142 | } | |
19143 | resultobj = SWIG_Py_Void(); | |
19144 | if (SWIG_IsTmpObj(res2)) { | |
19145 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19146 | } else { | |
19147 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19148 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19149 | } | |
19150 | if (SWIG_IsTmpObj(res3)) { | |
19151 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19152 | } else { | |
19153 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19154 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19155 | } | |
19156 | return resultobj; | |
19157 | fail: | |
19158 | return NULL; | |
19159 | } | |
19160 | ||
19161 | ||
19162 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19163 | PyObject *resultobj = 0; | |
19164 | wxDC *arg1 = (wxDC *) 0 ; | |
19165 | double arg2 ; | |
19166 | double arg3 ; | |
19167 | void *argp1 = 0 ; | |
19168 | int res1 = 0 ; | |
19169 | double val2 ; | |
19170 | int ecode2 = 0 ; | |
19171 | double val3 ; | |
19172 | int ecode3 = 0 ; | |
19173 | PyObject * obj0 = 0 ; | |
19174 | PyObject * obj1 = 0 ; | |
19175 | PyObject * obj2 = 0 ; | |
19176 | char * kwnames[] = { | |
19177 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19178 | }; | |
19179 | ||
19180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19182 | if (!SWIG_IsOK(res1)) { | |
19183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19184 | } | |
19185 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19186 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19187 | if (!SWIG_IsOK(ecode2)) { | |
19188 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
19189 | } | |
19190 | arg2 = static_cast< double >(val2); | |
19191 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19192 | if (!SWIG_IsOK(ecode3)) { | |
19193 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
19194 | } | |
19195 | arg3 = static_cast< double >(val3); | |
19196 | { | |
19197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19198 | (arg1)->SetUserScale(arg2,arg3); | |
19199 | wxPyEndAllowThreads(__tstate); | |
19200 | if (PyErr_Occurred()) SWIG_fail; | |
19201 | } | |
19202 | resultobj = SWIG_Py_Void(); | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | return NULL; | |
19206 | } | |
19207 | ||
19208 | ||
19209 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19210 | PyObject *resultobj = 0; | |
19211 | wxDC *arg1 = (wxDC *) 0 ; | |
19212 | double *arg2 = (double *) 0 ; | |
19213 | double *arg3 = (double *) 0 ; | |
19214 | void *argp1 = 0 ; | |
19215 | int res1 = 0 ; | |
19216 | double temp2 ; | |
19217 | int res2 = SWIG_TMPOBJ ; | |
19218 | double temp3 ; | |
19219 | int res3 = SWIG_TMPOBJ ; | |
19220 | PyObject *swig_obj[1] ; | |
19221 | ||
19222 | arg2 = &temp2; | |
19223 | arg3 = &temp3; | |
19224 | if (!args) SWIG_fail; | |
19225 | swig_obj[0] = args; | |
19226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19227 | if (!SWIG_IsOK(res1)) { | |
19228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19229 | } | |
19230 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19231 | { | |
19232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19233 | (arg1)->GetLogicalScale(arg2,arg3); | |
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | resultobj = SWIG_Py_Void(); | |
19238 | if (SWIG_IsTmpObj(res2)) { | |
19239 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
19240 | } else { | |
19241 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19242 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
19243 | } | |
19244 | if (SWIG_IsTmpObj(res3)) { | |
19245 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
19246 | } else { | |
19247 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19248 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
19249 | } | |
19250 | return resultobj; | |
19251 | fail: | |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
19256 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19257 | PyObject *resultobj = 0; | |
19258 | wxDC *arg1 = (wxDC *) 0 ; | |
19259 | double arg2 ; | |
19260 | double arg3 ; | |
19261 | void *argp1 = 0 ; | |
19262 | int res1 = 0 ; | |
19263 | double val2 ; | |
19264 | int ecode2 = 0 ; | |
19265 | double val3 ; | |
19266 | int ecode3 = 0 ; | |
19267 | PyObject * obj0 = 0 ; | |
19268 | PyObject * obj1 = 0 ; | |
19269 | PyObject * obj2 = 0 ; | |
19270 | char * kwnames[] = { | |
19271 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19272 | }; | |
19273 | ||
19274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19276 | if (!SWIG_IsOK(res1)) { | |
19277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19278 | } | |
19279 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19280 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
19281 | if (!SWIG_IsOK(ecode2)) { | |
19282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
19283 | } | |
19284 | arg2 = static_cast< double >(val2); | |
19285 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19286 | if (!SWIG_IsOK(ecode3)) { | |
19287 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
19288 | } | |
19289 | arg3 = static_cast< double >(val3); | |
19290 | { | |
19291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19292 | (arg1)->SetLogicalScale(arg2,arg3); | |
19293 | wxPyEndAllowThreads(__tstate); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | } | |
19296 | resultobj = SWIG_Py_Void(); | |
19297 | return resultobj; | |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
19303 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19304 | PyObject *resultobj = 0; | |
19305 | wxDC *arg1 = (wxDC *) 0 ; | |
19306 | wxPoint result; | |
19307 | void *argp1 = 0 ; | |
19308 | int res1 = 0 ; | |
19309 | PyObject *swig_obj[1] ; | |
19310 | ||
19311 | if (!args) SWIG_fail; | |
19312 | swig_obj[0] = args; | |
19313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19314 | if (!SWIG_IsOK(res1)) { | |
19315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19316 | } | |
19317 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19318 | { | |
19319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19320 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
19321 | wxPyEndAllowThreads(__tstate); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | } | |
19324 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
19325 | return resultobj; | |
19326 | fail: | |
19327 | return NULL; | |
19328 | } | |
19329 | ||
19330 | ||
19331 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19332 | PyObject *resultobj = 0; | |
19333 | wxDC *arg1 = (wxDC *) 0 ; | |
19334 | int *arg2 = (int *) 0 ; | |
19335 | int *arg3 = (int *) 0 ; | |
19336 | void *argp1 = 0 ; | |
19337 | int res1 = 0 ; | |
19338 | int temp2 ; | |
19339 | int res2 = SWIG_TMPOBJ ; | |
19340 | int temp3 ; | |
19341 | int res3 = SWIG_TMPOBJ ; | |
19342 | PyObject *swig_obj[1] ; | |
19343 | ||
19344 | arg2 = &temp2; | |
19345 | arg3 = &temp3; | |
19346 | if (!args) SWIG_fail; | |
19347 | swig_obj[0] = args; | |
19348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19349 | if (!SWIG_IsOK(res1)) { | |
19350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19351 | } | |
19352 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19353 | { | |
19354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19355 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | resultobj = SWIG_Py_Void(); | |
19360 | if (SWIG_IsTmpObj(res2)) { | |
19361 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
19362 | } else { | |
19363 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19364 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
19365 | } | |
19366 | if (SWIG_IsTmpObj(res3)) { | |
19367 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
19368 | } else { | |
19369 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19370 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
19371 | } | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj = 0; | |
19380 | wxDC *arg1 = (wxDC *) 0 ; | |
19381 | int arg2 ; | |
19382 | int arg3 ; | |
19383 | void *argp1 = 0 ; | |
19384 | int res1 = 0 ; | |
19385 | int val2 ; | |
19386 | int ecode2 = 0 ; | |
19387 | int val3 ; | |
19388 | int ecode3 = 0 ; | |
19389 | PyObject * obj0 = 0 ; | |
19390 | PyObject * obj1 = 0 ; | |
19391 | PyObject * obj2 = 0 ; | |
19392 | char * kwnames[] = { | |
19393 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19394 | }; | |
19395 | ||
19396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19398 | if (!SWIG_IsOK(res1)) { | |
19399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19400 | } | |
19401 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19402 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19403 | if (!SWIG_IsOK(ecode2)) { | |
19404 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
19405 | } | |
19406 | arg2 = static_cast< int >(val2); | |
19407 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19408 | if (!SWIG_IsOK(ecode3)) { | |
19409 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
19410 | } | |
19411 | arg3 = static_cast< int >(val3); | |
19412 | { | |
19413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19414 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = SWIG_Py_Void(); | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
19425 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj = 0; | |
19427 | wxDC *arg1 = (wxDC *) 0 ; | |
19428 | wxPoint *arg2 = 0 ; | |
19429 | void *argp1 = 0 ; | |
19430 | int res1 = 0 ; | |
19431 | wxPoint temp2 ; | |
19432 | PyObject * obj0 = 0 ; | |
19433 | PyObject * obj1 = 0 ; | |
19434 | char * kwnames[] = { | |
19435 | (char *) "self",(char *) "point", NULL | |
19436 | }; | |
19437 | ||
19438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19440 | if (!SWIG_IsOK(res1)) { | |
19441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19442 | } | |
19443 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19444 | { | |
19445 | arg2 = &temp2; | |
19446 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19447 | } | |
19448 | { | |
19449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19450 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
19451 | wxPyEndAllowThreads(__tstate); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | } | |
19454 | resultobj = SWIG_Py_Void(); | |
19455 | return resultobj; | |
19456 | fail: | |
19457 | return NULL; | |
19458 | } | |
19459 | ||
19460 | ||
19461 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19462 | PyObject *resultobj = 0; | |
19463 | wxDC *arg1 = (wxDC *) 0 ; | |
19464 | wxPoint result; | |
19465 | void *argp1 = 0 ; | |
19466 | int res1 = 0 ; | |
19467 | PyObject *swig_obj[1] ; | |
19468 | ||
19469 | if (!args) SWIG_fail; | |
19470 | swig_obj[0] = args; | |
19471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19472 | if (!SWIG_IsOK(res1)) { | |
19473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19474 | } | |
19475 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19476 | { | |
19477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19478 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
19479 | wxPyEndAllowThreads(__tstate); | |
19480 | if (PyErr_Occurred()) SWIG_fail; | |
19481 | } | |
19482 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
19483 | return resultobj; | |
19484 | fail: | |
19485 | return NULL; | |
19486 | } | |
19487 | ||
19488 | ||
19489 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19490 | PyObject *resultobj = 0; | |
19491 | wxDC *arg1 = (wxDC *) 0 ; | |
19492 | int *arg2 = (int *) 0 ; | |
19493 | int *arg3 = (int *) 0 ; | |
19494 | void *argp1 = 0 ; | |
19495 | int res1 = 0 ; | |
19496 | int temp2 ; | |
19497 | int res2 = SWIG_TMPOBJ ; | |
19498 | int temp3 ; | |
19499 | int res3 = SWIG_TMPOBJ ; | |
19500 | PyObject *swig_obj[1] ; | |
19501 | ||
19502 | arg2 = &temp2; | |
19503 | arg3 = &temp3; | |
19504 | if (!args) SWIG_fail; | |
19505 | swig_obj[0] = args; | |
19506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19507 | if (!SWIG_IsOK(res1)) { | |
19508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19509 | } | |
19510 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19511 | { | |
19512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19513 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
19514 | wxPyEndAllowThreads(__tstate); | |
19515 | if (PyErr_Occurred()) SWIG_fail; | |
19516 | } | |
19517 | resultobj = SWIG_Py_Void(); | |
19518 | if (SWIG_IsTmpObj(res2)) { | |
19519 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
19520 | } else { | |
19521 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19522 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
19523 | } | |
19524 | if (SWIG_IsTmpObj(res3)) { | |
19525 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
19526 | } else { | |
19527 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19528 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
19529 | } | |
19530 | return resultobj; | |
19531 | fail: | |
19532 | return NULL; | |
19533 | } | |
19534 | ||
19535 | ||
19536 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19537 | PyObject *resultobj = 0; | |
19538 | wxDC *arg1 = (wxDC *) 0 ; | |
19539 | int arg2 ; | |
19540 | int arg3 ; | |
19541 | void *argp1 = 0 ; | |
19542 | int res1 = 0 ; | |
19543 | int val2 ; | |
19544 | int ecode2 = 0 ; | |
19545 | int val3 ; | |
19546 | int ecode3 = 0 ; | |
19547 | PyObject * obj0 = 0 ; | |
19548 | PyObject * obj1 = 0 ; | |
19549 | PyObject * obj2 = 0 ; | |
19550 | char * kwnames[] = { | |
19551 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19552 | }; | |
19553 | ||
19554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19556 | if (!SWIG_IsOK(res1)) { | |
19557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19558 | } | |
19559 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19560 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19561 | if (!SWIG_IsOK(ecode2)) { | |
19562 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
19563 | } | |
19564 | arg2 = static_cast< int >(val2); | |
19565 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19566 | if (!SWIG_IsOK(ecode3)) { | |
19567 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
19568 | } | |
19569 | arg3 = static_cast< int >(val3); | |
19570 | { | |
19571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19572 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
19573 | wxPyEndAllowThreads(__tstate); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
19576 | resultobj = SWIG_Py_Void(); | |
19577 | return resultobj; | |
19578 | fail: | |
19579 | return NULL; | |
19580 | } | |
19581 | ||
19582 | ||
19583 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19584 | PyObject *resultobj = 0; | |
19585 | wxDC *arg1 = (wxDC *) 0 ; | |
19586 | wxPoint *arg2 = 0 ; | |
19587 | void *argp1 = 0 ; | |
19588 | int res1 = 0 ; | |
19589 | wxPoint temp2 ; | |
19590 | PyObject * obj0 = 0 ; | |
19591 | PyObject * obj1 = 0 ; | |
19592 | char * kwnames[] = { | |
19593 | (char *) "self",(char *) "point", NULL | |
19594 | }; | |
19595 | ||
19596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19598 | if (!SWIG_IsOK(res1)) { | |
19599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19600 | } | |
19601 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19602 | { | |
19603 | arg2 = &temp2; | |
19604 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19605 | } | |
19606 | { | |
19607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19608 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
19609 | wxPyEndAllowThreads(__tstate); | |
19610 | if (PyErr_Occurred()) SWIG_fail; | |
19611 | } | |
19612 | resultobj = SWIG_Py_Void(); | |
19613 | return resultobj; | |
19614 | fail: | |
19615 | return NULL; | |
19616 | } | |
19617 | ||
19618 | ||
19619 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19620 | PyObject *resultobj = 0; | |
19621 | wxDC *arg1 = (wxDC *) 0 ; | |
19622 | bool arg2 ; | |
19623 | bool arg3 ; | |
19624 | void *argp1 = 0 ; | |
19625 | int res1 = 0 ; | |
19626 | bool val2 ; | |
19627 | int ecode2 = 0 ; | |
19628 | bool val3 ; | |
19629 | int ecode3 = 0 ; | |
19630 | PyObject * obj0 = 0 ; | |
19631 | PyObject * obj1 = 0 ; | |
19632 | PyObject * obj2 = 0 ; | |
19633 | char * kwnames[] = { | |
19634 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
19635 | }; | |
19636 | ||
19637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19639 | if (!SWIG_IsOK(res1)) { | |
19640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19641 | } | |
19642 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19643 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19644 | if (!SWIG_IsOK(ecode2)) { | |
19645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
19646 | } | |
19647 | arg2 = static_cast< bool >(val2); | |
19648 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
19649 | if (!SWIG_IsOK(ecode3)) { | |
19650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
19651 | } | |
19652 | arg3 = static_cast< bool >(val3); | |
19653 | { | |
19654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19655 | (arg1)->SetAxisOrientation(arg2,arg3); | |
19656 | wxPyEndAllowThreads(__tstate); | |
19657 | if (PyErr_Occurred()) SWIG_fail; | |
19658 | } | |
19659 | resultobj = SWIG_Py_Void(); | |
19660 | return resultobj; | |
19661 | fail: | |
19662 | return NULL; | |
19663 | } | |
19664 | ||
19665 | ||
19666 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19667 | PyObject *resultobj = 0; | |
19668 | wxDC *arg1 = (wxDC *) 0 ; | |
19669 | int result; | |
19670 | void *argp1 = 0 ; | |
19671 | int res1 = 0 ; | |
19672 | PyObject *swig_obj[1] ; | |
19673 | ||
19674 | if (!args) SWIG_fail; | |
19675 | swig_obj[0] = args; | |
19676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19677 | if (!SWIG_IsOK(res1)) { | |
19678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19679 | } | |
19680 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19681 | { | |
19682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19683 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19688 | return resultobj; | |
19689 | fail: | |
19690 | return NULL; | |
19691 | } | |
19692 | ||
19693 | ||
19694 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19695 | PyObject *resultobj = 0; | |
19696 | wxDC *arg1 = (wxDC *) 0 ; | |
19697 | int arg2 ; | |
19698 | void *argp1 = 0 ; | |
19699 | int res1 = 0 ; | |
19700 | int val2 ; | |
19701 | int ecode2 = 0 ; | |
19702 | PyObject * obj0 = 0 ; | |
19703 | PyObject * obj1 = 0 ; | |
19704 | char * kwnames[] = { | |
19705 | (char *) "self",(char *) "function", NULL | |
19706 | }; | |
19707 | ||
19708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
19709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19710 | if (!SWIG_IsOK(res1)) { | |
19711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19712 | } | |
19713 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19714 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19715 | if (!SWIG_IsOK(ecode2)) { | |
19716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
19717 | } | |
19718 | arg2 = static_cast< int >(val2); | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | (arg1)->SetLogicalFunction(arg2); | |
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | resultobj = SWIG_Py_Void(); | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | return NULL; | |
19729 | } | |
19730 | ||
19731 | ||
19732 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19733 | PyObject *resultobj = 0; | |
19734 | wxDC *arg1 = (wxDC *) 0 ; | |
19735 | void *argp1 = 0 ; | |
19736 | int res1 = 0 ; | |
19737 | PyObject *swig_obj[1] ; | |
19738 | ||
19739 | if (!args) SWIG_fail; | |
19740 | swig_obj[0] = args; | |
19741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19742 | if (!SWIG_IsOK(res1)) { | |
19743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19744 | } | |
19745 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | (arg1)->ComputeScaleAndOrigin(); | |
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | resultobj = SWIG_Py_Void(); | |
19753 | return resultobj; | |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19760 | PyObject *resultobj = 0; | |
19761 | wxDC *arg1 = (wxDC *) 0 ; | |
19762 | int arg2 ; | |
19763 | int arg3 ; | |
19764 | void *argp1 = 0 ; | |
19765 | int res1 = 0 ; | |
19766 | int val2 ; | |
19767 | int ecode2 = 0 ; | |
19768 | int val3 ; | |
19769 | int ecode3 = 0 ; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | PyObject * obj1 = 0 ; | |
19772 | PyObject * obj2 = 0 ; | |
19773 | char * kwnames[] = { | |
19774 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19775 | }; | |
19776 | ||
19777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19779 | if (!SWIG_IsOK(res1)) { | |
19780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19781 | } | |
19782 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19783 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19784 | if (!SWIG_IsOK(ecode2)) { | |
19785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
19786 | } | |
19787 | arg2 = static_cast< int >(val2); | |
19788 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19789 | if (!SWIG_IsOK(ecode3)) { | |
19790 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
19791 | } | |
19792 | arg3 = static_cast< int >(val3); | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | (arg1)->CalcBoundingBox(arg2,arg3); | |
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
19799 | resultobj = SWIG_Py_Void(); | |
19800 | return resultobj; | |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
19806 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19807 | PyObject *resultobj = 0; | |
19808 | wxDC *arg1 = (wxDC *) 0 ; | |
19809 | wxPoint *arg2 = 0 ; | |
19810 | void *argp1 = 0 ; | |
19811 | int res1 = 0 ; | |
19812 | wxPoint temp2 ; | |
19813 | PyObject * obj0 = 0 ; | |
19814 | PyObject * obj1 = 0 ; | |
19815 | char * kwnames[] = { | |
19816 | (char *) "self",(char *) "point", NULL | |
19817 | }; | |
19818 | ||
19819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19821 | if (!SWIG_IsOK(res1)) { | |
19822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19823 | } | |
19824 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19825 | { | |
19826 | arg2 = &temp2; | |
19827 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19828 | } | |
19829 | { | |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | resultobj = SWIG_Py_Void(); | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19843 | PyObject *resultobj = 0; | |
19844 | wxDC *arg1 = (wxDC *) 0 ; | |
19845 | void *argp1 = 0 ; | |
19846 | int res1 = 0 ; | |
19847 | PyObject *swig_obj[1] ; | |
19848 | ||
19849 | if (!args) SWIG_fail; | |
19850 | swig_obj[0] = args; | |
19851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19852 | if (!SWIG_IsOK(res1)) { | |
19853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19854 | } | |
19855 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19856 | { | |
19857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19858 | (arg1)->ResetBoundingBox(); | |
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
19862 | resultobj = SWIG_Py_Void(); | |
19863 | return resultobj; | |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
19869 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19870 | PyObject *resultobj = 0; | |
19871 | wxDC *arg1 = (wxDC *) 0 ; | |
19872 | int result; | |
19873 | void *argp1 = 0 ; | |
19874 | int res1 = 0 ; | |
19875 | PyObject *swig_obj[1] ; | |
19876 | ||
19877 | if (!args) SWIG_fail; | |
19878 | swig_obj[0] = args; | |
19879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19880 | if (!SWIG_IsOK(res1)) { | |
19881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19882 | } | |
19883 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19884 | { | |
19885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19886 | result = (int)((wxDC const *)arg1)->MinX(); | |
19887 | wxPyEndAllowThreads(__tstate); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
19890 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
19897 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19898 | PyObject *resultobj = 0; | |
19899 | wxDC *arg1 = (wxDC *) 0 ; | |
19900 | int result; | |
19901 | void *argp1 = 0 ; | |
19902 | int res1 = 0 ; | |
19903 | PyObject *swig_obj[1] ; | |
19904 | ||
19905 | if (!args) SWIG_fail; | |
19906 | swig_obj[0] = args; | |
19907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19908 | if (!SWIG_IsOK(res1)) { | |
19909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19910 | } | |
19911 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19912 | { | |
19913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19914 | result = (int)((wxDC const *)arg1)->MaxX(); | |
19915 | wxPyEndAllowThreads(__tstate); | |
19916 | if (PyErr_Occurred()) SWIG_fail; | |
19917 | } | |
19918 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19919 | return resultobj; | |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
19925 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19926 | PyObject *resultobj = 0; | |
19927 | wxDC *arg1 = (wxDC *) 0 ; | |
19928 | int result; | |
19929 | void *argp1 = 0 ; | |
19930 | int res1 = 0 ; | |
19931 | PyObject *swig_obj[1] ; | |
19932 | ||
19933 | if (!args) SWIG_fail; | |
19934 | swig_obj[0] = args; | |
19935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19936 | if (!SWIG_IsOK(res1)) { | |
19937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19938 | } | |
19939 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19940 | { | |
19941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19942 | result = (int)((wxDC const *)arg1)->MinY(); | |
19943 | wxPyEndAllowThreads(__tstate); | |
19944 | if (PyErr_Occurred()) SWIG_fail; | |
19945 | } | |
19946 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19947 | return resultobj; | |
19948 | fail: | |
19949 | return NULL; | |
19950 | } | |
19951 | ||
19952 | ||
19953 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19954 | PyObject *resultobj = 0; | |
19955 | wxDC *arg1 = (wxDC *) 0 ; | |
19956 | int result; | |
19957 | void *argp1 = 0 ; | |
19958 | int res1 = 0 ; | |
19959 | PyObject *swig_obj[1] ; | |
19960 | ||
19961 | if (!args) SWIG_fail; | |
19962 | swig_obj[0] = args; | |
19963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19964 | if (!SWIG_IsOK(res1)) { | |
19965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
19966 | } | |
19967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19968 | { | |
19969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19970 | result = (int)((wxDC const *)arg1)->MaxY(); | |
19971 | wxPyEndAllowThreads(__tstate); | |
19972 | if (PyErr_Occurred()) SWIG_fail; | |
19973 | } | |
19974 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19975 | return resultobj; | |
19976 | fail: | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
19981 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19982 | PyObject *resultobj = 0; | |
19983 | wxDC *arg1 = (wxDC *) 0 ; | |
19984 | int *arg2 = (int *) 0 ; | |
19985 | int *arg3 = (int *) 0 ; | |
19986 | int *arg4 = (int *) 0 ; | |
19987 | int *arg5 = (int *) 0 ; | |
19988 | void *argp1 = 0 ; | |
19989 | int res1 = 0 ; | |
19990 | int temp2 ; | |
19991 | int res2 = SWIG_TMPOBJ ; | |
19992 | int temp3 ; | |
19993 | int res3 = SWIG_TMPOBJ ; | |
19994 | int temp4 ; | |
19995 | int res4 = SWIG_TMPOBJ ; | |
19996 | int temp5 ; | |
19997 | int res5 = SWIG_TMPOBJ ; | |
19998 | PyObject *swig_obj[1] ; | |
19999 | ||
20000 | arg2 = &temp2; | |
20001 | arg3 = &temp3; | |
20002 | arg4 = &temp4; | |
20003 | arg5 = &temp5; | |
20004 | if (!args) SWIG_fail; | |
20005 | swig_obj[0] = args; | |
20006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20007 | if (!SWIG_IsOK(res1)) { | |
20008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20009 | } | |
20010 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20011 | { | |
20012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20013 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | resultobj = SWIG_Py_Void(); | |
20018 | if (SWIG_IsTmpObj(res2)) { | |
20019 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20020 | } else { | |
20021 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20022 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20023 | } | |
20024 | if (SWIG_IsTmpObj(res3)) { | |
20025 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20026 | } else { | |
20027 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20028 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20029 | } | |
20030 | if (SWIG_IsTmpObj(res4)) { | |
20031 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20032 | } else { | |
20033 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20034 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20035 | } | |
20036 | if (SWIG_IsTmpObj(res5)) { | |
20037 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20038 | } else { | |
20039 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20040 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20041 | } | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj = 0; | |
20050 | wxDC *arg1 = (wxDC *) 0 ; | |
20051 | PyObject *arg2 = (PyObject *) 0 ; | |
20052 | PyObject *arg3 = (PyObject *) 0 ; | |
20053 | PyObject *arg4 = (PyObject *) 0 ; | |
20054 | PyObject *result = 0 ; | |
20055 | void *argp1 = 0 ; | |
20056 | int res1 = 0 ; | |
20057 | PyObject * obj0 = 0 ; | |
20058 | PyObject * obj1 = 0 ; | |
20059 | PyObject * obj2 = 0 ; | |
20060 | PyObject * obj3 = 0 ; | |
20061 | char * kwnames[] = { | |
20062 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20063 | }; | |
20064 | ||
20065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20067 | if (!SWIG_IsOK(res1)) { | |
20068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20069 | } | |
20070 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20071 | arg2 = obj1; | |
20072 | arg3 = obj2; | |
20073 | arg4 = obj3; | |
20074 | { | |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
20077 | wxPyEndAllowThreads(__tstate); | |
20078 | if (PyErr_Occurred()) SWIG_fail; | |
20079 | } | |
20080 | resultobj = result; | |
20081 | return resultobj; | |
20082 | fail: | |
20083 | return NULL; | |
20084 | } | |
20085 | ||
20086 | ||
20087 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20088 | PyObject *resultobj = 0; | |
20089 | wxDC *arg1 = (wxDC *) 0 ; | |
20090 | PyObject *arg2 = (PyObject *) 0 ; | |
20091 | PyObject *arg3 = (PyObject *) 0 ; | |
20092 | PyObject *arg4 = (PyObject *) 0 ; | |
20093 | PyObject *result = 0 ; | |
20094 | void *argp1 = 0 ; | |
20095 | int res1 = 0 ; | |
20096 | PyObject * obj0 = 0 ; | |
20097 | PyObject * obj1 = 0 ; | |
20098 | PyObject * obj2 = 0 ; | |
20099 | PyObject * obj3 = 0 ; | |
20100 | char * kwnames[] = { | |
20101 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20102 | }; | |
20103 | ||
20104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20106 | if (!SWIG_IsOK(res1)) { | |
20107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20108 | } | |
20109 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20110 | arg2 = obj1; | |
20111 | arg3 = obj2; | |
20112 | arg4 = obj3; | |
20113 | { | |
20114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20115 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
20116 | wxPyEndAllowThreads(__tstate); | |
20117 | if (PyErr_Occurred()) SWIG_fail; | |
20118 | } | |
20119 | resultobj = result; | |
20120 | return resultobj; | |
20121 | fail: | |
20122 | return NULL; | |
20123 | } | |
20124 | ||
20125 | ||
20126 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20127 | PyObject *resultobj = 0; | |
20128 | wxDC *arg1 = (wxDC *) 0 ; | |
20129 | PyObject *arg2 = (PyObject *) 0 ; | |
20130 | PyObject *arg3 = (PyObject *) 0 ; | |
20131 | PyObject *arg4 = (PyObject *) 0 ; | |
20132 | PyObject *result = 0 ; | |
20133 | void *argp1 = 0 ; | |
20134 | int res1 = 0 ; | |
20135 | PyObject * obj0 = 0 ; | |
20136 | PyObject * obj1 = 0 ; | |
20137 | PyObject * obj2 = 0 ; | |
20138 | PyObject * obj3 = 0 ; | |
20139 | char * kwnames[] = { | |
20140 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20141 | }; | |
20142 | ||
20143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20145 | if (!SWIG_IsOK(res1)) { | |
20146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20147 | } | |
20148 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20149 | arg2 = obj1; | |
20150 | arg3 = obj2; | |
20151 | arg4 = obj3; | |
20152 | { | |
20153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20154 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
20155 | wxPyEndAllowThreads(__tstate); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
20158 | resultobj = result; | |
20159 | return resultobj; | |
20160 | fail: | |
20161 | return NULL; | |
20162 | } | |
20163 | ||
20164 | ||
20165 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20166 | PyObject *resultobj = 0; | |
20167 | wxDC *arg1 = (wxDC *) 0 ; | |
20168 | PyObject *arg2 = (PyObject *) 0 ; | |
20169 | PyObject *arg3 = (PyObject *) 0 ; | |
20170 | PyObject *arg4 = (PyObject *) 0 ; | |
20171 | PyObject *result = 0 ; | |
20172 | void *argp1 = 0 ; | |
20173 | int res1 = 0 ; | |
20174 | PyObject * obj0 = 0 ; | |
20175 | PyObject * obj1 = 0 ; | |
20176 | PyObject * obj2 = 0 ; | |
20177 | PyObject * obj3 = 0 ; | |
20178 | char * kwnames[] = { | |
20179 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20180 | }; | |
20181 | ||
20182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20184 | if (!SWIG_IsOK(res1)) { | |
20185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20186 | } | |
20187 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20188 | arg2 = obj1; | |
20189 | arg3 = obj2; | |
20190 | arg4 = obj3; | |
20191 | { | |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | resultobj = result; | |
20198 | return resultobj; | |
20199 | fail: | |
20200 | return NULL; | |
20201 | } | |
20202 | ||
20203 | ||
20204 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20205 | PyObject *resultobj = 0; | |
20206 | wxDC *arg1 = (wxDC *) 0 ; | |
20207 | PyObject *arg2 = (PyObject *) 0 ; | |
20208 | PyObject *arg3 = (PyObject *) 0 ; | |
20209 | PyObject *arg4 = (PyObject *) 0 ; | |
20210 | PyObject *result = 0 ; | |
20211 | void *argp1 = 0 ; | |
20212 | int res1 = 0 ; | |
20213 | PyObject * obj0 = 0 ; | |
20214 | PyObject * obj1 = 0 ; | |
20215 | PyObject * obj2 = 0 ; | |
20216 | PyObject * obj3 = 0 ; | |
20217 | char * kwnames[] = { | |
20218 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
20219 | }; | |
20220 | ||
20221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20223 | if (!SWIG_IsOK(res1)) { | |
20224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20225 | } | |
20226 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20227 | arg2 = obj1; | |
20228 | arg3 = obj2; | |
20229 | arg4 = obj3; | |
20230 | { | |
20231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20232 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
20233 | wxPyEndAllowThreads(__tstate); | |
20234 | if (PyErr_Occurred()) SWIG_fail; | |
20235 | } | |
20236 | resultobj = result; | |
20237 | return resultobj; | |
20238 | fail: | |
20239 | return NULL; | |
20240 | } | |
20241 | ||
20242 | ||
20243 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20244 | PyObject *resultobj = 0; | |
20245 | wxDC *arg1 = (wxDC *) 0 ; | |
20246 | PyObject *arg2 = (PyObject *) 0 ; | |
20247 | PyObject *arg3 = (PyObject *) 0 ; | |
20248 | PyObject *arg4 = (PyObject *) 0 ; | |
20249 | PyObject *arg5 = (PyObject *) 0 ; | |
20250 | PyObject *result = 0 ; | |
20251 | void *argp1 = 0 ; | |
20252 | int res1 = 0 ; | |
20253 | PyObject * obj0 = 0 ; | |
20254 | PyObject * obj1 = 0 ; | |
20255 | PyObject * obj2 = 0 ; | |
20256 | PyObject * obj3 = 0 ; | |
20257 | PyObject * obj4 = 0 ; | |
20258 | char * kwnames[] = { | |
20259 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
20260 | }; | |
20261 | ||
20262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20264 | if (!SWIG_IsOK(res1)) { | |
20265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20266 | } | |
20267 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20268 | arg2 = obj1; | |
20269 | arg3 = obj2; | |
20270 | arg4 = obj3; | |
20271 | arg5 = obj4; | |
20272 | { | |
20273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20274 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
20275 | wxPyEndAllowThreads(__tstate); | |
20276 | if (PyErr_Occurred()) SWIG_fail; | |
20277 | } | |
20278 | resultobj = result; | |
20279 | return resultobj; | |
20280 | fail: | |
20281 | return NULL; | |
20282 | } | |
20283 | ||
20284 | ||
20285 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20286 | PyObject *obj; | |
20287 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20288 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
20289 | return SWIG_Py_Void(); | |
20290 | } | |
20291 | ||
20292 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20293 | PyObject *resultobj = 0; | |
20294 | wxMemoryDC *result = 0 ; | |
20295 | ||
20296 | if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail; | |
20297 | { | |
20298 | if (!wxPyCheckForApp()) SWIG_fail; | |
20299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20300 | result = (wxMemoryDC *)new wxMemoryDC(); | |
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
20304 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
20305 | return resultobj; | |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
20311 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20312 | PyObject *resultobj = 0; | |
20313 | wxDC *arg1 = (wxDC *) 0 ; | |
20314 | wxMemoryDC *result = 0 ; | |
20315 | void *argp1 = 0 ; | |
20316 | int res1 = 0 ; | |
20317 | PyObject * obj0 = 0 ; | |
20318 | char * kwnames[] = { | |
20319 | (char *) "oldDC", NULL | |
20320 | }; | |
20321 | ||
20322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
20323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20324 | if (!SWIG_IsOK(res1)) { | |
20325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20326 | } | |
20327 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20328 | { | |
20329 | if (!wxPyCheckForApp()) SWIG_fail; | |
20330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20331 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
20332 | wxPyEndAllowThreads(__tstate); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
20335 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
20336 | return resultobj; | |
20337 | fail: | |
20338 | return NULL; | |
20339 | } | |
20340 | ||
20341 | ||
20342 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20343 | PyObject *resultobj = 0; | |
20344 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
20345 | wxBitmap *arg2 = 0 ; | |
20346 | void *argp1 = 0 ; | |
20347 | int res1 = 0 ; | |
20348 | void *argp2 = 0 ; | |
20349 | int res2 = 0 ; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | PyObject * obj1 = 0 ; | |
20352 | char * kwnames[] = { | |
20353 | (char *) "self",(char *) "bitmap", NULL | |
20354 | }; | |
20355 | ||
20356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
20357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
20358 | if (!SWIG_IsOK(res1)) { | |
20359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
20360 | } | |
20361 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
20362 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20363 | if (!SWIG_IsOK(res2)) { | |
20364 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
20365 | } | |
20366 | if (!argp2) { | |
20367 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
20368 | } | |
20369 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
20373 | wxPyEndAllowThreads(__tstate); | |
20374 | if (PyErr_Occurred()) SWIG_fail; | |
20375 | } | |
20376 | resultobj = SWIG_Py_Void(); | |
20377 | return resultobj; | |
20378 | fail: | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
20383 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20384 | PyObject *obj; | |
20385 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20386 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
20387 | return SWIG_Py_Void(); | |
20388 | } | |
20389 | ||
20390 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20391 | return SWIG_Python_InitShadowInstance(args); | |
20392 | } | |
20393 | ||
20394 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
20395 | PyObject *resultobj = 0; | |
20396 | wxDC *arg1 = (wxDC *) 0 ; | |
20397 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
20398 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
20399 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
20400 | wxBufferedDC *result = 0 ; | |
20401 | void *argp1 = 0 ; | |
20402 | int res1 = 0 ; | |
20403 | void *argp2 = 0 ; | |
20404 | int res2 = 0 ; | |
20405 | int val3 ; | |
20406 | int ecode3 = 0 ; | |
20407 | ||
20408 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
20409 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20410 | if (!SWIG_IsOK(res1)) { | |
20411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20412 | } | |
20413 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20414 | if (swig_obj[1]) { | |
20415 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20416 | if (!SWIG_IsOK(res2)) { | |
20417 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 20418 | } |
1bd55598 RD |
20419 | if (!argp2) { |
20420 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 20421 | } |
1bd55598 RD |
20422 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
20423 | } | |
20424 | if (swig_obj[2]) { | |
20425 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
20426 | if (!SWIG_IsOK(ecode3)) { | |
20427 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
20428 | } | |
20429 | arg3 = static_cast< int >(val3); | |
20430 | } | |
20431 | { | |
20432 | if (!wxPyCheckForApp()) SWIG_fail; | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
20439 | return resultobj; | |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
20445 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
20446 | PyObject *resultobj = 0; | |
20447 | wxDC *arg1 = (wxDC *) 0 ; | |
20448 | wxSize *arg2 = 0 ; | |
20449 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
20450 | wxBufferedDC *result = 0 ; | |
20451 | void *argp1 = 0 ; | |
20452 | int res1 = 0 ; | |
20453 | wxSize temp2 ; | |
20454 | int val3 ; | |
20455 | int ecode3 = 0 ; | |
20456 | ||
20457 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
20458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20459 | if (!SWIG_IsOK(res1)) { | |
20460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20461 | } | |
20462 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20463 | { | |
20464 | arg2 = &temp2; | |
20465 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
20466 | } | |
20467 | if (swig_obj[2]) { | |
20468 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
20469 | if (!SWIG_IsOK(ecode3)) { | |
20470 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
20471 | } | |
20472 | arg3 = static_cast< int >(val3); | |
20473 | } | |
20474 | { | |
20475 | if (!wxPyCheckForApp()) SWIG_fail; | |
20476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20477 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
20478 | wxPyEndAllowThreads(__tstate); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
20489 | int argc; | |
20490 | PyObject *argv[4]; | |
20491 | ||
20492 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; | |
20493 | --argc; | |
20494 | if ((argc >= 1) && (argc <= 3)) { | |
20495 | int _v = 0; | |
20496 | if (argc > 1) { | |
20497 | { | |
20498 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
20499 | _v = SWIG_CheckState(res); | |
20500 | } | |
20501 | if (!_v) goto check_1; | |
36ed4f51 | 20502 | } |
1bd55598 RD |
20503 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
20504 | } | |
20505 | check_1: | |
20506 | ||
20507 | if ((argc >= 2) && (argc <= 3)) { | |
20508 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
20509 | } | |
20510 | ||
20511 | fail: | |
20512 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
20517 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20518 | PyObject *resultobj = 0; | |
20519 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
20520 | void *argp1 = 0 ; | |
20521 | int res1 = 0 ; | |
20522 | PyObject *swig_obj[1] ; | |
20523 | ||
20524 | if (!args) SWIG_fail; | |
20525 | swig_obj[0] = args; | |
20526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
20527 | if (!SWIG_IsOK(res1)) { | |
20528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
20529 | } | |
20530 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
20531 | { | |
20532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20533 | delete arg1; | |
20534 | ||
20535 | wxPyEndAllowThreads(__tstate); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
20537 | } | |
20538 | resultobj = SWIG_Py_Void(); | |
20539 | return resultobj; | |
20540 | fail: | |
20541 | return NULL; | |
20542 | } | |
20543 | ||
20544 | ||
20545 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20546 | PyObject *resultobj = 0; | |
20547 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
20548 | void *argp1 = 0 ; | |
20549 | int res1 = 0 ; | |
20550 | PyObject *swig_obj[1] ; | |
20551 | ||
20552 | if (!args) SWIG_fail; | |
20553 | swig_obj[0] = args; | |
20554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
20555 | if (!SWIG_IsOK(res1)) { | |
20556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
20557 | } | |
20558 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
20559 | { | |
20560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20561 | (arg1)->UnMask(); | |
20562 | wxPyEndAllowThreads(__tstate); | |
20563 | if (PyErr_Occurred()) SWIG_fail; | |
20564 | } | |
20565 | resultobj = SWIG_Py_Void(); | |
20566 | return resultobj; | |
20567 | fail: | |
20568 | return NULL; | |
20569 | } | |
20570 | ||
20571 | ||
20572 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20573 | PyObject *obj; | |
20574 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20575 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
20576 | return SWIG_Py_Void(); | |
20577 | } | |
20578 | ||
20579 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20580 | return SWIG_Python_InitShadowInstance(args); | |
20581 | } | |
20582 | ||
20583 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20584 | PyObject *resultobj = 0; | |
20585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20586 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
20587 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
20588 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
20589 | wxBufferedPaintDC *result = 0 ; | |
20590 | void *argp1 = 0 ; | |
20591 | int res1 = 0 ; | |
20592 | void *argp2 = 0 ; | |
20593 | int res2 = 0 ; | |
20594 | int val3 ; | |
20595 | int ecode3 = 0 ; | |
20596 | PyObject * obj0 = 0 ; | |
20597 | PyObject * obj1 = 0 ; | |
20598 | PyObject * obj2 = 0 ; | |
20599 | char * kwnames[] = { | |
20600 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
20601 | }; | |
20602 | ||
20603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20605 | if (!SWIG_IsOK(res1)) { | |
20606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20607 | } | |
20608 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20609 | if (obj1) { | |
20610 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20611 | if (!SWIG_IsOK(res2)) { | |
20612 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 20613 | } |
1bd55598 RD |
20614 | if (!argp2) { |
20615 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 20616 | } |
1bd55598 RD |
20617 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
20618 | } | |
20619 | if (obj2) { | |
20620 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20621 | if (!SWIG_IsOK(ecode3)) { | |
20622 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
20623 | } | |
20624 | arg3 = static_cast< int >(val3); | |
20625 | } | |
20626 | { | |
20627 | if (!wxPyCheckForApp()) SWIG_fail; | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
20630 | wxPyEndAllowThreads(__tstate); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
20633 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
20634 | return resultobj; | |
20635 | fail: | |
20636 | return NULL; | |
20637 | } | |
20638 | ||
20639 | ||
20640 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20641 | PyObject *obj; | |
20642 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20643 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
20644 | return SWIG_Py_Void(); | |
20645 | } | |
20646 | ||
20647 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20648 | return SWIG_Python_InitShadowInstance(args); | |
20649 | } | |
20650 | ||
20651 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20652 | PyObject *resultobj = 0; | |
20653 | wxScreenDC *result = 0 ; | |
20654 | ||
20655 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
20656 | { | |
20657 | if (!wxPyCheckForApp()) SWIG_fail; | |
20658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20659 | result = (wxScreenDC *)new wxScreenDC(); | |
20660 | wxPyEndAllowThreads(__tstate); | |
20661 | if (PyErr_Occurred()) SWIG_fail; | |
20662 | } | |
20663 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
20664 | return resultobj; | |
20665 | fail: | |
20666 | return NULL; | |
20667 | } | |
20668 | ||
20669 | ||
20670 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20671 | PyObject *resultobj = 0; | |
20672 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
20673 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20674 | bool result; | |
20675 | void *argp1 = 0 ; | |
20676 | int res1 = 0 ; | |
20677 | void *argp2 = 0 ; | |
20678 | int res2 = 0 ; | |
20679 | PyObject * obj0 = 0 ; | |
20680 | PyObject * obj1 = 0 ; | |
20681 | char * kwnames[] = { | |
20682 | (char *) "self",(char *) "window", NULL | |
20683 | }; | |
20684 | ||
20685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
20686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
20687 | if (!SWIG_IsOK(res1)) { | |
20688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
20689 | } | |
20690 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
20691 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20692 | if (!SWIG_IsOK(res2)) { | |
20693 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20694 | } | |
20695 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20696 | { | |
20697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20698 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
20699 | wxPyEndAllowThreads(__tstate); | |
20700 | if (PyErr_Occurred()) SWIG_fail; | |
20701 | } | |
20702 | { | |
20703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20704 | } | |
20705 | return resultobj; | |
20706 | fail: | |
20707 | return NULL; | |
20708 | } | |
20709 | ||
20710 | ||
20711 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20712 | PyObject *resultobj = 0; | |
20713 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
20714 | wxRect *arg2 = (wxRect *) NULL ; | |
20715 | bool result; | |
20716 | void *argp1 = 0 ; | |
20717 | int res1 = 0 ; | |
20718 | void *argp2 = 0 ; | |
20719 | int res2 = 0 ; | |
20720 | PyObject * obj0 = 0 ; | |
20721 | PyObject * obj1 = 0 ; | |
20722 | char * kwnames[] = { | |
20723 | (char *) "self",(char *) "rect", NULL | |
20724 | }; | |
20725 | ||
20726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
20727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
20728 | if (!SWIG_IsOK(res1)) { | |
20729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
20730 | } | |
20731 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
20732 | if (obj1) { | |
20733 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
20734 | if (!SWIG_IsOK(res2)) { | |
20735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
e2950dbb | 20736 | } |
1bd55598 RD |
20737 | arg2 = reinterpret_cast< wxRect * >(argp2); |
20738 | } | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
20742 | wxPyEndAllowThreads(__tstate); | |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
20744 | } | |
20745 | { | |
20746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20747 | } | |
20748 | return resultobj; | |
20749 | fail: | |
20750 | return NULL; | |
20751 | } | |
20752 | ||
20753 | ||
20754 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20755 | PyObject *resultobj = 0; | |
20756 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
20757 | bool result; | |
20758 | void *argp1 = 0 ; | |
20759 | int res1 = 0 ; | |
20760 | PyObject *swig_obj[1] ; | |
20761 | ||
20762 | if (!args) SWIG_fail; | |
20763 | swig_obj[0] = args; | |
20764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
20765 | if (!SWIG_IsOK(res1)) { | |
20766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
20767 | } | |
20768 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | result = (bool)(arg1)->EndDrawingOnTop(); | |
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
20775 | { | |
20776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20777 | } | |
20778 | return resultobj; | |
20779 | fail: | |
20780 | return NULL; | |
20781 | } | |
20782 | ||
20783 | ||
20784 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20785 | PyObject *obj; | |
20786 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20787 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
20788 | return SWIG_Py_Void(); | |
20789 | } | |
20790 | ||
20791 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20792 | return SWIG_Python_InitShadowInstance(args); | |
20793 | } | |
20794 | ||
20795 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20796 | PyObject *resultobj = 0; | |
20797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20798 | wxClientDC *result = 0 ; | |
20799 | void *argp1 = 0 ; | |
20800 | int res1 = 0 ; | |
20801 | PyObject * obj0 = 0 ; | |
20802 | char * kwnames[] = { | |
20803 | (char *) "win", NULL | |
20804 | }; | |
20805 | ||
20806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
20807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20808 | if (!SWIG_IsOK(res1)) { | |
20809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20810 | } | |
20811 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20812 | { | |
20813 | if (!wxPyCheckForApp()) SWIG_fail; | |
20814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20815 | result = (wxClientDC *)new wxClientDC(arg1); | |
20816 | wxPyEndAllowThreads(__tstate); | |
20817 | if (PyErr_Occurred()) SWIG_fail; | |
20818 | } | |
20819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
20820 | return resultobj; | |
20821 | fail: | |
20822 | return NULL; | |
20823 | } | |
20824 | ||
20825 | ||
20826 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20827 | PyObject *obj; | |
20828 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20829 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
20830 | return SWIG_Py_Void(); | |
20831 | } | |
20832 | ||
20833 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20834 | return SWIG_Python_InitShadowInstance(args); | |
20835 | } | |
20836 | ||
20837 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20838 | PyObject *resultobj = 0; | |
20839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20840 | wxPaintDC *result = 0 ; | |
20841 | void *argp1 = 0 ; | |
20842 | int res1 = 0 ; | |
20843 | PyObject * obj0 = 0 ; | |
20844 | char * kwnames[] = { | |
20845 | (char *) "win", NULL | |
20846 | }; | |
20847 | ||
20848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
20849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20850 | if (!SWIG_IsOK(res1)) { | |
20851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20852 | } | |
20853 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20854 | { | |
20855 | if (!wxPyCheckForApp()) SWIG_fail; | |
20856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20857 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
20861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20869 | PyObject *obj; | |
20870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
20872 | return SWIG_Py_Void(); | |
20873 | } | |
20874 | ||
20875 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20876 | return SWIG_Python_InitShadowInstance(args); | |
20877 | } | |
20878 | ||
20879 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20880 | PyObject *resultobj = 0; | |
20881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20882 | wxWindowDC *result = 0 ; | |
20883 | void *argp1 = 0 ; | |
20884 | int res1 = 0 ; | |
20885 | PyObject * obj0 = 0 ; | |
20886 | char * kwnames[] = { | |
20887 | (char *) "win", NULL | |
20888 | }; | |
20889 | ||
20890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
20891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20892 | if (!SWIG_IsOK(res1)) { | |
20893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20894 | } | |
20895 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20896 | { | |
20897 | if (!wxPyCheckForApp()) SWIG_fail; | |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20899 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
20904 | return resultobj; | |
20905 | fail: | |
20906 | return NULL; | |
20907 | } | |
20908 | ||
20909 | ||
20910 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20911 | PyObject *obj; | |
20912 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20913 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
20914 | return SWIG_Py_Void(); | |
20915 | } | |
20916 | ||
20917 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20918 | return SWIG_Python_InitShadowInstance(args); | |
20919 | } | |
20920 | ||
20921 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20922 | PyObject *resultobj = 0; | |
20923 | wxDC *arg1 = 0 ; | |
20924 | bool arg2 ; | |
20925 | wxMirrorDC *result = 0 ; | |
20926 | void *argp1 = 0 ; | |
20927 | int res1 = 0 ; | |
20928 | bool val2 ; | |
20929 | int ecode2 = 0 ; | |
20930 | PyObject * obj0 = 0 ; | |
20931 | PyObject * obj1 = 0 ; | |
20932 | char * kwnames[] = { | |
20933 | (char *) "dc",(char *) "mirror", NULL | |
20934 | }; | |
20935 | ||
20936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
20937 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
20938 | if (!SWIG_IsOK(res1)) { | |
20939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
20940 | } | |
20941 | if (!argp1) { | |
20942 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
20943 | } | |
20944 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20945 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
20946 | if (!SWIG_IsOK(ecode2)) { | |
20947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
20948 | } | |
20949 | arg2 = static_cast< bool >(val2); | |
20950 | { | |
20951 | if (!wxPyCheckForApp()) SWIG_fail; | |
20952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20953 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
20954 | wxPyEndAllowThreads(__tstate); | |
20955 | if (PyErr_Occurred()) SWIG_fail; | |
20956 | } | |
20957 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
20958 | return resultobj; | |
20959 | fail: | |
20960 | return NULL; | |
20961 | } | |
20962 | ||
20963 | ||
20964 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20965 | PyObject *obj; | |
20966 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20967 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
20968 | return SWIG_Py_Void(); | |
20969 | } | |
20970 | ||
20971 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20972 | return SWIG_Python_InitShadowInstance(args); | |
20973 | } | |
20974 | ||
20975 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20976 | PyObject *resultobj = 0; | |
20977 | wxPrintData *arg1 = 0 ; | |
20978 | wxPostScriptDC *result = 0 ; | |
20979 | void *argp1 = 0 ; | |
20980 | int res1 = 0 ; | |
20981 | PyObject * obj0 = 0 ; | |
20982 | char * kwnames[] = { | |
20983 | (char *) "printData", NULL | |
20984 | }; | |
20985 | ||
20986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
20987 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
20988 | if (!SWIG_IsOK(res1)) { | |
20989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
20990 | } | |
20991 | if (!argp1) { | |
20992 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
20993 | } | |
20994 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
20995 | { | |
20996 | if (!wxPyCheckForApp()) SWIG_fail; | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21010 | PyObject *resultobj = 0; | |
21011 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21012 | wxPrintData *result = 0 ; | |
21013 | void *argp1 = 0 ; | |
21014 | int res1 = 0 ; | |
21015 | PyObject *swig_obj[1] ; | |
21016 | ||
21017 | if (!args) SWIG_fail; | |
21018 | swig_obj[0] = args; | |
21019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21020 | if (!SWIG_IsOK(res1)) { | |
21021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21022 | } | |
21023 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21024 | { | |
21025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 21026 | { |
1bd55598 RD |
21027 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
21028 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 21029 | } |
1bd55598 RD |
21030 | wxPyEndAllowThreads(__tstate); |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
21034 | return resultobj; | |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj = 0; | |
21042 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
21043 | wxPrintData *arg2 = 0 ; | |
21044 | void *argp1 = 0 ; | |
21045 | int res1 = 0 ; | |
21046 | void *argp2 = 0 ; | |
21047 | int res2 = 0 ; | |
21048 | PyObject * obj0 = 0 ; | |
21049 | PyObject * obj1 = 0 ; | |
21050 | char * kwnames[] = { | |
21051 | (char *) "self",(char *) "data", NULL | |
21052 | }; | |
21053 | ||
21054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
21055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
21056 | if (!SWIG_IsOK(res1)) { | |
21057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
21058 | } | |
21059 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
21060 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21061 | if (!SWIG_IsOK(res2)) { | |
21062 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21063 | } | |
21064 | if (!argp2) { | |
21065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
21066 | } | |
21067 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | resultobj = SWIG_Py_Void(); | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj = 0; | |
21083 | int arg1 ; | |
21084 | int val1 ; | |
21085 | int ecode1 = 0 ; | |
21086 | PyObject * obj0 = 0 ; | |
21087 | char * kwnames[] = { | |
21088 | (char *) "ppi", NULL | |
21089 | }; | |
21090 | ||
21091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
21092 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21093 | if (!SWIG_IsOK(ecode1)) { | |
21094 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
21095 | } | |
21096 | arg1 = static_cast< int >(val1); | |
21097 | { | |
21098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21099 | wxPostScriptDC::SetResolution(arg1); | |
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
21103 | resultobj = SWIG_Py_Void(); | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21111 | PyObject *resultobj = 0; | |
21112 | int result; | |
21113 | ||
21114 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
21115 | { | |
21116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21117 | result = (int)wxPostScriptDC::GetResolution(); | |
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21122 | return resultobj; | |
21123 | fail: | |
21124 | return NULL; | |
21125 | } | |
21126 | ||
21127 | ||
21128 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21129 | PyObject *obj; | |
21130 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21131 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
21132 | return SWIG_Py_Void(); | |
21133 | } | |
21134 | ||
21135 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21136 | return SWIG_Python_InitShadowInstance(args); | |
21137 | } | |
21138 | ||
21139 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21140 | PyObject *resultobj = 0; | |
21141 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
21142 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21143 | wxMetaFile *result = 0 ; | |
21144 | bool temp1 = false ; | |
21145 | PyObject * obj0 = 0 ; | |
21146 | char * kwnames[] = { | |
21147 | (char *) "filename", NULL | |
21148 | }; | |
21149 | ||
21150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
21151 | if (obj0) { | |
36ed4f51 | 21152 | { |
1bd55598 RD |
21153 | arg1 = wxString_in_helper(obj0); |
21154 | if (arg1 == NULL) SWIG_fail; | |
21155 | temp1 = true; | |
36ed4f51 | 21156 | } |
1bd55598 RD |
21157 | } |
21158 | { | |
21159 | if (!wxPyCheckForApp()) SWIG_fail; | |
21160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21161 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
21162 | wxPyEndAllowThreads(__tstate); | |
21163 | if (PyErr_Occurred()) SWIG_fail; | |
21164 | } | |
21165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
21166 | { | |
21167 | if (temp1) | |
21168 | delete arg1; | |
21169 | } | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | { | |
21173 | if (temp1) | |
21174 | delete arg1; | |
21175 | } | |
21176 | return NULL; | |
21177 | } | |
21178 | ||
21179 | ||
21180 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21181 | PyObject *resultobj = 0; | |
21182 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21183 | void *argp1 = 0 ; | |
21184 | int res1 = 0 ; | |
21185 | PyObject *swig_obj[1] ; | |
21186 | ||
21187 | if (!args) SWIG_fail; | |
21188 | swig_obj[0] = args; | |
21189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
21190 | if (!SWIG_IsOK(res1)) { | |
21191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21192 | } | |
21193 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21194 | { | |
21195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21196 | delete arg1; | |
21197 | ||
21198 | wxPyEndAllowThreads(__tstate); | |
21199 | if (PyErr_Occurred()) SWIG_fail; | |
21200 | } | |
21201 | resultobj = SWIG_Py_Void(); | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21209 | PyObject *resultobj = 0; | |
21210 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21211 | bool result; | |
21212 | void *argp1 = 0 ; | |
21213 | int res1 = 0 ; | |
21214 | PyObject *swig_obj[1] ; | |
21215 | ||
21216 | if (!args) SWIG_fail; | |
21217 | swig_obj[0] = args; | |
21218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21219 | if (!SWIG_IsOK(res1)) { | |
21220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21221 | } | |
21222 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21223 | { | |
21224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21225 | result = (bool)(arg1)->Ok(); | |
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
21229 | { | |
21230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21231 | } | |
21232 | return resultobj; | |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
21238 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21239 | PyObject *resultobj = 0; | |
21240 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21241 | int arg2 = (int) 0 ; | |
21242 | int arg3 = (int) 0 ; | |
21243 | bool result; | |
21244 | void *argp1 = 0 ; | |
21245 | int res1 = 0 ; | |
21246 | int val2 ; | |
21247 | int ecode2 = 0 ; | |
21248 | int val3 ; | |
21249 | int ecode3 = 0 ; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | PyObject * obj1 = 0 ; | |
21252 | PyObject * obj2 = 0 ; | |
21253 | char * kwnames[] = { | |
21254 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21255 | }; | |
21256 | ||
21257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21259 | if (!SWIG_IsOK(res1)) { | |
21260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21261 | } | |
21262 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21263 | if (obj1) { | |
21264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21265 | if (!SWIG_IsOK(ecode2)) { | |
21266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
21267 | } | |
21268 | arg2 = static_cast< int >(val2); | |
21269 | } | |
21270 | if (obj2) { | |
21271 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21272 | if (!SWIG_IsOK(ecode3)) { | |
21273 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
21274 | } | |
21275 | arg3 = static_cast< int >(val3); | |
21276 | } | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | { | |
21284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21285 | } | |
21286 | return resultobj; | |
21287 | fail: | |
21288 | return NULL; | |
21289 | } | |
21290 | ||
21291 | ||
21292 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21293 | PyObject *resultobj = 0; | |
21294 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21295 | wxSize result; | |
21296 | void *argp1 = 0 ; | |
21297 | int res1 = 0 ; | |
21298 | PyObject *swig_obj[1] ; | |
21299 | ||
21300 | if (!args) SWIG_fail; | |
21301 | swig_obj[0] = args; | |
21302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21303 | if (!SWIG_IsOK(res1)) { | |
21304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21305 | } | |
21306 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | result = (arg1)->GetSize(); | |
21310 | wxPyEndAllowThreads(__tstate); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
21313 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
21320 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21321 | PyObject *resultobj = 0; | |
21322 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21323 | int result; | |
21324 | void *argp1 = 0 ; | |
21325 | int res1 = 0 ; | |
21326 | PyObject *swig_obj[1] ; | |
21327 | ||
21328 | if (!args) SWIG_fail; | |
21329 | swig_obj[0] = args; | |
21330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21331 | if (!SWIG_IsOK(res1)) { | |
21332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21333 | } | |
21334 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21335 | { | |
21336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21337 | result = (int)(arg1)->GetWidth(); | |
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21349 | PyObject *resultobj = 0; | |
21350 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
21351 | int result; | |
21352 | void *argp1 = 0 ; | |
21353 | int res1 = 0 ; | |
21354 | PyObject *swig_obj[1] ; | |
21355 | ||
21356 | if (!args) SWIG_fail; | |
21357 | swig_obj[0] = args; | |
21358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21359 | if (!SWIG_IsOK(res1)) { | |
21360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
21361 | } | |
21362 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
21363 | { | |
21364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21365 | result = (int)(arg1)->GetHeight(); | |
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21370 | return resultobj; | |
21371 | fail: | |
21372 | return NULL; | |
21373 | } | |
21374 | ||
21375 | ||
21376 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21377 | PyObject *obj; | |
21378 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21379 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
21380 | return SWIG_Py_Void(); | |
21381 | } | |
21382 | ||
21383 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21384 | return SWIG_Python_InitShadowInstance(args); | |
21385 | } | |
21386 | ||
21387 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21388 | PyObject *resultobj = 0; | |
21389 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
21390 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21391 | int arg2 = (int) 0 ; | |
21392 | int arg3 = (int) 0 ; | |
21393 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21394 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21395 | wxMetaFileDC *result = 0 ; | |
21396 | bool temp1 = false ; | |
21397 | int val2 ; | |
21398 | int ecode2 = 0 ; | |
21399 | int val3 ; | |
21400 | int ecode3 = 0 ; | |
21401 | bool temp4 = false ; | |
21402 | PyObject * obj0 = 0 ; | |
21403 | PyObject * obj1 = 0 ; | |
21404 | PyObject * obj2 = 0 ; | |
21405 | PyObject * obj3 = 0 ; | |
21406 | char * kwnames[] = { | |
21407 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
21408 | }; | |
21409 | ||
21410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21411 | if (obj0) { | |
36ed4f51 | 21412 | { |
1bd55598 RD |
21413 | arg1 = wxString_in_helper(obj0); |
21414 | if (arg1 == NULL) SWIG_fail; | |
21415 | temp1 = true; | |
36ed4f51 | 21416 | } |
1bd55598 RD |
21417 | } |
21418 | if (obj1) { | |
21419 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21420 | if (!SWIG_IsOK(ecode2)) { | |
21421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
21422 | } | |
21423 | arg2 = static_cast< int >(val2); | |
21424 | } | |
21425 | if (obj2) { | |
21426 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21427 | if (!SWIG_IsOK(ecode3)) { | |
21428 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
21429 | } | |
21430 | arg3 = static_cast< int >(val3); | |
21431 | } | |
21432 | if (obj3) { | |
36ed4f51 | 21433 | { |
1bd55598 RD |
21434 | arg4 = wxString_in_helper(obj3); |
21435 | if (arg4 == NULL) SWIG_fail; | |
21436 | temp4 = true; | |
36ed4f51 | 21437 | } |
1bd55598 RD |
21438 | } |
21439 | { | |
21440 | if (!wxPyCheckForApp()) SWIG_fail; | |
21441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21442 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
21446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
21447 | { | |
21448 | if (temp1) | |
21449 | delete arg1; | |
21450 | } | |
21451 | { | |
21452 | if (temp4) | |
21453 | delete arg4; | |
21454 | } | |
21455 | return resultobj; | |
21456 | fail: | |
21457 | { | |
21458 | if (temp1) | |
21459 | delete arg1; | |
21460 | } | |
21461 | { | |
21462 | if (temp4) | |
21463 | delete arg4; | |
21464 | } | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21470 | PyObject *resultobj = 0; | |
21471 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
21472 | wxMetaFile *result = 0 ; | |
21473 | void *argp1 = 0 ; | |
21474 | int res1 = 0 ; | |
21475 | PyObject *swig_obj[1] ; | |
21476 | ||
21477 | if (!args) SWIG_fail; | |
21478 | swig_obj[0] = args; | |
21479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
21480 | if (!SWIG_IsOK(res1)) { | |
21481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
21482 | } | |
21483 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
21484 | { | |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | result = (wxMetaFile *)(arg1)->Close(); | |
21487 | wxPyEndAllowThreads(__tstate); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | } | |
21490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
21491 | return resultobj; | |
21492 | fail: | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
21497 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21498 | PyObject *obj; | |
21499 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21500 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
21501 | return SWIG_Py_Void(); | |
21502 | } | |
21503 | ||
21504 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21505 | return SWIG_Python_InitShadowInstance(args); | |
21506 | } | |
21507 | ||
21508 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21509 | PyObject *resultobj = 0; | |
21510 | wxPrintData *arg1 = 0 ; | |
21511 | wxPrinterDC *result = 0 ; | |
21512 | void *argp1 = 0 ; | |
21513 | int res1 = 0 ; | |
21514 | PyObject * obj0 = 0 ; | |
21515 | char * kwnames[] = { | |
21516 | (char *) "printData", NULL | |
21517 | }; | |
21518 | ||
21519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
21520 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
21521 | if (!SWIG_IsOK(res1)) { | |
21522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21523 | } | |
21524 | if (!argp1) { | |
21525 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
21526 | } | |
21527 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
21528 | { | |
21529 | if (!wxPyCheckForApp()) SWIG_fail; | |
21530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21531 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21543 | PyObject *obj; | |
21544 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21545 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
21546 | return SWIG_Py_Void(); | |
21547 | } | |
21548 | ||
21549 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21550 | return SWIG_Python_InitShadowInstance(args); | |
21551 | } | |
21552 | ||
21553 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21554 | PyObject *resultobj = 0; | |
21555 | int arg1 ; | |
21556 | int arg2 ; | |
21557 | int arg3 = (int) true ; | |
21558 | int arg4 = (int) 1 ; | |
21559 | wxImageList *result = 0 ; | |
21560 | int val1 ; | |
21561 | int ecode1 = 0 ; | |
21562 | int val2 ; | |
21563 | int ecode2 = 0 ; | |
21564 | int val3 ; | |
21565 | int ecode3 = 0 ; | |
21566 | int val4 ; | |
21567 | int ecode4 = 0 ; | |
21568 | PyObject * obj0 = 0 ; | |
21569 | PyObject * obj1 = 0 ; | |
21570 | PyObject * obj2 = 0 ; | |
21571 | PyObject * obj3 = 0 ; | |
21572 | char * kwnames[] = { | |
21573 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
21574 | }; | |
21575 | ||
21576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
21577 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
21578 | if (!SWIG_IsOK(ecode1)) { | |
21579 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
21580 | } | |
21581 | arg1 = static_cast< int >(val1); | |
21582 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21583 | if (!SWIG_IsOK(ecode2)) { | |
21584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
21585 | } | |
21586 | arg2 = static_cast< int >(val2); | |
21587 | if (obj2) { | |
21588 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21589 | if (!SWIG_IsOK(ecode3)) { | |
21590 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
21591 | } | |
21592 | arg3 = static_cast< int >(val3); | |
21593 | } | |
21594 | if (obj3) { | |
21595 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21596 | if (!SWIG_IsOK(ecode4)) { | |
21597 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
21598 | } | |
21599 | arg4 = static_cast< int >(val4); | |
21600 | } | |
21601 | { | |
21602 | if (!wxPyCheckForApp()) SWIG_fail; | |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21604 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | { | |
21609 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
21610 | } | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21618 | PyObject *resultobj = 0; | |
21619 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21620 | void *argp1 = 0 ; | |
21621 | int res1 = 0 ; | |
21622 | PyObject *swig_obj[1] ; | |
21623 | ||
21624 | if (!args) SWIG_fail; | |
21625 | swig_obj[0] = args; | |
21626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
21627 | if (!SWIG_IsOK(res1)) { | |
21628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21629 | } | |
21630 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21631 | { | |
21632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21633 | delete arg1; | |
21634 | ||
21635 | wxPyEndAllowThreads(__tstate); | |
21636 | if (PyErr_Occurred()) SWIG_fail; | |
21637 | } | |
21638 | resultobj = SWIG_Py_Void(); | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
21645 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21646 | PyObject *resultobj = 0; | |
21647 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21648 | wxBitmap *arg2 = 0 ; | |
21649 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
21650 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
21651 | int result; | |
21652 | void *argp1 = 0 ; | |
21653 | int res1 = 0 ; | |
21654 | void *argp2 = 0 ; | |
21655 | int res2 = 0 ; | |
21656 | void *argp3 = 0 ; | |
21657 | int res3 = 0 ; | |
21658 | PyObject * obj0 = 0 ; | |
21659 | PyObject * obj1 = 0 ; | |
21660 | PyObject * obj2 = 0 ; | |
21661 | char * kwnames[] = { | |
21662 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
21663 | }; | |
21664 | ||
21665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21667 | if (!SWIG_IsOK(res1)) { | |
21668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21669 | } | |
21670 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21671 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21672 | if (!SWIG_IsOK(res2)) { | |
21673 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21674 | } | |
21675 | if (!argp2) { | |
21676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21677 | } | |
21678 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
21679 | if (obj2) { | |
21680 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21681 | if (!SWIG_IsOK(res3)) { | |
21682 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 21683 | } |
1bd55598 RD |
21684 | if (!argp3) { |
21685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
36ed4f51 | 21686 | } |
1bd55598 RD |
21687 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
21688 | } | |
21689 | { | |
21690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21691 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
21692 | wxPyEndAllowThreads(__tstate); | |
21693 | if (PyErr_Occurred()) SWIG_fail; | |
21694 | } | |
21695 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | return NULL; | |
21699 | } | |
21700 | ||
21701 | ||
21702 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21703 | PyObject *resultobj = 0; | |
21704 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21705 | wxBitmap *arg2 = 0 ; | |
21706 | wxColour *arg3 = 0 ; | |
21707 | int result; | |
21708 | void *argp1 = 0 ; | |
21709 | int res1 = 0 ; | |
21710 | void *argp2 = 0 ; | |
21711 | int res2 = 0 ; | |
21712 | wxColour temp3 ; | |
21713 | PyObject * obj0 = 0 ; | |
21714 | PyObject * obj1 = 0 ; | |
21715 | PyObject * obj2 = 0 ; | |
21716 | char * kwnames[] = { | |
21717 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
21718 | }; | |
21719 | ||
21720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21722 | if (!SWIG_IsOK(res1)) { | |
21723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21724 | } | |
21725 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21726 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21727 | if (!SWIG_IsOK(res2)) { | |
21728 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21729 | } | |
21730 | if (!argp2) { | |
21731 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
21732 | } | |
21733 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
21734 | { | |
21735 | arg3 = &temp3; | |
21736 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21737 | } | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
21741 | wxPyEndAllowThreads(__tstate); | |
21742 | if (PyErr_Occurred()) SWIG_fail; | |
21743 | } | |
21744 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21745 | return resultobj; | |
21746 | fail: | |
21747 | return NULL; | |
21748 | } | |
21749 | ||
21750 | ||
21751 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21752 | PyObject *resultobj = 0; | |
21753 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21754 | wxIcon *arg2 = 0 ; | |
21755 | int result; | |
21756 | void *argp1 = 0 ; | |
21757 | int res1 = 0 ; | |
21758 | void *argp2 = 0 ; | |
21759 | int res2 = 0 ; | |
21760 | PyObject * obj0 = 0 ; | |
21761 | PyObject * obj1 = 0 ; | |
21762 | char * kwnames[] = { | |
21763 | (char *) "self",(char *) "icon", NULL | |
21764 | }; | |
21765 | ||
21766 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
21767 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21768 | if (!SWIG_IsOK(res1)) { | |
21769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21770 | } | |
21771 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21772 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
21773 | if (!SWIG_IsOK(res2)) { | |
21774 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
21775 | } | |
21776 | if (!argp2) { | |
21777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
21778 | } | |
21779 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
21780 | { | |
21781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21782 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
21783 | wxPyEndAllowThreads(__tstate); | |
21784 | if (PyErr_Occurred()) SWIG_fail; | |
21785 | } | |
21786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21787 | return resultobj; | |
21788 | fail: | |
21789 | return NULL; | |
21790 | } | |
21791 | ||
21792 | ||
21793 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21794 | PyObject *resultobj = 0; | |
21795 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21796 | int arg2 ; | |
21797 | SwigValueWrapper<wxBitmap > result; | |
21798 | void *argp1 = 0 ; | |
21799 | int res1 = 0 ; | |
21800 | int val2 ; | |
21801 | int ecode2 = 0 ; | |
21802 | PyObject * obj0 = 0 ; | |
21803 | PyObject * obj1 = 0 ; | |
21804 | char * kwnames[] = { | |
21805 | (char *) "self",(char *) "index", NULL | |
21806 | }; | |
21807 | ||
21808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
21809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21810 | if (!SWIG_IsOK(res1)) { | |
21811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
21812 | } | |
21813 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21814 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21815 | if (!SWIG_IsOK(ecode2)) { | |
21816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
21817 | } | |
21818 | arg2 = static_cast< int >(val2); | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
21822 | wxPyEndAllowThreads(__tstate); | |
21823 | if (PyErr_Occurred()) SWIG_fail; | |
21824 | } | |
21825 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
21826 | return resultobj; | |
21827 | fail: | |
21828 | return NULL; | |
21829 | } | |
21830 | ||
21831 | ||
21832 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21833 | PyObject *resultobj = 0; | |
21834 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21835 | int arg2 ; | |
21836 | wxIcon result; | |
21837 | void *argp1 = 0 ; | |
21838 | int res1 = 0 ; | |
21839 | int val2 ; | |
21840 | int ecode2 = 0 ; | |
21841 | PyObject * obj0 = 0 ; | |
21842 | PyObject * obj1 = 0 ; | |
21843 | char * kwnames[] = { | |
21844 | (char *) "self",(char *) "index", NULL | |
21845 | }; | |
21846 | ||
21847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
21848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21849 | if (!SWIG_IsOK(res1)) { | |
21850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
21851 | } | |
21852 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21853 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21854 | if (!SWIG_IsOK(ecode2)) { | |
21855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
21856 | } | |
21857 | arg2 = static_cast< int >(val2); | |
21858 | { | |
21859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21860 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
21861 | wxPyEndAllowThreads(__tstate); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
21865 | return resultobj; | |
21866 | fail: | |
21867 | return NULL; | |
21868 | } | |
21869 | ||
21870 | ||
21871 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21872 | PyObject *resultobj = 0; | |
21873 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21874 | int arg2 ; | |
21875 | wxBitmap *arg3 = 0 ; | |
2131d850 RD |
21876 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
21877 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
1bd55598 RD |
21878 | bool result; |
21879 | void *argp1 = 0 ; | |
21880 | int res1 = 0 ; | |
21881 | int val2 ; | |
21882 | int ecode2 = 0 ; | |
21883 | void *argp3 = 0 ; | |
21884 | int res3 = 0 ; | |
2131d850 RD |
21885 | void *argp4 = 0 ; |
21886 | int res4 = 0 ; | |
1bd55598 RD |
21887 | PyObject * obj0 = 0 ; |
21888 | PyObject * obj1 = 0 ; | |
21889 | PyObject * obj2 = 0 ; | |
2131d850 | 21890 | PyObject * obj3 = 0 ; |
1bd55598 | 21891 | char * kwnames[] = { |
2131d850 | 21892 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
1bd55598 RD |
21893 | }; |
21894 | ||
2131d850 | 21895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
1bd55598 RD |
21896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
21897 | if (!SWIG_IsOK(res1)) { | |
21898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21899 | } | |
21900 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21901 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21902 | if (!SWIG_IsOK(ecode2)) { | |
21903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
21904 | } | |
21905 | arg2 = static_cast< int >(val2); | |
21906 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21907 | if (!SWIG_IsOK(res3)) { | |
21908 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
21909 | } | |
21910 | if (!argp3) { | |
21911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
21912 | } | |
21913 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
2131d850 RD |
21914 | if (obj3) { |
21915 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
21916 | if (!SWIG_IsOK(res4)) { | |
21917 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
21918 | } | |
21919 | if (!argp4) { | |
21920 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
21921 | } | |
21922 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
21923 | } | |
1bd55598 RD |
21924 | { |
21925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 | 21926 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
1bd55598 RD |
21927 | wxPyEndAllowThreads(__tstate); |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21932 | } | |
21933 | return resultobj; | |
21934 | fail: | |
21935 | return NULL; | |
21936 | } | |
21937 | ||
21938 | ||
21939 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21940 | PyObject *resultobj = 0; | |
21941 | wxImageList *arg1 = (wxImageList *) 0 ; | |
21942 | int arg2 ; | |
21943 | wxDC *arg3 = 0 ; | |
21944 | int arg4 ; | |
21945 | int arg5 ; | |
21946 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
21947 | bool arg7 = (bool) (bool)false ; | |
21948 | bool result; | |
21949 | void *argp1 = 0 ; | |
21950 | int res1 = 0 ; | |
21951 | int val2 ; | |
21952 | int ecode2 = 0 ; | |
21953 | void *argp3 = 0 ; | |
21954 | int res3 = 0 ; | |
21955 | int val4 ; | |
21956 | int ecode4 = 0 ; | |
21957 | int val5 ; | |
21958 | int ecode5 = 0 ; | |
21959 | int val6 ; | |
21960 | int ecode6 = 0 ; | |
21961 | bool val7 ; | |
21962 | int ecode7 = 0 ; | |
21963 | PyObject * obj0 = 0 ; | |
21964 | PyObject * obj1 = 0 ; | |
21965 | PyObject * obj2 = 0 ; | |
21966 | PyObject * obj3 = 0 ; | |
21967 | PyObject * obj4 = 0 ; | |
21968 | PyObject * obj5 = 0 ; | |
21969 | PyObject * obj6 = 0 ; | |
21970 | char * kwnames[] = { | |
21971 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
21972 | }; | |
21973 | ||
21974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
21976 | if (!SWIG_IsOK(res1)) { | |
21977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
21978 | } | |
21979 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
21980 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21981 | if (!SWIG_IsOK(ecode2)) { | |
21982 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
21983 | } | |
21984 | arg2 = static_cast< int >(val2); | |
21985 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
21986 | if (!SWIG_IsOK(res3)) { | |
21987 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
21988 | } | |
21989 | if (!argp3) { | |
21990 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
21991 | } | |
21992 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
21993 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21994 | if (!SWIG_IsOK(ecode4)) { | |
21995 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
21996 | } | |
21997 | arg4 = static_cast< int >(val4); | |
21998 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21999 | if (!SWIG_IsOK(ecode5)) { | |
22000 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
22001 | } | |
22002 | arg5 = static_cast< int >(val5); | |
22003 | if (obj5) { | |
22004 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22005 | if (!SWIG_IsOK(ecode6)) { | |
22006 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
22007 | } | |
22008 | arg6 = static_cast< int >(val6); | |
22009 | } | |
22010 | if (obj6) { | |
22011 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
22012 | if (!SWIG_IsOK(ecode7)) { | |
22013 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
22014 | } | |
22015 | arg7 = static_cast< bool >(val7); | |
22016 | } | |
22017 | { | |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
22020 | wxPyEndAllowThreads(__tstate); | |
22021 | if (PyErr_Occurred()) SWIG_fail; | |
22022 | } | |
22023 | { | |
22024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22025 | } | |
22026 | return resultobj; | |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
22032 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22033 | PyObject *resultobj = 0; | |
22034 | wxImageList *arg1 = (wxImageList *) 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_wxImageList, 0 | 0 ); | |
22043 | if (!SWIG_IsOK(res1)) { | |
22044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22045 | } | |
22046 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22047 | { | |
22048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22049 | result = (int)(arg1)->GetImageCount(); | |
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_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj = 0; | |
22062 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22063 | int arg2 ; | |
22064 | bool result; | |
22065 | void *argp1 = 0 ; | |
22066 | int res1 = 0 ; | |
22067 | int val2 ; | |
22068 | int ecode2 = 0 ; | |
22069 | PyObject * obj0 = 0 ; | |
22070 | PyObject * obj1 = 0 ; | |
22071 | char * kwnames[] = { | |
22072 | (char *) "self",(char *) "index", NULL | |
22073 | }; | |
22074 | ||
22075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
22076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22077 | if (!SWIG_IsOK(res1)) { | |
22078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22079 | } | |
22080 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22082 | if (!SWIG_IsOK(ecode2)) { | |
22083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
22084 | } | |
22085 | arg2 = static_cast< int >(val2); | |
22086 | { | |
22087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22088 | result = (bool)(arg1)->Remove(arg2); | |
22089 | wxPyEndAllowThreads(__tstate); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | } | |
22092 | { | |
22093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22094 | } | |
22095 | return resultobj; | |
22096 | fail: | |
22097 | return NULL; | |
22098 | } | |
22099 | ||
22100 | ||
22101 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22102 | PyObject *resultobj = 0; | |
22103 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22104 | bool result; | |
22105 | void *argp1 = 0 ; | |
22106 | int res1 = 0 ; | |
22107 | PyObject *swig_obj[1] ; | |
22108 | ||
22109 | if (!args) SWIG_fail; | |
22110 | swig_obj[0] = args; | |
22111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22112 | if (!SWIG_IsOK(res1)) { | |
22113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22114 | } | |
22115 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22116 | { | |
22117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22118 | result = (bool)(arg1)->RemoveAll(); | |
22119 | wxPyEndAllowThreads(__tstate); | |
22120 | if (PyErr_Occurred()) SWIG_fail; | |
22121 | } | |
22122 | { | |
22123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22124 | } | |
22125 | return resultobj; | |
22126 | fail: | |
22127 | return NULL; | |
22128 | } | |
22129 | ||
22130 | ||
22131 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22132 | PyObject *resultobj = 0; | |
22133 | wxImageList *arg1 = (wxImageList *) 0 ; | |
22134 | int arg2 ; | |
22135 | int *arg3 = 0 ; | |
22136 | int *arg4 = 0 ; | |
22137 | void *argp1 = 0 ; | |
22138 | int res1 = 0 ; | |
22139 | int val2 ; | |
22140 | int ecode2 = 0 ; | |
22141 | int temp3 ; | |
22142 | int res3 = SWIG_TMPOBJ ; | |
22143 | int temp4 ; | |
22144 | int res4 = SWIG_TMPOBJ ; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | PyObject * obj1 = 0 ; | |
22147 | char * kwnames[] = { | |
22148 | (char *) "self",(char *) "index", NULL | |
22149 | }; | |
22150 | ||
22151 | arg3 = &temp3; | |
22152 | arg4 = &temp4; | |
22153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
22155 | if (!SWIG_IsOK(res1)) { | |
22156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
22157 | } | |
22158 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
22159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22160 | if (!SWIG_IsOK(ecode2)) { | |
22161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
22162 | } | |
22163 | arg2 = static_cast< int >(val2); | |
22164 | { | |
22165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22166 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | resultobj = SWIG_Py_Void(); | |
22171 | if (SWIG_IsTmpObj(res3)) { | |
22172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22173 | } else { | |
22174 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22176 | } | |
22177 | if (SWIG_IsTmpObj(res4)) { | |
22178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
22179 | } else { | |
22180 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
22182 | } | |
22183 | return resultobj; | |
22184 | fail: | |
22185 | return NULL; | |
22186 | } | |
22187 | ||
22188 | ||
22189 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22190 | PyObject *obj; | |
22191 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22192 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
22193 | return SWIG_Py_Void(); | |
22194 | } | |
22195 | ||
22196 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22197 | return SWIG_Python_InitShadowInstance(args); | |
22198 | } | |
22199 | ||
da91cb0f RD |
22200 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22201 | PyObject *resultobj = 0; | |
22202 | wxStockGDI *result = 0 ; | |
1bd55598 | 22203 | |
da91cb0f RD |
22204 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
22205 | { | |
22206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22207 | result = (wxStockGDI *)new wxStockGDI(); | |
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
22211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
1bd55598 RD |
22215 | } |
22216 | ||
22217 | ||
da91cb0f RD |
22218 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22219 | PyObject *resultobj = 0; | |
22220 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
22221 | void *argp1 = 0 ; | |
22222 | int res1 = 0 ; | |
22223 | PyObject *swig_obj[1] ; | |
1bd55598 | 22224 | |
da91cb0f RD |
22225 | if (!args) SWIG_fail; |
22226 | swig_obj[0] = args; | |
22227 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
22228 | if (!SWIG_IsOK(res1)) { | |
22229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
22230 | } | |
22231 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
22232 | { | |
22233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22234 | delete arg1; | |
22235 | ||
22236 | wxPyEndAllowThreads(__tstate); | |
22237 | if (PyErr_Occurred()) SWIG_fail; | |
22238 | } | |
22239 | resultobj = SWIG_Py_Void(); | |
22240 | return resultobj; | |
22241 | fail: | |
22242 | return NULL; | |
1bd55598 RD |
22243 | } |
22244 | ||
22245 | ||
da91cb0f RD |
22246 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22247 | PyObject *resultobj = 0; | |
1bd55598 | 22248 | |
da91cb0f RD |
22249 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
22250 | { | |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | wxStockGDI::DeleteAll(); | |
22253 | wxPyEndAllowThreads(__tstate); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | } | |
22256 | resultobj = SWIG_Py_Void(); | |
22257 | return resultobj; | |
22258 | fail: | |
22259 | return NULL; | |
1bd55598 RD |
22260 | } |
22261 | ||
22262 | ||
da91cb0f RD |
22263 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22264 | PyObject *resultobj = 0; | |
22265 | wxStockGDI *result = 0 ; | |
1bd55598 | 22266 | |
da91cb0f RD |
22267 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
22268 | { | |
22269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22270 | { | |
22271 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
22272 | result = (wxStockGDI *) &_result_ref; | |
22273 | } | |
22274 | wxPyEndAllowThreads(__tstate); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
22277 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
22278 | return resultobj; | |
22279 | fail: | |
22280 | return NULL; | |
1bd55598 RD |
22281 | } |
22282 | ||
22283 | ||
da91cb0f RD |
22284 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22285 | PyObject *resultobj = 0; | |
22286 | wxStockGDI::Item arg1 ; | |
22287 | wxBrush *result = 0 ; | |
22288 | int val1 ; | |
22289 | int ecode1 = 0 ; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | char * kwnames[] = { | |
22292 | (char *) "item", NULL | |
22293 | }; | |
22294 | ||
22295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
22296 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22297 | if (!SWIG_IsOK(ecode1)) { | |
22298 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
22299 | } | |
22300 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
1bd55598 RD |
22311 | } |
22312 | ||
22313 | ||
da91cb0f RD |
22314 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22315 | PyObject *resultobj = 0; | |
22316 | wxStockGDI::Item arg1 ; | |
22317 | wxColour *result = 0 ; | |
22318 | int val1 ; | |
22319 | int ecode1 = 0 ; | |
22320 | PyObject * obj0 = 0 ; | |
22321 | char * kwnames[] = { | |
22322 | (char *) "item", NULL | |
22323 | }; | |
1bd55598 | 22324 | |
da91cb0f RD |
22325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
22326 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22327 | if (!SWIG_IsOK(ecode1)) { | |
22328 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
22329 | } | |
22330 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
22331 | { | |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
22334 | wxPyEndAllowThreads(__tstate); | |
22335 | if (PyErr_Occurred()) SWIG_fail; | |
22336 | } | |
22337 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22338 | return resultobj; | |
22339 | fail: | |
22340 | return NULL; | |
1bd55598 RD |
22341 | } |
22342 | ||
22343 | ||
da91cb0f RD |
22344 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22345 | PyObject *resultobj = 0; | |
22346 | wxStockGDI::Item arg1 ; | |
22347 | wxCursor *result = 0 ; | |
22348 | int val1 ; | |
22349 | int ecode1 = 0 ; | |
22350 | PyObject * obj0 = 0 ; | |
22351 | char * kwnames[] = { | |
22352 | (char *) "item", NULL | |
22353 | }; | |
22354 | ||
22355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
22356 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22357 | if (!SWIG_IsOK(ecode1)) { | |
22358 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
22359 | } | |
22360 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
22361 | { | |
22362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22363 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
22364 | wxPyEndAllowThreads(__tstate); | |
22365 | if (PyErr_Occurred()) SWIG_fail; | |
22366 | } | |
22367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
22368 | return resultobj; | |
22369 | fail: | |
22370 | return NULL; | |
1bd55598 RD |
22371 | } |
22372 | ||
22373 | ||
da91cb0f RD |
22374 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22375 | PyObject *resultobj = 0; | |
22376 | wxStockGDI::Item arg1 ; | |
22377 | wxPen *result = 0 ; | |
22378 | int val1 ; | |
22379 | int ecode1 = 0 ; | |
22380 | PyObject * obj0 = 0 ; | |
22381 | char * kwnames[] = { | |
22382 | (char *) "item", NULL | |
22383 | }; | |
22384 | ||
22385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
22386 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
22387 | if (!SWIG_IsOK(ecode1)) { | |
22388 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
22389 | } | |
22390 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
22391 | { | |
22392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22393 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
22394 | wxPyEndAllowThreads(__tstate); | |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
22397 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | return NULL; | |
1bd55598 RD |
22401 | } |
22402 | ||
22403 | ||
da91cb0f RD |
22404 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22405 | PyObject *resultobj = 0; | |
22406 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
22407 | wxStockGDI::Item arg2 ; | |
22408 | wxFont *result = 0 ; | |
22409 | void *argp1 = 0 ; | |
22410 | int res1 = 0 ; | |
22411 | int val2 ; | |
22412 | int ecode2 = 0 ; | |
22413 | PyObject * obj0 = 0 ; | |
22414 | PyObject * obj1 = 0 ; | |
22415 | char * kwnames[] = { | |
22416 | (char *) "self",(char *) "item", NULL | |
22417 | }; | |
1bd55598 | 22418 | |
da91cb0f RD |
22419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
22420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
22421 | if (!SWIG_IsOK(res1)) { | |
22422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
22423 | } | |
22424 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
22425 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22426 | if (!SWIG_IsOK(ecode2)) { | |
22427 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
22428 | } | |
22429 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
22430 | { | |
22431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22432 | result = (wxFont *)(arg1)->GetFont(arg2); | |
22433 | wxPyEndAllowThreads(__tstate); | |
22434 | if (PyErr_Occurred()) SWIG_fail; | |
22435 | } | |
22436 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
22437 | return resultobj; | |
22438 | fail: | |
22439 | return NULL; | |
1bd55598 RD |
22440 | } |
22441 | ||
22442 | ||
da91cb0f RD |
22443 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22444 | PyObject *obj; | |
22445 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22446 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
22447 | return SWIG_Py_Void(); | |
1bd55598 RD |
22448 | } |
22449 | ||
da91cb0f RD |
22450 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22451 | return SWIG_Python_InitShadowInstance(args); | |
1bd55598 RD |
22452 | } |
22453 | ||
1bd55598 RD |
22454 | SWIGINTERN int NullBitmap_set(PyObject *) { |
22455 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
22456 | return 1; | |
22457 | } | |
22458 | ||
22459 | ||
22460 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
22461 | PyObject *pyobj = 0; | |
22462 | ||
22463 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
22464 | return pyobj; | |
22465 | } | |
22466 | ||
22467 | ||
22468 | SWIGINTERN int NullIcon_set(PyObject *) { | |
22469 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
22470 | return 1; | |
22471 | } | |
22472 | ||
22473 | ||
22474 | SWIGINTERN PyObject *NullIcon_get(void) { | |
22475 | PyObject *pyobj = 0; | |
22476 | ||
22477 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
22478 | return pyobj; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | SWIGINTERN int NullCursor_set(PyObject *) { | |
22483 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
22484 | return 1; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | SWIGINTERN PyObject *NullCursor_get(void) { | |
22489 | PyObject *pyobj = 0; | |
22490 | ||
22491 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
22492 | return pyobj; | |
22493 | } | |
22494 | ||
22495 | ||
22496 | SWIGINTERN int NullPen_set(PyObject *) { | |
22497 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
22498 | return 1; | |
22499 | } | |
22500 | ||
22501 | ||
22502 | SWIGINTERN PyObject *NullPen_get(void) { | |
22503 | PyObject *pyobj = 0; | |
22504 | ||
22505 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
22506 | return pyobj; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | SWIGINTERN int NullBrush_set(PyObject *) { | |
22511 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
22512 | return 1; | |
22513 | } | |
22514 | ||
22515 | ||
22516 | SWIGINTERN PyObject *NullBrush_get(void) { | |
22517 | PyObject *pyobj = 0; | |
22518 | ||
22519 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
22520 | return pyobj; | |
22521 | } | |
22522 | ||
22523 | ||
22524 | SWIGINTERN int NullPalette_set(PyObject *) { | |
22525 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
22526 | return 1; | |
22527 | } | |
22528 | ||
22529 | ||
22530 | SWIGINTERN PyObject *NullPalette_get(void) { | |
22531 | PyObject *pyobj = 0; | |
22532 | ||
22533 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
22534 | return pyobj; | |
22535 | } | |
22536 | ||
22537 | ||
22538 | SWIGINTERN int NullFont_set(PyObject *) { | |
22539 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
22540 | return 1; | |
22541 | } | |
22542 | ||
22543 | ||
22544 | SWIGINTERN PyObject *NullFont_get(void) { | |
22545 | PyObject *pyobj = 0; | |
22546 | ||
22547 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
22548 | return pyobj; | |
22549 | } | |
22550 | ||
22551 | ||
22552 | SWIGINTERN int NullColour_set(PyObject *) { | |
22553 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
22554 | return 1; | |
22555 | } | |
22556 | ||
22557 | ||
22558 | SWIGINTERN PyObject *NullColour_get(void) { | |
22559 | PyObject *pyobj = 0; | |
22560 | ||
22561 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
22562 | return pyobj; | |
22563 | } | |
22564 | ||
22565 | ||
da91cb0f | 22566 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 | 22567 | PyObject *resultobj = 0; |
da91cb0f RD |
22568 | wxGDIObjListBase *result = 0 ; |
22569 | ||
22570 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
22571 | { | |
22572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22573 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
22584 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22585 | PyObject *resultobj = 0; | |
22586 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
1bd55598 RD |
22587 | void *argp1 = 0 ; |
22588 | int res1 = 0 ; | |
da91cb0f | 22589 | PyObject *swig_obj[1] ; |
1bd55598 | 22590 | |
da91cb0f RD |
22591 | if (!args) SWIG_fail; |
22592 | swig_obj[0] = args; | |
22593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
1bd55598 | 22594 | if (!SWIG_IsOK(res1)) { |
da91cb0f | 22595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
1bd55598 | 22596 | } |
da91cb0f | 22597 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
1bd55598 RD |
22598 | { |
22599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f RD |
22600 | delete arg1; |
22601 | ||
1bd55598 RD |
22602 | wxPyEndAllowThreads(__tstate); |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | } | |
22605 | resultobj = SWIG_Py_Void(); | |
22606 | return resultobj; | |
22607 | fail: | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
da91cb0f RD |
22612 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22613 | PyObject *obj; | |
22614 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22615 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
22616 | return SWIG_Py_Void(); | |
22617 | } | |
22618 | ||
22619 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22620 | return SWIG_Python_InitShadowInstance(args); | |
22621 | } | |
22622 | ||
1bd55598 RD |
22623 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22624 | PyObject *resultobj = 0; | |
22625 | wxPenList *arg1 = (wxPenList *) 0 ; | |
22626 | wxColour *arg2 = 0 ; | |
22627 | int arg3 ; | |
22628 | int arg4 ; | |
22629 | wxPen *result = 0 ; | |
22630 | void *argp1 = 0 ; | |
22631 | int res1 = 0 ; | |
22632 | wxColour temp2 ; | |
22633 | int val3 ; | |
22634 | int ecode3 = 0 ; | |
22635 | int val4 ; | |
22636 | int ecode4 = 0 ; | |
22637 | PyObject * obj0 = 0 ; | |
22638 | PyObject * obj1 = 0 ; | |
22639 | PyObject * obj2 = 0 ; | |
22640 | PyObject * obj3 = 0 ; | |
22641 | char * kwnames[] = { | |
22642 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
22643 | }; | |
22644 | ||
22645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
22647 | if (!SWIG_IsOK(res1)) { | |
22648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
22649 | } | |
22650 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
22651 | { | |
22652 | arg2 = &temp2; | |
22653 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22654 | } | |
22655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22656 | if (!SWIG_IsOK(ecode3)) { | |
22657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
22658 | } | |
22659 | arg3 = static_cast< int >(val3); | |
22660 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22661 | if (!SWIG_IsOK(ecode4)) { | |
22662 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
22663 | } | |
22664 | arg4 = static_cast< int >(val4); | |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
22671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
22672 | return resultobj; | |
22673 | fail: | |
22674 | return NULL; | |
22675 | } | |
22676 | ||
22677 | ||
da91cb0f | 22678 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 RD |
22679 | PyObject *resultobj = 0; |
22680 | wxPenList *arg1 = (wxPenList *) 0 ; | |
22681 | wxPen *arg2 = (wxPen *) 0 ; | |
22682 | void *argp1 = 0 ; | |
22683 | int res1 = 0 ; | |
22684 | void *argp2 = 0 ; | |
22685 | int res2 = 0 ; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | PyObject * obj1 = 0 ; | |
22688 | char * kwnames[] = { | |
22689 | (char *) "self",(char *) "pen", NULL | |
22690 | }; | |
22691 | ||
da91cb0f | 22692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
1bd55598 RD |
22693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
22694 | if (!SWIG_IsOK(res1)) { | |
da91cb0f | 22695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
1bd55598 RD |
22696 | } |
22697 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
22698 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
22699 | if (!SWIG_IsOK(res2)) { | |
da91cb0f | 22700 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
1bd55598 RD |
22701 | } |
22702 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
22703 | { | |
22704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 22705 | (arg1)->AddPen(arg2); |
1bd55598 RD |
22706 | wxPyEndAllowThreads(__tstate); |
22707 | if (PyErr_Occurred()) SWIG_fail; | |
22708 | } | |
22709 | resultobj = SWIG_Py_Void(); | |
22710 | return resultobj; | |
22711 | fail: | |
22712 | return NULL; | |
22713 | } | |
22714 | ||
22715 | ||
da91cb0f | 22716 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 RD |
22717 | PyObject *resultobj = 0; |
22718 | wxPenList *arg1 = (wxPenList *) 0 ; | |
da91cb0f | 22719 | wxPen *arg2 = (wxPen *) 0 ; |
1bd55598 RD |
22720 | void *argp1 = 0 ; |
22721 | int res1 = 0 ; | |
da91cb0f RD |
22722 | void *argp2 = 0 ; |
22723 | int res2 = 0 ; | |
22724 | PyObject * obj0 = 0 ; | |
22725 | PyObject * obj1 = 0 ; | |
22726 | char * kwnames[] = { | |
22727 | (char *) "self",(char *) "pen", NULL | |
22728 | }; | |
1bd55598 | 22729 | |
da91cb0f RD |
22730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
22731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
1bd55598 | 22732 | if (!SWIG_IsOK(res1)) { |
da91cb0f | 22733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
1bd55598 RD |
22734 | } |
22735 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
da91cb0f RD |
22736 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
22737 | if (!SWIG_IsOK(res2)) { | |
22738 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
22739 | } | |
22740 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
1bd55598 RD |
22741 | { |
22742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 22743 | (arg1)->RemovePen(arg2); |
1bd55598 RD |
22744 | wxPyEndAllowThreads(__tstate); |
22745 | if (PyErr_Occurred()) SWIG_fail; | |
22746 | } | |
da91cb0f | 22747 | resultobj = SWIG_Py_Void(); |
1bd55598 RD |
22748 | return resultobj; |
22749 | fail: | |
22750 | return NULL; | |
22751 | } | |
22752 | ||
22753 | ||
22754 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22755 | PyObject *obj; | |
22756 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22757 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
22758 | return SWIG_Py_Void(); | |
22759 | } | |
22760 | ||
da91cb0f RD |
22761 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22762 | PyObject *resultobj = 0; | |
22763 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
22764 | wxColour *arg2 = 0 ; | |
22765 | int arg3 = (int) wxSOLID ; | |
22766 | wxBrush *result = 0 ; | |
22767 | void *argp1 = 0 ; | |
22768 | int res1 = 0 ; | |
22769 | wxColour temp2 ; | |
22770 | int val3 ; | |
22771 | int ecode3 = 0 ; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | PyObject * obj1 = 0 ; | |
22774 | PyObject * obj2 = 0 ; | |
22775 | char * kwnames[] = { | |
22776 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
22777 | }; | |
22778 | ||
22779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
22781 | if (!SWIG_IsOK(res1)) { | |
22782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
22783 | } | |
22784 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
22785 | { | |
22786 | arg2 = &temp2; | |
22787 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22788 | } | |
22789 | if (obj2) { | |
22790 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22791 | if (!SWIG_IsOK(ecode3)) { | |
22792 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
22793 | } | |
22794 | arg3 = static_cast< int >(val3); | |
22795 | } | |
22796 | { | |
22797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22798 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
22799 | wxPyEndAllowThreads(__tstate); | |
22800 | if (PyErr_Occurred()) SWIG_fail; | |
22801 | } | |
22802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
22803 | return resultobj; | |
22804 | fail: | |
22805 | return NULL; | |
22806 | } | |
22807 | ||
22808 | ||
1bd55598 RD |
22809 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22810 | PyObject *resultobj = 0; | |
22811 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
22812 | wxBrush *arg2 = (wxBrush *) 0 ; | |
22813 | void *argp1 = 0 ; | |
22814 | int res1 = 0 ; | |
22815 | void *argp2 = 0 ; | |
22816 | int res2 = 0 ; | |
22817 | PyObject * obj0 = 0 ; | |
22818 | PyObject * obj1 = 0 ; | |
22819 | char * kwnames[] = { | |
22820 | (char *) "self",(char *) "brush", NULL | |
22821 | }; | |
22822 | ||
22823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
22824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
22825 | if (!SWIG_IsOK(res1)) { | |
22826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
22827 | } | |
22828 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
22829 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
22830 | if (!SWIG_IsOK(res2)) { | |
22831 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
22832 | } | |
22833 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | (arg1)->AddBrush(arg2); | |
22837 | wxPyEndAllowThreads(__tstate); | |
22838 | if (PyErr_Occurred()) SWIG_fail; | |
22839 | } | |
22840 | resultobj = SWIG_Py_Void(); | |
22841 | return resultobj; | |
22842 | fail: | |
22843 | return NULL; | |
22844 | } | |
22845 | ||
22846 | ||
da91cb0f | 22847 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 RD |
22848 | PyObject *resultobj = 0; |
22849 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
da91cb0f | 22850 | wxBrush *arg2 = (wxBrush *) 0 ; |
1bd55598 RD |
22851 | void *argp1 = 0 ; |
22852 | int res1 = 0 ; | |
da91cb0f RD |
22853 | void *argp2 = 0 ; |
22854 | int res2 = 0 ; | |
22855 | PyObject * obj0 = 0 ; | |
22856 | PyObject * obj1 = 0 ; | |
22857 | char * kwnames[] = { | |
22858 | (char *) "self",(char *) "brush", NULL | |
22859 | }; | |
22860 | ||
22861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
22862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
22863 | if (!SWIG_IsOK(res1)) { | |
22864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
22865 | } | |
22866 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
22867 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
22868 | if (!SWIG_IsOK(res2)) { | |
22869 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
22870 | } | |
22871 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
22872 | { | |
22873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22874 | (arg1)->RemoveBrush(arg2); | |
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | resultobj = SWIG_Py_Void(); | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
22882 | } | |
22883 | ||
22884 | ||
22885 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22886 | PyObject *obj; | |
22887 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22888 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
22889 | return SWIG_Py_Void(); | |
22890 | } | |
22891 | ||
22892 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22893 | PyObject *resultobj = 0; | |
22894 | wxFontList *arg1 = (wxFontList *) 0 ; | |
22895 | int arg2 ; | |
22896 | int arg3 ; | |
22897 | int arg4 ; | |
22898 | int arg5 ; | |
22899 | bool arg6 = (bool) false ; | |
22900 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
22901 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22902 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
22903 | wxFont *result = 0 ; | |
22904 | void *argp1 = 0 ; | |
22905 | int res1 = 0 ; | |
22906 | int val2 ; | |
22907 | int ecode2 = 0 ; | |
1bd55598 RD |
22908 | int val3 ; |
22909 | int ecode3 = 0 ; | |
da91cb0f RD |
22910 | int val4 ; |
22911 | int ecode4 = 0 ; | |
22912 | int val5 ; | |
22913 | int ecode5 = 0 ; | |
22914 | bool val6 ; | |
22915 | int ecode6 = 0 ; | |
22916 | bool temp7 = false ; | |
22917 | int val8 ; | |
22918 | int ecode8 = 0 ; | |
1bd55598 RD |
22919 | PyObject * obj0 = 0 ; |
22920 | PyObject * obj1 = 0 ; | |
22921 | PyObject * obj2 = 0 ; | |
da91cb0f RD |
22922 | PyObject * obj3 = 0 ; |
22923 | PyObject * obj4 = 0 ; | |
22924 | PyObject * obj5 = 0 ; | |
22925 | PyObject * obj6 = 0 ; | |
22926 | PyObject * obj7 = 0 ; | |
1bd55598 | 22927 | char * kwnames[] = { |
da91cb0f | 22928 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
1bd55598 RD |
22929 | }; |
22930 | ||
da91cb0f RD |
22931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
22932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
1bd55598 | 22933 | if (!SWIG_IsOK(res1)) { |
da91cb0f | 22934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
1bd55598 | 22935 | } |
da91cb0f RD |
22936 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
22937 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22938 | if (!SWIG_IsOK(ecode2)) { | |
22939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
22940 | } | |
22941 | arg2 = static_cast< int >(val2); | |
22942 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22943 | if (!SWIG_IsOK(ecode3)) { | |
22944 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
22945 | } | |
22946 | arg3 = static_cast< int >(val3); | |
22947 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22948 | if (!SWIG_IsOK(ecode4)) { | |
22949 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
22950 | } | |
22951 | arg4 = static_cast< int >(val4); | |
22952 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22953 | if (!SWIG_IsOK(ecode5)) { | |
22954 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
22955 | } | |
22956 | arg5 = static_cast< int >(val5); | |
22957 | if (obj5) { | |
22958 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
22959 | if (!SWIG_IsOK(ecode6)) { | |
22960 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
22961 | } | |
22962 | arg6 = static_cast< bool >(val6); | |
1bd55598 | 22963 | } |
da91cb0f RD |
22964 | if (obj6) { |
22965 | { | |
22966 | arg7 = wxString_in_helper(obj6); | |
22967 | if (arg7 == NULL) SWIG_fail; | |
22968 | temp7 = true; | |
22969 | } | |
22970 | } | |
22971 | if (obj7) { | |
22972 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
22973 | if (!SWIG_IsOK(ecode8)) { | |
22974 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
1bd55598 | 22975 | } |
da91cb0f | 22976 | arg8 = static_cast< wxFontEncoding >(val8); |
1bd55598 RD |
22977 | } |
22978 | { | |
22979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 22980 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
1bd55598 RD |
22981 | wxPyEndAllowThreads(__tstate); |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
da91cb0f RD |
22984 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
22985 | { | |
22986 | if (temp7) | |
22987 | delete arg7; | |
22988 | } | |
1bd55598 RD |
22989 | return resultobj; |
22990 | fail: | |
da91cb0f RD |
22991 | { |
22992 | if (temp7) | |
22993 | delete arg7; | |
22994 | } | |
1bd55598 RD |
22995 | return NULL; |
22996 | } | |
22997 | ||
22998 | ||
da91cb0f | 22999 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 | 23000 | PyObject *resultobj = 0; |
da91cb0f RD |
23001 | wxFontList *arg1 = (wxFontList *) 0 ; |
23002 | wxFont *arg2 = (wxFont *) 0 ; | |
1bd55598 RD |
23003 | void *argp1 = 0 ; |
23004 | int res1 = 0 ; | |
23005 | void *argp2 = 0 ; | |
23006 | int res2 = 0 ; | |
23007 | PyObject * obj0 = 0 ; | |
23008 | PyObject * obj1 = 0 ; | |
23009 | char * kwnames[] = { | |
da91cb0f | 23010 | (char *) "self",(char *) "font", NULL |
1bd55598 RD |
23011 | }; |
23012 | ||
da91cb0f RD |
23013 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
23014 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
1bd55598 | 23015 | if (!SWIG_IsOK(res1)) { |
da91cb0f | 23016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
1bd55598 | 23017 | } |
da91cb0f RD |
23018 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
23019 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
1bd55598 | 23020 | if (!SWIG_IsOK(res2)) { |
da91cb0f | 23021 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
1bd55598 | 23022 | } |
da91cb0f | 23023 | arg2 = reinterpret_cast< wxFont * >(argp2); |
1bd55598 RD |
23024 | { |
23025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 23026 | (arg1)->AddFont(arg2); |
1bd55598 RD |
23027 | wxPyEndAllowThreads(__tstate); |
23028 | if (PyErr_Occurred()) SWIG_fail; | |
23029 | } | |
23030 | resultobj = SWIG_Py_Void(); | |
23031 | return resultobj; | |
23032 | fail: | |
23033 | return NULL; | |
23034 | } | |
23035 | ||
23036 | ||
da91cb0f | 23037 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
1bd55598 | 23038 | PyObject *resultobj = 0; |
da91cb0f RD |
23039 | wxFontList *arg1 = (wxFontList *) 0 ; |
23040 | wxFont *arg2 = (wxFont *) 0 ; | |
1bd55598 RD |
23041 | void *argp1 = 0 ; |
23042 | int res1 = 0 ; | |
da91cb0f RD |
23043 | void *argp2 = 0 ; |
23044 | int res2 = 0 ; | |
23045 | PyObject * obj0 = 0 ; | |
23046 | PyObject * obj1 = 0 ; | |
23047 | char * kwnames[] = { | |
23048 | (char *) "self",(char *) "font", NULL | |
23049 | }; | |
1bd55598 | 23050 | |
da91cb0f RD |
23051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
23052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
1bd55598 | 23053 | if (!SWIG_IsOK(res1)) { |
da91cb0f | 23054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
1bd55598 | 23055 | } |
da91cb0f RD |
23056 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
23057 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
23058 | if (!SWIG_IsOK(res2)) { | |
23059 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
23060 | } | |
23061 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
1bd55598 RD |
23062 | { |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 23064 | (arg1)->RemoveFont(arg2); |
1bd55598 RD |
23065 | wxPyEndAllowThreads(__tstate); |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
da91cb0f | 23068 | resultobj = SWIG_Py_Void(); |
1bd55598 RD |
23069 | return resultobj; |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
da91cb0f | 23075 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 RD |
23076 | PyObject *obj; |
23077 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
da91cb0f | 23078 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
1bd55598 RD |
23079 | return SWIG_Py_Void(); |
23080 | } | |
23081 | ||
23082 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23083 | PyObject *resultobj = 0; | |
23084 | wxColourDatabase *result = 0 ; | |
23085 | ||
23086 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
23087 | { | |
23088 | if (!wxPyCheckForApp()) SWIG_fail; | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | result = (wxColourDatabase *)new wxColourDatabase(); | |
23091 | wxPyEndAllowThreads(__tstate); | |
23092 | if (PyErr_Occurred()) SWIG_fail; | |
23093 | } | |
23094 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
23095 | return resultobj; | |
23096 | fail: | |
23097 | return NULL; | |
23098 | } | |
23099 | ||
23100 | ||
23101 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23102 | PyObject *resultobj = 0; | |
23103 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23104 | void *argp1 = 0 ; | |
23105 | int res1 = 0 ; | |
23106 | PyObject *swig_obj[1] ; | |
23107 | ||
23108 | if (!args) SWIG_fail; | |
23109 | swig_obj[0] = args; | |
23110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
23111 | if (!SWIG_IsOK(res1)) { | |
23112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
23113 | } | |
23114 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | delete arg1; | |
23118 | ||
23119 | wxPyEndAllowThreads(__tstate); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
23121 | } | |
23122 | resultobj = SWIG_Py_Void(); | |
23123 | return resultobj; | |
23124 | fail: | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
23129 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23130 | PyObject *resultobj = 0; | |
23131 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23132 | wxString *arg2 = 0 ; | |
23133 | wxColour result; | |
23134 | void *argp1 = 0 ; | |
23135 | int res1 = 0 ; | |
23136 | bool temp2 = false ; | |
23137 | PyObject * obj0 = 0 ; | |
23138 | PyObject * obj1 = 0 ; | |
23139 | char * kwnames[] = { | |
23140 | (char *) "self",(char *) "name", NULL | |
23141 | }; | |
23142 | ||
23143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
23144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23145 | if (!SWIG_IsOK(res1)) { | |
23146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23147 | } | |
23148 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23149 | { | |
23150 | arg2 = wxString_in_helper(obj1); | |
23151 | if (arg2 == NULL) SWIG_fail; | |
23152 | temp2 = true; | |
23153 | } | |
23154 | { | |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23161 | { | |
23162 | if (temp2) | |
23163 | delete arg2; | |
23164 | } | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | { | |
23168 | if (temp2) | |
23169 | delete arg2; | |
23170 | } | |
23171 | return NULL; | |
23172 | } | |
23173 | ||
23174 | ||
23175 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23176 | PyObject *resultobj = 0; | |
23177 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23178 | wxColour *arg2 = 0 ; | |
23179 | wxString result; | |
23180 | void *argp1 = 0 ; | |
23181 | int res1 = 0 ; | |
23182 | wxColour temp2 ; | |
23183 | PyObject * obj0 = 0 ; | |
23184 | PyObject * obj1 = 0 ; | |
23185 | char * kwnames[] = { | |
23186 | (char *) "self",(char *) "colour", NULL | |
23187 | }; | |
23188 | ||
23189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23191 | if (!SWIG_IsOK(res1)) { | |
23192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
23193 | } | |
23194 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23195 | { | |
23196 | arg2 = &temp2; | |
23197 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23198 | } | |
23199 | { | |
23200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23201 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
23202 | wxPyEndAllowThreads(__tstate); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | { | |
23206 | #if wxUSE_UNICODE | |
23207 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23208 | #else | |
23209 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23210 | #endif | |
23211 | } | |
23212 | return resultobj; | |
23213 | fail: | |
23214 | return NULL; | |
23215 | } | |
23216 | ||
23217 | ||
23218 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23219 | PyObject *resultobj = 0; | |
23220 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23221 | wxString *arg2 = 0 ; | |
23222 | wxColour *arg3 = 0 ; | |
23223 | void *argp1 = 0 ; | |
23224 | int res1 = 0 ; | |
23225 | bool temp2 = false ; | |
23226 | wxColour temp3 ; | |
23227 | PyObject * obj0 = 0 ; | |
23228 | PyObject * obj1 = 0 ; | |
23229 | PyObject * obj2 = 0 ; | |
23230 | char * kwnames[] = { | |
23231 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
23232 | }; | |
23233 | ||
23234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23236 | if (!SWIG_IsOK(res1)) { | |
23237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
23238 | } | |
23239 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23240 | { | |
23241 | arg2 = wxString_in_helper(obj1); | |
23242 | if (arg2 == NULL) SWIG_fail; | |
23243 | temp2 = true; | |
23244 | } | |
23245 | { | |
23246 | arg3 = &temp3; | |
23247 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23248 | } | |
23249 | { | |
23250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23251 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
23252 | wxPyEndAllowThreads(__tstate); | |
23253 | if (PyErr_Occurred()) SWIG_fail; | |
23254 | } | |
23255 | resultobj = SWIG_Py_Void(); | |
23256 | { | |
23257 | if (temp2) | |
23258 | delete arg2; | |
23259 | } | |
23260 | return resultobj; | |
23261 | fail: | |
23262 | { | |
23263 | if (temp2) | |
23264 | delete arg2; | |
23265 | } | |
23266 | return NULL; | |
23267 | } | |
23268 | ||
23269 | ||
23270 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23271 | PyObject *resultobj = 0; | |
23272 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
23273 | wxString *arg2 = 0 ; | |
23274 | int arg3 ; | |
23275 | int arg4 ; | |
23276 | int arg5 ; | |
23277 | void *argp1 = 0 ; | |
23278 | int res1 = 0 ; | |
23279 | bool temp2 = false ; | |
23280 | int val3 ; | |
23281 | int ecode3 = 0 ; | |
23282 | int val4 ; | |
23283 | int ecode4 = 0 ; | |
da91cb0f RD |
23284 | int val5 ; |
23285 | int ecode5 = 0 ; | |
1bd55598 RD |
23286 | PyObject * obj0 = 0 ; |
23287 | PyObject * obj1 = 0 ; | |
23288 | PyObject * obj2 = 0 ; | |
23289 | PyObject * obj3 = 0 ; | |
23290 | PyObject * obj4 = 0 ; | |
1bd55598 | 23291 | char * kwnames[] = { |
da91cb0f | 23292 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
1bd55598 RD |
23293 | }; |
23294 | ||
da91cb0f RD |
23295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
23296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
1bd55598 | 23297 | if (!SWIG_IsOK(res1)) { |
da91cb0f RD |
23298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
23299 | } | |
23300 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
23301 | { | |
23302 | arg2 = wxString_in_helper(obj1); | |
23303 | if (arg2 == NULL) SWIG_fail; | |
23304 | temp2 = true; | |
1bd55598 | 23305 | } |
1bd55598 RD |
23306 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
23307 | if (!SWIG_IsOK(ecode3)) { | |
da91cb0f | 23308 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
1bd55598 RD |
23309 | } |
23310 | arg3 = static_cast< int >(val3); | |
23311 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23312 | if (!SWIG_IsOK(ecode4)) { | |
da91cb0f | 23313 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
1bd55598 RD |
23314 | } |
23315 | arg4 = static_cast< int >(val4); | |
23316 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23317 | if (!SWIG_IsOK(ecode5)) { | |
da91cb0f | 23318 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
1bd55598 RD |
23319 | } |
23320 | arg5 = static_cast< int >(val5); | |
1bd55598 RD |
23321 | { |
23322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 23323 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
1bd55598 RD |
23324 | wxPyEndAllowThreads(__tstate); |
23325 | if (PyErr_Occurred()) SWIG_fail; | |
23326 | } | |
da91cb0f | 23327 | resultobj = SWIG_Py_Void(); |
1bd55598 | 23328 | { |
da91cb0f RD |
23329 | if (temp2) |
23330 | delete arg2; | |
1bd55598 RD |
23331 | } |
23332 | return resultobj; | |
23333 | fail: | |
23334 | { | |
da91cb0f RD |
23335 | if (temp2) |
23336 | delete arg2; | |
1bd55598 RD |
23337 | } |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
da91cb0f RD |
23342 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23343 | PyObject *obj; | |
23344 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23345 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
23346 | return SWIG_Py_Void(); | |
23347 | } | |
23348 | ||
23349 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23350 | return SWIG_Python_InitShadowInstance(args); | |
23351 | } | |
23352 | ||
23353 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
1bd55598 | 23354 | PyObject *resultobj = 0; |
da91cb0f | 23355 | wxFontList *result = 0 ; |
1bd55598 | 23356 | |
da91cb0f | 23357 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
1bd55598 RD |
23358 | { |
23359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 23360 | result = (wxFontList *)_wxPyInitTheFontList(); |
1bd55598 RD |
23361 | wxPyEndAllowThreads(__tstate); |
23362 | if (PyErr_Occurred()) SWIG_fail; | |
23363 | } | |
da91cb0f | 23364 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
1bd55598 RD |
23365 | return resultobj; |
23366 | fail: | |
23367 | return NULL; | |
23368 | } | |
23369 | ||
23370 | ||
da91cb0f | 23371 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
1bd55598 | 23372 | PyObject *resultobj = 0; |
da91cb0f | 23373 | wxPenList *result = 0 ; |
1bd55598 | 23374 | |
da91cb0f | 23375 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
1bd55598 RD |
23376 | { |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
da91cb0f | 23378 | result = (wxPenList *)_wxPyInitThePenList(); |
1bd55598 RD |
23379 | wxPyEndAllowThreads(__tstate); |
23380 | if (PyErr_Occurred()) SWIG_fail; | |
23381 | } | |
da91cb0f | 23382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
1bd55598 RD |
23383 | return resultobj; |
23384 | fail: | |
23385 | return NULL; | |
23386 | } | |
23387 | ||
23388 | ||
da91cb0f RD |
23389 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23390 | PyObject *resultobj = 0; | |
23391 | wxBrushList *result = 0 ; | |
1bd55598 | 23392 | |
da91cb0f RD |
23393 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
23394 | { | |
23395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23396 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
1bd55598 RD |
23404 | } |
23405 | ||
23406 | ||
da91cb0f RD |
23407 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23408 | PyObject *resultobj = 0; | |
23409 | wxColourDatabase *result = 0 ; | |
1bd55598 | 23410 | |
da91cb0f RD |
23411 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
23412 | { | |
23413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23414 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
23415 | wxPyEndAllowThreads(__tstate); | |
23416 | if (PyErr_Occurred()) SWIG_fail; | |
23417 | } | |
23418 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
23419 | return resultobj; | |
23420 | fail: | |
23421 | return NULL; | |
1bd55598 RD |
23422 | } |
23423 | ||
23424 | ||
23425 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23426 | PyObject *resultobj = 0; | |
23427 | wxEffects *result = 0 ; | |
23428 | ||
23429 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
23430 | { | |
23431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23432 | result = (wxEffects *)new wxEffects(); | |
23433 | wxPyEndAllowThreads(__tstate); | |
23434 | if (PyErr_Occurred()) SWIG_fail; | |
23435 | } | |
23436 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
23437 | return resultobj; | |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
23443 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23444 | PyObject *resultobj = 0; | |
23445 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23446 | wxColour result; | |
23447 | void *argp1 = 0 ; | |
23448 | int res1 = 0 ; | |
23449 | PyObject *swig_obj[1] ; | |
23450 | ||
23451 | if (!args) SWIG_fail; | |
23452 | swig_obj[0] = args; | |
23453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23454 | if (!SWIG_IsOK(res1)) { | |
23455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
23456 | } | |
23457 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23458 | { | |
23459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23460 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
23461 | wxPyEndAllowThreads(__tstate); | |
23462 | if (PyErr_Occurred()) SWIG_fail; | |
23463 | } | |
23464 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23465 | return resultobj; | |
23466 | fail: | |
23467 | return NULL; | |
23468 | } | |
23469 | ||
23470 | ||
23471 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23472 | PyObject *resultobj = 0; | |
23473 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23474 | wxColour result; | |
23475 | void *argp1 = 0 ; | |
23476 | int res1 = 0 ; | |
23477 | PyObject *swig_obj[1] ; | |
23478 | ||
23479 | if (!args) SWIG_fail; | |
23480 | swig_obj[0] = args; | |
23481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23482 | if (!SWIG_IsOK(res1)) { | |
23483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
23484 | } | |
23485 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23486 | { | |
23487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23488 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
23496 | } | |
23497 | ||
23498 | ||
23499 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23500 | PyObject *resultobj = 0; | |
23501 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23502 | wxColour result; | |
23503 | void *argp1 = 0 ; | |
23504 | int res1 = 0 ; | |
23505 | PyObject *swig_obj[1] ; | |
23506 | ||
23507 | if (!args) SWIG_fail; | |
23508 | swig_obj[0] = args; | |
23509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23510 | if (!SWIG_IsOK(res1)) { | |
23511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
23512 | } | |
23513 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
23517 | wxPyEndAllowThreads(__tstate); | |
23518 | if (PyErr_Occurred()) SWIG_fail; | |
23519 | } | |
23520 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23521 | return resultobj; | |
23522 | fail: | |
23523 | return NULL; | |
23524 | } | |
23525 | ||
23526 | ||
23527 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23528 | PyObject *resultobj = 0; | |
23529 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23530 | wxColour result; | |
23531 | void *argp1 = 0 ; | |
23532 | int res1 = 0 ; | |
23533 | PyObject *swig_obj[1] ; | |
23534 | ||
23535 | if (!args) SWIG_fail; | |
23536 | swig_obj[0] = args; | |
23537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23538 | if (!SWIG_IsOK(res1)) { | |
23539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
23540 | } | |
23541 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23542 | { | |
23543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23544 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
23545 | wxPyEndAllowThreads(__tstate); | |
23546 | if (PyErr_Occurred()) SWIG_fail; | |
23547 | } | |
23548 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23549 | return resultobj; | |
23550 | fail: | |
23551 | return NULL; | |
23552 | } | |
23553 | ||
23554 | ||
23555 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23556 | PyObject *resultobj = 0; | |
23557 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23558 | wxColour result; | |
23559 | void *argp1 = 0 ; | |
23560 | int res1 = 0 ; | |
23561 | PyObject *swig_obj[1] ; | |
23562 | ||
23563 | if (!args) SWIG_fail; | |
23564 | swig_obj[0] = args; | |
23565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23566 | if (!SWIG_IsOK(res1)) { | |
23567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
23568 | } | |
23569 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23570 | { | |
23571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23572 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
23576 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
23577 | return resultobj; | |
23578 | fail: | |
23579 | return NULL; | |
23580 | } | |
23581 | ||
23582 | ||
23583 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23584 | PyObject *resultobj = 0; | |
23585 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23586 | wxColour *arg2 = 0 ; | |
23587 | void *argp1 = 0 ; | |
23588 | int res1 = 0 ; | |
23589 | wxColour temp2 ; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | PyObject * obj1 = 0 ; | |
23592 | char * kwnames[] = { | |
23593 | (char *) "self",(char *) "c", NULL | |
23594 | }; | |
23595 | ||
23596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
23597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23598 | if (!SWIG_IsOK(res1)) { | |
23599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23600 | } | |
23601 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23602 | { | |
23603 | arg2 = &temp2; | |
23604 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23605 | } | |
23606 | { | |
23607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23608 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
23609 | wxPyEndAllowThreads(__tstate); | |
23610 | if (PyErr_Occurred()) SWIG_fail; | |
23611 | } | |
23612 | resultobj = SWIG_Py_Void(); | |
23613 | return resultobj; | |
23614 | fail: | |
23615 | return NULL; | |
23616 | } | |
23617 | ||
23618 | ||
23619 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23620 | PyObject *resultobj = 0; | |
23621 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23622 | wxColour *arg2 = 0 ; | |
23623 | void *argp1 = 0 ; | |
23624 | int res1 = 0 ; | |
23625 | wxColour temp2 ; | |
23626 | PyObject * obj0 = 0 ; | |
23627 | PyObject * obj1 = 0 ; | |
23628 | char * kwnames[] = { | |
23629 | (char *) "self",(char *) "c", NULL | |
23630 | }; | |
23631 | ||
23632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
23633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23634 | if (!SWIG_IsOK(res1)) { | |
23635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23636 | } | |
23637 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23638 | { | |
23639 | arg2 = &temp2; | |
23640 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23641 | } | |
23642 | { | |
23643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23644 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
23645 | wxPyEndAllowThreads(__tstate); | |
23646 | if (PyErr_Occurred()) SWIG_fail; | |
23647 | } | |
23648 | resultobj = SWIG_Py_Void(); | |
23649 | return resultobj; | |
23650 | fail: | |
23651 | return NULL; | |
23652 | } | |
23653 | ||
23654 | ||
23655 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23656 | PyObject *resultobj = 0; | |
23657 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23658 | wxColour *arg2 = 0 ; | |
23659 | void *argp1 = 0 ; | |
23660 | int res1 = 0 ; | |
23661 | wxColour temp2 ; | |
23662 | PyObject * obj0 = 0 ; | |
23663 | PyObject * obj1 = 0 ; | |
23664 | char * kwnames[] = { | |
23665 | (char *) "self",(char *) "c", NULL | |
23666 | }; | |
23667 | ||
23668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
23669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23670 | if (!SWIG_IsOK(res1)) { | |
23671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23672 | } | |
23673 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23674 | { | |
23675 | arg2 = &temp2; | |
23676 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23677 | } | |
23678 | { | |
23679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23680 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
23681 | wxPyEndAllowThreads(__tstate); | |
23682 | if (PyErr_Occurred()) SWIG_fail; | |
23683 | } | |
23684 | resultobj = SWIG_Py_Void(); | |
23685 | return resultobj; | |
23686 | fail: | |
23687 | return NULL; | |
23688 | } | |
23689 | ||
23690 | ||
23691 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23692 | PyObject *resultobj = 0; | |
23693 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23694 | wxColour *arg2 = 0 ; | |
23695 | void *argp1 = 0 ; | |
23696 | int res1 = 0 ; | |
23697 | wxColour temp2 ; | |
23698 | PyObject * obj0 = 0 ; | |
23699 | PyObject * obj1 = 0 ; | |
23700 | char * kwnames[] = { | |
23701 | (char *) "self",(char *) "c", NULL | |
23702 | }; | |
23703 | ||
23704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
23705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23706 | if (!SWIG_IsOK(res1)) { | |
23707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23708 | } | |
23709 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23710 | { | |
23711 | arg2 = &temp2; | |
23712 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23713 | } | |
23714 | { | |
23715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23716 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | resultobj = SWIG_Py_Void(); | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
23727 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23728 | PyObject *resultobj = 0; | |
23729 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23730 | wxColour *arg2 = 0 ; | |
23731 | void *argp1 = 0 ; | |
23732 | int res1 = 0 ; | |
23733 | wxColour temp2 ; | |
23734 | PyObject * obj0 = 0 ; | |
23735 | PyObject * obj1 = 0 ; | |
23736 | char * kwnames[] = { | |
23737 | (char *) "self",(char *) "c", NULL | |
23738 | }; | |
23739 | ||
23740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
23741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23742 | if (!SWIG_IsOK(res1)) { | |
23743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23744 | } | |
23745 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23746 | { | |
23747 | arg2 = &temp2; | |
23748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23749 | } | |
23750 | { | |
23751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23752 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
23753 | wxPyEndAllowThreads(__tstate); | |
23754 | if (PyErr_Occurred()) SWIG_fail; | |
23755 | } | |
23756 | resultobj = SWIG_Py_Void(); | |
23757 | return resultobj; | |
23758 | fail: | |
23759 | return NULL; | |
23760 | } | |
23761 | ||
23762 | ||
23763 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23764 | PyObject *resultobj = 0; | |
23765 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23766 | wxColour *arg2 = 0 ; | |
23767 | wxColour *arg3 = 0 ; | |
23768 | wxColour *arg4 = 0 ; | |
23769 | wxColour *arg5 = 0 ; | |
23770 | wxColour *arg6 = 0 ; | |
23771 | void *argp1 = 0 ; | |
23772 | int res1 = 0 ; | |
23773 | wxColour temp2 ; | |
23774 | wxColour temp3 ; | |
23775 | wxColour temp4 ; | |
23776 | wxColour temp5 ; | |
23777 | wxColour temp6 ; | |
23778 | PyObject * obj0 = 0 ; | |
23779 | PyObject * obj1 = 0 ; | |
23780 | PyObject * obj2 = 0 ; | |
23781 | PyObject * obj3 = 0 ; | |
23782 | PyObject * obj4 = 0 ; | |
23783 | PyObject * obj5 = 0 ; | |
23784 | char * kwnames[] = { | |
23785 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
23786 | }; | |
23787 | ||
23788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23790 | if (!SWIG_IsOK(res1)) { | |
23791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23792 | } | |
23793 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23794 | { | |
23795 | arg2 = &temp2; | |
23796 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23797 | } | |
23798 | { | |
23799 | arg3 = &temp3; | |
23800 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23801 | } | |
23802 | { | |
23803 | arg4 = &temp4; | |
23804 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
23805 | } | |
23806 | { | |
23807 | arg5 = &temp5; | |
23808 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
23809 | } | |
23810 | { | |
23811 | arg6 = &temp6; | |
23812 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
23813 | } | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
23817 | wxPyEndAllowThreads(__tstate); | |
23818 | if (PyErr_Occurred()) SWIG_fail; | |
23819 | } | |
23820 | resultobj = SWIG_Py_Void(); | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | return NULL; | |
23824 | } | |
23825 | ||
23826 | ||
23827 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23828 | PyObject *resultobj = 0; | |
23829 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23830 | wxDC *arg2 = 0 ; | |
23831 | wxRect *arg3 = 0 ; | |
23832 | int arg4 = (int) 1 ; | |
23833 | void *argp1 = 0 ; | |
23834 | int res1 = 0 ; | |
23835 | void *argp2 = 0 ; | |
23836 | int res2 = 0 ; | |
23837 | wxRect temp3 ; | |
23838 | int val4 ; | |
23839 | int ecode4 = 0 ; | |
23840 | PyObject * obj0 = 0 ; | |
23841 | PyObject * obj1 = 0 ; | |
23842 | PyObject * obj2 = 0 ; | |
23843 | PyObject * obj3 = 0 ; | |
23844 | char * kwnames[] = { | |
23845 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
23846 | }; | |
23847 | ||
23848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23850 | if (!SWIG_IsOK(res1)) { | |
23851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23852 | } | |
23853 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23854 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
23855 | if (!SWIG_IsOK(res2)) { | |
23856 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
23857 | } | |
23858 | if (!argp2) { | |
23859 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
23860 | } | |
23861 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
23862 | { | |
23863 | arg3 = &temp3; | |
23864 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
23865 | } | |
23866 | if (obj3) { | |
23867 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23868 | if (!SWIG_IsOK(ecode4)) { | |
23869 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
23870 | } | |
23871 | arg4 = static_cast< int >(val4); | |
23872 | } | |
23873 | { | |
23874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23875 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
23876 | wxPyEndAllowThreads(__tstate); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | } | |
23879 | resultobj = SWIG_Py_Void(); | |
23880 | return resultobj; | |
23881 | fail: | |
23882 | return NULL; | |
23883 | } | |
23884 | ||
23885 | ||
23886 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23887 | PyObject *resultobj = 0; | |
23888 | wxEffects *arg1 = (wxEffects *) 0 ; | |
23889 | wxRect *arg2 = 0 ; | |
23890 | wxDC *arg3 = 0 ; | |
23891 | wxBitmap *arg4 = 0 ; | |
23892 | bool result; | |
23893 | void *argp1 = 0 ; | |
23894 | int res1 = 0 ; | |
23895 | wxRect temp2 ; | |
23896 | void *argp3 = 0 ; | |
23897 | int res3 = 0 ; | |
23898 | void *argp4 = 0 ; | |
23899 | int res4 = 0 ; | |
23900 | PyObject * obj0 = 0 ; | |
23901 | PyObject * obj1 = 0 ; | |
23902 | PyObject * obj2 = 0 ; | |
23903 | PyObject * obj3 = 0 ; | |
23904 | char * kwnames[] = { | |
23905 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
23906 | }; | |
23907 | ||
23908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
23910 | if (!SWIG_IsOK(res1)) { | |
23911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
23912 | } | |
23913 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
23914 | { | |
23915 | arg2 = &temp2; | |
23916 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23917 | } | |
23918 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
23919 | if (!SWIG_IsOK(res3)) { | |
23920 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
23921 | } | |
23922 | if (!argp3) { | |
23923 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
23924 | } | |
23925 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
23926 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
23927 | if (!SWIG_IsOK(res4)) { | |
23928 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
23929 | } | |
23930 | if (!argp4) { | |
23931 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
23932 | } | |
23933 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
23934 | { | |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23936 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
23937 | wxPyEndAllowThreads(__tstate); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23942 | } | |
23943 | return resultobj; | |
23944 | fail: | |
23945 | return NULL; | |
23946 | } | |
23947 | ||
23948 | ||
23949 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23950 | PyObject *obj; | |
23951 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23952 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
23953 | return SWIG_Py_Void(); | |
23954 | } | |
23955 | ||
23956 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23957 | return SWIG_Python_InitShadowInstance(args); | |
23958 | } | |
23959 | ||
23960 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23961 | PyObject *resultobj = 0; | |
23962 | int arg1 ; | |
23963 | int arg2 ; | |
23964 | bool arg3 ; | |
23965 | wxSplitterRenderParams *result = 0 ; | |
23966 | int val1 ; | |
23967 | int ecode1 = 0 ; | |
23968 | int val2 ; | |
23969 | int ecode2 = 0 ; | |
23970 | bool val3 ; | |
23971 | int ecode3 = 0 ; | |
23972 | PyObject * obj0 = 0 ; | |
23973 | PyObject * obj1 = 0 ; | |
23974 | PyObject * obj2 = 0 ; | |
23975 | char * kwnames[] = { | |
23976 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
23977 | }; | |
23978 | ||
23979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23980 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
23981 | if (!SWIG_IsOK(ecode1)) { | |
23982 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
23983 | } | |
23984 | arg1 = static_cast< int >(val1); | |
23985 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23986 | if (!SWIG_IsOK(ecode2)) { | |
23987 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
23988 | } | |
23989 | arg2 = static_cast< int >(val2); | |
23990 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23991 | if (!SWIG_IsOK(ecode3)) { | |
23992 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
23993 | } | |
23994 | arg3 = static_cast< bool >(val3); | |
23995 | { | |
23996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23997 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
23998 | wxPyEndAllowThreads(__tstate); | |
23999 | if (PyErr_Occurred()) SWIG_fail; | |
24000 | } | |
24001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
24008 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24009 | PyObject *resultobj = 0; | |
24010 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24011 | void *argp1 = 0 ; | |
24012 | int res1 = 0 ; | |
24013 | PyObject *swig_obj[1] ; | |
24014 | ||
24015 | if (!args) SWIG_fail; | |
24016 | swig_obj[0] = args; | |
24017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
24018 | if (!SWIG_IsOK(res1)) { | |
24019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24020 | } | |
24021 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24022 | { | |
24023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24024 | delete arg1; | |
24025 | ||
24026 | wxPyEndAllowThreads(__tstate); | |
24027 | if (PyErr_Occurred()) SWIG_fail; | |
24028 | } | |
24029 | resultobj = SWIG_Py_Void(); | |
24030 | return resultobj; | |
24031 | fail: | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24037 | PyObject *resultobj = 0; | |
24038 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24039 | int result; | |
24040 | void *argp1 = 0 ; | |
24041 | int res1 = 0 ; | |
24042 | PyObject *swig_obj[1] ; | |
24043 | ||
24044 | if (!args) SWIG_fail; | |
24045 | swig_obj[0] = args; | |
24046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
24047 | if (!SWIG_IsOK(res1)) { | |
24048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24049 | } | |
24050 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24051 | result = (int)(int) ((arg1)->widthSash); | |
24052 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24053 | return resultobj; | |
24054 | fail: | |
24055 | return NULL; | |
24056 | } | |
24057 | ||
24058 | ||
24059 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24060 | PyObject *resultobj = 0; | |
24061 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24062 | int result; | |
24063 | void *argp1 = 0 ; | |
24064 | int res1 = 0 ; | |
24065 | PyObject *swig_obj[1] ; | |
24066 | ||
24067 | if (!args) SWIG_fail; | |
24068 | swig_obj[0] = args; | |
24069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
24070 | if (!SWIG_IsOK(res1)) { | |
24071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24072 | } | |
24073 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24074 | result = (int)(int) ((arg1)->border); | |
24075 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24076 | return resultobj; | |
24077 | fail: | |
24078 | return NULL; | |
24079 | } | |
24080 | ||
24081 | ||
24082 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24083 | PyObject *resultobj = 0; | |
24084 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
24085 | bool result; | |
24086 | void *argp1 = 0 ; | |
24087 | int res1 = 0 ; | |
24088 | PyObject *swig_obj[1] ; | |
24089 | ||
24090 | if (!args) SWIG_fail; | |
24091 | swig_obj[0] = args; | |
24092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
24093 | if (!SWIG_IsOK(res1)) { | |
24094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
24095 | } | |
24096 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
24097 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
24098 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
24099 | return resultobj; | |
24100 | fail: | |
24101 | return NULL; | |
24102 | } | |
24103 | ||
24104 | ||
24105 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24106 | PyObject *obj; | |
24107 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24108 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
24109 | return SWIG_Py_Void(); | |
24110 | } | |
24111 | ||
24112 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24113 | return SWIG_Python_InitShadowInstance(args); | |
24114 | } | |
24115 | ||
24116 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24117 | PyObject *resultobj = 0; | |
24118 | int arg1 ; | |
24119 | int arg2 ; | |
24120 | wxRendererVersion *result = 0 ; | |
24121 | int val1 ; | |
24122 | int ecode1 = 0 ; | |
24123 | int val2 ; | |
24124 | int ecode2 = 0 ; | |
24125 | PyObject * obj0 = 0 ; | |
24126 | PyObject * obj1 = 0 ; | |
24127 | char * kwnames[] = { | |
24128 | (char *) "version_",(char *) "age_", NULL | |
24129 | }; | |
24130 | ||
24131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
24132 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24133 | if (!SWIG_IsOK(ecode1)) { | |
24134 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
24135 | } | |
24136 | arg1 = static_cast< int >(val1); | |
24137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24138 | if (!SWIG_IsOK(ecode2)) { | |
24139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
24140 | } | |
24141 | arg2 = static_cast< int >(val2); | |
24142 | { | |
24143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24144 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
24145 | wxPyEndAllowThreads(__tstate); | |
24146 | if (PyErr_Occurred()) SWIG_fail; | |
24147 | } | |
24148 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
24149 | return resultobj; | |
24150 | fail: | |
24151 | return NULL; | |
24152 | } | |
24153 | ||
24154 | ||
24155 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24156 | PyObject *resultobj = 0; | |
24157 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
24158 | void *argp1 = 0 ; | |
24159 | int res1 = 0 ; | |
24160 | PyObject *swig_obj[1] ; | |
24161 | ||
24162 | if (!args) SWIG_fail; | |
24163 | swig_obj[0] = args; | |
24164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
24165 | if (!SWIG_IsOK(res1)) { | |
24166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
24167 | } | |
24168 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
24169 | { | |
24170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24171 | delete arg1; | |
24172 | ||
24173 | wxPyEndAllowThreads(__tstate); | |
24174 | if (PyErr_Occurred()) SWIG_fail; | |
24175 | } | |
24176 | resultobj = SWIG_Py_Void(); | |
24177 | return resultobj; | |
24178 | fail: | |
24179 | return NULL; | |
24180 | } | |
24181 | ||
24182 | ||
24183 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24184 | PyObject *resultobj = 0; | |
24185 | wxRendererVersion *arg1 = 0 ; | |
24186 | bool result; | |
24187 | void *argp1 = 0 ; | |
24188 | int res1 = 0 ; | |
24189 | PyObject * obj0 = 0 ; | |
24190 | char * kwnames[] = { | |
24191 | (char *) "ver", NULL | |
24192 | }; | |
24193 | ||
24194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
24195 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
24196 | if (!SWIG_IsOK(res1)) { | |
24197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
24198 | } | |
24199 | if (!argp1) { | |
24200 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
24201 | } | |
24202 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | { | |
24210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24211 | } | |
24212 | return resultobj; | |
24213 | fail: | |
24214 | return NULL; | |
24215 | } | |
24216 | ||
24217 | ||
24218 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24219 | PyObject *resultobj = 0; | |
24220 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
24221 | int result; | |
24222 | void *argp1 = 0 ; | |
24223 | int res1 = 0 ; | |
24224 | PyObject *swig_obj[1] ; | |
24225 | ||
24226 | if (!args) SWIG_fail; | |
24227 | swig_obj[0] = args; | |
24228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
24229 | if (!SWIG_IsOK(res1)) { | |
24230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
24231 | } | |
24232 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
24233 | result = (int)(int) ((arg1)->version); | |
24234 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24235 | return resultobj; | |
24236 | fail: | |
24237 | return NULL; | |
24238 | } | |
24239 | ||
24240 | ||
24241 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24242 | PyObject *resultobj = 0; | |
24243 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
24244 | int result; | |
24245 | void *argp1 = 0 ; | |
24246 | int res1 = 0 ; | |
24247 | PyObject *swig_obj[1] ; | |
24248 | ||
24249 | if (!args) SWIG_fail; | |
24250 | swig_obj[0] = args; | |
24251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
24252 | if (!SWIG_IsOK(res1)) { | |
24253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
24254 | } | |
24255 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
24256 | result = (int)(int) ((arg1)->age); | |
24257 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24265 | PyObject *obj; | |
24266 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24267 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
24268 | return SWIG_Py_Void(); | |
24269 | } | |
24270 | ||
24271 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24272 | return SWIG_Python_InitShadowInstance(args); | |
24273 | } | |
24274 | ||
24275 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24276 | PyObject *resultobj = 0; | |
24277 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24278 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24279 | wxDC *arg3 = 0 ; | |
24280 | wxRect *arg4 = 0 ; | |
24281 | int arg5 = (int) 0 ; | |
24282 | void *argp1 = 0 ; | |
24283 | int res1 = 0 ; | |
24284 | void *argp2 = 0 ; | |
24285 | int res2 = 0 ; | |
24286 | void *argp3 = 0 ; | |
24287 | int res3 = 0 ; | |
24288 | wxRect temp4 ; | |
24289 | int val5 ; | |
24290 | int ecode5 = 0 ; | |
24291 | PyObject * obj0 = 0 ; | |
24292 | PyObject * obj1 = 0 ; | |
24293 | PyObject * obj2 = 0 ; | |
24294 | PyObject * obj3 = 0 ; | |
24295 | PyObject * obj4 = 0 ; | |
24296 | char * kwnames[] = { | |
24297 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24298 | }; | |
24299 | ||
24300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24302 | if (!SWIG_IsOK(res1)) { | |
24303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24304 | } | |
24305 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24306 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24307 | if (!SWIG_IsOK(res2)) { | |
24308 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24309 | } | |
24310 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24311 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24312 | if (!SWIG_IsOK(res3)) { | |
24313 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24314 | } | |
24315 | if (!argp3) { | |
24316 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24317 | } | |
24318 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24319 | { | |
24320 | arg4 = &temp4; | |
24321 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24322 | } | |
24323 | if (obj4) { | |
24324 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24325 | if (!SWIG_IsOK(ecode5)) { | |
24326 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
24327 | } | |
24328 | arg5 = static_cast< int >(val5); | |
24329 | } | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
24336 | resultobj = SWIG_Py_Void(); | |
24337 | return resultobj; | |
24338 | fail: | |
24339 | return NULL; | |
24340 | } | |
24341 | ||
24342 | ||
24343 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24344 | PyObject *resultobj = 0; | |
24345 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24347 | wxDC *arg3 = 0 ; | |
24348 | wxRect *arg4 = 0 ; | |
24349 | int arg5 = (int) 0 ; | |
24350 | void *argp1 = 0 ; | |
24351 | int res1 = 0 ; | |
24352 | void *argp2 = 0 ; | |
24353 | int res2 = 0 ; | |
24354 | void *argp3 = 0 ; | |
24355 | int res3 = 0 ; | |
24356 | wxRect temp4 ; | |
24357 | int val5 ; | |
24358 | int ecode5 = 0 ; | |
24359 | PyObject * obj0 = 0 ; | |
24360 | PyObject * obj1 = 0 ; | |
24361 | PyObject * obj2 = 0 ; | |
24362 | PyObject * obj3 = 0 ; | |
24363 | PyObject * obj4 = 0 ; | |
24364 | char * kwnames[] = { | |
24365 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24366 | }; | |
24367 | ||
24368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24370 | if (!SWIG_IsOK(res1)) { | |
24371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24372 | } | |
24373 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24374 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24375 | if (!SWIG_IsOK(res2)) { | |
24376 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24377 | } | |
24378 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24379 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24380 | if (!SWIG_IsOK(res3)) { | |
24381 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24382 | } | |
24383 | if (!argp3) { | |
24384 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24385 | } | |
24386 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24387 | { | |
24388 | arg4 = &temp4; | |
24389 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24390 | } | |
24391 | if (obj4) { | |
24392 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24393 | if (!SWIG_IsOK(ecode5)) { | |
24394 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
24395 | } | |
24396 | arg5 = static_cast< int >(val5); | |
24397 | } | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24401 | wxPyEndAllowThreads(__tstate); | |
24402 | if (PyErr_Occurred()) SWIG_fail; | |
24403 | } | |
24404 | resultobj = SWIG_Py_Void(); | |
24405 | return resultobj; | |
24406 | fail: | |
24407 | return NULL; | |
24408 | } | |
24409 | ||
24410 | ||
24411 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24412 | PyObject *resultobj = 0; | |
24413 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24414 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24415 | wxDC *arg3 = 0 ; | |
24416 | wxRect *arg4 = 0 ; | |
24417 | int arg5 = (int) 0 ; | |
24418 | void *argp1 = 0 ; | |
24419 | int res1 = 0 ; | |
24420 | void *argp2 = 0 ; | |
24421 | int res2 = 0 ; | |
24422 | void *argp3 = 0 ; | |
24423 | int res3 = 0 ; | |
24424 | wxRect temp4 ; | |
24425 | int val5 ; | |
24426 | int ecode5 = 0 ; | |
24427 | PyObject * obj0 = 0 ; | |
24428 | PyObject * obj1 = 0 ; | |
24429 | PyObject * obj2 = 0 ; | |
24430 | PyObject * obj3 = 0 ; | |
24431 | PyObject * obj4 = 0 ; | |
24432 | char * kwnames[] = { | |
24433 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24434 | }; | |
24435 | ||
24436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24438 | if (!SWIG_IsOK(res1)) { | |
24439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24440 | } | |
24441 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24442 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24443 | if (!SWIG_IsOK(res2)) { | |
24444 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24445 | } | |
24446 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24447 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24448 | if (!SWIG_IsOK(res3)) { | |
24449 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24450 | } | |
24451 | if (!argp3) { | |
24452 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24453 | } | |
24454 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24455 | { | |
24456 | arg4 = &temp4; | |
24457 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24458 | } | |
24459 | if (obj4) { | |
24460 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24461 | if (!SWIG_IsOK(ecode5)) { | |
24462 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
24463 | } | |
24464 | arg5 = static_cast< int >(val5); | |
24465 | } | |
24466 | { | |
24467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24468 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24469 | wxPyEndAllowThreads(__tstate); | |
24470 | if (PyErr_Occurred()) SWIG_fail; | |
24471 | } | |
24472 | resultobj = SWIG_Py_Void(); | |
24473 | return resultobj; | |
24474 | fail: | |
24475 | return NULL; | |
24476 | } | |
24477 | ||
24478 | ||
24479 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24480 | PyObject *resultobj = 0; | |
24481 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24482 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24483 | wxDC *arg3 = 0 ; | |
24484 | wxSize *arg4 = 0 ; | |
24485 | int arg5 ; | |
24486 | wxOrientation arg6 ; | |
24487 | int arg7 = (int) 0 ; | |
24488 | void *argp1 = 0 ; | |
24489 | int res1 = 0 ; | |
24490 | void *argp2 = 0 ; | |
24491 | int res2 = 0 ; | |
24492 | void *argp3 = 0 ; | |
24493 | int res3 = 0 ; | |
24494 | wxSize temp4 ; | |
24495 | int val5 ; | |
24496 | int ecode5 = 0 ; | |
24497 | int val6 ; | |
24498 | int ecode6 = 0 ; | |
24499 | int val7 ; | |
24500 | int ecode7 = 0 ; | |
24501 | PyObject * obj0 = 0 ; | |
24502 | PyObject * obj1 = 0 ; | |
24503 | PyObject * obj2 = 0 ; | |
24504 | PyObject * obj3 = 0 ; | |
24505 | PyObject * obj4 = 0 ; | |
24506 | PyObject * obj5 = 0 ; | |
24507 | PyObject * obj6 = 0 ; | |
24508 | char * kwnames[] = { | |
24509 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
24510 | }; | |
24511 | ||
24512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
24513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24514 | if (!SWIG_IsOK(res1)) { | |
24515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24516 | } | |
24517 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24518 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24519 | if (!SWIG_IsOK(res2)) { | |
24520 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24521 | } | |
24522 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24523 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24524 | if (!SWIG_IsOK(res3)) { | |
24525 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24526 | } | |
24527 | if (!argp3) { | |
24528 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24529 | } | |
24530 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24531 | { | |
24532 | arg4 = &temp4; | |
24533 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24534 | } | |
24535 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24536 | if (!SWIG_IsOK(ecode5)) { | |
24537 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
24538 | } | |
24539 | arg5 = static_cast< int >(val5); | |
24540 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
24541 | if (!SWIG_IsOK(ecode6)) { | |
24542 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
24543 | } | |
24544 | arg6 = static_cast< wxOrientation >(val6); | |
24545 | if (obj6) { | |
24546 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
24547 | if (!SWIG_IsOK(ecode7)) { | |
24548 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
24549 | } | |
24550 | arg7 = static_cast< int >(val7); | |
24551 | } | |
24552 | { | |
24553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24554 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | resultobj = SWIG_Py_Void(); | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
24565 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24566 | PyObject *resultobj = 0; | |
24567 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24568 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24569 | wxDC *arg3 = 0 ; | |
24570 | wxRect *arg4 = 0 ; | |
24571 | int arg5 = (int) 0 ; | |
24572 | void *argp1 = 0 ; | |
24573 | int res1 = 0 ; | |
24574 | void *argp2 = 0 ; | |
24575 | int res2 = 0 ; | |
24576 | void *argp3 = 0 ; | |
24577 | int res3 = 0 ; | |
24578 | wxRect temp4 ; | |
24579 | int val5 ; | |
24580 | int ecode5 = 0 ; | |
24581 | PyObject * obj0 = 0 ; | |
24582 | PyObject * obj1 = 0 ; | |
24583 | PyObject * obj2 = 0 ; | |
24584 | PyObject * obj3 = 0 ; | |
24585 | PyObject * obj4 = 0 ; | |
24586 | char * kwnames[] = { | |
24587 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24588 | }; | |
24589 | ||
24590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24592 | if (!SWIG_IsOK(res1)) { | |
24593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24594 | } | |
24595 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24596 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24597 | if (!SWIG_IsOK(res2)) { | |
24598 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24599 | } | |
24600 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24601 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24602 | if (!SWIG_IsOK(res3)) { | |
24603 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24604 | } | |
24605 | if (!argp3) { | |
24606 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24607 | } | |
24608 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24609 | { | |
24610 | arg4 = &temp4; | |
24611 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24612 | } | |
24613 | if (obj4) { | |
24614 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24615 | if (!SWIG_IsOK(ecode5)) { | |
24616 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
24617 | } | |
24618 | arg5 = static_cast< int >(val5); | |
24619 | } | |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = SWIG_Py_Void(); | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj = 0; | |
24635 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24637 | wxDC *arg3 = 0 ; | |
24638 | wxRect *arg4 = 0 ; | |
24639 | int arg5 = (int) 0 ; | |
24640 | void *argp1 = 0 ; | |
24641 | int res1 = 0 ; | |
24642 | void *argp2 = 0 ; | |
24643 | int res2 = 0 ; | |
24644 | void *argp3 = 0 ; | |
24645 | int res3 = 0 ; | |
24646 | wxRect temp4 ; | |
24647 | int val5 ; | |
24648 | int ecode5 = 0 ; | |
24649 | PyObject * obj0 = 0 ; | |
24650 | PyObject * obj1 = 0 ; | |
24651 | PyObject * obj2 = 0 ; | |
24652 | PyObject * obj3 = 0 ; | |
24653 | PyObject * obj4 = 0 ; | |
24654 | char * kwnames[] = { | |
24655 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24656 | }; | |
24657 | ||
24658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24660 | if (!SWIG_IsOK(res1)) { | |
24661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24662 | } | |
24663 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24664 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24665 | if (!SWIG_IsOK(res2)) { | |
24666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24667 | } | |
24668 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24669 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24670 | if (!SWIG_IsOK(res3)) { | |
24671 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24672 | } | |
24673 | if (!argp3) { | |
24674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24675 | } | |
24676 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24677 | { | |
24678 | arg4 = &temp4; | |
24679 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24680 | } | |
24681 | if (obj4) { | |
24682 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24683 | if (!SWIG_IsOK(ecode5)) { | |
24684 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
24685 | } | |
24686 | arg5 = static_cast< int >(val5); | |
24687 | } | |
24688 | { | |
24689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24690 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24691 | wxPyEndAllowThreads(__tstate); | |
24692 | if (PyErr_Occurred()) SWIG_fail; | |
24693 | } | |
24694 | resultobj = SWIG_Py_Void(); | |
24695 | return resultobj; | |
24696 | fail: | |
24697 | return NULL; | |
24698 | } | |
24699 | ||
24700 | ||
2131d850 | 24701 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
da91cb0f RD |
24702 | PyObject *resultobj = 0; |
24703 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24704 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24705 | wxDC *arg3 = 0 ; | |
24706 | wxRect *arg4 = 0 ; | |
24707 | int arg5 = (int) 0 ; | |
24708 | void *argp1 = 0 ; | |
24709 | int res1 = 0 ; | |
24710 | void *argp2 = 0 ; | |
24711 | int res2 = 0 ; | |
24712 | void *argp3 = 0 ; | |
24713 | int res3 = 0 ; | |
24714 | wxRect temp4 ; | |
24715 | int val5 ; | |
24716 | int ecode5 = 0 ; | |
24717 | PyObject * obj0 = 0 ; | |
24718 | PyObject * obj1 = 0 ; | |
24719 | PyObject * obj2 = 0 ; | |
24720 | PyObject * obj3 = 0 ; | |
24721 | PyObject * obj4 = 0 ; | |
24722 | char * kwnames[] = { | |
24723 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24724 | }; | |
24725 | ||
2131d850 | 24726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
da91cb0f RD |
24727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
24728 | if (!SWIG_IsOK(res1)) { | |
2131d850 | 24729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
da91cb0f RD |
24730 | } |
24731 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24732 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24733 | if (!SWIG_IsOK(res2)) { | |
2131d850 | 24734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); |
da91cb0f RD |
24735 | } |
24736 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24737 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24738 | if (!SWIG_IsOK(res3)) { | |
2131d850 | 24739 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); |
da91cb0f RD |
24740 | } |
24741 | if (!argp3) { | |
2131d850 | 24742 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); |
da91cb0f RD |
24743 | } |
24744 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24745 | { | |
24746 | arg4 = &temp4; | |
24747 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24748 | } | |
24749 | if (obj4) { | |
24750 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24751 | if (!SWIG_IsOK(ecode5)) { | |
2131d850 | 24752 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); |
da91cb0f RD |
24753 | } |
24754 | arg5 = static_cast< int >(val5); | |
24755 | } | |
24756 | { | |
24757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 RD |
24758 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); |
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | resultobj = SWIG_Py_Void(); | |
24763 | return resultobj; | |
24764 | fail: | |
24765 | return NULL; | |
24766 | } | |
24767 | ||
24768 | ||
24769 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24770 | PyObject *resultobj = 0; | |
24771 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24772 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24773 | wxDC *arg3 = 0 ; | |
24774 | wxRect *arg4 = 0 ; | |
24775 | int arg5 = (int) 0 ; | |
24776 | void *argp1 = 0 ; | |
24777 | int res1 = 0 ; | |
24778 | void *argp2 = 0 ; | |
24779 | int res2 = 0 ; | |
24780 | void *argp3 = 0 ; | |
24781 | int res3 = 0 ; | |
24782 | wxRect temp4 ; | |
24783 | int val5 ; | |
24784 | int ecode5 = 0 ; | |
24785 | PyObject * obj0 = 0 ; | |
24786 | PyObject * obj1 = 0 ; | |
24787 | PyObject * obj2 = 0 ; | |
24788 | PyObject * obj3 = 0 ; | |
24789 | PyObject * obj4 = 0 ; | |
24790 | char * kwnames[] = { | |
24791 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24792 | }; | |
24793 | ||
24794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24796 | if (!SWIG_IsOK(res1)) { | |
24797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24798 | } | |
24799 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24800 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24801 | if (!SWIG_IsOK(res2)) { | |
24802 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24803 | } | |
24804 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24805 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24806 | if (!SWIG_IsOK(res3)) { | |
24807 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24808 | } | |
24809 | if (!argp3) { | |
24810 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24811 | } | |
24812 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24813 | { | |
24814 | arg4 = &temp4; | |
24815 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24816 | } | |
24817 | if (obj4) { | |
24818 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24819 | if (!SWIG_IsOK(ecode5)) { | |
24820 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
24821 | } | |
24822 | arg5 = static_cast< int >(val5); | |
24823 | } | |
24824 | { | |
24825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24826 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
24830 | resultobj = SWIG_Py_Void(); | |
24831 | return resultobj; | |
24832 | fail: | |
24833 | return NULL; | |
24834 | } | |
24835 | ||
24836 | ||
24837 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24838 | PyObject *resultobj = 0; | |
24839 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24840 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24841 | wxDC *arg3 = 0 ; | |
24842 | wxRect *arg4 = 0 ; | |
24843 | int arg5 = (int) 0 ; | |
24844 | void *argp1 = 0 ; | |
24845 | int res1 = 0 ; | |
24846 | void *argp2 = 0 ; | |
24847 | int res2 = 0 ; | |
24848 | void *argp3 = 0 ; | |
24849 | int res3 = 0 ; | |
24850 | wxRect temp4 ; | |
24851 | int val5 ; | |
24852 | int ecode5 = 0 ; | |
24853 | PyObject * obj0 = 0 ; | |
24854 | PyObject * obj1 = 0 ; | |
24855 | PyObject * obj2 = 0 ; | |
24856 | PyObject * obj3 = 0 ; | |
24857 | PyObject * obj4 = 0 ; | |
24858 | char * kwnames[] = { | |
24859 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
24860 | }; | |
24861 | ||
24862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24864 | if (!SWIG_IsOK(res1)) { | |
24865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24866 | } | |
24867 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24868 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24869 | if (!SWIG_IsOK(res2)) { | |
24870 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24871 | } | |
24872 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24873 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24874 | if (!SWIG_IsOK(res3)) { | |
24875 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24876 | } | |
24877 | if (!argp3) { | |
24878 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24879 | } | |
24880 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24881 | { | |
24882 | arg4 = &temp4; | |
24883 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
24884 | } | |
24885 | if (obj4) { | |
24886 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24887 | if (!SWIG_IsOK(ecode5)) { | |
24888 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); | |
24889 | } | |
24890 | arg5 = static_cast< int >(val5); | |
24891 | } | |
24892 | { | |
24893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24894 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
da91cb0f RD |
24895 | wxPyEndAllowThreads(__tstate); |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
24898 | resultobj = SWIG_Py_Void(); | |
24899 | return resultobj; | |
24900 | fail: | |
24901 | return NULL; | |
24902 | } | |
24903 | ||
24904 | ||
1bd55598 RD |
24905 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24906 | PyObject *resultobj = 0; | |
24907 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
24908 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24909 | SwigValueWrapper<wxSplitterRenderParams > result; | |
24910 | void *argp1 = 0 ; | |
24911 | int res1 = 0 ; | |
24912 | void *argp2 = 0 ; | |
24913 | int res2 = 0 ; | |
24914 | PyObject * obj0 = 0 ; | |
24915 | PyObject * obj1 = 0 ; | |
24916 | char * kwnames[] = { | |
24917 | (char *) "self",(char *) "win", NULL | |
24918 | }; | |
24919 | ||
24920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
24921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24922 | if (!SWIG_IsOK(res1)) { | |
24923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
24924 | } | |
24925 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
24926 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24927 | if (!SWIG_IsOK(res2)) { | |
24928 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
24929 | } | |
24930 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24931 | { | |
24932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24933 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
24937 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
24938 | return resultobj; | |
24939 | fail: | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
24944 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24945 | PyObject *resultobj = 0; | |
24946 | wxRendererNative *result = 0 ; | |
24947 | ||
24948 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
24949 | { | |
704eda0c | 24950 | if (!wxPyCheckForApp()) SWIG_fail; |
1bd55598 | 24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36ed4f51 | 24952 | { |
1bd55598 RD |
24953 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
24954 | result = (wxRendererNative *) &_result_ref; | |
36ed4f51 | 24955 | } |
1bd55598 RD |
24956 | wxPyEndAllowThreads(__tstate); |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
24958 | } | |
24959 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24960 | return resultobj; | |
24961 | fail: | |
24962 | return NULL; | |
24963 | } | |
24964 | ||
24965 | ||
24966 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24967 | PyObject *resultobj = 0; | |
24968 | wxRendererNative *result = 0 ; | |
24969 | ||
24970 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
24971 | { | |
704eda0c | 24972 | if (!wxPyCheckForApp()) SWIG_fail; |
1bd55598 | 24973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 24974 | { |
1bd55598 RD |
24975 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
24976 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 24977 | } |
1bd55598 RD |
24978 | wxPyEndAllowThreads(__tstate); |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
24982 | return resultobj; | |
24983 | fail: | |
24984 | return NULL; | |
24985 | } | |
24986 | ||
24987 | ||
24988 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24989 | PyObject *resultobj = 0; | |
24990 | wxRendererNative *result = 0 ; | |
24991 | ||
24992 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
24993 | { | |
704eda0c | 24994 | if (!wxPyCheckForApp()) SWIG_fail; |
1bd55598 | 24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 24996 | { |
1bd55598 RD |
24997 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
24998 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 24999 | } |
1bd55598 RD |
25000 | wxPyEndAllowThreads(__tstate); |
25001 | if (PyErr_Occurred()) SWIG_fail; | |
25002 | } | |
25003 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25004 | return resultobj; | |
25005 | fail: | |
25006 | return NULL; | |
25007 | } | |
25008 | ||
25009 | ||
25010 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25011 | PyObject *resultobj = 0; | |
25012 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25013 | wxRendererNative *result = 0 ; | |
25014 | void *argp1 = 0 ; | |
25015 | int res1 = 0 ; | |
25016 | PyObject * obj0 = 0 ; | |
25017 | char * kwnames[] = { | |
25018 | (char *) "renderer", NULL | |
25019 | }; | |
25020 | ||
25021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
25022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25023 | if (!SWIG_IsOK(res1)) { | |
25024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
25025 | } | |
25026 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25027 | { | |
704eda0c | 25028 | if (!wxPyCheckForApp()) SWIG_fail; |
1bd55598 RD |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25030 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
25031 | wxPyEndAllowThreads(__tstate); | |
25032 | if (PyErr_Occurred()) SWIG_fail; | |
25033 | } | |
25034 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25035 | return resultobj; | |
25036 | fail: | |
25037 | return NULL; | |
25038 | } | |
25039 | ||
25040 | ||
25041 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25042 | PyObject *resultobj = 0; | |
25043 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
25044 | SwigValueWrapper<wxRendererVersion > result; | |
25045 | void *argp1 = 0 ; | |
25046 | int res1 = 0 ; | |
25047 | PyObject *swig_obj[1] ; | |
25048 | ||
25049 | if (!args) SWIG_fail; | |
25050 | swig_obj[0] = args; | |
25051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
25052 | if (!SWIG_IsOK(res1)) { | |
25053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
25054 | } | |
25055 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
25059 | wxPyEndAllowThreads(__tstate); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
25062 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
25063 | return resultobj; | |
25064 | fail: | |
25065 | return NULL; | |
25066 | } | |
25067 | ||
25068 | ||
25069 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25070 | PyObject *obj; | |
25071 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25072 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
25073 | return SWIG_Py_Void(); | |
25074 | } | |
25075 | ||
25076 | static PyMethodDef SwigMethods[] = { | |
25077 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
25078 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
1bd55598 RD |
25079 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, |
25080 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
25081 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
25082 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25083 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25084 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25085 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
25086 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
25087 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
25088 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
25089 | { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL}, | |
25090 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25091 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25092 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 | 25093 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
25094 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, |
25095 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25096 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25097 | { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL}, | |
25098 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, | |
25099 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
25100 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
25101 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25102 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
25103 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25104 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25105 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
25106 | { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL}, | |
25107 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
25108 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
25109 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25110 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
25111 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
25112 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
25113 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
25114 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
25115 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
25116 | { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL}, | |
25117 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25118 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25119 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25120 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25121 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25122 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25123 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
25124 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25125 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25126 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25127 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
25128 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
25129 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25130 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25131 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
25132 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25133 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25134 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25135 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
25136 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
25137 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
25138 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
25139 | { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL}, | |
25140 | { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL}, | |
25141 | { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25142 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
25143 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
25144 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25145 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
25146 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25147 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25148 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25149 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25150 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25151 | { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL}, | |
25152 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, | |
25153 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
25154 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
25155 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
25156 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
25157 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
25158 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25159 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25160 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25161 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25162 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25163 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
25164 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25165 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25166 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25167 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25168 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25169 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25170 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25171 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
25172 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
25173 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25174 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
25175 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
25176 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
25177 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25178 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
25179 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
25180 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25181 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25182 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25183 | { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL}, | |
25184 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, | |
25185 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
25186 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
25187 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25188 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25189 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25190 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25191 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
25192 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
25193 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25194 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
25195 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
25196 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25197 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
25198 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25199 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
25200 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
25201 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
25202 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
25203 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25204 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25205 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
25206 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25207 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25208 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25209 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
25210 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
25211 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25212 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
25213 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25214 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25215 | { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL}, | |
25216 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
25217 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
25218 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25219 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25220 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25221 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25222 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
25223 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
25224 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25225 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25226 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25227 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25228 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25229 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
25230 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25231 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25232 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25233 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
25234 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25235 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25236 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25237 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25238 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25239 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25240 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25241 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25242 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25243 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
25244 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25245 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25246 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
25247 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
25248 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25249 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
25250 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
25251 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
25252 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
25253 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
25254 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
25255 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
25256 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
25257 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
25258 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
25259 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
25260 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
25261 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
25262 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
25263 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
25264 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
25265 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
25266 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25267 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
25268 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
25269 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
25270 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
25271 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
25272 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
25273 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
25274 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25275 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25276 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25277 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25278 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25279 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25280 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25281 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25282 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
25283 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
25284 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25285 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
25286 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
25287 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
25288 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
25289 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
25290 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
25291 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
25292 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
25293 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
25294 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25295 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
25296 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
25297 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
25298 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25299 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25300 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
25301 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
25302 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
25303 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25304 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25305 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
25306 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25307 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25308 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25309 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25310 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25311 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
25312 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25313 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25314 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25315 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25316 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
25317 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
25318 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25319 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
25320 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25321 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25322 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25323 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25324 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25325 | { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL}, | |
25326 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25327 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25328 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
25329 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
25330 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
25331 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
25332 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
25333 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
25334 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
25335 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
25336 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
25337 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
25338 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
25339 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
25340 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
25341 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25342 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25343 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25344 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25345 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25346 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25347 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25348 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25349 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25350 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25351 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25352 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
25353 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
25354 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
25355 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25356 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
25357 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
25358 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25359 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
25360 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
25361 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
25362 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
25363 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25364 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25365 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
25366 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
25367 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
25368 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
25369 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
25370 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
25371 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
25372 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
25373 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
25374 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
25375 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
25376 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
25377 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
25378 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25379 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
25380 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25381 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25382 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
25383 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
25384 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
25385 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
25386 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
25387 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
25388 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
25389 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
25390 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25391 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25392 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25393 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25394 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25395 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25396 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25397 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25398 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
25399 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
25400 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
25401 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, | |
25402 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
25403 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
25404 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
25405 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25406 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25407 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25408 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25409 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25410 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
25411 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
25412 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
25413 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25414 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25415 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25416 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25417 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25418 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25419 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25420 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25421 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25422 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25423 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25424 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25425 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25426 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25427 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25428 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25429 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25430 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25431 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25432 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25433 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25434 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25435 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25436 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25437 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25438 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25439 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25440 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25441 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25442 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25443 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25444 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25445 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25446 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25447 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25448 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25449 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25450 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25451 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25452 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25453 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25454 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25455 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25456 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25457 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25458 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25459 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25460 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25461 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
25462 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25463 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
25464 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
25465 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
25466 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25467 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25468 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25469 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25470 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25471 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25472 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
25473 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
25474 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
25475 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
25476 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
25477 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25478 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25479 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25480 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25481 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
25482 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
25483 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
25484 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
25485 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25486 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25487 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25488 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25489 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25490 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25491 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25492 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25493 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
25494 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
25495 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
25496 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
25497 | { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL}, | |
25498 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, | |
25499 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
25500 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
25501 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
25502 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
25503 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
25504 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
25505 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25506 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25507 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
25508 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25509 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
25510 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25511 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
25512 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25513 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
25514 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
25515 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25516 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25517 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
25518 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
25519 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25520 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25521 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25522 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
25523 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25524 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
25525 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25526 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25527 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
25528 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
25529 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
25530 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
25531 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
25532 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
25533 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25534 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25535 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25536 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25537 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25538 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25539 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
25540 | { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL}, | |
25541 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25542 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25543 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
25544 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
25545 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
25546 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
25547 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
25548 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
25549 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
25550 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25551 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
25552 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
25553 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, | |
25554 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25555 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25556 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
25557 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
25558 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
25559 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25560 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
25561 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
25562 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25563 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
25564 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
25565 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25566 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
25567 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
25568 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25569 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
25570 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
25571 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25572 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
25573 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25574 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25575 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
25576 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
25577 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
25578 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25579 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
25580 | { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL}, | |
25581 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25582 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
25583 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
25584 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
25585 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
25586 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
25587 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25588 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
25589 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
25590 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
25591 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25592 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
25593 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
25594 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25595 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
25596 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25597 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25598 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25599 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25600 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25601 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25602 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25603 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
25604 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25605 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
25606 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25607 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
25608 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
da91cb0f RD |
25609 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
25610 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
25611 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
25612 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
25613 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25614 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25615 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25616 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25617 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25618 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
25619 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
25620 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
25621 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
25622 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
25623 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
1bd55598 | 25624 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
da91cb0f | 25625 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 25626 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 25627 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 25628 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
da91cb0f | 25629 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 25630 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 25631 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
da91cb0f RD |
25632 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
25633 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25634 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25635 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
25636 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
25637 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
25638 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25639 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25640 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25641 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25642 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
25643 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
da91cb0f RD |
25644 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
25645 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
25646 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
25647 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
1bd55598 RD |
25648 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
25649 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
25650 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
25651 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
25652 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
25653 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
25654 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25655 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25656 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25657 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25658 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25659 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25660 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25661 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25662 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
25663 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
25664 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25665 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
25666 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
25667 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
25668 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
25669 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
25670 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
25671 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25672 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
25673 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25674 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
25675 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
25676 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
25677 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
25678 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25679 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25680 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25681 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25682 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25683 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2131d850 RD |
25684 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
25685 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25686 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
25687 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
25688 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
25689 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
25690 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
25691 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
25692 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
25693 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
25694 | { NULL, NULL, 0, NULL } | |
25695 | }; | |
25696 | ||
25697 | ||
25698 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25699 | ||
25700 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
25701 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
25702 | } | |
25703 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
25704 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
25705 | } | |
25706 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
25707 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
25708 | } | |
25709 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
25710 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
25711 | } | |
25712 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
25713 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
25714 | } | |
25715 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
25716 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
25717 | } | |
25718 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
25719 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
25720 | } | |
25721 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
25722 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
25723 | } | |
25724 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
25725 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
25726 | } | |
25727 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
25728 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
25729 | } | |
25730 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
25731 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
25732 | } | |
25733 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
25734 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
25735 | } | |
25736 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
25737 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
25738 | } | |
25739 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
25740 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
25741 | } | |
25742 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
25743 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
25744 | } | |
25745 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
25746 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
25747 | } | |
25748 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
25749 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
25750 | } | |
25751 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
25752 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
25753 | } | |
25754 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
25755 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
25756 | } | |
25757 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
25758 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
25759 | } | |
25760 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
25761 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
25762 | } | |
da91cb0f RD |
25763 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
25764 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
25765 | } | |
25766 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
25767 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
25768 | } | |
25769 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
25770 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
25771 | } | |
1bd55598 RD |
25772 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
25773 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
25774 | } | |
25775 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25776 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25777 | } | |
25778 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
25779 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
25780 | } | |
25781 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
25782 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
25783 | } | |
25784 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25785 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25786 | } | |
25787 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25788 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25789 | } | |
1bd55598 RD |
25790 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
25791 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25792 | } | |
25793 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25794 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25795 | } | |
25796 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
25797 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
25798 | } | |
25799 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25800 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25801 | } | |
25802 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25803 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25804 | } | |
25805 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25806 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25807 | } | |
25808 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25809 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25810 | } | |
25811 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25812 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25813 | } | |
1bd55598 RD |
25814 | static void *_p_wxEventTo_p_wxObject(void *x) { |
25815 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25816 | } | |
25817 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25818 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25819 | } | |
25820 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25821 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25822 | } | |
25823 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25824 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25825 | } | |
2131d850 RD |
25826 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
25827 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
25828 | } | |
1bd55598 RD |
25829 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
25830 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25831 | } | |
25832 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25833 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25834 | } | |
25835 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
25836 | return (void *)((wxObject *) ((wxDC *) x)); | |
25837 | } | |
25838 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25839 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25840 | } | |
25841 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25842 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25843 | } | |
25844 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25845 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25846 | } | |
25847 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25848 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25849 | } | |
25850 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25852 | } | |
25853 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25854 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25855 | } | |
25856 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
25857 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
25858 | } | |
25859 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25860 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25861 | } | |
25862 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
25863 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
25864 | } | |
25865 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
25866 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
25867 | } | |
25868 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25869 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25870 | } | |
25871 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
25872 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
25873 | } | |
25874 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
25875 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
25876 | } | |
25877 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
25878 | return (void *)((wxObject *) ((wxEffects *) x)); | |
25879 | } | |
25880 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25881 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25882 | } | |
25883 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25884 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25885 | } | |
25886 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
25887 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
25888 | } | |
25889 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25890 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25891 | } | |
25892 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25893 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25894 | } | |
25895 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
25896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
25897 | } | |
25898 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25899 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25900 | } | |
25901 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25902 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25903 | } | |
25904 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25905 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25906 | } | |
25907 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25908 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25909 | } | |
25910 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25911 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25912 | } | |
25913 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25914 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25915 | } | |
25916 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25917 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25918 | } | |
25919 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25920 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25921 | } | |
25922 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25923 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25924 | } | |
25925 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25926 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25927 | } | |
25928 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25929 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25930 | } | |
25931 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25932 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25933 | } | |
25934 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25935 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25936 | } | |
25937 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25938 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25939 | } | |
25940 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25941 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25942 | } | |
25943 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25944 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25945 | } | |
25946 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25947 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25948 | } | |
25949 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
25950 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
25951 | } | |
25952 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25953 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25954 | } | |
25955 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25956 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25957 | } | |
25958 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25959 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25960 | } | |
25961 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25962 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25963 | } | |
25964 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
25965 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
25966 | } | |
25967 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
25968 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
25969 | } | |
25970 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
25971 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
25972 | } | |
25973 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
25974 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
25975 | } | |
25976 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
25977 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
25978 | } | |
25979 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
25980 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25981 | } | |
25982 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25983 | return (void *)((wxObject *) ((wxImage *) x)); | |
25984 | } | |
25985 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25986 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25987 | } | |
25988 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
25989 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
25990 | } | |
25991 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
25992 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
25993 | } | |
25994 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
25995 | return (void *)((wxObject *) ((wxImageList *) x)); | |
25996 | } | |
25997 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
25998 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
25999 | } | |
26000 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
26001 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
26002 | } | |
26003 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
26004 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
26005 | } | |
26006 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26007 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26008 | } | |
26009 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26010 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26011 | } | |
26012 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26013 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26014 | } | |
26015 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26016 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26017 | } | |
26018 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26019 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26020 | } | |
26021 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26023 | } | |
26024 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
26025 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
26026 | } | |
1bd55598 RD |
26027 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
26028 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26029 | } | |
26030 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
26031 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
26032 | } | |
26033 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
26034 | return (void *)((wxObject *) ((wxMask *) x)); | |
26035 | } | |
26036 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26037 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26038 | } | |
26039 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26040 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26041 | } | |
26042 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26043 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26044 | } | |
26045 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26046 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26047 | } | |
26048 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26049 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26050 | } | |
26051 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26052 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26053 | } | |
26054 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26055 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26056 | } | |
26057 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26058 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26059 | } | |
26060 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26061 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26062 | } | |
26063 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26064 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26065 | } | |
26066 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26067 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26068 | } | |
26069 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
26070 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
26071 | } | |
26072 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
26073 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
26074 | } | |
26075 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
26076 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
26077 | } | |
26078 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26079 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26080 | } | |
26081 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
26082 | return (void *)((wxObject *) ((wxColour *) x)); | |
26083 | } | |
1bd55598 RD |
26084 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
26085 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26086 | } | |
26087 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26088 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26089 | } | |
26090 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26091 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26092 | } | |
26093 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26094 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26095 | } | |
26096 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26097 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26098 | } | |
26099 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
26100 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; | |
26101 | 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}; | |
26102 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
26103 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
26104 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
26105 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
26106 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
26107 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
26108 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
26109 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
26110 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
26111 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; | |
26112 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
26113 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
26114 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
26115 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
26116 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; | |
26117 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
26118 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
26119 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
26120 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
26121 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
26122 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
da91cb0f | 26123 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
26124 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
26125 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; | |
26126 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
26127 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
26128 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
26129 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
26130 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
26131 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
26132 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
26133 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
26134 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
26135 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
26136 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
26137 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
26138 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
26139 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
26140 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
26141 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
26142 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
26143 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
26144 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
26145 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
26146 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
26147 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
26148 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
26149 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
26150 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
26151 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
26152 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
26153 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
26154 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 26155 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
1bd55598 RD |
26156 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
26157 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
26158 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
26159 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
26160 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
26161 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
26162 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
26163 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
26164 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
26165 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
26166 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
26167 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
26168 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
26169 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
26170 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
26171 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
26172 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
26173 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
26174 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
26175 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
26176 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
26177 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
26178 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
da91cb0f | 26179 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
26180 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
26181 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
26182 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
26183 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
26184 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
26185 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
26186 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
26187 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
26188 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
2131d850 | 26189 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
26190 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
26191 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
26192 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
26193 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
26194 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
26195 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
26196 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
26197 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
26198 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
26199 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
26200 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
26201 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
26202 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
26203 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
26204 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
26205 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
26206 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
26207 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
26208 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
26209 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
26210 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
26211 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
26212 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
26213 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
26214 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
26215 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; | |
26216 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
26217 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
26218 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
26219 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
26220 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
26221 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; | |
26222 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
26223 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
26224 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; | |
26225 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
26226 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
26227 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
26228 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
26229 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
26230 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
26231 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
26232 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
da91cb0f | 26233 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
26234 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
26235 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
26236 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
26237 | ||
26238 | static swig_type_info *swig_type_initial[] = { | |
26239 | &_swigt__p_char, | |
26240 | &_swigt__p_double, | |
26241 | &_swigt__p_form_ops_t, | |
26242 | &_swigt__p_int, | |
26243 | &_swigt__p_unsigned_char, | |
26244 | &_swigt__p_unsigned_int, | |
26245 | &_swigt__p_unsigned_long, | |
26246 | &_swigt__p_wxANIHandler, | |
26247 | &_swigt__p_wxAcceleratorTable, | |
26248 | &_swigt__p_wxActivateEvent, | |
26249 | &_swigt__p_wxBMPHandler, | |
26250 | &_swigt__p_wxBitmap, | |
26251 | &_swigt__p_wxBoxSizer, | |
26252 | &_swigt__p_wxBrush, | |
26253 | &_swigt__p_wxBrushList, | |
26254 | &_swigt__p_wxBufferedDC, | |
26255 | &_swigt__p_wxBufferedPaintDC, | |
26256 | &_swigt__p_wxCURHandler, | |
26257 | &_swigt__p_wxChildFocusEvent, | |
26258 | &_swigt__p_wxClientDC, | |
2131d850 | 26259 | &_swigt__p_wxClipboardTextEvent, |
1bd55598 RD |
26260 | &_swigt__p_wxCloseEvent, |
26261 | &_swigt__p_wxColour, | |
26262 | &_swigt__p_wxColourDatabase, | |
26263 | &_swigt__p_wxCommandEvent, | |
26264 | &_swigt__p_wxContextMenuEvent, | |
26265 | &_swigt__p_wxControl, | |
26266 | &_swigt__p_wxControlWithItems, | |
26267 | &_swigt__p_wxCursor, | |
26268 | &_swigt__p_wxDC, | |
26269 | &_swigt__p_wxDash, | |
26270 | &_swigt__p_wxDateEvent, | |
26271 | &_swigt__p_wxDisplayChangedEvent, | |
26272 | &_swigt__p_wxDropFilesEvent, | |
26273 | &_swigt__p_wxDuplexMode, | |
26274 | &_swigt__p_wxEffects, | |
26275 | &_swigt__p_wxEncodingConverter, | |
26276 | &_swigt__p_wxEraseEvent, | |
26277 | &_swigt__p_wxEvent, | |
26278 | &_swigt__p_wxEvtHandler, | |
26279 | &_swigt__p_wxFSFile, | |
26280 | &_swigt__p_wxFileSystem, | |
26281 | &_swigt__p_wxFlexGridSizer, | |
26282 | &_swigt__p_wxFocusEvent, | |
26283 | &_swigt__p_wxFont, | |
26284 | &_swigt__p_wxFontList, | |
26285 | &_swigt__p_wxFontMapper, | |
26286 | &_swigt__p_wxGBSizerItem, | |
da91cb0f | 26287 | &_swigt__p_wxGDIObjListBase, |
1bd55598 RD |
26288 | &_swigt__p_wxGDIObject, |
26289 | &_swigt__p_wxGIFHandler, | |
26290 | &_swigt__p_wxGridBagSizer, | |
26291 | &_swigt__p_wxGridSizer, | |
26292 | &_swigt__p_wxICOHandler, | |
26293 | &_swigt__p_wxIcon, | |
26294 | &_swigt__p_wxIconBundle, | |
26295 | &_swigt__p_wxIconLocation, | |
26296 | &_swigt__p_wxIconizeEvent, | |
26297 | &_swigt__p_wxIdleEvent, | |
26298 | &_swigt__p_wxImage, | |
26299 | &_swigt__p_wxImageHandler, | |
26300 | &_swigt__p_wxImageList, | |
26301 | &_swigt__p_wxIndividualLayoutConstraint, | |
26302 | &_swigt__p_wxInitDialogEvent, | |
26303 | &_swigt__p_wxJPEGHandler, | |
26304 | &_swigt__p_wxKeyEvent, | |
26305 | &_swigt__p_wxLanguageInfo, | |
26306 | &_swigt__p_wxLayoutConstraints, | |
26307 | &_swigt__p_wxLocale, | |
26308 | &_swigt__p_wxMask, | |
26309 | &_swigt__p_wxMaximizeEvent, | |
26310 | &_swigt__p_wxMemoryDC, | |
26311 | &_swigt__p_wxMenu, | |
26312 | &_swigt__p_wxMenuBar, | |
26313 | &_swigt__p_wxMenuEvent, | |
26314 | &_swigt__p_wxMenuItem, | |
26315 | &_swigt__p_wxMetaFile, | |
26316 | &_swigt__p_wxMetaFileDC, | |
26317 | &_swigt__p_wxMirrorDC, | |
26318 | &_swigt__p_wxMouseCaptureChangedEvent, | |
26319 | &_swigt__p_wxMouseEvent, | |
26320 | &_swigt__p_wxMoveEvent, | |
26321 | &_swigt__p_wxNativeEncodingInfo, | |
26322 | &_swigt__p_wxNativeFontInfo, | |
26323 | &_swigt__p_wxNavigationKeyEvent, | |
26324 | &_swigt__p_wxNcPaintEvent, | |
26325 | &_swigt__p_wxNotifyEvent, | |
26326 | &_swigt__p_wxObject, | |
26327 | &_swigt__p_wxPCXHandler, | |
26328 | &_swigt__p_wxPNGHandler, | |
26329 | &_swigt__p_wxPNMHandler, | |
26330 | &_swigt__p_wxPaintDC, | |
26331 | &_swigt__p_wxPaintEvent, | |
26332 | &_swigt__p_wxPalette, | |
26333 | &_swigt__p_wxPaletteChangedEvent, | |
26334 | &_swigt__p_wxPaperSize, | |
26335 | &_swigt__p_wxPen, | |
26336 | &_swigt__p_wxPenList, | |
26337 | &_swigt__p_wxPoint, | |
26338 | &_swigt__p_wxPostScriptDC, | |
26339 | &_swigt__p_wxPrintData, | |
26340 | &_swigt__p_wxPrinterDC, | |
26341 | &_swigt__p_wxPyApp, | |
26342 | &_swigt__p_wxPyCommandEvent, | |
26343 | &_swigt__p_wxPyEvent, | |
26344 | &_swigt__p_wxPyFontEnumerator, | |
26345 | &_swigt__p_wxPyImageHandler, | |
26346 | &_swigt__p_wxPySizer, | |
26347 | &_swigt__p_wxPyValidator, | |
26348 | &_swigt__p_wxQueryNewPaletteEvent, | |
26349 | &_swigt__p_wxRect, | |
26350 | &_swigt__p_wxRegion, | |
26351 | &_swigt__p_wxRegionIterator, | |
26352 | &_swigt__p_wxRendererNative, | |
26353 | &_swigt__p_wxRendererVersion, | |
26354 | &_swigt__p_wxScreenDC, | |
26355 | &_swigt__p_wxScrollEvent, | |
26356 | &_swigt__p_wxScrollWinEvent, | |
26357 | &_swigt__p_wxSetCursorEvent, | |
26358 | &_swigt__p_wxShowEvent, | |
26359 | &_swigt__p_wxSize, | |
26360 | &_swigt__p_wxSizeEvent, | |
26361 | &_swigt__p_wxSizer, | |
26362 | &_swigt__p_wxSizerItem, | |
26363 | &_swigt__p_wxSplitterRenderParams, | |
26364 | &_swigt__p_wxStaticBoxSizer, | |
26365 | &_swigt__p_wxStdDialogButtonSizer, | |
da91cb0f | 26366 | &_swigt__p_wxStockGDI, |
1bd55598 RD |
26367 | &_swigt__p_wxString, |
26368 | &_swigt__p_wxSysColourChangedEvent, | |
26369 | &_swigt__p_wxTIFFHandler, | |
26370 | &_swigt__p_wxUpdateUIEvent, | |
26371 | &_swigt__p_wxValidator, | |
26372 | &_swigt__p_wxWindow, | |
26373 | &_swigt__p_wxWindowCreateEvent, | |
26374 | &_swigt__p_wxWindowDC, | |
26375 | &_swigt__p_wxWindowDestroyEvent, | |
26376 | &_swigt__p_wxXPMHandler, | |
26377 | }; | |
26378 | ||
26379 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
26380 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
26381 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
26382 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
26383 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
26384 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
26385 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
26386 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
26387 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
26388 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
26389 | 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}}; | |
26390 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26391 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26392 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
26393 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
26394 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
26395 | 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}}; | |
26396 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
26397 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
26398 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
26399 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
26400 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
26401 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
26402 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
da91cb0f | 26403 | static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26404 | 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}}; |
26405 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
26406 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
26407 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
26408 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
26409 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
26410 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
26411 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; | |
26412 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; | |
26413 | 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}}; | |
26414 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
26415 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26416 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26417 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
26418 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
26419 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
26420 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
26421 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
26422 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26423 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
26424 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26425 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26426 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26427 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26428 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26429 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
26430 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26431 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26432 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26433 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 26434 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26435 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
26436 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26437 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26438 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26439 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26440 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26441 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
26442 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26443 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
26444 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26445 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26446 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26447 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26448 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
26449 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26450 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26451 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26452 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26453 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26454 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26455 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26456 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26457 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
da91cb0f | 26458 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26459 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
26460 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26461 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26462 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26463 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26464 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26465 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26466 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26467 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 26468 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26469 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
26470 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26471 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
26472 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
26473 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
26474 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26475 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26476 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26477 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26478 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
26479 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
26480 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26481 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26482 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
26483 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26484 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26485 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26486 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26487 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26488 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26489 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26490 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
26491 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
26492 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
26493 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 26494 | 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_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_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxPNGHandler, _p_wxPNGHandlerTo_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_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_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_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26495 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
26496 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
26497 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
26498 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
26499 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
26500 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
26501 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26502 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
26503 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26504 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; | |
26505 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
26506 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
26507 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
26508 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
26509 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
26510 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26511 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
26512 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
da91cb0f | 26513 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
1bd55598 RD |
26514 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
26515 | 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}}; | |
26516 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
26517 | ||
26518 | static swig_cast_info *swig_cast_initial[] = { | |
26519 | _swigc__p_char, | |
26520 | _swigc__p_double, | |
26521 | _swigc__p_form_ops_t, | |
26522 | _swigc__p_int, | |
26523 | _swigc__p_unsigned_char, | |
26524 | _swigc__p_unsigned_int, | |
26525 | _swigc__p_unsigned_long, | |
26526 | _swigc__p_wxANIHandler, | |
26527 | _swigc__p_wxAcceleratorTable, | |
26528 | _swigc__p_wxActivateEvent, | |
26529 | _swigc__p_wxBMPHandler, | |
26530 | _swigc__p_wxBitmap, | |
26531 | _swigc__p_wxBoxSizer, | |
26532 | _swigc__p_wxBrush, | |
26533 | _swigc__p_wxBrushList, | |
26534 | _swigc__p_wxBufferedDC, | |
26535 | _swigc__p_wxBufferedPaintDC, | |
26536 | _swigc__p_wxCURHandler, | |
26537 | _swigc__p_wxChildFocusEvent, | |
26538 | _swigc__p_wxClientDC, | |
2131d850 | 26539 | _swigc__p_wxClipboardTextEvent, |
1bd55598 RD |
26540 | _swigc__p_wxCloseEvent, |
26541 | _swigc__p_wxColour, | |
26542 | _swigc__p_wxColourDatabase, | |
26543 | _swigc__p_wxCommandEvent, | |
26544 | _swigc__p_wxContextMenuEvent, | |
26545 | _swigc__p_wxControl, | |
26546 | _swigc__p_wxControlWithItems, | |
26547 | _swigc__p_wxCursor, | |
26548 | _swigc__p_wxDC, | |
26549 | _swigc__p_wxDash, | |
26550 | _swigc__p_wxDateEvent, | |
26551 | _swigc__p_wxDisplayChangedEvent, | |
26552 | _swigc__p_wxDropFilesEvent, | |
26553 | _swigc__p_wxDuplexMode, | |
26554 | _swigc__p_wxEffects, | |
26555 | _swigc__p_wxEncodingConverter, | |
26556 | _swigc__p_wxEraseEvent, | |
26557 | _swigc__p_wxEvent, | |
26558 | _swigc__p_wxEvtHandler, | |
26559 | _swigc__p_wxFSFile, | |
26560 | _swigc__p_wxFileSystem, | |
26561 | _swigc__p_wxFlexGridSizer, | |
26562 | _swigc__p_wxFocusEvent, | |
26563 | _swigc__p_wxFont, | |
26564 | _swigc__p_wxFontList, | |
26565 | _swigc__p_wxFontMapper, | |
26566 | _swigc__p_wxGBSizerItem, | |
da91cb0f | 26567 | _swigc__p_wxGDIObjListBase, |
1bd55598 RD |
26568 | _swigc__p_wxGDIObject, |
26569 | _swigc__p_wxGIFHandler, | |
26570 | _swigc__p_wxGridBagSizer, | |
26571 | _swigc__p_wxGridSizer, | |
26572 | _swigc__p_wxICOHandler, | |
26573 | _swigc__p_wxIcon, | |
26574 | _swigc__p_wxIconBundle, | |
26575 | _swigc__p_wxIconLocation, | |
26576 | _swigc__p_wxIconizeEvent, | |
26577 | _swigc__p_wxIdleEvent, | |
26578 | _swigc__p_wxImage, | |
26579 | _swigc__p_wxImageHandler, | |
26580 | _swigc__p_wxImageList, | |
26581 | _swigc__p_wxIndividualLayoutConstraint, | |
26582 | _swigc__p_wxInitDialogEvent, | |
26583 | _swigc__p_wxJPEGHandler, | |
26584 | _swigc__p_wxKeyEvent, | |
26585 | _swigc__p_wxLanguageInfo, | |
26586 | _swigc__p_wxLayoutConstraints, | |
26587 | _swigc__p_wxLocale, | |
26588 | _swigc__p_wxMask, | |
26589 | _swigc__p_wxMaximizeEvent, | |
26590 | _swigc__p_wxMemoryDC, | |
26591 | _swigc__p_wxMenu, | |
26592 | _swigc__p_wxMenuBar, | |
26593 | _swigc__p_wxMenuEvent, | |
26594 | _swigc__p_wxMenuItem, | |
26595 | _swigc__p_wxMetaFile, | |
26596 | _swigc__p_wxMetaFileDC, | |
26597 | _swigc__p_wxMirrorDC, | |
26598 | _swigc__p_wxMouseCaptureChangedEvent, | |
26599 | _swigc__p_wxMouseEvent, | |
26600 | _swigc__p_wxMoveEvent, | |
26601 | _swigc__p_wxNativeEncodingInfo, | |
26602 | _swigc__p_wxNativeFontInfo, | |
26603 | _swigc__p_wxNavigationKeyEvent, | |
26604 | _swigc__p_wxNcPaintEvent, | |
26605 | _swigc__p_wxNotifyEvent, | |
26606 | _swigc__p_wxObject, | |
26607 | _swigc__p_wxPCXHandler, | |
26608 | _swigc__p_wxPNGHandler, | |
26609 | _swigc__p_wxPNMHandler, | |
26610 | _swigc__p_wxPaintDC, | |
26611 | _swigc__p_wxPaintEvent, | |
26612 | _swigc__p_wxPalette, | |
26613 | _swigc__p_wxPaletteChangedEvent, | |
26614 | _swigc__p_wxPaperSize, | |
26615 | _swigc__p_wxPen, | |
26616 | _swigc__p_wxPenList, | |
26617 | _swigc__p_wxPoint, | |
26618 | _swigc__p_wxPostScriptDC, | |
26619 | _swigc__p_wxPrintData, | |
26620 | _swigc__p_wxPrinterDC, | |
26621 | _swigc__p_wxPyApp, | |
26622 | _swigc__p_wxPyCommandEvent, | |
26623 | _swigc__p_wxPyEvent, | |
26624 | _swigc__p_wxPyFontEnumerator, | |
26625 | _swigc__p_wxPyImageHandler, | |
26626 | _swigc__p_wxPySizer, | |
26627 | _swigc__p_wxPyValidator, | |
26628 | _swigc__p_wxQueryNewPaletteEvent, | |
26629 | _swigc__p_wxRect, | |
26630 | _swigc__p_wxRegion, | |
26631 | _swigc__p_wxRegionIterator, | |
26632 | _swigc__p_wxRendererNative, | |
26633 | _swigc__p_wxRendererVersion, | |
26634 | _swigc__p_wxScreenDC, | |
26635 | _swigc__p_wxScrollEvent, | |
26636 | _swigc__p_wxScrollWinEvent, | |
26637 | _swigc__p_wxSetCursorEvent, | |
26638 | _swigc__p_wxShowEvent, | |
26639 | _swigc__p_wxSize, | |
26640 | _swigc__p_wxSizeEvent, | |
26641 | _swigc__p_wxSizer, | |
26642 | _swigc__p_wxSizerItem, | |
26643 | _swigc__p_wxSplitterRenderParams, | |
26644 | _swigc__p_wxStaticBoxSizer, | |
26645 | _swigc__p_wxStdDialogButtonSizer, | |
da91cb0f | 26646 | _swigc__p_wxStockGDI, |
1bd55598 RD |
26647 | _swigc__p_wxString, |
26648 | _swigc__p_wxSysColourChangedEvent, | |
26649 | _swigc__p_wxTIFFHandler, | |
26650 | _swigc__p_wxUpdateUIEvent, | |
26651 | _swigc__p_wxValidator, | |
26652 | _swigc__p_wxWindow, | |
26653 | _swigc__p_wxWindowCreateEvent, | |
26654 | _swigc__p_wxWindowDC, | |
26655 | _swigc__p_wxWindowDestroyEvent, | |
26656 | _swigc__p_wxXPMHandler, | |
26657 | }; | |
26658 | ||
26659 | ||
26660 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26661 | ||
26662 | static swig_const_info swig_const_table[] = { | |
26663 | {0, 0, 0, 0.0, 0, 0}}; | |
26664 | ||
26665 | #ifdef __cplusplus | |
26666 | } | |
26667 | #endif | |
26668 | /* ----------------------------------------------------------------------------- | |
26669 | * Type initialization: | |
26670 | * This problem is tough by the requirement that no dynamic | |
26671 | * memory is used. Also, since swig_type_info structures store pointers to | |
26672 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
26673 | * to swig_type_info structures, we need some lookup code at initialization. | |
26674 | * The idea is that swig generates all the structures that are needed. | |
26675 | * The runtime then collects these partially filled structures. | |
26676 | * The SWIG_InitializeModule function takes these initial arrays out of | |
26677 | * swig_module, and does all the lookup, filling in the swig_module.types | |
26678 | * array with the correct data and linking the correct swig_cast_info | |
26679 | * structures together. | |
26680 | * | |
26681 | * The generated swig_type_info structures are assigned staticly to an initial | |
26682 | * array. We just loop though that array, and handle each type individually. | |
26683 | * First we lookup if this type has been already loaded, and if so, use the | |
26684 | * loaded structure instead of the generated one. Then we have to fill in the | |
26685 | * cast linked list. The cast data is initially stored in something like a | |
26686 | * two-dimensional array. Each row corresponds to a type (there are the same | |
26687 | * number of rows as there are in the swig_type_initial array). Each entry in | |
26688 | * a column is one of the swig_cast_info structures for that type. | |
26689 | * The cast_initial array is actually an array of arrays, because each row has | |
26690 | * a variable number of columns. So to actually build the cast linked list, | |
26691 | * we find the array of casts associated with the type, and loop through it | |
26692 | * adding the casts to the list. The one last trick we need to do is making | |
26693 | * sure the type pointer in the swig_cast_info struct is correct. | |
26694 | * | |
26695 | * First off, we lookup the cast->type name to see if it is already loaded. | |
26696 | * There are three cases to handle: | |
26697 | * 1) If the cast->type has already been loaded AND the type we are adding | |
26698 | * casting info to has not been loaded (it is in this module), THEN we | |
26699 | * replace the cast->type pointer with the type pointer that has already | |
26700 | * been loaded. | |
26701 | * 2) If BOTH types (the one we are adding casting info to, and the | |
26702 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
26703 | * the previous module so we just ignore it. | |
26704 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
26705 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
26706 | * be correct. | |
26707 | * ----------------------------------------------------------------------------- */ | |
26708 | ||
26709 | #ifdef __cplusplus | |
26710 | extern "C" { | |
26711 | #if 0 | |
26712 | } /* c-mode */ | |
26713 | #endif | |
26714 | #endif | |
26715 | ||
26716 | #if 0 | |
26717 | #define SWIGRUNTIME_DEBUG | |
26718 | #endif | |
26719 | ||
26720 | SWIGRUNTIME void | |
26721 | SWIG_InitializeModule(void *clientdata) { | |
26722 | size_t i; | |
26723 | swig_module_info *module_head; | |
26724 | static int init_run = 0; | |
26725 | ||
26726 | clientdata = clientdata; | |
26727 | ||
26728 | if (init_run) return; | |
26729 | init_run = 1; | |
26730 | ||
26731 | /* Initialize the swig_module */ | |
26732 | swig_module.type_initial = swig_type_initial; | |
26733 | swig_module.cast_initial = swig_cast_initial; | |
26734 | ||
26735 | /* Try and load any already created modules */ | |
26736 | module_head = SWIG_GetModule(clientdata); | |
26737 | if (module_head) { | |
26738 | swig_module.next = module_head->next; | |
26739 | module_head->next = &swig_module; | |
26740 | } else { | |
26741 | /* This is the first module loaded */ | |
26742 | swig_module.next = &swig_module; | |
26743 | SWIG_SetModule(clientdata, &swig_module); | |
26744 | } | |
26745 | ||
26746 | /* Now work on filling in swig_module.types */ | |
26747 | #ifdef SWIGRUNTIME_DEBUG | |
26748 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
26749 | #endif | |
26750 | for (i = 0; i < swig_module.size; ++i) { | |
26751 | swig_type_info *type = 0; | |
26752 | swig_type_info *ret; | |
26753 | swig_cast_info *cast; | |
26754 | ||
26755 | #ifdef SWIGRUNTIME_DEBUG | |
26756 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
26757 | #endif | |
26758 | ||
26759 | /* if there is another module already loaded */ | |
26760 | if (swig_module.next != &swig_module) { | |
26761 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 26762 | } |
1bd55598 RD |
26763 | if (type) { |
26764 | /* Overwrite clientdata field */ | |
26765 | #ifdef SWIGRUNTIME_DEBUG | |
26766 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
26767 | #endif | |
26768 | if (swig_module.type_initial[i]->clientdata) { | |
26769 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
26770 | #ifdef SWIGRUNTIME_DEBUG | |
26771 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
26772 | #endif | |
26773 | } | |
26774 | } else { | |
26775 | type = swig_module.type_initial[i]; | |
be9b1dca | 26776 | } |
1bd55598 RD |
26777 | |
26778 | /* Insert casting types */ | |
26779 | cast = swig_module.cast_initial[i]; | |
26780 | while (cast->type) { | |
26781 | /* Don't need to add information already in the list */ | |
26782 | ret = 0; | |
26783 | #ifdef SWIGRUNTIME_DEBUG | |
26784 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
26785 | #endif | |
26786 | if (swig_module.next != &swig_module) { | |
26787 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
26788 | #ifdef SWIGRUNTIME_DEBUG | |
26789 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
26790 | #endif | |
26791 | } | |
26792 | if (ret) { | |
26793 | if (type == swig_module.type_initial[i]) { | |
26794 | #ifdef SWIGRUNTIME_DEBUG | |
26795 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
26796 | #endif | |
26797 | cast->type = ret; | |
26798 | ret = 0; | |
26799 | } else { | |
26800 | /* Check for casting already in the list */ | |
26801 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
26802 | #ifdef SWIGRUNTIME_DEBUG | |
26803 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
26804 | #endif | |
26805 | if (!ocast) ret = 0; | |
26806 | } | |
26807 | } | |
26808 | ||
26809 | if (!ret) { | |
26810 | #ifdef SWIGRUNTIME_DEBUG | |
26811 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
26812 | #endif | |
26813 | if (type->cast) { | |
26814 | type->cast->prev = cast; | |
26815 | cast->next = type->cast; | |
26816 | } | |
26817 | type->cast = cast; | |
26818 | } | |
26819 | cast++; | |
be9b1dca | 26820 | } |
1bd55598 RD |
26821 | /* Set entry in modules->types array equal to the type */ |
26822 | swig_module.types[i] = type; | |
26823 | } | |
26824 | swig_module.types[i] = 0; | |
26825 | ||
26826 | #ifdef SWIGRUNTIME_DEBUG | |
26827 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
26828 | for (i = 0; i < swig_module.size; ++i) { | |
26829 | int j = 0; | |
26830 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
26831 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
26832 | while (cast->type) { | |
26833 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
26834 | cast++; | |
26835 | ++j; | |
26836 | } | |
26837 | printf("---- Total casts: %d\n",j); | |
26838 | } | |
26839 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
26840 | #endif | |
26841 | } | |
26842 | ||
26843 | /* This function will propagate the clientdata field of type to | |
26844 | * any new swig_type_info structures that have been added into the list | |
26845 | * of equivalent types. It is like calling | |
26846 | * SWIG_TypeClientData(type, clientdata) a second time. | |
26847 | */ | |
26848 | SWIGRUNTIME void | |
26849 | SWIG_PropagateClientData(void) { | |
26850 | size_t i; | |
26851 | swig_cast_info *equiv; | |
26852 | static int init_run = 0; | |
26853 | ||
26854 | if (init_run) return; | |
26855 | init_run = 1; | |
26856 | ||
26857 | for (i = 0; i < swig_module.size; i++) { | |
26858 | if (swig_module.types[i]->clientdata) { | |
26859 | equiv = swig_module.types[i]->cast; | |
26860 | while (equiv) { | |
26861 | if (!equiv->converter) { | |
26862 | if (equiv->type && !equiv->type->clientdata) | |
26863 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
26864 | } | |
26865 | equiv = equiv->next; | |
26866 | } | |
be9b1dca | 26867 | } |
1bd55598 RD |
26868 | } |
26869 | } | |
26870 | ||
26871 | #ifdef __cplusplus | |
26872 | #if 0 | |
26873 | { | |
26874 | /* c-mode */ | |
26875 | #endif | |
26876 | } | |
26877 | #endif | |
26878 | ||
26879 | ||
26880 | ||
26881 | #ifdef __cplusplus | |
26882 | extern "C" { | |
26883 | #endif | |
26884 | ||
26885 | /* Python-specific SWIG API */ | |
26886 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
26887 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
26888 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
26889 | ||
26890 | /* ----------------------------------------------------------------------------- | |
26891 | * global variable support code. | |
26892 | * ----------------------------------------------------------------------------- */ | |
26893 | ||
26894 | typedef struct swig_globalvar { | |
26895 | char *name; /* Name of global variable */ | |
26896 | PyObject *(*get_attr)(void); /* Return the current value */ | |
26897 | int (*set_attr)(PyObject *); /* Set the value */ | |
26898 | struct swig_globalvar *next; | |
26899 | } swig_globalvar; | |
26900 | ||
26901 | typedef struct swig_varlinkobject { | |
26902 | PyObject_HEAD | |
26903 | swig_globalvar *vars; | |
26904 | } swig_varlinkobject; | |
26905 | ||
26906 | SWIGINTERN PyObject * | |
26907 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
26908 | return PyString_FromString("<Swig global variables>"); | |
26909 | } | |
26910 | ||
26911 | SWIGINTERN PyObject * | |
26912 | swig_varlink_str(swig_varlinkobject *v) { | |
26913 | PyObject *str = PyString_FromString("("); | |
26914 | swig_globalvar *var; | |
26915 | for (var = v->vars; var; var=var->next) { | |
26916 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
26917 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
26918 | } | |
26919 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
26920 | return str; | |
26921 | } | |
26922 | ||
26923 | SWIGINTERN int | |
26924 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
26925 | PyObject *str = swig_varlink_str(v); | |
26926 | fprintf(fp,"Swig global variables "); | |
26927 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
26928 | Py_DECREF(str); | |
26929 | return 0; | |
26930 | } | |
26931 | ||
26932 | SWIGINTERN void | |
26933 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
26934 | swig_globalvar *var = v->vars; | |
26935 | while (var) { | |
26936 | swig_globalvar *n = var->next; | |
26937 | free(var->name); | |
26938 | free(var); | |
26939 | var = n; | |
be9b1dca | 26940 | } |
1bd55598 RD |
26941 | } |
26942 | ||
26943 | SWIGINTERN PyObject * | |
26944 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
26945 | PyObject *res = NULL; | |
26946 | swig_globalvar *var = v->vars; | |
26947 | while (var) { | |
26948 | if (strcmp(var->name,n) == 0) { | |
26949 | res = (*var->get_attr)(); | |
26950 | break; | |
26951 | } | |
26952 | var = var->next; | |
be9b1dca | 26953 | } |
1bd55598 RD |
26954 | if (res == NULL && !PyErr_Occurred()) { |
26955 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 26956 | } |
1bd55598 RD |
26957 | return res; |
26958 | } | |
26959 | ||
26960 | SWIGINTERN int | |
26961 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
26962 | int res = 1; | |
26963 | swig_globalvar *var = v->vars; | |
26964 | while (var) { | |
26965 | if (strcmp(var->name,n) == 0) { | |
26966 | res = (*var->set_attr)(p); | |
26967 | break; | |
26968 | } | |
26969 | var = var->next; | |
be9b1dca | 26970 | } |
1bd55598 RD |
26971 | if (res == 1 && !PyErr_Occurred()) { |
26972 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 26973 | } |
1bd55598 RD |
26974 | return res; |
26975 | } | |
26976 | ||
26977 | SWIGINTERN PyTypeObject* | |
26978 | swig_varlink_type(void) { | |
26979 | static char varlink__doc__[] = "Swig var link object"; | |
26980 | static PyTypeObject varlink_type; | |
26981 | static int type_init = 0; | |
26982 | if (!type_init) { | |
26983 | const PyTypeObject tmp | |
26984 | = { | |
26985 | PyObject_HEAD_INIT(NULL) | |
26986 | 0, /* Number of items in variable part (ob_size) */ | |
26987 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
26988 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
26989 | 0, /* Itemsize (tp_itemsize) */ | |
26990 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
26991 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
26992 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
26993 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
26994 | 0, /* tp_compare */ | |
26995 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
26996 | 0, /* tp_as_number */ | |
26997 | 0, /* tp_as_sequence */ | |
26998 | 0, /* tp_as_mapping */ | |
26999 | 0, /* tp_hash */ | |
27000 | 0, /* tp_call */ | |
27001 | (reprfunc)swig_varlink_str, /* tp_str */ | |
27002 | 0, /* tp_getattro */ | |
27003 | 0, /* tp_setattro */ | |
27004 | 0, /* tp_as_buffer */ | |
27005 | 0, /* tp_flags */ | |
27006 | varlink__doc__, /* tp_doc */ | |
27007 | 0, /* tp_traverse */ | |
27008 | 0, /* tp_clear */ | |
27009 | 0, /* tp_richcompare */ | |
27010 | 0, /* tp_weaklistoffset */ | |
27011 | #if PY_VERSION_HEX >= 0x02020000 | |
27012 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
27013 | #endif | |
27014 | #if PY_VERSION_HEX >= 0x02030000 | |
27015 | 0, /* tp_del */ | |
27016 | #endif | |
27017 | #ifdef COUNT_ALLOCS | |
27018 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
27019 | #endif | |
27020 | }; | |
27021 | varlink_type = tmp; | |
27022 | varlink_type.ob_type = &PyType_Type; | |
27023 | type_init = 1; | |
be9b1dca | 27024 | } |
1bd55598 RD |
27025 | return &varlink_type; |
27026 | } | |
27027 | ||
27028 | /* Create a variable linking object for use later */ | |
27029 | SWIGINTERN PyObject * | |
27030 | SWIG_Python_newvarlink(void) { | |
27031 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
27032 | if (result) { | |
27033 | result->vars = 0; | |
27034 | } | |
27035 | return ((PyObject*) result); | |
27036 | } | |
27037 | ||
27038 | SWIGINTERN void | |
27039 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
27040 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
27041 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
27042 | if (gv) { | |
27043 | size_t size = strlen(name)+1; | |
27044 | gv->name = (char *)malloc(size); | |
27045 | if (gv->name) { | |
27046 | strncpy(gv->name,name,size); | |
27047 | gv->get_attr = get_attr; | |
27048 | gv->set_attr = set_attr; | |
27049 | gv->next = v->vars; | |
27050 | } | |
be9b1dca | 27051 | } |
1bd55598 RD |
27052 | v->vars = gv; |
27053 | } | |
27054 | ||
27055 | SWIGINTERN PyObject * | |
27056 | SWIG_globals() { | |
27057 | static PyObject *_SWIG_globals = 0; | |
27058 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
27059 | return _SWIG_globals; | |
27060 | } | |
27061 | ||
27062 | /* ----------------------------------------------------------------------------- | |
27063 | * constants/methods manipulation | |
27064 | * ----------------------------------------------------------------------------- */ | |
27065 | ||
27066 | /* Install Constants */ | |
27067 | SWIGINTERN void | |
27068 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
27069 | PyObject *obj = 0; | |
27070 | size_t i; | |
27071 | for (i = 0; constants[i].type; ++i) { | |
27072 | switch(constants[i].type) { | |
27073 | case SWIG_PY_POINTER: | |
27074 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
27075 | break; | |
27076 | case SWIG_PY_BINARY: | |
27077 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
27078 | break; | |
27079 | default: | |
27080 | obj = 0; | |
27081 | break; | |
27082 | } | |
27083 | if (obj) { | |
27084 | PyDict_SetItemString(d, constants[i].name, obj); | |
27085 | Py_DECREF(obj); | |
27086 | } | |
be9b1dca | 27087 | } |
1bd55598 RD |
27088 | } |
27089 | ||
27090 | /* -----------------------------------------------------------------------------*/ | |
27091 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27092 | /* -----------------------------------------------------------------------------*/ | |
27093 | ||
27094 | SWIGINTERN void | |
27095 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
27096 | swig_const_info *const_table, | |
27097 | swig_type_info **types, | |
27098 | swig_type_info **types_initial) { | |
27099 | size_t i; | |
27100 | for (i = 0; methods[i].ml_name; ++i) { | |
27101 | char *c = methods[i].ml_doc; | |
27102 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
27103 | int j; | |
27104 | swig_const_info *ci = 0; | |
27105 | char *name = c + 10; | |
27106 | for (j = 0; const_table[j].type; ++j) { | |
27107 | if (strncmp(const_table[j].name, name, | |
27108 | strlen(const_table[j].name)) == 0) { | |
27109 | ci = &(const_table[j]); | |
27110 | break; | |
27111 | } | |
27112 | } | |
27113 | if (ci) { | |
27114 | size_t shift = (ci->ptype) - types; | |
27115 | swig_type_info *ty = types_initial[shift]; | |
27116 | size_t ldoc = (c - methods[i].ml_doc); | |
27117 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
27118 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
27119 | if (ndoc) { | |
27120 | char *buff = ndoc; | |
27121 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
27122 | if (ptr) { | |
27123 | strncpy(buff, methods[i].ml_doc, ldoc); | |
27124 | buff += ldoc; | |
27125 | strncpy(buff, "swig_ptr: ", 10); | |
27126 | buff += 10; | |
27127 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
27128 | methods[i].ml_doc = ndoc; | |
27129 | } | |
27130 | } | |
27131 | } | |
27132 | } | |
be9b1dca | 27133 | } |
1bd55598 RD |
27134 | } |
27135 | ||
27136 | #ifdef __cplusplus | |
27137 | } | |
27138 | #endif | |
27139 | ||
27140 | /* -----------------------------------------------------------------------------* | |
27141 | * Partial Init method | |
27142 | * -----------------------------------------------------------------------------*/ | |
27143 | ||
27144 | #ifdef __cplusplus | |
27145 | extern "C" | |
27146 | #endif | |
27147 | SWIGEXPORT void SWIG_init(void) { | |
27148 | PyObject *m, *d; | |
27149 | ||
27150 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
27151 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
27152 | ||
27153 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27154 | d = PyModule_GetDict(m); | |
27155 | ||
27156 | SWIG_InitializeModule(0); | |
27157 | SWIG_InstallConstants(d,swig_const_table); | |
27158 | ||
27159 | ||
2131d850 RD |
27160 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
27161 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
27162 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
1bd55598 RD |
27163 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
27164 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
27165 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
27166 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
27167 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
27168 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
27169 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
27170 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
27171 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
27172 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
27173 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
27174 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
27175 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
27176 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
27177 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
27178 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
27179 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
27180 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
27181 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
27182 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
27183 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
27184 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
27185 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
27186 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
27187 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
27188 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
27189 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
27190 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
27191 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
27192 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
27193 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
27194 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
27195 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
27196 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
27197 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
27198 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
27199 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
27200 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
27201 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
27202 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
27203 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
27204 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
27205 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
27206 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
27207 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
27208 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
27209 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
27210 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
27211 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
27212 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
27213 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
27214 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
27215 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
27216 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
27217 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
27218 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
27219 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
27220 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
27221 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
27222 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
27223 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
27224 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
27225 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
27226 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
27227 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
27228 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
27229 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
27230 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
27231 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
27232 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
27233 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
27234 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
27235 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
27236 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
27237 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
27238 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
27239 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
27240 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
27241 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
27242 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
27243 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
27244 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
27245 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
27246 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
27247 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
27248 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
27249 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
27250 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
27251 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
27252 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
27253 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
27254 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
27255 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
27256 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
27257 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
27258 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
27259 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
27260 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
27261 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
27262 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
27263 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
27264 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
27265 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
27266 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
27267 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
27268 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
27269 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
27270 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
27271 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
27272 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
27273 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
27274 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
27275 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
27276 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
27277 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
27278 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
27279 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
27280 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
27281 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
27282 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
27283 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
27284 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
27285 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
27286 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
27287 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
27288 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
27289 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
27290 | ||
27291 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
27292 | ||
27293 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
27294 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
27295 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
27296 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
27297 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
27298 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
27299 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
27300 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
27301 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
27302 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
27303 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
27304 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
27305 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
27306 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
27307 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
27308 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
27309 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
27310 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
27311 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
27312 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
27313 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
27314 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
27315 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
27316 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
27317 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
27318 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
27319 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
27320 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
27321 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
27322 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
27323 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
27324 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
27325 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
27326 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
27327 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
27328 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
27329 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
27330 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
27331 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
27332 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
27333 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
27334 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
27335 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
27336 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
27337 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
27338 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
27339 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
27340 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
27341 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
27342 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
27343 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
27344 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
27345 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
27346 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
27347 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
27348 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
27349 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
27350 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
27351 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
27352 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
27353 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
27354 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
27355 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
27356 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
27357 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
27358 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
27359 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
27360 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
27361 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
27362 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
27363 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
27364 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
27365 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
27366 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
27367 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
27368 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
27369 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
27370 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
27371 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
27372 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
27373 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
27374 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
27375 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
27376 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
27377 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
27378 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
27379 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
27380 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
27381 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
27382 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
27383 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
27384 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
27385 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
27386 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
27387 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
27388 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
27389 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
27390 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
27391 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
27392 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
27393 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
27394 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
27395 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
27396 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
27397 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
27398 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
27399 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
27400 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
27401 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
27402 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
27403 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
27404 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
27405 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
27406 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
27407 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
27408 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
27409 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
27410 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
27411 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
27412 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
27413 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
27414 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
27415 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
27416 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
27417 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
27418 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
27419 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
27420 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
27421 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
27422 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
27423 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
27424 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
27425 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
27426 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
27427 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
27428 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
27429 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
27430 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
27431 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
27432 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
27433 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
27434 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
27435 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
27436 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
27437 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
27438 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
27439 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
27440 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
27441 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
27442 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
27443 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
27444 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
27445 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
27446 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
27447 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
27448 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
27449 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
27450 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
27451 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
27452 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
27453 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
27454 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
27455 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
27456 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
27457 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
27458 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
27459 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
27460 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
27461 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
27462 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
27463 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
27464 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
27465 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
27466 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
27467 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
27468 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
27469 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
27470 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
27471 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
27472 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
27473 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
27474 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
27475 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
27476 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
27477 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
27478 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
27479 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
27480 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
27481 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
27482 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
27483 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
27484 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
27485 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
27486 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
27487 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
27488 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
27489 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
27490 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
27491 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
27492 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
27493 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
27494 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
27495 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
27496 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
27497 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
27498 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
27499 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
27500 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
27501 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
27502 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
27503 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
27504 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
27505 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
27506 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
27507 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
27508 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
27509 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
27510 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
27511 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
27512 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
27513 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
27514 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
27515 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
27516 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
27517 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
27518 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
27519 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
27520 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
27521 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
27522 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
27523 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
27524 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
27525 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
27526 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
27527 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
27528 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
27529 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
27530 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
27531 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
27532 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
27533 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
27534 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
27535 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
27536 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
27537 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
27538 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
27539 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
27540 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
27541 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); | |
27542 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
27543 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
27544 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
27545 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
27546 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
27547 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
da91cb0f RD |
27548 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
27549 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
27550 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
27551 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
27552 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
27553 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
27554 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
27555 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
27556 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
27557 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
27558 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
27559 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
27560 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
27561 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
27562 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
27563 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
27564 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
27565 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
27566 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
27567 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
27568 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
27569 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
27570 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
27571 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
27572 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
27573 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
27574 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
27575 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
27576 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
27577 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
27578 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
27579 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
27580 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
27581 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
27582 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
1bd55598 | 27583 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
1bd55598 RD |
27584 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
27585 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
27586 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
27587 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
27588 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
27589 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
27590 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
27591 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
1bd55598 RD |
27592 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
27593 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
27594 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
27595 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); | |
27596 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
27597 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
27598 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); | |
27599 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
27600 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
27601 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
27602 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
27603 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
27604 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
27605 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); | |
27606 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
27607 | ||
27608 | // Work around a chicken/egg problem in drawlist.cpp | |
27609 | wxPyDrawList_SetAPIPtr(); | |
27610 | ||
d55e5bfc RD |
27611 | } |
27612 |